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