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