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