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,1090 @@
1
+ import React from "react"
2
+ import type { Meta, StoryObj } from "@storybook/react"
3
+
4
+ import { EyeCloseIcon } from "."
5
+
6
+ const meta: Meta<typeof EyeCloseIcon> = {
7
+ title: "Icons/EyeCloseIcon",
8
+ component: EyeCloseIcon,
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-slate-500/10 via-transparent to-gray-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-slate-500/30 bg-gradient-to-br from-slate-500/20 to-gray-500/20">
90
+ <EyeCloseIcon className="h-12 w-12 text-slate-400" />
91
+ </div>
92
+ <h1 className="!text-fm-primary text-5xl font-bold">
93
+ EyeCloseIcon
94
+ </h1>
95
+ <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
+ A visibility toggle icon for hiding content, password
97
+ fields, and privacy controls. Features a crossed-out eye
98
+ design that clearly indicates hidden or private state.
99
+ Perfect for password visibility toggles, content filters,
100
+ and privacy settings. Built with accessibility in mind using
101
+ Radix UI's AccessibleIcon wrapper.
102
+ </p>
103
+
104
+ {/* Stats */}
105
+ <div className="flex items-center justify-center gap-8 pt-8">
106
+ <div className="text-center">
107
+ <div className="text-3xl font-bold text-slate-300">
108
+ Private
109
+ </div>
110
+ <div className="text-sm text-white/60">
111
+ Content hidden
112
+ </div>
113
+ </div>
114
+ <div className="h-8 w-px bg-white/20" />
115
+ <div className="text-center">
116
+ <div className="text-3xl font-bold text-gray-300">
117
+ Secure
118
+ </div>
119
+ <div className="text-sm text-white/60">
120
+ Privacy focused
121
+ </div>
122
+ </div>
123
+ <div className="h-8 w-px bg-white/20" />
124
+ <div className="text-center">
125
+ <div className="text-3xl font-bold text-indigo-300">
126
+ Interactive
127
+ </div>
128
+ <div className="text-sm text-white/60">Toggle states</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-slate-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 { EyeCloseIcon } from "@icons/eye-close-icon"
150
+
151
+ function PasswordField() {
152
+ const [isVisible, setIsVisible] = useState(false)
153
+
154
+ return (
155
+ <div className="relative">
156
+ <input
157
+ type={isVisible ? "text" : "password"}
158
+ className="pr-10"
159
+ />
160
+ <button
161
+ onClick={() => setIsVisible(!isVisible)}
162
+ className="absolute right-2 top-1/2 -translate-y-1/2"
163
+ >
164
+ <EyeCloseIcon className="h-5 w-5 text-gray-400 " />
165
+ </button>
166
+ </div>
167
+ )
168
+ }`}
169
+ </pre>
170
+ </div>
171
+ </div>
172
+
173
+ <div className="!space-y-4">
174
+ <h3 className="text-xl font-semibold !text-slate-300">
175
+ Live Preview
176
+ </h3>
177
+ <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
178
+ <div className="relative">
179
+ <input
180
+ type="password"
181
+ placeholder="Enter password"
182
+ className="rounded-lg border border-white/20 bg-white/5 px-3 py-2 pr-10 text-white placeholder-white/50"
183
+ />
184
+ <button className="absolute top-1/2 right-2 -translate-y-1/2 rounded p-1 hover:bg-white/10">
185
+ <EyeCloseIcon className="h-5 w-5 text-slate-400" />
186
+ </button>
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
+ <tr className="border-b border-white/5">
222
+ <td className="px-6 py-4 font-mono text-sm !text-slate-300">
223
+ width
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">24</td>
229
+ <td className="px-6 py-4 text-sm !text-white/70">
230
+ Width of the icon in pixels
231
+ </td>
232
+ </tr>
233
+ <tr className="border-b border-white/5 !bg-black/10">
234
+ <td className="px-6 py-4 font-mono text-sm !text-slate-300">
235
+ height
236
+ </td>
237
+ <td className="px-6 py-4 text-sm !text-white/70">
238
+ number | string
239
+ </td>
240
+ <td className="px-6 py-4 text-sm !text-white/50">24</td>
241
+ <td className="px-6 py-4 text-sm !text-white/70">
242
+ Height of the icon in pixels
243
+ </td>
244
+ </tr>
245
+ <tr className="border-b border-white/5">
246
+ <td className="px-6 py-4 font-mono text-sm !text-slate-300">
247
+ stroke
248
+ </td>
249
+ <td className="px-6 py-4 text-sm !text-white/70">
250
+ string
251
+ </td>
252
+ <td className="px-6 py-4 text-sm !text-white/50">
253
+ currentColor
254
+ </td>
255
+ <td className="px-6 py-4 text-sm !text-white/70">
256
+ Stroke color of the icon
257
+ </td>
258
+ </tr>
259
+ <tr className="border-b border-white/5 !bg-black/10">
260
+ <td className="px-6 py-4 font-mono text-sm !text-slate-300">
261
+ strokeWidth
262
+ </td>
263
+ <td className="px-6 py-4 text-sm !text-white/70">
264
+ string | number
265
+ </td>
266
+ <td className="px-6 py-4 text-sm !text-white/50">1</td>
267
+ <td className="px-6 py-4 text-sm !text-white/70">
268
+ Stroke width of the icon lines
269
+ </td>
270
+ </tr>
271
+ <tr className="border-b border-white/5">
272
+ <td className="px-6 py-4 font-mono text-sm !text-slate-300">
273
+ className
274
+ </td>
275
+ <td className="px-6 py-4 text-sm !text-white/70">
276
+ string
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
+ CSS classes for styling (use for overrides)
281
+ </td>
282
+ </tr>
283
+ <tr className="border-b border-white/5 !bg-black/10">
284
+ <td className="px-6 py-4 font-mono text-sm !text-slate-300">
285
+ onClick
286
+ </td>
287
+ <td className="px-6 py-4 text-sm !text-white/70">
288
+ function
289
+ </td>
290
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
291
+ <td className="px-6 py-4 text-sm !text-white/70">
292
+ Click handler for toggle functionality
293
+ </td>
294
+ </tr>
295
+ <tr className="!bg-black/10">
296
+ <td className="px-6 py-4 font-mono text-sm !text-slate-300">
297
+ ...svgProps
298
+ </td>
299
+ <td className="px-6 py-4 text-sm !text-white/70">
300
+ SVGProps
301
+ </td>
302
+ <td className="px-6 py-4 text-sm !text-white/50">-</td>
303
+ <td className="px-6 py-4 text-sm !text-white/70">
304
+ All standard SVG element props
305
+ </td>
306
+ </tr>
307
+ </tbody>
308
+ </table>
309
+ </div>
310
+ </div>
311
+
312
+ {/* Size Variations */}
313
+ <div className="!space-y-8">
314
+ <h2 className="text-center text-3xl font-bold !text-white">
315
+ Size Variations
316
+ </h2>
317
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
318
+ <div className="!space-y-6">
319
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
320
+ <div className="!space-y-4">
321
+ <h3 className="text-lg font-semibold !text-slate-300">
322
+ Standard Sizes
323
+ </h3>
324
+ <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
325
+ <div className="text-center">
326
+ <EyeCloseIcon className="!mx-auto mb-2 h-3 w-3 text-slate-400" />
327
+ <span className="text-xs text-white/60">12px</span>
328
+ </div>
329
+ <div className="text-center">
330
+ <EyeCloseIcon className="!mx-auto mb-2 h-4 w-4 text-slate-400" />
331
+ <span className="text-xs text-white/60">16px</span>
332
+ </div>
333
+ <div className="text-center">
334
+ <EyeCloseIcon className="!mx-auto mb-2 h-5 w-5 text-slate-400" />
335
+ <span className="text-xs text-white/60">20px</span>
336
+ </div>
337
+ <div className="text-center">
338
+ <EyeCloseIcon className="!mx-auto mb-2 h-6 w-6 text-slate-400" />
339
+ <span className="text-xs text-white/60">24px</span>
340
+ </div>
341
+ <div className="text-center">
342
+ <EyeCloseIcon className="!mx-auto mb-2 h-8 w-8 text-slate-400" />
343
+ <span className="text-xs text-white/60">32px</span>
344
+ </div>
345
+ <div className="text-center">
346
+ <EyeCloseIcon className="!mx-auto mb-2 h-12 w-12 text-slate-400" />
347
+ <span className="text-xs text-white/60">48px</span>
348
+ </div>
349
+ </div>
350
+ </div>
351
+
352
+ <div className="!space-y-4">
353
+ <h3 className="text-lg font-semibold !text-slate-300">
354
+ Code Example
355
+ </h3>
356
+ <div className="rounded-lg bg-black/40 p-4">
357
+ <pre className="overflow-x-auto text-sm !text-cyan-300">
358
+ {`// Small (16px)
359
+ <EyeCloseIcon className="h-4 w-4 " />
360
+
361
+ // Medium (24px)
362
+ <EyeCloseIcon className="h-6 w-6 " />
363
+
364
+ // Large (32px)
365
+ <EyeCloseIcon className="h-8 w-8 " />
366
+
367
+ // Custom size with stroke width
368
+ <EyeCloseIcon
369
+ width={40}
370
+ height={40}
371
+ strokeWidth={2}
372
+ />`}
373
+ </pre>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ </div>
378
+ </div>
379
+ </div>
380
+
381
+ {/* Color Variations */}
382
+ <div className="!space-y-8">
383
+ <h2 className="text-center text-3xl font-bold !text-white">
384
+ Color Variations
385
+ </h2>
386
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
387
+ <div className="!space-y-4">
388
+ <h3 className="text-lg font-semibold !text-slate-300">
389
+ Semantic Colors
390
+ </h3>
391
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
392
+ <div className="flex items-center gap-4">
393
+ <EyeCloseIcon className="h-6 w-6 text-slate-400" />
394
+ <div>
395
+ <div className="text-sm font-medium text-white">
396
+ Default / Hidden
397
+ </div>
398
+ <div className="text-xs text-white/60">
399
+ text-slate-400
400
+ </div>
401
+ </div>
402
+ </div>
403
+ <div className="flex items-center gap-4">
404
+ <EyeCloseIcon className="h-6 w-6 text-gray-400" />
405
+ <div>
406
+ <div className="text-sm font-medium text-white">
407
+ Disabled
408
+ </div>
409
+ <div className="text-xs text-white/60">
410
+ text-gray-400
411
+ </div>
412
+ </div>
413
+ </div>
414
+ <div className="flex items-center gap-4">
415
+ <EyeCloseIcon className="h-6 w-6 text-red-400" />
416
+ <div>
417
+ <div className="text-sm font-medium text-white">
418
+ Restricted
419
+ </div>
420
+ <div className="text-xs text-white/60">
421
+ text-red-400
422
+ </div>
423
+ </div>
424
+ </div>
425
+ <div className="flex items-center gap-4">
426
+ <EyeCloseIcon className="h-6 w-6 text-blue-400" />
427
+ <div>
428
+ <div className="text-sm font-medium text-white">
429
+ Interactive
430
+ </div>
431
+ <div className="text-xs text-white/60">
432
+ text-blue-400
433
+ </div>
434
+ </div>
435
+ </div>
436
+ </div>
437
+ </div>
438
+
439
+ <div className="!space-y-4">
440
+ <h3 className="text-lg font-semibold !text-slate-300">
441
+ Custom Colors
442
+ </h3>
443
+ <div className="rounded-lg bg-black/40 p-4">
444
+ <pre className="overflow-x-auto text-sm !text-green-300">
445
+ {`// Using Tailwind classes with
446
+ <EyeCloseIcon className="h-6 w-6 text-slate-400 " />
447
+ <EyeCloseIcon className="h-6 w-6 text-red-500 " />
448
+
449
+ // Using CSS custom properties
450
+ <EyeCloseIcon
451
+ className="h-6 w-6 "
452
+ style={{ color: 'var(--color-privacy)' }}
453
+ />
454
+
455
+ // Direct stroke prop
456
+ <EyeCloseIcon
457
+ width={24}
458
+ height={24}
459
+ stroke="#64748b"
460
+ strokeWidth={1.5}
461
+ />`}
462
+ </pre>
463
+ </div>
464
+ </div>
465
+ </div>
466
+ </div>
467
+
468
+ {/* Usage Examples */}
469
+ <div className="!space-y-8">
470
+ <h2 className="text-center text-3xl font-bold !text-white">
471
+ Usage Examples
472
+ </h2>
473
+
474
+ <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
475
+ {/* Password Field */}
476
+ <div className="!space-y-4">
477
+ <h3 className="text-lg font-semibold !text-slate-300">
478
+ Password Field Toggle
479
+ </h3>
480
+ <div className="!space-y-4">
481
+ <div className="!space-y-2">
482
+ <label className="text-sm font-medium !text-white">
483
+ Password
484
+ </label>
485
+ <div className="relative">
486
+ <input
487
+ type="password"
488
+ 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-slate-400 focus:ring-2 focus:ring-slate-400/20"
489
+ placeholder="Enter your password"
490
+ defaultValue="mysecretpassword"
491
+ />
492
+ <button className="absolute top-1/2 right-2 -translate-y-1/2 rounded p-1 transition-colors hover:bg-white/10">
493
+ <EyeCloseIcon className="h-5 w-5 text-slate-400" />
494
+ </button>
495
+ </div>
496
+ <p className="text-xs text-white/60">
497
+ Click the eye icon to toggle password visibility
498
+ </p>
499
+ </div>
500
+ <div className="rounded-lg bg-black/40 p-4">
501
+ <pre className="overflow-x-auto text-sm !text-green-300">
502
+ {`// Password visibility toggle
503
+ const [showPassword, setShowPassword] = useState(false)
504
+
505
+ <div className="relative">
506
+ <input
507
+ type={showPassword ? "text" : "password"}
508
+ className="w-full pr-10"
509
+ />
510
+ <button
511
+ onClick={() => setShowPassword(!showPassword)}
512
+ className="absolute right-2 top-1/2 -translate-y-1/2 p-1 hover:bg-white/10 rounded"
513
+ >
514
+ {showPassword ? (
515
+ <EyeIcon className="h-5 w-5 text-slate-400 " />
516
+ ) : (
517
+ <EyeCloseIcon className="h-5 w-5 text-slate-400 " />
518
+ )}
519
+ </button>
520
+ </div>`}
521
+ </pre>
522
+ </div>
523
+ </div>
524
+ </div>
525
+
526
+ {/* Content Filter */}
527
+ <div className="!space-y-4">
528
+ <h3 className="text-lg font-semibold !text-slate-300">
529
+ Content Filter
530
+ </h3>
531
+ <div className="!space-y-4">
532
+ <div className="rounded-lg border border-white/10 bg-white/5 p-4">
533
+ <div className="mb-3 flex items-center justify-between">
534
+ <span className="font-medium text-white">
535
+ Sensitive Content
536
+ </span>
537
+ <button className="flex items-center gap-2 text-sm text-slate-400 hover:text-white">
538
+ <EyeCloseIcon className="h-4 w-4" />
539
+ Hidden
540
+ </button>
541
+ </div>
542
+ <div className="rounded-lg bg-black/20 p-8 text-center">
543
+ <EyeCloseIcon className="mx-auto mb-3 h-12 w-12 text-slate-600" />
544
+ <p className="text-sm !text-white/60">
545
+ Content hidden due to privacy settings
546
+ </p>
547
+ <button className="mt-2 text-xs text-blue-400 hover:text-blue-300">
548
+ Show content
549
+ </button>
550
+ </div>
551
+ </div>
552
+ <div className="rounded-lg bg-black/40 p-4">
553
+ <pre className="overflow-x-auto text-sm !text-green-300">
554
+ {`// Content filter with hidden state
555
+ <div className="rounded-lg bg-black/20 p-8 text-center">
556
+ <EyeCloseIcon className="mx-auto h-12 w-12 text-slate-600 mb-3 " />
557
+ <p className="text-sm text-white/60">Content hidden due to privacy settings</p>
558
+ <button
559
+ onClick={showContent}
560
+ className="mt-2 text-xs text-blue-400 hover:text-blue-300"
561
+ >
562
+ Show content
563
+ </button>
564
+ </div>`}
565
+ </pre>
566
+ </div>
567
+ </div>
568
+ </div>
569
+
570
+ {/* Privacy Settings */}
571
+ <div className="!space-y-4">
572
+ <h3 className="text-lg font-semibold !text-slate-300">
573
+ Privacy Settings
574
+ </h3>
575
+ <div className="!space-y-4">
576
+ <div className="!space-y-3">
577
+ <div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
578
+ <div className="flex items-center gap-3">
579
+ <EyeCloseIcon className="h-5 w-5 text-slate-400" />
580
+ <div>
581
+ <div className="text-sm font-medium text-white">
582
+ Profile Visibility
583
+ </div>
584
+ <div className="text-xs text-white/60">
585
+ Your profile is hidden from search
586
+ </div>
587
+ </div>
588
+ </div>
589
+ <div className="flex items-center">
590
+ <span className="mr-3 text-xs text-slate-400">
591
+ Private
592
+ </span>
593
+ <div className="relative h-6 w-11 rounded-full bg-slate-600">
594
+ <div className="absolute top-1 left-1 h-4 w-4 rounded-full bg-white transition-transform"></div>
595
+ </div>
596
+ </div>
597
+ </div>
598
+ <div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
599
+ <div className="flex items-center gap-3">
600
+ <EyeCloseIcon className="h-5 w-5 text-slate-400" />
601
+ <div>
602
+ <div className="text-sm font-medium text-white">
603
+ Activity Status
604
+ </div>
605
+ <div className="text-xs text-white/60">
606
+ Hide your online status
607
+ </div>
608
+ </div>
609
+ </div>
610
+ <div className="flex items-center">
611
+ <span className="mr-3 text-xs text-slate-400">
612
+ Hidden
613
+ </span>
614
+ <div className="relative h-6 w-11 rounded-full bg-slate-600">
615
+ <div className="absolute top-1 left-1 h-4 w-4 rounded-full bg-white transition-transform"></div>
616
+ </div>
617
+ </div>
618
+ </div>
619
+ </div>
620
+ <div className="rounded-lg bg-black/40 p-4">
621
+ <pre className="overflow-x-auto text-sm !text-green-300">
622
+ {`// Privacy setting item
623
+ <div className="flex items-center justify-between p-4 border border-white/10 bg-white/5 rounded-lg">
624
+ <div className="flex items-center gap-3">
625
+ <EyeCloseIcon className="h-5 w-5 text-slate-400 " />
626
+ <div>
627
+ <div className="text-sm font-medium text-white">Profile Visibility</div>
628
+ <div className="text-xs text-white/60">Your profile is hidden from search</div>
629
+ </div>
630
+ </div>
631
+ <ToggleSwitch checked={false} onChange={handleToggle} />
632
+ </div>`}
633
+ </pre>
634
+ </div>
635
+ </div>
636
+ </div>
637
+
638
+ {/* Data Protection */}
639
+ <div className="!space-y-4">
640
+ <h3 className="text-lg font-semibold !text-slate-300">
641
+ Data Protection
642
+ </h3>
643
+ <div className="!space-y-4">
644
+ <div className="rounded-lg border border-slate-500/20 bg-slate-500/10 p-4">
645
+ <div className="flex items-start gap-3">
646
+ <EyeCloseIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-slate-400" />
647
+ <div>
648
+ <h4 className="font-medium !text-slate-200">
649
+ Encrypted Data
650
+ </h4>
651
+ <p className="text-sm !text-slate-300/80">
652
+ Your personal information is encrypted and
653
+ protected from unauthorized access.
654
+ </p>
655
+ <div className="mt-2 flex gap-2">
656
+ <span className="inline-flex items-center rounded bg-slate-500/20 px-2 py-1 text-xs text-slate-300">
657
+ End-to-end encrypted
658
+ </span>
659
+ <span className="inline-flex items-center rounded bg-green-500/20 px-2 py-1 text-xs text-green-300">
660
+ Secure
661
+ </span>
662
+ </div>
663
+ </div>
664
+ </div>
665
+ </div>
666
+ <div className="rounded-lg bg-black/40 p-4">
667
+ <pre className="overflow-x-auto text-sm !text-green-300">
668
+ {`// Data protection notice
669
+ <div className="border border-slate-500/20 bg-slate-500/10 p-4 rounded-lg">
670
+ <div className="flex items-start gap-3">
671
+ <EyeCloseIcon className="h-5 w-5 text-slate-400 mt-0.5 flex-shrink-0 " />
672
+ <div>
673
+ <h4 className="font-medium text-slate-200">Encrypted Data</h4>
674
+ <p className="text-sm text-slate-300/80">
675
+ Your personal information is encrypted and protected.
676
+ </p>
677
+ </div>
678
+ </div>
679
+ </div>`}
680
+ </pre>
681
+ </div>
682
+ </div>
683
+ </div>
684
+ </div>
685
+ </div>
686
+
687
+ {/* Accessibility */}
688
+ <div className="!space-y-8">
689
+ <h2 className="text-center text-3xl font-bold !text-white">
690
+ Accessibility Features
691
+ </h2>
692
+ <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
693
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
694
+ <h3 className="text-lg font-semibold !text-green-300">
695
+ ✅ Built-in Features
696
+ </h3>
697
+ <ul className="!space-y-2 text-sm !text-white/70">
698
+ <li className="!text-white/70">
699
+ Uses Radix UI AccessibleIcon wrapper
700
+ </li>
701
+ <li className="!text-white/70">
702
+ Provides screen reader label "Eye Close icon"
703
+ </li>
704
+ <li className="!text-white/70">
705
+ Supports keyboard navigation when interactive
706
+ </li>
707
+ <li className="!text-white/70">
708
+ Maintains proper color contrast ratios
709
+ </li>
710
+ <li className="!text-white/70">
711
+ Scales with user's font size preferences
712
+ </li>
713
+ </ul>
714
+ </div>
715
+
716
+ <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
717
+ <h3 className="text-lg font-semibold !text-slate-300">
718
+ 💡 Best Practices
719
+ </h3>
720
+ <ul className="!space-y-2 text-sm text-white/70">
721
+ <li className="!text-white/70">
722
+ Always provide clear button labels for toggle actions
723
+ </li>
724
+ <li className="!text-white/70">
725
+ Use consistent placement in form fields
726
+ </li>
727
+ <li className="!text-white/70">
728
+ Ensure sufficient touch target size (44px minimum)
729
+ </li>
730
+ <li className="!text-white/70">
731
+ Provide visible focus states for keyboard users
732
+ </li>
733
+ <li className="!text-white/70">
734
+ Consider screen reader announcements for state changes
735
+ </li>
736
+ </ul>
737
+ </div>
738
+ </div>
739
+
740
+ <div className="rounded-lg border border-white/10 bg-white/5 p-6">
741
+ <h3 className="mb-4 text-lg font-semibold !text-purple-300">
742
+ Proper ARIA Implementation
743
+ </h3>
744
+ <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
745
+ <div className="rounded-lg bg-black/40 p-4">
746
+ <pre className="overflow-x-auto text-sm !text-cyan-300">
747
+ {`// Password toggle with proper ARIA
748
+ <button
749
+ aria-label={showPassword ? "Hide password" : "Show password"}
750
+ aria-pressed={!showPassword}
751
+ onClick={() => setShowPassword(!showPassword)}
752
+ className="p-1 hover:bg-white/10 rounded"
753
+ >
754
+ {showPassword ? (
755
+ <EyeIcon className="h-5 w-5 text-slate-400 " />
756
+ ) : (
757
+ <EyeCloseIcon className="h-5 w-5 text-slate-400 " />
758
+ )}
759
+ </button>
760
+
761
+ // Privacy setting with description
762
+ <button
763
+ aria-label="Toggle profile visibility"
764
+ aria-describedby="privacy-help"
765
+ onClick={togglePrivacy}
766
+ >
767
+ <EyeCloseIcon className="h-5 w-5 text-slate-400 " />
768
+ </button>
769
+ <p id="privacy-help" className="text-xs text-white/60">
770
+ Controls whether your profile is visible in search results
771
+ </p>`}
772
+ </pre>
773
+ </div>
774
+ <div className="!space-y-4">
775
+ <p className="text-sm !text-white/70">
776
+ When using EyeCloseIcon for interactive elements, always
777
+ provide descriptive aria-label attributes that explain
778
+ the current state and what will happen when activated.
779
+ </p>
780
+ <div className="rounded-lg border border-slate-500/20 bg-slate-500/10 p-4">
781
+ <div className="flex items-center gap-2 text-sm text-slate-200">
782
+ <EyeCloseIcon className="h-4 w-4" />
783
+ <span>
784
+ Screen readers need context about visibility states
785
+ </span>
786
+ </div>
787
+ </div>
788
+ </div>
789
+ </div>
790
+ </div>
791
+ </div>
792
+
793
+ {/* Related Icons */}
794
+ <div className="!space-y-8">
795
+ <h2 className="text-center text-3xl font-bold !text-white">
796
+ Related Icons
797
+ </h2>
798
+ <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
799
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
800
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
801
+ <span className="text-2xl">👁️</span>
802
+ </div>
803
+ <div>
804
+ <div className="font-medium text-white">EyeIcon</div>
805
+ <div className="text-xs text-white/60">Show content</div>
806
+ </div>
807
+ </div>
808
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
809
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-red-500/20">
810
+ <span className="text-2xl">🔒</span>
811
+ </div>
812
+ <div>
813
+ <div className="font-medium text-white">LockIcon</div>
814
+ <div className="text-xs text-white/60">Security</div>
815
+ </div>
816
+ </div>
817
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
818
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
819
+ <span className="text-2xl">🛡️</span>
820
+ </div>
821
+ <div>
822
+ <div className="font-medium text-white">ShieldIcon</div>
823
+ <div className="text-xs text-white/60">Protection</div>
824
+ </div>
825
+ </div>
826
+ <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
827
+ <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
828
+ <span className="text-2xl">⚙️</span>
829
+ </div>
830
+ <div>
831
+ <div className="font-medium text-white">SettingsIcon</div>
832
+ <div className="text-xs text-white/60">Configure</div>
833
+ </div>
834
+ </div>
835
+ </div>
836
+ </div>
837
+ </div>
838
+
839
+ {/* Footer */}
840
+ <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
841
+ <div className="!mx-auto max-w-7xl px-6 py-8">
842
+ <div className="!space-y-4 text-center">
843
+ <p className="!text-white/60">
844
+ EyeCloseIcon is part of the Aural UI icon library, built
845
+ with privacy and accessibility in mind.
846
+ </p>
847
+ <p className="text-sm !text-white/40">
848
+ All icons use Radix UI's AccessibleIcon for screen reader
849
+ compatibility and follow WCAG guidelines.
850
+ </p>
851
+ </div>
852
+ </div>
853
+ </div>
854
+ </div>
855
+ </>
856
+ ),
857
+ },
858
+ },
859
+ tags: ["autodocs"],
860
+ argTypes: {
861
+ width: {
862
+ control: { type: "range", min: 8, max: 96, step: 2 },
863
+ description: "Width of the icon in pixels",
864
+ },
865
+ height: {
866
+ control: { type: "range", min: 8, max: 96, step: 2 },
867
+ description: "Height of the icon in pixels",
868
+ },
869
+ stroke: {
870
+ control: "color",
871
+ description: "Stroke color of the icon",
872
+ },
873
+ strokeWidth: {
874
+ control: { type: "range", min: 0.5, max: 4, step: 0.5 },
875
+ description: "Stroke width of the icon lines",
876
+ },
877
+ className: {
878
+ control: "text",
879
+ description: "CSS classes for styling (use for overrides)",
880
+ },
881
+ onClick: {
882
+ action: "clicked",
883
+ description: "Click handler for toggle functionality",
884
+ },
885
+ },
886
+ }
887
+
888
+ export default meta
889
+ type Story = StoryObj<typeof EyeCloseIcon>
890
+
891
+ // Story parameters for consistent dark theme
892
+ const storyParameters = {
893
+ backgrounds: {
894
+ default: "dark",
895
+ values: [
896
+ { name: "dark", value: "#0a0a0a" },
897
+ { name: "darker", value: "#000000" },
898
+ ],
899
+ },
900
+ }
901
+
902
+ export const Default: Story = {
903
+ args: {
904
+ className: "h-6 w-6 text-slate-400 ",
905
+ },
906
+ parameters: storyParameters,
907
+ render: (args) => (
908
+ <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
909
+ <EyeCloseIcon {...args} />
910
+ </div>
911
+ ),
912
+ }
913
+
914
+ export const SizeVariations: Story = {
915
+ parameters: {
916
+ ...storyParameters,
917
+ docs: {
918
+ description: {
919
+ story:
920
+ "EyeCloseIcon in different sizes, from small UI elements to large displays.",
921
+ },
922
+ },
923
+ },
924
+ render: () => (
925
+ <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">
926
+ <div className="text-center">
927
+ <EyeCloseIcon className="!mx-auto mb-2 h-3 w-3 text-slate-400" />
928
+ <span className="text-xs text-white/60">12px</span>
929
+ </div>
930
+ <div className="text-center">
931
+ <EyeCloseIcon className="!mx-auto mb-2 h-4 w-4 text-slate-400" />
932
+ <span className="text-xs text-white/60">16px</span>
933
+ </div>
934
+ <div className="text-center">
935
+ <EyeCloseIcon className="!mx-auto mb-2 h-5 w-5 text-slate-400" />
936
+ <span className="text-xs text-white/60">20px</span>
937
+ </div>
938
+ <div className="text-center">
939
+ <EyeCloseIcon className="!mx-auto mb-2 h-6 w-6 text-slate-400" />
940
+ <span className="text-xs text-white/60">24px</span>
941
+ </div>
942
+ <div className="text-center">
943
+ <EyeCloseIcon className="!mx-auto mb-2 h-8 w-8 text-slate-400" />
944
+ <span className="text-xs text-white/60">32px</span>
945
+ </div>
946
+ <div className="text-center">
947
+ <EyeCloseIcon className="!mx-auto mb-2 h-12 w-12 text-slate-400" />
948
+ <span className="text-xs text-white/60">48px</span>
949
+ </div>
950
+ </div>
951
+ ),
952
+ }
953
+
954
+ export const ColorVariations: Story = {
955
+ parameters: {
956
+ ...storyParameters,
957
+ docs: {
958
+ description: {
959
+ story:
960
+ "EyeCloseIcon in different semantic colors for various privacy contexts.",
961
+ },
962
+ },
963
+ },
964
+ render: () => (
965
+ <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">
966
+ <div className="text-center">
967
+ <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-slate-500/30 bg-slate-500/20">
968
+ <EyeCloseIcon className="h-8 w-8 text-slate-400" />
969
+ </div>
970
+ <div className="text-sm font-medium text-white">Default</div>
971
+ <div className="text-xs text-slate-400">text-slate-400</div>
972
+ </div>
973
+ <div className="text-center">
974
+ <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">
975
+ <EyeCloseIcon className="h-8 w-8 text-gray-400" />
976
+ </div>
977
+ <div className="text-sm font-medium text-white">Disabled</div>
978
+ <div className="text-xs text-gray-400">text-gray-400</div>
979
+ </div>
980
+ <div className="text-center">
981
+ <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">
982
+ <EyeCloseIcon className="h-8 w-8 text-red-400" />
983
+ </div>
984
+ <div className="text-sm font-medium text-white">Restricted</div>
985
+ <div className="text-xs text-red-400">text-red-400</div>
986
+ </div>
987
+ <div className="text-center">
988
+ <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">
989
+ <EyeCloseIcon className="h-8 w-8 text-blue-400" />
990
+ </div>
991
+ <div className="text-sm font-medium text-white">Interactive</div>
992
+ <div className="text-xs text-blue-400">text-blue-400</div>
993
+ </div>
994
+ </div>
995
+ ),
996
+ }
997
+
998
+ export const UsageExamples: Story = {
999
+ parameters: {
1000
+ ...storyParameters,
1001
+ docs: {
1002
+ description: {
1003
+ story:
1004
+ "Real-world usage examples showing EyeCloseIcon in different UI contexts.",
1005
+ },
1006
+ },
1007
+ },
1008
+ render: () => (
1009
+ <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1010
+ {/* Password Field */}
1011
+ <div className="!space-y-2">
1012
+ <h3 className="text-sm font-medium text-white">
1013
+ Password Field Toggle
1014
+ </h3>
1015
+ <div className="relative">
1016
+ <input
1017
+ type="password"
1018
+ className="w-full rounded-lg border border-white/20 bg-white/5 px-3 py-2 pr-10 text-white placeholder-white/50"
1019
+ placeholder="Enter your password"
1020
+ defaultValue="mysecretpassword"
1021
+ />
1022
+ <button className="absolute top-1/2 right-2 -translate-y-1/2 rounded p-1 hover:bg-white/10">
1023
+ <EyeCloseIcon className="h-5 w-5 text-slate-400" />
1024
+ </button>
1025
+ </div>
1026
+ </div>
1027
+
1028
+ {/* Content Filter */}
1029
+ <div className="!space-y-2">
1030
+ <h3 className="text-sm font-medium text-white">Content Filter</h3>
1031
+ <div className="rounded-lg border border-white/10 bg-black/20 p-8 text-center">
1032
+ <EyeCloseIcon className="mx-auto mb-3 h-12 w-12 text-slate-600" />
1033
+ <p className="text-sm text-white/60">
1034
+ Content hidden due to privacy settings
1035
+ </p>
1036
+ <button className="mt-2 text-xs text-blue-400 hover:text-blue-300">
1037
+ Show content
1038
+ </button>
1039
+ </div>
1040
+ </div>
1041
+
1042
+ {/* Privacy Settings */}
1043
+ <div className="!space-y-2">
1044
+ <h3 className="text-sm font-medium text-white">Privacy Settings</h3>
1045
+ <div className="flex items-center justify-between rounded-lg border border-white/10 bg-white/5 p-4">
1046
+ <div className="flex items-center gap-3">
1047
+ <EyeCloseIcon className="h-5 w-5 text-slate-400" />
1048
+ <div>
1049
+ <div className="text-sm font-medium text-white">
1050
+ Profile Visibility
1051
+ </div>
1052
+ <div className="text-xs text-white/60">
1053
+ Your profile is hidden from search
1054
+ </div>
1055
+ </div>
1056
+ </div>
1057
+ <div className="flex items-center">
1058
+ <span className="mr-3 text-xs text-slate-400">Private</span>
1059
+ <div className="h-6 w-11 rounded-full bg-slate-600"></div>
1060
+ </div>
1061
+ </div>
1062
+ </div>
1063
+ </div>
1064
+ ),
1065
+ }
1066
+
1067
+ export const Playground: Story = {
1068
+ parameters: {
1069
+ ...storyParameters,
1070
+ docs: {
1071
+ description: {
1072
+ story:
1073
+ "Interactive playground to experiment with different EyeCloseIcon configurations.",
1074
+ },
1075
+ },
1076
+ },
1077
+ args: {
1078
+ width: 32,
1079
+ height: 32,
1080
+ className: "text-slate-400 ",
1081
+ strokeWidth: 1,
1082
+ },
1083
+ render: (args) => (
1084
+ <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1085
+ <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1086
+ <EyeCloseIcon {...args} />
1087
+ </div>
1088
+ </div>
1089
+ ),
1090
+ }