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