aural-ui 4.0.1 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
- package/dist/components/avatar/Avatar.stories.tsx +219 -235
- package/dist/components/badge/Badge.stories.tsx +379 -116
- package/dist/components/banner/Banner.stories.tsx +445 -391
- package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
- package/dist/components/button/Button.stories.tsx +585 -230
- package/dist/components/card/Card.stories.tsx +619 -301
- package/dist/components/char-count/CharCount.stories.tsx +350 -248
- package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
- package/dist/components/chip/Chip.stories.tsx +362 -168
- package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
- package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
- package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
- package/dist/components/command/Command.stories.tsx +530 -867
- package/dist/components/dialog/Dialog.stories.tsx +501 -950
- package/dist/components/divider/Divider.stories.tsx +264 -527
- package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
- package/dist/components/drawer/Drawer.stories.tsx +659 -1023
- package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
- package/dist/components/form/Form.stories.tsx +560 -274
- package/dist/components/helper-text/HelperText.stories.tsx +199 -200
- package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
- package/dist/components/icon-button/IconButton.stories.tsx +837 -194
- package/dist/components/if-else/if-else.stories.tsx +370 -83
- package/dist/components/input/Input.stories.tsx +436 -368
- package/dist/components/label/Label.stories.tsx +156 -154
- package/dist/components/list/List.stories.tsx +484 -835
- package/dist/components/marquee/Marquee.stories.tsx +356 -712
- package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
- package/dist/components/overlay/Overlay.stories.tsx +452 -824
- package/dist/components/pagination/Pagination.stories.tsx +721 -210
- package/dist/components/popover/Popover.stories.tsx +481 -896
- package/dist/components/radio/Radio.stories.tsx +432 -124
- package/dist/components/resizable/Resizable.stories.tsx +495 -799
- package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
- package/dist/components/search/Search.stories.tsx +312 -595
- package/dist/components/select/Select.stories.tsx +684 -789
- package/dist/components/sheet/Sheet.stories.tsx +671 -950
- package/dist/components/skelton/Skelton.stories.tsx +230 -764
- package/dist/components/slider/Slider.stories.tsx +383 -760
- package/dist/components/stepper/Stepper.stories.tsx +371 -514
- package/dist/components/switch/Switch.stories.tsx +461 -208
- package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
- package/dist/components/table/Table.stories.tsx +770 -916
- package/dist/components/tabs/Tabs.stories.tsx +458 -1455
- package/dist/components/tag/Tag.stories.tsx +714 -542
- package/dist/components/textarea/TextArea.stories.tsx +621 -562
- package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
- package/dist/components/toast/Toast.stories.tsx +452 -1339
- package/dist/components/toggle/Toggle.stories.tsx +488 -931
- package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
- package/dist/components/typography/Typography.stories.tsx +406 -89
- package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
- package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
- package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
- package/dist/icons/Icons.stories.tsx +0 -12
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
- package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
- package/dist/icons/all-icons.tsx +37 -16
- package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
- package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
- package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
- package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
- package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
- package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
- package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
- package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
- package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
- package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
- package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
- package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
- package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
- package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
- package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
- package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
- package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
- package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
- package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
- package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
- package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
- package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
- package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
- package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
- package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
- package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
- package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
- package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
- package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
- package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
- package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
- package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
- package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
- package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
- package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
- package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
- package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
- package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
- package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
- package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
- package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
- package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
- package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
- package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
- package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
- package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
- package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
- package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
- package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
- package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
- package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
- package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
- package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
- package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
- package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
- package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
- package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
- package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
- package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
- package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
- package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
- package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
- package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
- package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
- package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
- package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
- package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
- package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
- package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
- package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
- package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
- package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
- package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
- package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
- package/dist/index.cjs +90 -90
- package/dist/index.js +90 -90
- package/package.json +8 -3
|
@@ -1,6 +1,20 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { MessageIcon } from "src/ui/icons/message-icon"
|
|
5
|
+
import { PaperPlaneIcon } from "src/ui/icons/paper-plane-icon"
|
|
6
|
+
import { PhoneIcon } from "src/ui/icons/phone-icon"
|
|
7
|
+
import { ShareIcon } from "src/ui/icons/share-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 { EmailIcon } from "."
|
|
5
19
|
|
|
6
20
|
const meta: Meta<typeof EmailIcon> = {
|
|
@@ -18,811 +32,69 @@ const meta: Meta<typeof EmailIcon> = {
|
|
|
18
32
|
},
|
|
19
33
|
docs: {
|
|
20
34
|
page: () => (
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
{
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
padding: 0 !important;
|
|
33
|
-
margin: 0 !important;
|
|
34
|
-
background: transparent !important;
|
|
35
|
-
}
|
|
36
|
-
.docs-story {
|
|
37
|
-
background: transparent !important;
|
|
38
|
-
}
|
|
39
|
-
.sbdocs {
|
|
40
|
-
background: transparent !important;
|
|
41
|
-
}
|
|
42
|
-
body {
|
|
43
|
-
background: var(--color-fm-surface-primary) !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: var(--color-fm-surface-primary) !important;
|
|
47
|
-
}
|
|
48
|
-
.sbdocs-preview {
|
|
49
|
-
background: transparent !important;
|
|
50
|
-
border: none !important;
|
|
51
|
-
}
|
|
52
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
-
color: var(--color-fm-icon-active) !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: var(--color-fm-secondary) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
60
|
-
color: var(--color-fm-secondary-500) !important;
|
|
61
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
65
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
69
|
-
border: 1px solid var(--color-fm-divider-secondary) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: var(--color-fm-surface-secondary) !important;
|
|
73
|
-
color: var(--color-fm-icon-active) !important;
|
|
74
|
-
border-bottom: 1px solid var(--color-fm-divider-secondary) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: var(--color-fm-secondary) !important;
|
|
78
|
-
border-bottom: 1px solid var(--color-fm-divider-tertiary) !important;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
86
|
-
<div className="from-fm-icon-info/10 via-fm-icon-info/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<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">
|
|
90
|
-
<EmailIcon className="text-fm-icon-info h-12 w-12" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
EmailIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
96
|
-
A versatile mail envelope icon for email functionality,
|
|
97
|
-
messaging systems, and communication features. Built with
|
|
98
|
-
accessibility in mind using Radix UI's AccessibleIcon
|
|
99
|
-
wrapper for seamless screen reader support.
|
|
100
|
-
</p>
|
|
101
|
-
|
|
102
|
-
{/* Stats */}
|
|
103
|
-
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
|
-
<div className="text-center">
|
|
105
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-fm-tertiary text-sm">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-fm-tertiary text-sm">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-fm-secondary-600 text-3xl font-bold">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-fm-tertiary text-sm">
|
|
127
|
-
Customizable styling
|
|
128
|
-
</div>
|
|
129
|
-
</div>
|
|
130
|
-
</div>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</div>
|
|
134
|
-
|
|
135
|
-
{/* Content */}
|
|
136
|
-
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
|
-
{/* Quick Usage */}
|
|
138
|
-
<div className="!space-y-8">
|
|
139
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
140
|
-
Quick Start
|
|
141
|
-
</h2>
|
|
142
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
|
-
<div className="!space-y-4">
|
|
144
|
-
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
148
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
149
|
-
{`import { EmailIcon } from "@icons/mail-icon"
|
|
150
|
-
|
|
151
|
-
function ContactForm() {
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Email Input", description: "Email field label icon" },
|
|
39
|
+
{ title: "Contact", description: "Reach out via email" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { EmailIcon } from "src/ui/icons/email-icon"
|
|
44
|
+
|
|
45
|
+
function EmailField() {
|
|
152
46
|
return (
|
|
153
|
-
<
|
|
154
|
-
|
|
155
|
-
<
|
|
156
|
-
</button>
|
|
157
|
-
)
|
|
158
|
-
}`}
|
|
159
|
-
</pre>
|
|
160
|
-
</div>
|
|
161
|
-
</div>
|
|
162
|
-
|
|
163
|
-
<div className="!space-y-4">
|
|
164
|
-
<h3 className="text-fm-icon-info! text-xl font-semibold">
|
|
165
|
-
Live Preview
|
|
166
|
-
</h3>
|
|
167
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
|
|
168
|
-
<button className="border-fm-icon-info/20 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
|
|
169
|
-
<EmailIcon className="text-fm-icon-info h-5 w-5" />
|
|
170
|
-
<span className="text-fm-icon-active">Send Email</span>
|
|
171
|
-
</button>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</div>
|
|
175
|
-
</div>
|
|
176
|
-
|
|
177
|
-
{/* Props Documentation */}
|
|
178
|
-
<div className="!space-y-8">
|
|
179
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
180
|
-
Props & Configuration
|
|
181
|
-
</h2>
|
|
182
|
-
|
|
183
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
184
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
185
|
-
<h3 className="text-fm-icon-active! text-xl font-semibold">
|
|
186
|
-
Props
|
|
187
|
-
</h3>
|
|
188
|
-
</div>
|
|
189
|
-
<table className="!my-0 w-full">
|
|
190
|
-
<thead className="bg-fm-surface-secondary">
|
|
191
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
192
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
193
|
-
Prop
|
|
194
|
-
</th>
|
|
195
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
196
|
-
Type
|
|
197
|
-
</th>
|
|
198
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
199
|
-
Default
|
|
200
|
-
</th>
|
|
201
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
202
|
-
Description
|
|
203
|
-
</th>
|
|
204
|
-
</tr>
|
|
205
|
-
</thead>
|
|
206
|
-
<tbody>
|
|
207
|
-
{" "}
|
|
208
|
-
<tr className="bg-fm-surface-secondary!">
|
|
209
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
210
|
-
withAccessibility
|
|
211
|
-
</td>
|
|
212
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
213
|
-
boolean
|
|
214
|
-
</td>
|
|
215
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
216
|
-
true
|
|
217
|
-
</td>
|
|
218
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
219
|
-
Whether to wrap the icon with accessibility feature
|
|
220
|
-
</td>
|
|
221
|
-
</tr>
|
|
222
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
223
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
224
|
-
height
|
|
225
|
-
</td>
|
|
226
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
227
|
-
number | string
|
|
228
|
-
</td>
|
|
229
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
230
|
-
21
|
|
231
|
-
</td>
|
|
232
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
233
|
-
Height of the icon in pixels
|
|
234
|
-
</td>
|
|
235
|
-
</tr>
|
|
236
|
-
<tr className="border-fm-divider-tertiary border-b">
|
|
237
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
238
|
-
fill
|
|
239
|
-
</td>
|
|
240
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
241
|
-
string
|
|
242
|
-
</td>
|
|
243
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
244
|
-
currentColor
|
|
245
|
-
</td>
|
|
246
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
247
|
-
Fill color of the icon
|
|
248
|
-
</td>
|
|
249
|
-
</tr>
|
|
250
|
-
<tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
|
|
251
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
252
|
-
className
|
|
253
|
-
</td>
|
|
254
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
255
|
-
string
|
|
256
|
-
</td>
|
|
257
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
258
|
-
-
|
|
259
|
-
</td>
|
|
260
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
261
|
-
CSS classes for styling
|
|
262
|
-
</td>
|
|
263
|
-
</tr>
|
|
264
|
-
<tr className="bg-fm-surface-secondary!">
|
|
265
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
266
|
-
...svgProps
|
|
267
|
-
</td>
|
|
268
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
269
|
-
SVGProps
|
|
270
|
-
</td>
|
|
271
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
272
|
-
-
|
|
273
|
-
</td>
|
|
274
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
275
|
-
All standard SVG element props
|
|
276
|
-
</td>
|
|
277
|
-
</tr>
|
|
278
|
-
</tbody>
|
|
279
|
-
</table>
|
|
280
|
-
</div>
|
|
281
|
-
</div>
|
|
282
|
-
|
|
283
|
-
{/* Size Variations */}
|
|
284
|
-
<div className="!space-y-8">
|
|
285
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
286
|
-
Size Variations
|
|
287
|
-
</h2>
|
|
288
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
|
|
289
|
-
<div className="!space-y-6">
|
|
290
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
291
|
-
<div className="!space-y-4">
|
|
292
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
293
|
-
Standard Sizes
|
|
294
|
-
</h3>
|
|
295
|
-
<div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
298
|
-
<span className="text-fm-tertiary text-xs">
|
|
299
|
-
12px
|
|
300
|
-
</span>
|
|
301
|
-
</div>
|
|
302
|
-
<div className="text-center">
|
|
303
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
304
|
-
<span className="text-fm-tertiary text-xs">
|
|
305
|
-
16px
|
|
306
|
-
</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div className="text-center">
|
|
309
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
310
|
-
<span className="text-fm-tertiary text-xs">
|
|
311
|
-
20px
|
|
312
|
-
</span>
|
|
313
|
-
</div>
|
|
314
|
-
<div className="text-center">
|
|
315
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
316
|
-
<span className="text-fm-tertiary text-xs">
|
|
317
|
-
24px
|
|
318
|
-
</span>
|
|
319
|
-
</div>
|
|
320
|
-
<div className="text-center">
|
|
321
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
322
|
-
<span className="text-fm-tertiary text-xs">
|
|
323
|
-
32px
|
|
324
|
-
</span>
|
|
325
|
-
</div>
|
|
326
|
-
<div className="text-center">
|
|
327
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
328
|
-
<span className="text-fm-tertiary text-xs">
|
|
329
|
-
48px
|
|
330
|
-
</span>
|
|
331
|
-
</div>
|
|
332
|
-
</div>
|
|
333
|
-
</div>
|
|
334
|
-
|
|
335
|
-
<div className="!space-y-4">
|
|
336
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
337
|
-
Code Example
|
|
338
|
-
</h3>
|
|
339
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
340
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
341
|
-
{`// Small (16px)
|
|
342
|
-
<EmailIcon className="h-4 w-4" />
|
|
343
|
-
|
|
344
|
-
// Medium (24px)
|
|
345
|
-
<EmailIcon className="h-6 w-6" />
|
|
346
|
-
|
|
347
|
-
// Large (32px)
|
|
348
|
-
<EmailIcon className="h-8 w-8" />
|
|
349
|
-
|
|
350
|
-
// Custom size
|
|
351
|
-
<EmailIcon width={40} height={40} />`}
|
|
352
|
-
</pre>
|
|
353
|
-
</div>
|
|
354
|
-
</div>
|
|
355
|
-
</div>
|
|
356
|
-
</div>
|
|
357
|
-
</div>
|
|
358
|
-
</div>
|
|
359
|
-
|
|
360
|
-
{/* Color Variations */}
|
|
361
|
-
<div className="!space-y-8">
|
|
362
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
363
|
-
Color Variations
|
|
364
|
-
</h2>
|
|
365
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
366
|
-
<div className="!space-y-4">
|
|
367
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
368
|
-
Semantic Colors
|
|
369
|
-
</h3>
|
|
370
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
371
|
-
<div className="flex items-center gap-4">
|
|
372
|
-
<EmailIcon className="text-fm-icon-info h-6 w-6" />
|
|
373
|
-
<div>
|
|
374
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
375
|
-
Primary
|
|
376
|
-
</div>
|
|
377
|
-
<div className="text-fm-tertiary text-xs">
|
|
378
|
-
text-fm-icon-info
|
|
379
|
-
</div>
|
|
380
|
-
</div>
|
|
381
|
-
</div>
|
|
382
|
-
<div className="flex items-center gap-4">
|
|
383
|
-
<EmailIcon className="text-fm-icon-positive h-6 w-6" />
|
|
384
|
-
<div>
|
|
385
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
386
|
-
Success
|
|
387
|
-
</div>
|
|
388
|
-
<div className="text-fm-tertiary text-xs">
|
|
389
|
-
text-fm-icon-positive
|
|
390
|
-
</div>
|
|
391
|
-
</div>
|
|
392
|
-
</div>
|
|
393
|
-
<div className="flex items-center gap-4">
|
|
394
|
-
<EmailIcon className="text-fm-icon-warning h-6 w-6" />
|
|
395
|
-
<div>
|
|
396
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
397
|
-
Warning
|
|
398
|
-
</div>
|
|
399
|
-
<div className="text-fm-tertiary text-xs">
|
|
400
|
-
text-fm-icon-warning
|
|
401
|
-
</div>
|
|
402
|
-
</div>
|
|
403
|
-
</div>
|
|
404
|
-
<div className="flex items-center gap-4">
|
|
405
|
-
<EmailIcon className="text-fm-placeholder h-6 w-6" />
|
|
406
|
-
<div>
|
|
407
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
408
|
-
Neutral
|
|
409
|
-
</div>
|
|
410
|
-
<div className="text-fm-tertiary text-xs">
|
|
411
|
-
text-fm-placeholder
|
|
412
|
-
</div>
|
|
413
|
-
</div>
|
|
414
|
-
</div>
|
|
415
|
-
</div>
|
|
416
|
-
</div>
|
|
417
|
-
|
|
418
|
-
<div className="!space-y-4">
|
|
419
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
420
|
-
Custom Colors
|
|
421
|
-
</h3>
|
|
422
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
423
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
424
|
-
{`// Using Tailwind classes
|
|
425
|
-
<EmailIcon className="h-6 w-6 text-blue-400" />
|
|
426
|
-
<EmailIcon className="h-6 w-6 text-green-500" />
|
|
427
|
-
|
|
428
|
-
// Using CSS custom properties
|
|
429
|
-
<EmailIcon
|
|
430
|
-
className="h-6 w-6"
|
|
431
|
-
style={{ color: 'var(--color-primary)' }}
|
|
432
|
-
/>
|
|
433
|
-
|
|
434
|
-
// Direct fill prop
|
|
435
|
-
<EmailIcon
|
|
436
|
-
width={24}
|
|
437
|
-
height={24}
|
|
438
|
-
fill="#3b82f6"
|
|
439
|
-
/>`}
|
|
440
|
-
</pre>
|
|
441
|
-
</div>
|
|
442
|
-
</div>
|
|
443
|
-
</div>
|
|
444
|
-
</div>
|
|
445
|
-
|
|
446
|
-
{/* Usage Examples */}
|
|
447
|
-
<div className="!space-y-8">
|
|
448
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
449
|
-
Usage Examples
|
|
450
|
-
</h2>
|
|
451
|
-
|
|
452
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
453
|
-
{/* Email Button */}
|
|
454
|
-
<div className="!space-y-4">
|
|
455
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
456
|
-
Email Actions
|
|
457
|
-
</h3>
|
|
458
|
-
<div className="!space-y-4">
|
|
459
|
-
<div className="flex gap-4">
|
|
460
|
-
<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">
|
|
461
|
-
<EmailIcon className="h-4 w-4" />
|
|
462
|
-
Send Email
|
|
463
|
-
</button>
|
|
464
|
-
<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-3 py-2 transition-colors">
|
|
465
|
-
<EmailIcon className="h-4 w-4" />
|
|
466
|
-
Compose
|
|
467
|
-
</button>
|
|
468
|
-
</div>
|
|
469
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
470
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
471
|
-
{`// Primary email button
|
|
472
|
-
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
473
|
-
<EmailIcon className="h-4 w-4" />
|
|
474
|
-
Send Email
|
|
475
|
-
</button>
|
|
476
|
-
|
|
477
|
-
// Compose button
|
|
478
|
-
<button className="flex items-center gap-2 bg-green-500/20 border border-green-500/30 px-3 py-2 rounded-lg">
|
|
479
|
-
<EmailIcon className="h-4 w-4" />
|
|
480
|
-
Compose
|
|
481
|
-
</button>`}
|
|
482
|
-
</pre>
|
|
483
|
-
</div>
|
|
484
|
-
</div>
|
|
485
|
-
</div>
|
|
486
|
-
|
|
487
|
-
{/* Contact Card */}
|
|
488
|
-
<div className="!space-y-4">
|
|
489
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
490
|
-
Contact Information
|
|
491
|
-
</h3>
|
|
492
|
-
<div className="!space-y-4">
|
|
493
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
|
|
494
|
-
<div className="flex items-center justify-between">
|
|
495
|
-
<div className="flex items-center gap-3">
|
|
496
|
-
<div className="bg-fm-icon-info/20 flex h-10 w-10 items-center justify-center rounded-lg">
|
|
497
|
-
<EmailIcon className="text-fm-icon-info h-5 w-5" />
|
|
498
|
-
</div>
|
|
499
|
-
<div>
|
|
500
|
-
<div className="text-fm-icon-active text-sm font-medium">
|
|
501
|
-
john@example.com
|
|
502
|
-
</div>
|
|
503
|
-
<div className="text-fm-tertiary text-xs">
|
|
504
|
-
Primary email address
|
|
505
|
-
</div>
|
|
506
|
-
</div>
|
|
507
|
-
</div>
|
|
508
|
-
<button className="text-fm-placeholder hover:bg-fm-icon-info/20 hover:text-fm-icon-info rounded-lg p-2 transition-colors">
|
|
509
|
-
<EmailIcon className="h-4 w-4" />
|
|
510
|
-
</button>
|
|
511
|
-
</div>
|
|
512
|
-
</div>
|
|
513
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
514
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
515
|
-
{`<div className="flex items-center justify-between">
|
|
516
|
-
<div className="flex items-center gap-3">
|
|
517
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-blue-500/20">
|
|
518
|
-
<EmailIcon className="h-5 w-5 text-blue-400" />
|
|
519
|
-
</div>
|
|
520
|
-
<div>
|
|
521
|
-
<div className="text-sm font-medium text-white">john@example.com</div>
|
|
522
|
-
<div className="text-xs text-white/60">Primary email address</div>
|
|
523
|
-
</div>
|
|
524
|
-
</div>
|
|
525
|
-
<button className="p-2 rounded-lg text-gray-400 hover:bg-blue-500/20 hover:text-blue-400">
|
|
526
|
-
<EmailIcon className="h-4 w-4" />
|
|
527
|
-
</button>
|
|
528
|
-
</div>`}
|
|
529
|
-
</pre>
|
|
530
|
-
</div>
|
|
531
|
-
</div>
|
|
532
|
-
</div>
|
|
533
|
-
|
|
534
|
-
{/* Newsletter Card */}
|
|
535
|
-
<div className="!space-y-4">
|
|
536
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
537
|
-
Newsletter Signup
|
|
538
|
-
</h3>
|
|
539
|
-
<div className="!space-y-4">
|
|
540
|
-
<div className="border-fm-icon-info/20 bg-fm-icon-info/5 rounded-lg border p-6">
|
|
541
|
-
<div className="flex items-start gap-4">
|
|
542
|
-
<div className="bg-fm-icon-info/20 flex h-12 w-12 items-center justify-center rounded-lg">
|
|
543
|
-
<EmailIcon className="text-fm-icon-info h-6 w-6" />
|
|
544
|
-
</div>
|
|
545
|
-
<div className="flex-1">
|
|
546
|
-
<h4 className="text-fm-icon-active! mb-2 font-medium">
|
|
547
|
-
Stay Updated
|
|
548
|
-
</h4>
|
|
549
|
-
<p className="text-fm-secondary! mb-4 text-sm">
|
|
550
|
-
Subscribe to our newsletter for the latest updates
|
|
551
|
-
and insights.
|
|
552
|
-
</p>
|
|
553
|
-
<div className="flex gap-3">
|
|
554
|
-
<input
|
|
555
|
-
className="border-fm-divider-primary bg-fm-surface-secondary text-fm-icon-active flex-1 rounded-lg border px-3 py-2 text-sm placeholder-white/50"
|
|
556
|
-
placeholder="Enter your email"
|
|
557
|
-
/>
|
|
558
|
-
<button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info rounded-lg border px-4 py-2 text-sm">
|
|
559
|
-
Subscribe
|
|
560
|
-
</button>
|
|
561
|
-
</div>
|
|
562
|
-
</div>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
566
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
567
|
-
{`<div className="border border-blue-500/20 bg-blue-500/5 p-6 rounded-lg">
|
|
568
|
-
<div className="flex items-start gap-4">
|
|
569
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
570
|
-
<EmailIcon className="h-6 w-6 text-blue-400" />
|
|
47
|
+
<div className="flex items-center gap-2">
|
|
48
|
+
<EmailIcon className="h-5 w-5 text-fm-icon-inactive" />
|
|
49
|
+
<input placeholder="Enter your email" />
|
|
571
50
|
</div>
|
|
572
|
-
<div className="flex-1">
|
|
573
|
-
<h4 className="font-medium text-white mb-2">Stay Updated</h4>
|
|
574
|
-
<p className="text-sm text-white/70 mb-4">
|
|
575
|
-
Subscribe to our newsletter for the latest updates.
|
|
576
|
-
</p>
|
|
577
|
-
{/* Input and button */}
|
|
578
|
-
</div>
|
|
579
|
-
</div>
|
|
580
|
-
</div>`}
|
|
581
|
-
</pre>
|
|
582
|
-
</div>
|
|
583
|
-
</div>
|
|
584
|
-
</div>
|
|
585
|
-
|
|
586
|
-
{/* Email Status */}
|
|
587
|
-
<div className="!space-y-4">
|
|
588
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
589
|
-
Email Status
|
|
590
|
-
</h3>
|
|
591
|
-
<div className="!space-y-4">
|
|
592
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4">
|
|
593
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
594
|
-
<EmailIcon className="text-fm-icon-info h-4 w-4" />
|
|
595
|
-
<span className="text-fm-icon-active">Inbox (5)</span>
|
|
596
|
-
<span className="bg-fm-icon-info ml-auto h-2 w-2 rounded-full"></span>
|
|
597
|
-
</div>
|
|
598
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
599
|
-
<EmailIcon className="text-fm-icon-positive h-4 w-4" />
|
|
600
|
-
<span className="text-fm-icon-active">Sent</span>
|
|
601
|
-
</div>
|
|
602
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
603
|
-
<EmailIcon className="text-fm-icon-warning h-4 w-4" />
|
|
604
|
-
<span className="text-fm-icon-active">
|
|
605
|
-
Drafts (2)
|
|
606
|
-
</span>
|
|
607
|
-
<span className="bg-fm-icon-warning ml-auto h-2 w-2 rounded-full"></span>
|
|
608
|
-
</div>
|
|
609
|
-
</div>
|
|
610
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
611
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">
|
|
612
|
-
{`// Email status indicators
|
|
613
|
-
<div className="flex items-center gap-3 px-3 py-2 text-sm rounded">
|
|
614
|
-
<EmailIcon className="h-4 w-4 text-blue-400" />
|
|
615
|
-
<span className="text-white">Inbox (5)</span>
|
|
616
|
-
<span className="ml-auto h-2 w-2 rounded-full bg-blue-400"></span>
|
|
617
|
-
</div>`}
|
|
618
|
-
</pre>
|
|
619
|
-
</div>
|
|
620
|
-
</div>
|
|
621
|
-
</div>
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
624
|
-
|
|
625
|
-
{/* Accessibility */}
|
|
626
|
-
<div className="!space-y-8">
|
|
627
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
628
|
-
Accessibility Features
|
|
629
|
-
</h2>
|
|
630
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
631
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
632
|
-
<h3 className="text-fm-icon-positive! text-lg font-semibold">
|
|
633
|
-
✅ Built-in Features
|
|
634
|
-
</h3>
|
|
635
|
-
<ul className="text-fm-secondary! !space-y-2 text-sm">
|
|
636
|
-
<li className="text-fm-secondary!">
|
|
637
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
638
|
-
</li>
|
|
639
|
-
<li className="text-fm-secondary!">
|
|
640
|
-
Provides screen reader label "Email icon"
|
|
641
|
-
</li>
|
|
642
|
-
<li className="text-fm-secondary!">
|
|
643
|
-
Supports keyboard navigation when interactive
|
|
644
|
-
</li>
|
|
645
|
-
<li className="text-fm-secondary!">
|
|
646
|
-
Maintains proper color contrast ratios
|
|
647
|
-
</li>
|
|
648
|
-
<li className="text-fm-secondary!">
|
|
649
|
-
Scales with user's font size preferences
|
|
650
|
-
</li>
|
|
651
|
-
</ul>
|
|
652
|
-
</div>
|
|
653
|
-
|
|
654
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
|
|
655
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
656
|
-
💡 Best Practices
|
|
657
|
-
</h3>
|
|
658
|
-
<ul className="text-fm-secondary !space-y-2 text-sm">
|
|
659
|
-
<li className="text-fm-secondary!">
|
|
660
|
-
Always pair with descriptive text for actions
|
|
661
|
-
</li>
|
|
662
|
-
<li className="text-fm-secondary!">
|
|
663
|
-
Use consistent colors for email states
|
|
664
|
-
</li>
|
|
665
|
-
<li className="text-fm-secondary!">
|
|
666
|
-
Ensure sufficient color contrast on backgrounds
|
|
667
|
-
</li>
|
|
668
|
-
<li className="text-fm-secondary!">
|
|
669
|
-
Add focus states for interactive elements
|
|
670
|
-
</li>
|
|
671
|
-
<li className="text-fm-secondary!">
|
|
672
|
-
Consider unread indicators for clarity
|
|
673
|
-
</li>
|
|
674
|
-
</ul>
|
|
675
|
-
</div>
|
|
676
|
-
</div>
|
|
677
|
-
|
|
678
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
|
|
679
|
-
<h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
|
|
680
|
-
Custom Accessibility Label
|
|
681
|
-
</h3>
|
|
682
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
683
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
684
|
-
<pre className="text-fm-icon-info! overflow-x-auto text-sm">
|
|
685
|
-
{`// Custom implementation with specific label
|
|
686
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
687
|
-
|
|
688
|
-
function CustomEmailIcon({ label = "Email", ...props }) {
|
|
689
|
-
return (
|
|
690
|
-
<AccessibleIcon label={label}>
|
|
691
|
-
<EmailIcon {...props} />
|
|
692
|
-
</AccessibleIcon>
|
|
693
51
|
)
|
|
694
|
-
}
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
<
|
|
698
|
-
label="Send email to customer"
|
|
699
|
-
className="h-4 w-4 text-blue-400"
|
|
700
|
-
/>`}
|
|
701
|
-
</pre>
|
|
702
|
-
</div>
|
|
703
|
-
<div className="!space-y-4">
|
|
704
|
-
<p className="text-fm-secondary! text-sm">
|
|
705
|
-
For specific contexts, you can wrap the EmailIcon with a
|
|
706
|
-
custom AccessibleIcon component that provides more
|
|
707
|
-
descriptive labels for email functionality and
|
|
708
|
-
messaging.
|
|
709
|
-
</p>
|
|
710
|
-
<div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
|
|
711
|
-
<div className="text-fm-icon-info flex items-center gap-2 text-sm">
|
|
712
|
-
<EmailIcon className="h-4 w-4" />
|
|
713
|
-
<span>
|
|
714
|
-
This approach gives screen readers more context
|
|
715
|
-
</span>
|
|
716
|
-
</div>
|
|
717
|
-
</div>
|
|
718
|
-
</div>
|
|
719
|
-
</div>
|
|
720
|
-
</div>
|
|
721
|
-
</div>
|
|
722
|
-
|
|
723
|
-
{/* Related Icons */}
|
|
724
|
-
<div className="!space-y-8">
|
|
725
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
726
|
-
Related Icons
|
|
727
|
-
</h2>
|
|
728
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
729
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
730
|
-
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
731
|
-
<span className="text-2xl">📨</span>
|
|
732
|
-
</div>
|
|
733
|
-
<div>
|
|
734
|
-
<div className="text-fm-icon-active font-medium">
|
|
735
|
-
InboxIcon
|
|
736
|
-
</div>
|
|
737
|
-
<div className="text-fm-tertiary text-xs">
|
|
738
|
-
Email inbox
|
|
739
|
-
</div>
|
|
740
|
-
</div>
|
|
741
|
-
</div>
|
|
742
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
743
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
744
|
-
<span className="text-2xl">💬</span>
|
|
745
|
-
</div>
|
|
746
|
-
<div>
|
|
747
|
-
<div className="text-fm-icon-active font-medium">
|
|
748
|
-
MessageIcon
|
|
749
|
-
</div>
|
|
750
|
-
<div className="text-fm-tertiary text-xs">
|
|
751
|
-
Chat messages
|
|
752
|
-
</div>
|
|
753
|
-
</div>
|
|
754
|
-
</div>
|
|
755
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
756
|
-
<div className="bg-fm-icon-warning/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
757
|
-
<span className="text-2xl">📧</span>
|
|
758
|
-
</div>
|
|
759
|
-
<div>
|
|
760
|
-
<div className="text-fm-icon-active font-medium">
|
|
761
|
-
SendIcon
|
|
762
|
-
</div>
|
|
763
|
-
<div className="text-fm-tertiary text-xs">
|
|
764
|
-
Send actions
|
|
765
|
-
</div>
|
|
766
|
-
</div>
|
|
767
|
-
</div>
|
|
768
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
769
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
770
|
-
<span className="text-2xl">📮</span>
|
|
771
|
-
</div>
|
|
772
|
-
<div>
|
|
773
|
-
<div className="text-fm-icon-active font-medium">
|
|
774
|
-
MailboxIcon
|
|
775
|
-
</div>
|
|
776
|
-
<div className="text-fm-tertiary text-xs">
|
|
777
|
-
Mail delivery
|
|
778
|
-
</div>
|
|
779
|
-
</div>
|
|
780
|
-
</div>
|
|
781
|
-
</div>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<div className="flex items-center gap-2">
|
|
55
|
+
<EmailIcon className="text-fm-icon-active h-6 w-6" />
|
|
782
56
|
</div>
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "MessageIcon",
|
|
62
|
+
description: "Chat / message bubble icon",
|
|
63
|
+
icon: MessageIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "PaperPlaneIcon",
|
|
68
|
+
description: "Send / paper plane icon",
|
|
69
|
+
icon: PaperPlaneIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "ShareIcon",
|
|
74
|
+
description: "Share content icon",
|
|
75
|
+
icon: ShareIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "PhoneIcon",
|
|
80
|
+
description: "Phone / call icon",
|
|
81
|
+
icon: PhoneIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
802
86
|
),
|
|
803
87
|
},
|
|
804
88
|
},
|
|
805
89
|
tags: ["autodocs"],
|
|
806
90
|
argTypes: {
|
|
807
|
-
|
|
808
|
-
control:
|
|
809
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
810
94
|
},
|
|
811
95
|
withAccessibility: {
|
|
812
96
|
control: "boolean",
|
|
813
|
-
description: "
|
|
814
|
-
},
|
|
815
|
-
height: {
|
|
816
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
817
|
-
description: "Height of the icon in pixels",
|
|
818
|
-
},
|
|
819
|
-
fill: {
|
|
820
|
-
control: "color",
|
|
821
|
-
description: "Fill color of the icon",
|
|
822
|
-
},
|
|
823
|
-
className: {
|
|
824
|
-
control: "text",
|
|
825
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
826
98
|
},
|
|
827
99
|
},
|
|
828
100
|
}
|
|
@@ -830,220 +102,81 @@ function CustomEmailIcon({ label = "Email", ...props }) {
|
|
|
830
102
|
export default meta
|
|
831
103
|
type Story = StoryObj<typeof EmailIcon>
|
|
832
104
|
|
|
833
|
-
// Story parameters for consistent dark theme
|
|
834
|
-
const storyParameters = {
|
|
835
|
-
backgrounds: {
|
|
836
|
-
default: "dark",
|
|
837
|
-
values: [
|
|
838
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
839
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
840
|
-
],
|
|
841
|
-
},
|
|
842
|
-
}
|
|
843
|
-
|
|
844
105
|
export const Default: Story = {
|
|
845
106
|
args: {
|
|
846
|
-
|
|
847
|
-
height: 21,
|
|
848
|
-
className: "text-fm-icon-info",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
849
108
|
withAccessibility: true,
|
|
850
109
|
},
|
|
851
|
-
parameters: storyParameters,
|
|
852
110
|
render: (args) => (
|
|
853
|
-
<
|
|
111
|
+
<IconDefaultCanvas>
|
|
854
112
|
<EmailIcon {...args} />
|
|
855
|
-
</
|
|
113
|
+
</IconDefaultCanvas>
|
|
856
114
|
),
|
|
857
115
|
}
|
|
858
116
|
|
|
859
117
|
export const SizeVariations: Story = {
|
|
860
|
-
|
|
861
|
-
...storyParameters,
|
|
862
|
-
docs: {
|
|
863
|
-
description: {
|
|
864
|
-
story:
|
|
865
|
-
"EmailIcon in different sizes, from small UI elements to large email displays.",
|
|
866
|
-
},
|
|
867
|
-
},
|
|
868
|
-
},
|
|
869
|
-
render: () => (
|
|
870
|
-
<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">
|
|
871
|
-
<div className="text-center">
|
|
872
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
873
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
874
|
-
</div>
|
|
875
|
-
<div className="text-center">
|
|
876
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
877
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
878
|
-
</div>
|
|
879
|
-
<div className="text-center">
|
|
880
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
881
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
882
|
-
</div>
|
|
883
|
-
<div className="text-center">
|
|
884
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
885
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
886
|
-
</div>
|
|
887
|
-
<div className="text-center">
|
|
888
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
889
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
890
|
-
</div>
|
|
891
|
-
<div className="text-center">
|
|
892
|
-
<EmailIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
893
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
894
|
-
</div>
|
|
895
|
-
</div>
|
|
896
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={EmailIcon} />,
|
|
897
119
|
}
|
|
898
120
|
|
|
899
121
|
export const ColorVariations: Story = {
|
|
900
|
-
|
|
901
|
-
...storyParameters,
|
|
902
|
-
docs: {
|
|
903
|
-
description: {
|
|
904
|
-
story:
|
|
905
|
-
"EmailIcon in different semantic colors for various email contexts and states.",
|
|
906
|
-
},
|
|
907
|
-
},
|
|
908
|
-
},
|
|
909
|
-
render: () => (
|
|
910
|
-
<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">
|
|
911
|
-
<div className="text-center">
|
|
912
|
-
<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">
|
|
913
|
-
<EmailIcon className="text-fm-icon-info h-8 w-8" />
|
|
914
|
-
</div>
|
|
915
|
-
<div className="text-fm-icon-active text-sm font-medium">Primary</div>
|
|
916
|
-
<div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
|
|
917
|
-
</div>
|
|
918
|
-
<div className="text-center">
|
|
919
|
-
<div className="border-fm-icon-positive/30 bg-fm-icon-positive/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
920
|
-
<EmailIcon className="text-fm-icon-positive h-8 w-8" />
|
|
921
|
-
</div>
|
|
922
|
-
<div className="text-fm-icon-active text-sm font-medium">Success</div>
|
|
923
|
-
<div className="text-fm-icon-positive text-xs">
|
|
924
|
-
text-fm-icon-positive
|
|
925
|
-
</div>
|
|
926
|
-
</div>
|
|
927
|
-
<div className="text-center">
|
|
928
|
-
<div className="border-fm-icon-warning/30 bg-fm-icon-warning/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
|
|
929
|
-
<EmailIcon className="text-fm-icon-warning h-8 w-8" />
|
|
930
|
-
</div>
|
|
931
|
-
<div className="text-fm-icon-active text-sm font-medium">Warning</div>
|
|
932
|
-
<div className="text-fm-icon-warning text-xs">text-fm-icon-warning</div>
|
|
933
|
-
</div>
|
|
934
|
-
<div className="text-center">
|
|
935
|
-
<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">
|
|
936
|
-
<EmailIcon className="text-fm-placeholder h-8 w-8" />
|
|
937
|
-
</div>
|
|
938
|
-
<div className="text-fm-icon-active text-sm font-medium">Neutral</div>
|
|
939
|
-
<div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
|
|
940
|
-
</div>
|
|
941
|
-
</div>
|
|
942
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={EmailIcon} />,
|
|
943
123
|
}
|
|
944
124
|
|
|
945
125
|
export const UsageExamples: Story = {
|
|
946
|
-
parameters: {
|
|
947
|
-
...storyParameters,
|
|
948
|
-
docs: {
|
|
949
|
-
description: {
|
|
950
|
-
story:
|
|
951
|
-
"Real-world usage examples showing EmailIcon in different email and communication contexts.",
|
|
952
|
-
},
|
|
953
|
-
},
|
|
954
|
-
},
|
|
955
126
|
render: () => (
|
|
956
|
-
<
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
<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">
|
|
964
|
-
<EmailIcon className="h-4 w-4" />
|
|
965
|
-
Send Email
|
|
966
|
-
</button>
|
|
967
|
-
<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-3 py-2 transition-colors">
|
|
968
|
-
<EmailIcon className="h-4 w-4" />
|
|
969
|
-
Compose
|
|
970
|
-
</button>
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="Email Input Field">
|
|
129
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center gap-3 rounded-xl border px-4 py-3">
|
|
130
|
+
<EmailIcon className="text-fm-icon-inactive h-4 w-4 shrink-0" />
|
|
131
|
+
<span className="text-fm-tertiary font-fm-text text-sm">
|
|
132
|
+
Enter your email address
|
|
133
|
+
</span>
|
|
971
134
|
</div>
|
|
972
|
-
</
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
<
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
<
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
<div className="text-fm-tertiary text-xs">
|
|
990
|
-
Primary email address
|
|
991
|
-
</div>
|
|
992
|
-
</div>
|
|
993
|
-
</div>
|
|
994
|
-
<button className="text-fm-placeholder hover:bg-fm-icon-info/20 hover:text-fm-icon-info rounded-lg p-2 transition-colors">
|
|
995
|
-
<EmailIcon className="h-4 w-4" />
|
|
135
|
+
</IconUsageSection>
|
|
136
|
+
|
|
137
|
+
<IconUsageSection title="Contact Options">
|
|
138
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm overflow-hidden rounded-xl border">
|
|
139
|
+
{[
|
|
140
|
+
{ Icon: EmailIcon, label: "Email support" },
|
|
141
|
+
{ Icon: MessageIcon, label: "Live chat" },
|
|
142
|
+
{ Icon: PhoneIcon, label: "Call us" },
|
|
143
|
+
].map(({ Icon, label }) => (
|
|
144
|
+
<button
|
|
145
|
+
key={label}
|
|
146
|
+
className="border-fm-divider-secondary flex w-full items-center gap-3 border-b px-4 py-3 last:border-b-0"
|
|
147
|
+
>
|
|
148
|
+
<Icon className="text-fm-icon-active h-4 w-4" />
|
|
149
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
150
|
+
{label}
|
|
151
|
+
</span>
|
|
996
152
|
</button>
|
|
997
|
-
|
|
153
|
+
))}
|
|
998
154
|
</div>
|
|
999
|
-
</
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
<EmailIcon className="text-fm-icon-info h-4 w-4" />
|
|
1009
|
-
<span className="text-fm-icon-active">Inbox (5)</span>
|
|
1010
|
-
<span className="bg-fm-icon-info ml-auto h-2 w-2 rounded-full"></span>
|
|
1011
|
-
</div>
|
|
1012
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
1013
|
-
<EmailIcon className="text-fm-icon-positive h-4 w-4" />
|
|
1014
|
-
<span className="text-fm-icon-active">Sent</span>
|
|
1015
|
-
</div>
|
|
1016
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
1017
|
-
<EmailIcon className="text-fm-icon-warning h-4 w-4" />
|
|
1018
|
-
<span className="text-fm-icon-active">Drafts (2)</span>
|
|
1019
|
-
<span className="bg-fm-icon-warning ml-auto h-2 w-2 rounded-full"></span>
|
|
155
|
+
</IconUsageSection>
|
|
156
|
+
|
|
157
|
+
<IconUsageSection title="Notification Preference">
|
|
158
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center justify-between rounded-xl border px-4 py-3">
|
|
159
|
+
<div className="flex items-center gap-2">
|
|
160
|
+
<EmailIcon className="text-fm-icon-active h-4 w-4" />
|
|
161
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
162
|
+
Email notifications
|
|
163
|
+
</span>
|
|
1020
164
|
</div>
|
|
165
|
+
<div className="bg-fm-icon-positive h-5 w-9 rounded-full" />
|
|
1021
166
|
</div>
|
|
1022
|
-
</
|
|
1023
|
-
</
|
|
167
|
+
</IconUsageSection>
|
|
168
|
+
</IconUsageCanvas>
|
|
1024
169
|
),
|
|
1025
170
|
}
|
|
1026
171
|
|
|
1027
172
|
export const Playground: Story = {
|
|
1028
|
-
parameters: {
|
|
1029
|
-
...storyParameters,
|
|
1030
|
-
docs: {
|
|
1031
|
-
description: {
|
|
1032
|
-
story:
|
|
1033
|
-
"Interactive playground to experiment with different EmailIcon configurations.",
|
|
1034
|
-
},
|
|
1035
|
-
},
|
|
1036
|
-
},
|
|
1037
173
|
args: {
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
className: "text-fm-icon-info",
|
|
174
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
175
|
+
withAccessibility: true,
|
|
1041
176
|
},
|
|
1042
177
|
render: (args) => (
|
|
1043
|
-
<
|
|
1044
|
-
<
|
|
1045
|
-
|
|
1046
|
-
</div>
|
|
1047
|
-
</div>
|
|
178
|
+
<IconPlaygroundCanvas>
|
|
179
|
+
<EmailIcon {...args} />
|
|
180
|
+
</IconPlaygroundCanvas>
|
|
1048
181
|
),
|
|
1049
182
|
}
|