aural-ui 3.0.7 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
- package/dist/components/avatar/Avatar.stories.tsx +235 -237
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/button/index.tsx +7 -7
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +533 -856
- package/dist/components/dialog/Dialog.stories.tsx +505 -949
- package/dist/components/divider/Divider.stories.tsx +265 -502
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -993
- package/dist/components/drawer/index.tsx +3 -3
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +485 -822
- package/dist/components/marquee/Marquee.stories.tsx +356 -694
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
- package/dist/components/overlay/Overlay.stories.tsx +452 -818
- package/dist/components/overlay/index.tsx +4 -4
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +484 -873
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +496 -752
- package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
- package/dist/components/search/Search.stories.tsx +314 -575
- package/dist/components/select/Select.stories.tsx +684 -787
- package/dist/components/sheet/Sheet.stories.tsx +671 -936
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +384 -737
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -914
- package/dist/components/tabs/Tabs.stories.tsx +459 -1400
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
- package/dist/components/toast/Toast.stories.tsx +452 -1333
- package/dist/components/toggle/Toggle.stories.tsx +488 -909
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
- package/dist/icons/all-icons.tsx +124 -87
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
- package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
- package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
- package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
- package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
- package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
- package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
- package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
- package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
- package/dist/icons/spinner-solid-icon/index.tsx +6 -1
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
- package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
- package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
- package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
- package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
- package/dist/index.cjs +84 -84
- package/dist/index.js +84 -84
- package/dist/styles/aural-all-theme.css +1222 -0
- package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
- package/dist/styles/aural-light-theme.css +1047 -0
- package/package.json +1 -1
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { FileTextIcon } from "src/ui/icons/file-text-icon"
|
|
5
|
+
import { NotepadIcon } from "src/ui/icons/notepad-icon"
|
|
6
|
+
import { PageTextIcon } from "src/ui/icons/page-text-icon"
|
|
7
|
+
import { PencilIcon } from "src/ui/icons/pencil-icon"
|
|
8
|
+
import {
|
|
9
|
+
IconColorVariations,
|
|
10
|
+
IconDefaultCanvas,
|
|
11
|
+
IconPlaygroundCanvas,
|
|
12
|
+
IconSizeVariations,
|
|
13
|
+
IconUsageCanvas,
|
|
14
|
+
IconUsageSection,
|
|
15
|
+
} from "src/ui/story-spec/icons/icon-story-canvas"
|
|
16
|
+
import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
|
|
17
|
+
|
|
4
18
|
import { NotesIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof NotesIcon> = {
|
|
@@ -11,910 +25,76 @@ const meta: Meta<typeof NotesIcon> = {
|
|
|
11
25
|
backgrounds: {
|
|
12
26
|
default: "dark",
|
|
13
27
|
values: [
|
|
14
|
-
{ name: "dark", value: "
|
|
15
|
-
{ name: "darker", value: "
|
|
16
|
-
{ name: "light", value: "
|
|
28
|
+
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
29
|
+
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
30
|
+
{ name: "light", value: "var(--color-fm-neutral-1100)" },
|
|
17
31
|
],
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
@keyframes search-pulse {
|
|
81
|
-
0%, 100% { transform: scale(1); opacity: 1; }
|
|
82
|
-
50% { transform: scale(1.05); opacity: 0.8; }
|
|
83
|
-
}
|
|
84
|
-
.animate-search-pulse {
|
|
85
|
-
animation: search-pulse 2s ease-in-out infinite;
|
|
86
|
-
}
|
|
87
|
-
@keyframes document-slide {
|
|
88
|
-
0%, 100% { transform: translateX(0) rotate(0deg); }
|
|
89
|
-
50% { transform: translateX(-2px) rotate(-1deg); }
|
|
90
|
-
}
|
|
91
|
-
.animate-document-slide {
|
|
92
|
-
animation: document-slide 3s ease-in-out infinite;
|
|
93
|
-
}
|
|
94
|
-
`}
|
|
95
|
-
</style>
|
|
96
|
-
|
|
97
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-indigo-900/20 to-gray-900">
|
|
98
|
-
{/* Header */}
|
|
99
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
100
|
-
<div className="absolute inset-0 bg-gradient-to-r from-indigo-500/10 via-transparent to-cyan-500/10" />
|
|
101
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
102
|
-
<div className="!space-y-6 text-center">
|
|
103
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-indigo-500/30 bg-gradient-to-br from-indigo-500/20 to-cyan-500/20">
|
|
104
|
-
<NotesIcon className="h-12 w-12 text-indigo-400" />
|
|
105
|
-
</div>
|
|
106
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
107
|
-
NotesIcon
|
|
108
|
-
</h1>
|
|
109
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
110
|
-
A notepad icon symbolizing writing, editing, and
|
|
111
|
-
note-taking. Perfect for use in features like task tracking,
|
|
112
|
-
journaling, annotations, or editable content areas. Built
|
|
113
|
-
with accessibility in mind using Radix UI's AccessibleIcon
|
|
114
|
-
wrapper.
|
|
115
|
-
</p>
|
|
116
|
-
|
|
117
|
-
{/* Stats */}
|
|
118
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
119
|
-
<div className="text-center">
|
|
120
|
-
<div className="text-3xl font-bold text-indigo-300">
|
|
121
|
-
Write
|
|
122
|
-
</div>
|
|
123
|
-
<div className="text-sm text-white/60">
|
|
124
|
-
Capture thoughts
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
<div className="h-8 w-px bg-white/20" />
|
|
128
|
-
<div className="text-center">
|
|
129
|
-
<div className="text-3xl font-bold text-cyan-300">
|
|
130
|
-
Edit
|
|
131
|
-
</div>
|
|
132
|
-
<div className="text-sm text-white/60">Update notes</div>
|
|
133
|
-
</div>
|
|
134
|
-
<div className="h-8 w-px bg-white/20" />
|
|
135
|
-
<div className="text-center">
|
|
136
|
-
<div className="text-3xl font-bold text-blue-300">
|
|
137
|
-
Organize
|
|
138
|
-
</div>
|
|
139
|
-
<div className="text-sm text-white/60">
|
|
140
|
-
Structure ideas
|
|
141
|
-
</div>
|
|
142
|
-
</div>
|
|
143
|
-
</div>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
|
|
148
|
-
{/* Content */}
|
|
149
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
150
|
-
{/* Quick Usage */}
|
|
151
|
-
<div className="!space-y-8">
|
|
152
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
153
|
-
Quick Start
|
|
154
|
-
</h2>
|
|
155
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
156
|
-
<div className="!space-y-4">
|
|
157
|
-
<h3 className="text-xl font-semibold !text-indigo-300">
|
|
158
|
-
Basic Usage
|
|
159
|
-
</h3>
|
|
160
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
161
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
162
|
-
{`import { NotesIcon } from "@icons/notepad-icon"
|
|
163
|
-
|
|
164
|
-
function NoteInput() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Notes", description: "Structured notes / outline" },
|
|
39
|
+
{ title: "Checklist", description: "Task or checklist content" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { NotesIcon } from "src/ui/icons/notes-icon"
|
|
44
|
+
|
|
45
|
+
function NotesTab() {
|
|
165
46
|
return (
|
|
166
|
-
<
|
|
167
|
-
<
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
/>
|
|
171
|
-
<NotesIcon className="absolute left-3 top-3 h-5 w-5 text-gray-500" />
|
|
172
|
-
</div>
|
|
47
|
+
<button className="flex items-center gap-2">
|
|
48
|
+
<NotesIcon className="h-5 w-5 text-fm-icon-active" />
|
|
49
|
+
<span>Notes</span>
|
|
50
|
+
</button>
|
|
173
51
|
)
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
<tr className="border-b border-white/10">
|
|
209
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
210
|
-
Prop
|
|
211
|
-
</th>
|
|
212
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
213
|
-
Type
|
|
214
|
-
</th>
|
|
215
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
216
|
-
Default
|
|
217
|
-
</th>
|
|
218
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
219
|
-
Description
|
|
220
|
-
</th>
|
|
221
|
-
</tr>
|
|
222
|
-
</thead>
|
|
223
|
-
<tbody>
|
|
224
|
-
{" "}
|
|
225
|
-
<tr className="!bg-black/10">
|
|
226
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
227
|
-
withAccessibility
|
|
228
|
-
</td>
|
|
229
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
230
|
-
boolean
|
|
231
|
-
</td>
|
|
232
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
233
|
-
true
|
|
234
|
-
</td>
|
|
235
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
236
|
-
Whether to wrap the icon with accessibility feature
|
|
237
|
-
</td>
|
|
238
|
-
</tr>
|
|
239
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
240
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
241
|
-
height
|
|
242
|
-
</td>
|
|
243
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
244
|
-
number | string
|
|
245
|
-
</td>
|
|
246
|
-
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
247
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
248
|
-
Height of the icon in pixels
|
|
249
|
-
</td>
|
|
250
|
-
</tr>
|
|
251
|
-
<tr className="border-b border-white/5">
|
|
252
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
253
|
-
stroke
|
|
254
|
-
</td>
|
|
255
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
256
|
-
string
|
|
257
|
-
</td>
|
|
258
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
259
|
-
currentColor
|
|
260
|
-
</td>
|
|
261
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
262
|
-
Stroke color of the icon lines
|
|
263
|
-
</td>
|
|
264
|
-
</tr>
|
|
265
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
266
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
267
|
-
strokeLinecap
|
|
268
|
-
</td>
|
|
269
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
270
|
-
string
|
|
271
|
-
</td>
|
|
272
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
273
|
-
square
|
|
274
|
-
</td>
|
|
275
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
276
|
-
Style of line endings
|
|
277
|
-
</td>
|
|
278
|
-
</tr>
|
|
279
|
-
<tr className="border-b border-white/5">
|
|
280
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
281
|
-
className
|
|
282
|
-
</td>
|
|
283
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
284
|
-
string
|
|
285
|
-
</td>
|
|
286
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
287
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
288
|
-
CSS classes for styling (use for overrides)
|
|
289
|
-
</td>
|
|
290
|
-
</tr>
|
|
291
|
-
<tr className="!bg-black/10">
|
|
292
|
-
<td className="px-6 py-4 font-mono text-sm !text-indigo-300">
|
|
293
|
-
...svgProps
|
|
294
|
-
</td>
|
|
295
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
296
|
-
SVGProps
|
|
297
|
-
</td>
|
|
298
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
299
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
300
|
-
All standard SVG element props
|
|
301
|
-
</td>
|
|
302
|
-
</tr>
|
|
303
|
-
</tbody>
|
|
304
|
-
</table>
|
|
305
|
-
</div>
|
|
306
|
-
</div>
|
|
307
|
-
|
|
308
|
-
{/* Size Variations */}
|
|
309
|
-
<div className="!space-y-8">
|
|
310
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
311
|
-
Size Variations
|
|
312
|
-
</h2>
|
|
313
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
314
|
-
<div className="!space-y-6">
|
|
315
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
316
|
-
<div className="!space-y-4">
|
|
317
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
318
|
-
Standard Sizes
|
|
319
|
-
</h3>
|
|
320
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
321
|
-
<div className="text-center">
|
|
322
|
-
<NotesIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
|
|
323
|
-
<span className="text-xs text-white/60">12px</span>
|
|
324
|
-
</div>
|
|
325
|
-
<div className="text-center">
|
|
326
|
-
<NotesIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
|
|
327
|
-
<span className="text-xs text-white/60">16px</span>
|
|
328
|
-
</div>
|
|
329
|
-
<div className="text-center">
|
|
330
|
-
<NotesIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
|
|
331
|
-
<span className="text-xs text-white/60">20px</span>
|
|
332
|
-
</div>
|
|
333
|
-
<div className="text-center">
|
|
334
|
-
<NotesIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
|
|
335
|
-
<span className="text-xs text-white/60">24px</span>
|
|
336
|
-
</div>
|
|
337
|
-
<div className="text-center">
|
|
338
|
-
<NotesIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
339
|
-
<span className="text-xs text-white/60">32px</span>
|
|
340
|
-
</div>
|
|
341
|
-
<div className="text-center">
|
|
342
|
-
<NotesIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
343
|
-
<span className="text-xs text-white/60">48px</span>
|
|
344
|
-
</div>
|
|
345
|
-
</div>
|
|
346
|
-
</div>
|
|
347
|
-
|
|
348
|
-
<div className="!space-y-4">
|
|
349
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
350
|
-
Code Example
|
|
351
|
-
</h3>
|
|
352
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
353
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
354
|
-
{`// Small (16px)
|
|
355
|
-
<NotesIcon className="h-4 w-4 " />
|
|
356
|
-
|
|
357
|
-
// Medium (24px)
|
|
358
|
-
<NotesIcon className="h-6 w-6 " />
|
|
359
|
-
|
|
360
|
-
// Large (32px)
|
|
361
|
-
<NotesIcon className="h-8 w-8 " />
|
|
362
|
-
|
|
363
|
-
// Custom size with props
|
|
364
|
-
<NotesIcon width={40} height={40} />`}
|
|
365
|
-
</pre>
|
|
366
|
-
</div>
|
|
367
|
-
</div>
|
|
368
|
-
</div>
|
|
369
|
-
</div>
|
|
370
|
-
</div>
|
|
371
|
-
</div>
|
|
372
|
-
|
|
373
|
-
{/* Color Variations */}
|
|
374
|
-
<div className="!space-y-8">
|
|
375
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
376
|
-
Color Variations
|
|
377
|
-
</h2>
|
|
378
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
379
|
-
<div className="!space-y-4">
|
|
380
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
381
|
-
Semantic Colors
|
|
382
|
-
</h3>
|
|
383
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
384
|
-
<div className="flex items-center gap-4">
|
|
385
|
-
<NotesIcon className="h-6 w-6 text-indigo-400" />
|
|
386
|
-
<div>
|
|
387
|
-
<div className="text-sm font-medium text-white">
|
|
388
|
-
Primary
|
|
389
|
-
</div>
|
|
390
|
-
<div className="text-xs text-white/60">
|
|
391
|
-
text-indigo-400
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
<div className="flex items-center gap-4">
|
|
396
|
-
<NotesIcon className="h-6 w-6 text-cyan-400" />
|
|
397
|
-
<div>
|
|
398
|
-
<div className="text-sm font-medium text-white">
|
|
399
|
-
Search Active
|
|
400
|
-
</div>
|
|
401
|
-
<div className="text-xs text-white/60">
|
|
402
|
-
text-cyan-400
|
|
403
|
-
</div>
|
|
404
|
-
</div>
|
|
405
|
-
</div>
|
|
406
|
-
<div className="flex items-center gap-4">
|
|
407
|
-
<NotesIcon className="h-6 w-6 text-gray-400" />
|
|
408
|
-
<div>
|
|
409
|
-
<div className="text-sm font-medium text-white">
|
|
410
|
-
Disabled
|
|
411
|
-
</div>
|
|
412
|
-
<div className="text-xs text-white/60">
|
|
413
|
-
text-gray-400
|
|
414
|
-
</div>
|
|
415
|
-
</div>
|
|
416
|
-
</div>
|
|
417
|
-
<div className="flex items-center gap-4">
|
|
418
|
-
<NotesIcon className="h-6 w-6 text-blue-400" />
|
|
419
|
-
<div>
|
|
420
|
-
<div className="text-sm font-medium text-white">
|
|
421
|
-
Info
|
|
422
|
-
</div>
|
|
423
|
-
<div className="text-xs text-white/60">
|
|
424
|
-
text-blue-400
|
|
425
|
-
</div>
|
|
426
|
-
</div>
|
|
427
|
-
</div>
|
|
428
|
-
</div>
|
|
429
|
-
</div>
|
|
430
|
-
|
|
431
|
-
<div className="!space-y-4">
|
|
432
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
433
|
-
Custom Colors
|
|
434
|
-
</h3>
|
|
435
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
436
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
437
|
-
{`// Using Tailwind classes with
|
|
438
|
-
<NotesIcon className="h-6 w-6 text-indigo-400 " />
|
|
439
|
-
<NotesIcon className="h-6 w-6 text-cyan-500 " />
|
|
440
|
-
|
|
441
|
-
// Using CSS custom properties
|
|
442
|
-
<NotesIcon
|
|
443
|
-
className="h-6 w-6 "
|
|
444
|
-
style={{ color: 'var(--color-primary)' }}
|
|
445
|
-
/>
|
|
446
|
-
|
|
447
|
-
// Direct stroke prop
|
|
448
|
-
<NotesIcon
|
|
449
|
-
width={24}
|
|
450
|
-
height={24}
|
|
451
|
-
stroke="#3b82f6"
|
|
452
|
-
/>`}
|
|
453
|
-
</pre>
|
|
454
|
-
</div>
|
|
455
|
-
</div>
|
|
456
|
-
</div>
|
|
457
|
-
</div>
|
|
458
|
-
|
|
459
|
-
{/* Usage Examples */}
|
|
460
|
-
<div className="!space-y-8">
|
|
461
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
462
|
-
Usage Examples
|
|
463
|
-
</h2>
|
|
464
|
-
|
|
465
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
466
|
-
{/* Search Bar */}
|
|
467
|
-
<div className="!space-y-4">
|
|
468
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
469
|
-
Search Input
|
|
470
|
-
</h3>
|
|
471
|
-
<div className="!space-y-4">
|
|
472
|
-
<div className="relative">
|
|
473
|
-
<input
|
|
474
|
-
type="text"
|
|
475
|
-
placeholder="Search documents..."
|
|
476
|
-
className="w-full rounded-lg border border-white/20 bg-white/5 py-2 pr-4 pl-10 text-white placeholder-white/50 focus:border-indigo-400 focus:ring-2 focus:ring-indigo-400/20"
|
|
477
|
-
/>
|
|
478
|
-
<NotesIcon className="absolute top-1/2 left-3 h-4 w-4 -translate-y-1/2 text-indigo-400" />
|
|
479
|
-
</div>
|
|
480
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
481
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
482
|
-
{`<div className="relative">
|
|
483
|
-
<input
|
|
484
|
-
type="text"
|
|
485
|
-
placeholder="Search documents..."
|
|
486
|
-
className="w-full pl-10 pr-4 py-2"
|
|
487
|
-
/>
|
|
488
|
-
<NotesIcon className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-indigo-400 " />
|
|
489
|
-
</div>`}
|
|
490
|
-
</pre>
|
|
491
|
-
</div>
|
|
492
|
-
</div>
|
|
493
|
-
</div>
|
|
494
|
-
|
|
495
|
-
{/* Search Button */}
|
|
496
|
-
<div className="!space-y-4">
|
|
497
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
498
|
-
Search Button
|
|
499
|
-
</h3>
|
|
500
|
-
<div className="!space-y-4">
|
|
501
|
-
<div className="flex gap-4">
|
|
502
|
-
<button className="flex items-center gap-2 rounded-lg border border-indigo-500/30 bg-indigo-500/20 px-4 py-2 text-indigo-200 transition-colors hover:bg-indigo-500/30">
|
|
503
|
-
<NotesIcon className="h-4 w-4" />
|
|
504
|
-
Search Pages
|
|
505
|
-
</button>
|
|
506
|
-
<button className="flex items-center gap-2 rounded-lg border border-cyan-500/30 bg-cyan-500/20 px-4 py-2 text-cyan-200 transition-colors hover:bg-cyan-500/30">
|
|
507
|
-
<NotesIcon className="h-4 w-4" />
|
|
508
|
-
Find Documents
|
|
509
|
-
</button>
|
|
510
|
-
</div>
|
|
511
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
512
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
513
|
-
{`// Primary search button
|
|
514
|
-
<button className="flex items-center gap-2 bg-indigo-500/20 border border-indigo-500/30 px-4 py-2 rounded-lg">
|
|
515
|
-
<NotesIcon className="h-4 w-4 " />
|
|
516
|
-
Search Pages
|
|
517
|
-
</button>
|
|
518
|
-
|
|
519
|
-
// Secondary search button
|
|
520
|
-
<button className="flex items-center gap-2 bg-cyan-500/20 border border-cyan-500/30 px-4 py-2 rounded-lg">
|
|
521
|
-
<NotesIcon className="h-4 w-4 " />
|
|
522
|
-
Find Documents
|
|
523
|
-
</button>`}
|
|
524
|
-
</pre>
|
|
525
|
-
</div>
|
|
526
|
-
</div>
|
|
527
|
-
</div>
|
|
528
|
-
|
|
529
|
-
{/* Search Results */}
|
|
530
|
-
<div className="!space-y-4">
|
|
531
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
532
|
-
Search Results
|
|
533
|
-
</h3>
|
|
534
|
-
<div className="!space-y-4">
|
|
535
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
536
|
-
{[
|
|
537
|
-
{
|
|
538
|
-
title: "User Guide.pdf",
|
|
539
|
-
type: "PDF Document",
|
|
540
|
-
size: "2.4 MB",
|
|
541
|
-
},
|
|
542
|
-
{
|
|
543
|
-
title: "API Reference.md",
|
|
544
|
-
type: "Markdown",
|
|
545
|
-
size: "156 KB",
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
title: "Getting Started.docx",
|
|
549
|
-
type: "Word Document",
|
|
550
|
-
size: "1.2 MB",
|
|
551
|
-
},
|
|
552
|
-
].map((doc, index) => (
|
|
553
|
-
<div
|
|
554
|
-
key={index}
|
|
555
|
-
className="flex items-center gap-3 rounded border border-white/10 bg-white/5 p-3"
|
|
556
|
-
>
|
|
557
|
-
<NotesIcon className="h-5 w-5 text-indigo-400" />
|
|
558
|
-
<div className="flex-1">
|
|
559
|
-
<div className="text-sm font-medium text-white">
|
|
560
|
-
{doc.title}
|
|
561
|
-
</div>
|
|
562
|
-
<div className="text-xs text-white/60">
|
|
563
|
-
{doc.type} • {doc.size}
|
|
564
|
-
</div>
|
|
565
|
-
</div>
|
|
566
|
-
</div>
|
|
567
|
-
))}
|
|
568
|
-
</div>
|
|
569
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
570
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
571
|
-
{`{results.map((doc, index) => (
|
|
572
|
-
<div key={index} className="flex items-center gap-3 p-3">
|
|
573
|
-
<NotesIcon className="h-5 w-5 text-indigo-400 " />
|
|
574
|
-
<div className="flex-1">
|
|
575
|
-
<div className="text-sm font-medium">{doc.title}</div>
|
|
576
|
-
<div className="text-xs text-white/60">{doc.type} • {doc.size}</div>
|
|
577
|
-
</div>
|
|
578
|
-
</div>
|
|
579
|
-
))}`}
|
|
580
|
-
</pre>
|
|
581
|
-
</div>
|
|
582
|
-
</div>
|
|
583
|
-
</div>
|
|
584
|
-
|
|
585
|
-
{/* Empty State */}
|
|
586
|
-
<div className="!space-y-4">
|
|
587
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
588
|
-
Empty Search State
|
|
589
|
-
</h3>
|
|
590
|
-
<div className="!space-y-4">
|
|
591
|
-
<div className="flex flex-col items-center justify-center rounded-lg border border-white/10 bg-white/5 p-8">
|
|
592
|
-
<NotesIcon className="mb-4 h-12 w-12 text-white/30" />
|
|
593
|
-
<h4 className="mb-2 text-lg font-medium !text-white/80">
|
|
594
|
-
No documents found
|
|
595
|
-
</h4>
|
|
596
|
-
<p className="text-center text-sm !text-white/50">
|
|
597
|
-
Try adjusting your search terms or browse all
|
|
598
|
-
documents
|
|
599
|
-
</p>
|
|
600
|
-
<button className="mt-4 flex items-center gap-2 rounded-lg border border-indigo-500/30 bg-indigo-500/20 px-4 py-2 text-sm text-indigo-200">
|
|
601
|
-
<NotesIcon className="h-4 w-4" />
|
|
602
|
-
Browse All
|
|
603
|
-
</button>
|
|
604
|
-
</div>
|
|
605
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
606
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
607
|
-
{`<div className="flex flex-col items-center p-8">
|
|
608
|
-
<NotesIcon className="h-12 w-12 text-white/30 mb-4 " />
|
|
609
|
-
<h4 className="text-lg font-medium text-white/80 mb-2">No documents found</h4>
|
|
610
|
-
<p className="text-sm text-white/50 text-center">
|
|
611
|
-
Try adjusting your search terms or browse all documents
|
|
612
|
-
</p>
|
|
613
|
-
<button className="mt-4 flex items-center gap-2">
|
|
614
|
-
<NotesIcon className="h-4 w-4 " />
|
|
615
|
-
Browse All
|
|
616
|
-
</button>
|
|
617
|
-
</div>`}
|
|
618
|
-
</pre>
|
|
619
|
-
</div>
|
|
620
|
-
</div>
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
|
|
625
|
-
{/* Interactive States */}
|
|
626
|
-
<div className="!space-y-8">
|
|
627
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
628
|
-
Interactive States & Animations
|
|
629
|
-
</h2>
|
|
630
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
631
|
-
<div className="!space-y-4">
|
|
632
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
633
|
-
Hover & Animation Effects
|
|
634
|
-
</h3>
|
|
635
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
636
|
-
<div className="flex items-center gap-4">
|
|
637
|
-
<NotesIcon className="h-6 w-6 text-white/60 transition-colors hover:text-indigo-400" />
|
|
638
|
-
<div>
|
|
639
|
-
<div className="text-sm font-medium text-white">
|
|
640
|
-
Color Change
|
|
641
|
-
</div>
|
|
642
|
-
<div className="text-xs text-white/60">
|
|
643
|
-
Hover to see effect
|
|
644
|
-
</div>
|
|
645
|
-
</div>
|
|
646
|
-
</div>
|
|
647
|
-
<div className="flex items-center gap-4">
|
|
648
|
-
<NotesIcon className="h-6 w-6 text-white transition-transform hover:scale-110" />
|
|
649
|
-
<div>
|
|
650
|
-
<div className="text-sm font-medium text-white">
|
|
651
|
-
Scale Up
|
|
652
|
-
</div>
|
|
653
|
-
<div className="text-xs text-white/60">
|
|
654
|
-
Scale on hover
|
|
655
|
-
</div>
|
|
656
|
-
</div>
|
|
657
|
-
</div>
|
|
658
|
-
<div className="flex items-center gap-4">
|
|
659
|
-
<NotesIcon className="animate-search-pulse h-6 w-6 text-indigo-400" />
|
|
660
|
-
<div>
|
|
661
|
-
<div className="text-sm font-medium text-white">
|
|
662
|
-
Search Pulse
|
|
663
|
-
</div>
|
|
664
|
-
<div className="text-xs text-white/60">
|
|
665
|
-
Continuous animation
|
|
666
|
-
</div>
|
|
667
|
-
</div>
|
|
668
|
-
</div>
|
|
669
|
-
<div className="flex items-center gap-4">
|
|
670
|
-
<NotesIcon className="animate-document-slide h-6 w-6 text-cyan-400" />
|
|
671
|
-
<div>
|
|
672
|
-
<div className="text-sm font-medium text-white">
|
|
673
|
-
Document Slide
|
|
674
|
-
</div>
|
|
675
|
-
<div className="text-xs text-white/60">
|
|
676
|
-
Subtle movement
|
|
677
|
-
</div>
|
|
678
|
-
</div>
|
|
679
|
-
</div>
|
|
680
|
-
</div>
|
|
681
|
-
</div>
|
|
682
|
-
|
|
683
|
-
<div className="!space-y-4">
|
|
684
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
685
|
-
State Examples
|
|
686
|
-
</h3>
|
|
687
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
688
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
689
|
-
{`// Color change on hover
|
|
690
|
-
<NotesIcon className="h-6 w-6 text-white/60 transition-colors hover:text-indigo-400 " />
|
|
691
|
-
|
|
692
|
-
// Scale up on hover
|
|
693
|
-
<NotesIcon className="h-6 w-6 text-white transition-transform hover:scale-110 " />
|
|
694
|
-
|
|
695
|
-
// Loading/searching state
|
|
696
|
-
<NotesIcon className="h-6 w-6 animate-pulse text-indigo-400 " />
|
|
697
|
-
|
|
698
|
-
// Active search state
|
|
699
|
-
<NotesIcon className="h-6 w-6 text-cyan-400 animate-search-pulse " />
|
|
700
|
-
|
|
701
|
-
// Disabled state
|
|
702
|
-
<NotesIcon className="h-6 w-6 text-gray-400 opacity-50 " />`}
|
|
703
|
-
</pre>
|
|
704
|
-
</div>
|
|
705
|
-
</div>
|
|
706
|
-
</div>
|
|
707
|
-
</div>
|
|
708
|
-
|
|
709
|
-
{/* Accessibility */}
|
|
710
|
-
<div className="!space-y-8">
|
|
711
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
712
|
-
Accessibility Features
|
|
713
|
-
</h2>
|
|
714
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
715
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
716
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
717
|
-
✅ Built-in Features
|
|
718
|
-
</h3>
|
|
719
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
720
|
-
<li className="!text-white/70">
|
|
721
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
722
|
-
</li>
|
|
723
|
-
<li className="!text-white/70">
|
|
724
|
-
Provides screen reader label "Page Search icon"
|
|
725
|
-
</li>
|
|
726
|
-
<li className="!text-white/70">
|
|
727
|
-
Supports keyboard navigation when interactive
|
|
728
|
-
</li>
|
|
729
|
-
<li className="!text-white/70">
|
|
730
|
-
Maintains proper color contrast ratios
|
|
731
|
-
</li>
|
|
732
|
-
<li className="!text-white/70">
|
|
733
|
-
Scales with user's font size preferences
|
|
734
|
-
</li>
|
|
735
|
-
</ul>
|
|
736
|
-
</div>
|
|
737
|
-
|
|
738
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
739
|
-
<h3 className="text-lg font-semibold !text-indigo-300">
|
|
740
|
-
💡 Best Practices
|
|
741
|
-
</h3>
|
|
742
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
743
|
-
<li className="!text-white/70">
|
|
744
|
-
Always provide descriptive labels for search
|
|
745
|
-
functionality
|
|
746
|
-
</li>
|
|
747
|
-
<li className="!text-white/70">
|
|
748
|
-
Use consistent placement in search interfaces
|
|
749
|
-
</li>
|
|
750
|
-
<li className="!text-white/70">
|
|
751
|
-
Ensure sufficient click/touch target sizes
|
|
752
|
-
</li>
|
|
753
|
-
<li className="!text-white/70">
|
|
754
|
-
Add focus states for keyboard navigation
|
|
755
|
-
</li>
|
|
756
|
-
<li className="!text-white/70">
|
|
757
|
-
Consider motion sensitivity for search animations
|
|
758
|
-
</li>
|
|
759
|
-
</ul>
|
|
760
|
-
</div>
|
|
761
|
-
</div>
|
|
762
|
-
|
|
763
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
764
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
765
|
-
Custom Accessibility Implementation
|
|
766
|
-
</h3>
|
|
767
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
768
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
769
|
-
<pre className="overflow-x-auto text-sm !text-cyan-300">
|
|
770
|
-
{`// Search button with proper ARIA
|
|
771
|
-
<button
|
|
772
|
-
aria-label="Search documents"
|
|
773
|
-
className="flex items-center gap-2 p-2"
|
|
774
|
-
>
|
|
775
|
-
<NotesIcon className="h-4 w-4 " />
|
|
776
|
-
<span className="sr-only">Search</span>
|
|
777
|
-
</button>
|
|
778
|
-
|
|
779
|
-
// Search input with icon
|
|
780
|
-
<div className="relative">
|
|
781
|
-
<label htmlFor="search" className="sr-only">
|
|
782
|
-
Search documents
|
|
783
|
-
</label>
|
|
784
|
-
<input
|
|
785
|
-
id="search"
|
|
786
|
-
type="text"
|
|
787
|
-
placeholder="Search..."
|
|
788
|
-
aria-describedby="search-help"
|
|
789
|
-
/>
|
|
790
|
-
<NotesIcon
|
|
791
|
-
className="absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 "
|
|
792
|
-
aria-hidden="true"
|
|
793
|
-
/>
|
|
794
|
-
</div>
|
|
795
|
-
<div id="search-help" className="sr-only">
|
|
796
|
-
Enter keywords to search through documents
|
|
797
|
-
</div>`}
|
|
798
|
-
</pre>
|
|
799
|
-
</div>
|
|
800
|
-
<div className="!space-y-4">
|
|
801
|
-
<p className="text-sm !text-white/70">
|
|
802
|
-
When using NotesIcon for interactive search
|
|
803
|
-
functionality, provide clear context about what can be
|
|
804
|
-
searched and how the search works.
|
|
805
|
-
</p>
|
|
806
|
-
<div className="rounded-lg border border-indigo-500/20 bg-indigo-500/10 p-4">
|
|
807
|
-
<div className="flex items-center gap-2 text-sm text-indigo-200">
|
|
808
|
-
<NotesIcon className="h-4 w-4" />
|
|
809
|
-
<span>
|
|
810
|
-
This approach gives screen readers clear context
|
|
811
|
-
about the search functionality
|
|
812
|
-
</span>
|
|
813
|
-
</div>
|
|
814
|
-
</div>
|
|
815
|
-
</div>
|
|
816
|
-
</div>
|
|
817
|
-
</div>
|
|
818
|
-
</div>
|
|
819
|
-
|
|
820
|
-
{/* Related Icons */}
|
|
821
|
-
<div className="!space-y-8">
|
|
822
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
823
|
-
Related Icons
|
|
824
|
-
</h2>
|
|
825
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
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-blue-500/20">
|
|
828
|
-
<span className="text-2xl">🔍</span>
|
|
829
|
-
</div>
|
|
830
|
-
<div>
|
|
831
|
-
<div className="font-medium text-white">SearchIcon</div>
|
|
832
|
-
<div className="text-xs text-white/60">
|
|
833
|
-
General search
|
|
834
|
-
</div>
|
|
835
|
-
</div>
|
|
836
|
-
</div>
|
|
837
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
838
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
839
|
-
<span className="text-2xl">📄</span>
|
|
840
|
-
</div>
|
|
841
|
-
<div>
|
|
842
|
-
<div className="font-medium text-white">DocumentIcon</div>
|
|
843
|
-
<div className="text-xs text-white/60">Document view</div>
|
|
844
|
-
</div>
|
|
845
|
-
</div>
|
|
846
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
847
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
|
|
848
|
-
<span className="text-2xl">🗂️</span>
|
|
849
|
-
</div>
|
|
850
|
-
<div>
|
|
851
|
-
<div className="font-medium text-white">FolderIcon</div>
|
|
852
|
-
<div className="text-xs text-white/60">File browsing</div>
|
|
853
|
-
</div>
|
|
854
|
-
</div>
|
|
855
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
856
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
857
|
-
<span className="text-2xl">🔎</span>
|
|
858
|
-
</div>
|
|
859
|
-
<div>
|
|
860
|
-
<div className="font-medium text-white">FilterIcon</div>
|
|
861
|
-
<div className="text-xs text-white/60">
|
|
862
|
-
Content filtering
|
|
863
|
-
</div>
|
|
864
|
-
</div>
|
|
865
|
-
</div>
|
|
866
|
-
</div>
|
|
867
|
-
</div>
|
|
868
|
-
</div>
|
|
869
|
-
|
|
870
|
-
{/* Footer */}
|
|
871
|
-
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
872
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
873
|
-
<div className="!space-y-4 text-center">
|
|
874
|
-
<p className="!text-white/60">
|
|
875
|
-
NotesIcon is part of the Aural UI icon library, built for
|
|
876
|
-
document search, content discovery, and page navigation
|
|
877
|
-
functionality.
|
|
878
|
-
</p>
|
|
879
|
-
<p className="text-sm !text-white/40">
|
|
880
|
-
All icons use Radix UI's AccessibleIcon for screen reader
|
|
881
|
-
compatibility and follow WCAG guidelines for search
|
|
882
|
-
interfaces.
|
|
883
|
-
</p>
|
|
884
|
-
</div>
|
|
885
|
-
</div>
|
|
886
|
-
</div>
|
|
887
|
-
</div>
|
|
888
|
-
</>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<button className="flex items-center gap-2">
|
|
55
|
+
<NotesIcon className="text-fm-icon-active h-6 w-6" />
|
|
56
|
+
</button>
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "NotepadIcon",
|
|
62
|
+
description: "Notepad / scratch pad icon",
|
|
63
|
+
icon: NotepadIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "FileTextIcon",
|
|
68
|
+
description: "File / document text icon",
|
|
69
|
+
icon: FileTextIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "PageTextIcon",
|
|
74
|
+
description: "Page with text icon",
|
|
75
|
+
icon: PageTextIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "PencilIcon",
|
|
80
|
+
description: "Pencil / write icon",
|
|
81
|
+
icon: PencilIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
889
86
|
),
|
|
890
87
|
},
|
|
891
88
|
},
|
|
892
89
|
tags: ["autodocs"],
|
|
893
90
|
argTypes: {
|
|
894
|
-
|
|
895
|
-
control:
|
|
896
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
897
94
|
},
|
|
898
95
|
withAccessibility: {
|
|
899
96
|
control: "boolean",
|
|
900
|
-
description: "
|
|
901
|
-
},
|
|
902
|
-
height: {
|
|
903
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
904
|
-
description: "Height of the icon in pixels",
|
|
905
|
-
},
|
|
906
|
-
stroke: {
|
|
907
|
-
control: "color",
|
|
908
|
-
description: "Stroke color of the icon lines",
|
|
909
|
-
},
|
|
910
|
-
strokeLinecap: {
|
|
911
|
-
control: "select",
|
|
912
|
-
options: ["butt", "round", "square"],
|
|
913
|
-
description: "Style of line endings",
|
|
914
|
-
},
|
|
915
|
-
className: {
|
|
916
|
-
control: "text",
|
|
917
|
-
description: "CSS classes for styling (use for overrides)",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
918
98
|
},
|
|
919
99
|
},
|
|
920
100
|
}
|
|
@@ -922,246 +102,84 @@ function NoteInput() {
|
|
|
922
102
|
export default meta
|
|
923
103
|
type Story = StoryObj<typeof NotesIcon>
|
|
924
104
|
|
|
925
|
-
// Story parameters for consistent dark theme
|
|
926
|
-
const storyParameters = {
|
|
927
|
-
backgrounds: {
|
|
928
|
-
default: "dark",
|
|
929
|
-
values: [
|
|
930
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
931
|
-
{ name: "darker", value: "#000000" },
|
|
932
|
-
],
|
|
933
|
-
},
|
|
934
|
-
}
|
|
935
|
-
|
|
936
105
|
export const Default: Story = {
|
|
937
106
|
args: {
|
|
938
|
-
|
|
939
|
-
height: 24,
|
|
940
|
-
className: "text-indigo-400 ",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
941
108
|
withAccessibility: true,
|
|
942
109
|
},
|
|
943
|
-
parameters: storyParameters,
|
|
944
110
|
render: (args) => (
|
|
945
|
-
<
|
|
111
|
+
<IconDefaultCanvas>
|
|
946
112
|
<NotesIcon {...args} />
|
|
947
|
-
</
|
|
113
|
+
</IconDefaultCanvas>
|
|
948
114
|
),
|
|
949
115
|
}
|
|
950
116
|
|
|
951
117
|
export const SizeVariations: Story = {
|
|
952
|
-
|
|
953
|
-
...storyParameters,
|
|
954
|
-
docs: {
|
|
955
|
-
description: {
|
|
956
|
-
story:
|
|
957
|
-
"NotesIcon in different sizes, from small search inputs to large interface elements.",
|
|
958
|
-
},
|
|
959
|
-
},
|
|
960
|
-
},
|
|
961
|
-
render: () => (
|
|
962
|
-
<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">
|
|
963
|
-
<div className="text-center">
|
|
964
|
-
<NotesIcon className="!mx-auto mb-2 h-3 w-3 text-indigo-400" />
|
|
965
|
-
<span className="text-xs text-white/60">12px</span>
|
|
966
|
-
</div>
|
|
967
|
-
<div className="text-center">
|
|
968
|
-
<NotesIcon className="!mx-auto mb-2 h-4 w-4 text-indigo-400" />
|
|
969
|
-
<span className="text-xs text-white/60">16px</span>
|
|
970
|
-
</div>
|
|
971
|
-
<div className="text-center">
|
|
972
|
-
<NotesIcon className="!mx-auto mb-2 h-5 w-5 text-indigo-400" />
|
|
973
|
-
<span className="text-xs text-white/60">20px</span>
|
|
974
|
-
</div>
|
|
975
|
-
<div className="text-center">
|
|
976
|
-
<NotesIcon className="!mx-auto mb-2 h-6 w-6 text-indigo-400" />
|
|
977
|
-
<span className="text-xs text-white/60">24px</span>
|
|
978
|
-
</div>
|
|
979
|
-
<div className="text-center">
|
|
980
|
-
<NotesIcon className="!mx-auto mb-2 h-8 w-8 text-indigo-400" />
|
|
981
|
-
<span className="text-xs text-white/60">32px</span>
|
|
982
|
-
</div>
|
|
983
|
-
<div className="text-center">
|
|
984
|
-
<NotesIcon className="!mx-auto mb-2 h-12 w-12 text-indigo-400" />
|
|
985
|
-
<span className="text-xs text-white/60">48px</span>
|
|
986
|
-
</div>
|
|
987
|
-
</div>
|
|
988
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={NotesIcon} />,
|
|
989
119
|
}
|
|
990
120
|
|
|
991
121
|
export const ColorVariations: Story = {
|
|
992
|
-
|
|
993
|
-
...storyParameters,
|
|
994
|
-
docs: {
|
|
995
|
-
description: {
|
|
996
|
-
story:
|
|
997
|
-
"NotesIcon in different colors for various search states and contexts.",
|
|
998
|
-
},
|
|
999
|
-
},
|
|
1000
|
-
},
|
|
1001
|
-
render: () => (
|
|
1002
|
-
<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">
|
|
1003
|
-
<div className="text-center">
|
|
1004
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
|
|
1005
|
-
<NotesIcon className="h-8 w-8 text-indigo-400" />
|
|
1006
|
-
</div>
|
|
1007
|
-
<div className="text-sm font-medium text-white">Primary</div>
|
|
1008
|
-
<div className="text-xs text-indigo-400">text-indigo-400</div>
|
|
1009
|
-
</div>
|
|
1010
|
-
<div className="text-center">
|
|
1011
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-cyan-500/30 bg-cyan-500/20">
|
|
1012
|
-
<NotesIcon className="h-8 w-8 text-cyan-400" />
|
|
1013
|
-
</div>
|
|
1014
|
-
<div className="text-sm font-medium text-white">Active</div>
|
|
1015
|
-
<div className="text-xs text-cyan-400">text-cyan-400</div>
|
|
1016
|
-
</div>
|
|
1017
|
-
<div className="text-center">
|
|
1018
|
-
<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">
|
|
1019
|
-
<NotesIcon className="h-8 w-8 text-gray-400" />
|
|
1020
|
-
</div>
|
|
1021
|
-
<div className="text-sm font-medium text-white">Disabled</div>
|
|
1022
|
-
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
1023
|
-
</div>
|
|
1024
|
-
<div className="text-center">
|
|
1025
|
-
<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">
|
|
1026
|
-
<NotesIcon className="h-8 w-8 text-blue-400" />
|
|
1027
|
-
</div>
|
|
1028
|
-
<div className="text-sm font-medium text-white">Info</div>
|
|
1029
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
1030
|
-
</div>
|
|
1031
|
-
</div>
|
|
1032
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={NotesIcon} />,
|
|
1033
123
|
}
|
|
1034
124
|
|
|
1035
125
|
export const UsageExamples: Story = {
|
|
1036
|
-
parameters: {
|
|
1037
|
-
...storyParameters,
|
|
1038
|
-
docs: {
|
|
1039
|
-
description: {
|
|
1040
|
-
story:
|
|
1041
|
-
"Real-world usage examples showing NotesIcon used in contexts like note-taking, editing annotations, and document preparation interfaces.",
|
|
1042
|
-
},
|
|
1043
|
-
},
|
|
1044
|
-
},
|
|
1045
126
|
render: () => (
|
|
1046
|
-
<
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
<h3 className="text-sm font-medium text-white">Note Editor Toolbar</h3>
|
|
1050
|
-
<div className="flex gap-4">
|
|
1051
|
-
<button className="flex items-center gap-2 rounded-lg border border-indigo-500/30 bg-indigo-500/20 px-4 py-2 text-indigo-200 transition-colors hover:bg-indigo-500/30">
|
|
1052
|
-
<NotesIcon className="h-4 w-4" />
|
|
1053
|
-
New Note
|
|
1054
|
-
</button>
|
|
1055
|
-
<button className="flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/20 px-4 py-2 text-green-200 transition-colors hover:bg-green-500/30">
|
|
1056
|
-
<NotesIcon className="h-4 w-4" />
|
|
1057
|
-
Edit Note
|
|
1058
|
-
</button>
|
|
1059
|
-
</div>
|
|
1060
|
-
</div>
|
|
1061
|
-
|
|
1062
|
-
{/* Recent Notes List */}
|
|
1063
|
-
<div className="!space-y-2">
|
|
1064
|
-
<h3 className="text-sm font-medium text-white">Recent Notes</h3>
|
|
1065
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="Notes Tab">
|
|
129
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-1 rounded-xl border p-1">
|
|
1066
130
|
{[
|
|
1067
|
-
{
|
|
1068
|
-
{
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
className="flex items-center gap-3 rounded border border-white/10 bg-white/5 p-3"
|
|
131
|
+
{ icon: NotesIcon, label: "Notes", active: true },
|
|
132
|
+
{ icon: FileTextIcon, label: "Files", active: false },
|
|
133
|
+
].map(({ icon: Icon, label, active }) => (
|
|
134
|
+
<button
|
|
135
|
+
key={label}
|
|
136
|
+
className={`flex items-center gap-1.5 rounded-lg px-3 py-1.5 ${active ? "bg-fm-surface-primary" : ""}`}
|
|
1074
137
|
>
|
|
1075
|
-
<
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
138
|
+
<Icon
|
|
139
|
+
className={`h-3.5 w-3.5 ${active ? "text-fm-icon-active" : "text-fm-icon-inactive"}`}
|
|
140
|
+
/>
|
|
141
|
+
<span
|
|
142
|
+
className={`font-fm-text text-xs ${active ? "text-fm-primary" : "text-fm-secondary"}`}
|
|
143
|
+
>
|
|
144
|
+
{label}
|
|
145
|
+
</span>
|
|
146
|
+
</button>
|
|
1083
147
|
))}
|
|
1084
148
|
</div>
|
|
1085
|
-
</
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
</button>
|
|
1095
|
-
<button className="flex items-center gap-2 rounded-lg border border-pink-500/30 bg-pink-500/20 px-4 py-2 text-pink-200 transition-colors hover:bg-pink-500/30">
|
|
1096
|
-
<NotesIcon className="h-4 w-4" />
|
|
1097
|
-
Annotate Page
|
|
1098
|
-
</button>
|
|
1099
|
-
</div>
|
|
1100
|
-
</div>
|
|
1101
|
-
</div>
|
|
1102
|
-
),
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
export const InteractiveStates: Story = {
|
|
1106
|
-
parameters: {
|
|
1107
|
-
...storyParameters,
|
|
1108
|
-
docs: {
|
|
1109
|
-
description: {
|
|
1110
|
-
story:
|
|
1111
|
-
"Interactive states showing hover effects, animations, and different search states.",
|
|
1112
|
-
},
|
|
1113
|
-
},
|
|
1114
|
-
},
|
|
1115
|
-
render: () => (
|
|
1116
|
-
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
1117
|
-
<div className="!space-y-4">
|
|
1118
|
-
<h3 className="text-sm font-medium text-white/70">
|
|
1119
|
-
Hover & Animation Effects
|
|
1120
|
-
</h3>
|
|
1121
|
-
<div className="flex gap-8">
|
|
1122
|
-
<div className="flex flex-col items-center gap-2">
|
|
1123
|
-
<NotesIcon className="h-8 w-8 text-white/60 transition-colors hover:text-indigo-400" />
|
|
1124
|
-
<span className="text-xs text-white/60">Color Change</span>
|
|
1125
|
-
</div>
|
|
1126
|
-
<div className="flex flex-col items-center gap-2">
|
|
1127
|
-
<NotesIcon className="h-8 w-8 text-white transition-transform hover:scale-110" />
|
|
1128
|
-
<span className="text-xs text-white/60">Scale Up</span>
|
|
1129
|
-
</div>
|
|
1130
|
-
<div className="flex flex-col items-center gap-2">
|
|
1131
|
-
<NotesIcon className="animate-search-pulse h-8 w-8 text-indigo-400" />
|
|
1132
|
-
<span className="text-xs text-white/60">Search Pulse</span>
|
|
1133
|
-
</div>
|
|
1134
|
-
<div className="flex flex-col items-center gap-2">
|
|
1135
|
-
<NotesIcon className="animate-document-slide h-8 w-8 text-cyan-400" />
|
|
1136
|
-
<span className="text-xs text-white/60">Document Slide</span>
|
|
149
|
+
</IconUsageSection>
|
|
150
|
+
|
|
151
|
+
<IconUsageSection title="Episode Notes Card">
|
|
152
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
153
|
+
<div className="mb-3 flex items-center gap-2">
|
|
154
|
+
<NotesIcon className="text-fm-icon-active h-4 w-4" />
|
|
155
|
+
<span className="text-fm-primary font-fm-text text-sm font-medium">
|
|
156
|
+
Episode Notes
|
|
157
|
+
</span>
|
|
1137
158
|
</div>
|
|
159
|
+
<p className="text-fm-secondary font-fm-text text-xs">
|
|
160
|
+
Introduce the main character in scene 1...
|
|
161
|
+
</p>
|
|
1138
162
|
</div>
|
|
1139
|
-
</
|
|
1140
|
-
|
|
163
|
+
</IconUsageSection>
|
|
164
|
+
|
|
165
|
+
<IconUsageSection title="Sidebar Nav Item">
|
|
166
|
+
<button className="flex items-center gap-2 rounded-xl px-3 py-2">
|
|
167
|
+
<NotesIcon className="text-fm-icon-active h-4 w-4" />
|
|
168
|
+
<span className="text-fm-primary font-fm-text text-sm">Notes</span>
|
|
169
|
+
</button>
|
|
170
|
+
</IconUsageSection>
|
|
171
|
+
</IconUsageCanvas>
|
|
1141
172
|
),
|
|
1142
173
|
}
|
|
1143
174
|
|
|
1144
175
|
export const Playground: Story = {
|
|
1145
|
-
parameters: {
|
|
1146
|
-
...storyParameters,
|
|
1147
|
-
docs: {
|
|
1148
|
-
description: {
|
|
1149
|
-
story:
|
|
1150
|
-
"Interactive playground to experiment with different NotesIcon configurations.",
|
|
1151
|
-
},
|
|
1152
|
-
},
|
|
1153
|
-
},
|
|
1154
176
|
args: {
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
className: "text-indigo-400 ",
|
|
1158
|
-
strokeLinecap: "square",
|
|
177
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
178
|
+
withAccessibility: true,
|
|
1159
179
|
},
|
|
1160
180
|
render: (args) => (
|
|
1161
|
-
<
|
|
1162
|
-
<
|
|
1163
|
-
|
|
1164
|
-
</div>
|
|
1165
|
-
</div>
|
|
181
|
+
<IconPlaygroundCanvas>
|
|
182
|
+
<NotesIcon {...args} />
|
|
183
|
+
</IconPlaygroundCanvas>
|
|
1166
184
|
),
|
|
1167
185
|
}
|