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 { 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> = {
|
|
@@ -11,780 +25,76 @@ const meta: Meta<typeof EmailIcon> = {
|
|
|
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 !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: #0a0a0a !important;
|
|
44
|
-
}
|
|
45
|
-
#storybook-docs {
|
|
46
|
-
background: #0a0a0a !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: white !important;
|
|
54
|
-
}
|
|
55
|
-
.sbdocs-p, .sbdocs-li {
|
|
56
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
57
|
-
}
|
|
58
|
-
.sbdocs-code {
|
|
59
|
-
background: rgba(255, 255, 255, 0.1) !important;
|
|
60
|
-
color: rgba(168, 85, 247, 1) !important;
|
|
61
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
62
|
-
}
|
|
63
|
-
.sbdocs-pre {
|
|
64
|
-
background: rgba(0, 0, 0, 0.4) !important;
|
|
65
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
66
|
-
}
|
|
67
|
-
.sbdocs-table {
|
|
68
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
69
|
-
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
70
|
-
}
|
|
71
|
-
.sbdocs-table th {
|
|
72
|
-
background: rgba(255, 255, 255, 0.05) !important;
|
|
73
|
-
color: white !important;
|
|
74
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
75
|
-
}
|
|
76
|
-
.sbdocs-table td {
|
|
77
|
-
color: rgba(255, 255, 255, 0.7) !important;
|
|
78
|
-
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
79
|
-
}
|
|
80
|
-
`}
|
|
81
|
-
</style>
|
|
82
|
-
|
|
83
|
-
<div className="min-h-screen bg-gradient-to-br from-gray-900 via-blue-900/20 to-gray-900">
|
|
84
|
-
{/* Header */}
|
|
85
|
-
<div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
|
|
86
|
-
<div className="absolute inset-0 bg-gradient-to-r from-blue-500/10 via-cyan-500/10 to-blue-500/10" />
|
|
87
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
88
|
-
<div className="!space-y-6 text-center">
|
|
89
|
-
<div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-blue-500/30 bg-gradient-to-br from-blue-500/20 to-cyan-500/20">
|
|
90
|
-
<EmailIcon className="h-12 w-12 text-blue-400" />
|
|
91
|
-
</div>
|
|
92
|
-
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
-
EmailIcon
|
|
94
|
-
</h1>
|
|
95
|
-
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
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-3xl font-bold text-blue-300">
|
|
106
|
-
Accessible
|
|
107
|
-
</div>
|
|
108
|
-
<div className="text-sm text-white/60">
|
|
109
|
-
Screen reader friendly
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
<div className="h-8 w-px bg-white/20" />
|
|
113
|
-
<div className="text-center">
|
|
114
|
-
<div className="text-3xl font-bold text-cyan-300">
|
|
115
|
-
Scalable
|
|
116
|
-
</div>
|
|
117
|
-
<div className="text-sm text-white/60">
|
|
118
|
-
Any size needed
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<div className="h-8 w-px bg-white/20" />
|
|
122
|
-
<div className="text-center">
|
|
123
|
-
<div className="text-3xl font-bold text-purple-300">
|
|
124
|
-
Flexible
|
|
125
|
-
</div>
|
|
126
|
-
<div className="text-sm text-white/60">
|
|
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-center text-3xl font-bold !text-white">
|
|
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-xl font-semibold !text-blue-300">
|
|
145
|
-
Basic Usage
|
|
146
|
-
</h3>
|
|
147
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
148
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
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-xl font-semibold !text-blue-300">
|
|
165
|
-
Live Preview
|
|
166
|
-
</h3>
|
|
167
|
-
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
168
|
-
<button className="flex items-center gap-3 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 transition-colors hover:bg-blue-500/20">
|
|
169
|
-
<EmailIcon className="h-5 w-5 text-blue-400" />
|
|
170
|
-
<span className="text-white">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-center text-3xl font-bold !text-white">
|
|
180
|
-
Props & Configuration
|
|
181
|
-
</h2>
|
|
182
|
-
|
|
183
|
-
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
184
|
-
<div className="bg-white/5 p-4">
|
|
185
|
-
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
186
|
-
</div>
|
|
187
|
-
<table className="!my-0 w-full">
|
|
188
|
-
<thead className="bg-white/5">
|
|
189
|
-
<tr className="border-b border-white/10">
|
|
190
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
191
|
-
Prop
|
|
192
|
-
</th>
|
|
193
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
194
|
-
Type
|
|
195
|
-
</th>
|
|
196
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
197
|
-
Default
|
|
198
|
-
</th>
|
|
199
|
-
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
200
|
-
Description
|
|
201
|
-
</th>
|
|
202
|
-
</tr>
|
|
203
|
-
</thead>
|
|
204
|
-
<tbody>
|
|
205
|
-
{" "}
|
|
206
|
-
<tr className="!bg-black/10">
|
|
207
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
208
|
-
withAccessibility
|
|
209
|
-
</td>
|
|
210
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
-
boolean
|
|
212
|
-
</td>
|
|
213
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
214
|
-
true
|
|
215
|
-
</td>
|
|
216
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
217
|
-
Whether to wrap the icon with accessibility feature
|
|
218
|
-
</td>
|
|
219
|
-
</tr>
|
|
220
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
221
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
222
|
-
height
|
|
223
|
-
</td>
|
|
224
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
225
|
-
number | string
|
|
226
|
-
</td>
|
|
227
|
-
<td className="px-6 py-4 text-sm !text-white/50">21</td>
|
|
228
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
229
|
-
Height of the icon in pixels
|
|
230
|
-
</td>
|
|
231
|
-
</tr>
|
|
232
|
-
<tr className="border-b border-white/5">
|
|
233
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
234
|
-
fill
|
|
235
|
-
</td>
|
|
236
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
237
|
-
string
|
|
238
|
-
</td>
|
|
239
|
-
<td className="px-6 py-4 text-sm !text-white/50">
|
|
240
|
-
currentColor
|
|
241
|
-
</td>
|
|
242
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
243
|
-
Fill color of the icon
|
|
244
|
-
</td>
|
|
245
|
-
</tr>
|
|
246
|
-
<tr className="border-b border-white/5 !bg-black/10">
|
|
247
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
248
|
-
className
|
|
249
|
-
</td>
|
|
250
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
251
|
-
string
|
|
252
|
-
</td>
|
|
253
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
254
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
255
|
-
CSS classes for styling
|
|
256
|
-
</td>
|
|
257
|
-
</tr>
|
|
258
|
-
<tr className="!bg-black/10">
|
|
259
|
-
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
260
|
-
...svgProps
|
|
261
|
-
</td>
|
|
262
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
263
|
-
SVGProps
|
|
264
|
-
</td>
|
|
265
|
-
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
266
|
-
<td className="px-6 py-4 text-sm !text-white/70">
|
|
267
|
-
All standard SVG element props
|
|
268
|
-
</td>
|
|
269
|
-
</tr>
|
|
270
|
-
</tbody>
|
|
271
|
-
</table>
|
|
272
|
-
</div>
|
|
273
|
-
</div>
|
|
274
|
-
|
|
275
|
-
{/* Size Variations */}
|
|
276
|
-
<div className="!space-y-8">
|
|
277
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
278
|
-
Size Variations
|
|
279
|
-
</h2>
|
|
280
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
281
|
-
<div className="!space-y-6">
|
|
282
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
283
|
-
<div className="!space-y-4">
|
|
284
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
285
|
-
Standard Sizes
|
|
286
|
-
</h3>
|
|
287
|
-
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
288
|
-
<div className="text-center">
|
|
289
|
-
<EmailIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
290
|
-
<span className="text-xs text-white/60">12px</span>
|
|
291
|
-
</div>
|
|
292
|
-
<div className="text-center">
|
|
293
|
-
<EmailIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
294
|
-
<span className="text-xs text-white/60">16px</span>
|
|
295
|
-
</div>
|
|
296
|
-
<div className="text-center">
|
|
297
|
-
<EmailIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
298
|
-
<span className="text-xs text-white/60">20px</span>
|
|
299
|
-
</div>
|
|
300
|
-
<div className="text-center">
|
|
301
|
-
<EmailIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
302
|
-
<span className="text-xs text-white/60">24px</span>
|
|
303
|
-
</div>
|
|
304
|
-
<div className="text-center">
|
|
305
|
-
<EmailIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
306
|
-
<span className="text-xs text-white/60">32px</span>
|
|
307
|
-
</div>
|
|
308
|
-
<div className="text-center">
|
|
309
|
-
<EmailIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
310
|
-
<span className="text-xs text-white/60">48px</span>
|
|
311
|
-
</div>
|
|
312
|
-
</div>
|
|
313
|
-
</div>
|
|
314
|
-
|
|
315
|
-
<div className="!space-y-4">
|
|
316
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
317
|
-
Code Example
|
|
318
|
-
</h3>
|
|
319
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
320
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
321
|
-
{`// Small (16px)
|
|
322
|
-
<EmailIcon className="h-4 w-4" />
|
|
323
|
-
|
|
324
|
-
// Medium (24px)
|
|
325
|
-
<EmailIcon className="h-6 w-6" />
|
|
326
|
-
|
|
327
|
-
// Large (32px)
|
|
328
|
-
<EmailIcon className="h-8 w-8" />
|
|
329
|
-
|
|
330
|
-
// Custom size
|
|
331
|
-
<EmailIcon width={40} height={40} />`}
|
|
332
|
-
</pre>
|
|
333
|
-
</div>
|
|
334
|
-
</div>
|
|
335
|
-
</div>
|
|
336
|
-
</div>
|
|
337
|
-
</div>
|
|
338
|
-
</div>
|
|
339
|
-
|
|
340
|
-
{/* Color Variations */}
|
|
341
|
-
<div className="!space-y-8">
|
|
342
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
343
|
-
Color Variations
|
|
344
|
-
</h2>
|
|
345
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
346
|
-
<div className="!space-y-4">
|
|
347
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
348
|
-
Semantic Colors
|
|
349
|
-
</h3>
|
|
350
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
351
|
-
<div className="flex items-center gap-4">
|
|
352
|
-
<EmailIcon className="h-6 w-6 text-blue-400" />
|
|
353
|
-
<div>
|
|
354
|
-
<div className="text-sm font-medium text-white">
|
|
355
|
-
Primary
|
|
356
|
-
</div>
|
|
357
|
-
<div className="text-xs text-white/60">
|
|
358
|
-
text-blue-400
|
|
359
|
-
</div>
|
|
360
|
-
</div>
|
|
361
|
-
</div>
|
|
362
|
-
<div className="flex items-center gap-4">
|
|
363
|
-
<EmailIcon className="h-6 w-6 text-green-400" />
|
|
364
|
-
<div>
|
|
365
|
-
<div className="text-sm font-medium text-white">
|
|
366
|
-
Success
|
|
367
|
-
</div>
|
|
368
|
-
<div className="text-xs text-white/60">
|
|
369
|
-
text-green-400
|
|
370
|
-
</div>
|
|
371
|
-
</div>
|
|
372
|
-
</div>
|
|
373
|
-
<div className="flex items-center gap-4">
|
|
374
|
-
<EmailIcon className="h-6 w-6 text-yellow-400" />
|
|
375
|
-
<div>
|
|
376
|
-
<div className="text-sm font-medium text-white">
|
|
377
|
-
Warning
|
|
378
|
-
</div>
|
|
379
|
-
<div className="text-xs text-white/60">
|
|
380
|
-
text-yellow-400
|
|
381
|
-
</div>
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
<div className="flex items-center gap-4">
|
|
385
|
-
<EmailIcon className="h-6 w-6 text-gray-400" />
|
|
386
|
-
<div>
|
|
387
|
-
<div className="text-sm font-medium text-white">
|
|
388
|
-
Neutral
|
|
389
|
-
</div>
|
|
390
|
-
<div className="text-xs text-white/60">
|
|
391
|
-
text-gray-400
|
|
392
|
-
</div>
|
|
393
|
-
</div>
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
</div>
|
|
397
|
-
|
|
398
|
-
<div className="!space-y-4">
|
|
399
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
400
|
-
Custom Colors
|
|
401
|
-
</h3>
|
|
402
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
403
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
404
|
-
{`// Using Tailwind classes
|
|
405
|
-
<EmailIcon className="h-6 w-6 text-blue-400" />
|
|
406
|
-
<EmailIcon className="h-6 w-6 text-green-500" />
|
|
407
|
-
|
|
408
|
-
// Using CSS custom properties
|
|
409
|
-
<EmailIcon
|
|
410
|
-
className="h-6 w-6"
|
|
411
|
-
style={{ color: 'var(--color-primary)' }}
|
|
412
|
-
/>
|
|
413
|
-
|
|
414
|
-
// Direct fill prop
|
|
415
|
-
<EmailIcon
|
|
416
|
-
width={24}
|
|
417
|
-
height={24}
|
|
418
|
-
fill="#3b82f6"
|
|
419
|
-
/>`}
|
|
420
|
-
</pre>
|
|
421
|
-
</div>
|
|
422
|
-
</div>
|
|
423
|
-
</div>
|
|
424
|
-
</div>
|
|
425
|
-
|
|
426
|
-
{/* Usage Examples */}
|
|
427
|
-
<div className="!space-y-8">
|
|
428
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
429
|
-
Usage Examples
|
|
430
|
-
</h2>
|
|
431
|
-
|
|
432
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
433
|
-
{/* Email Button */}
|
|
434
|
-
<div className="!space-y-4">
|
|
435
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
436
|
-
Email Actions
|
|
437
|
-
</h3>
|
|
438
|
-
<div className="!space-y-4">
|
|
439
|
-
<div className="flex gap-4">
|
|
440
|
-
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
441
|
-
<EmailIcon className="h-4 w-4" />
|
|
442
|
-
Send Email
|
|
443
|
-
</button>
|
|
444
|
-
<button className="flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/20 px-3 py-2 text-green-200 transition-colors hover:bg-green-500/30">
|
|
445
|
-
<EmailIcon className="h-4 w-4" />
|
|
446
|
-
Compose
|
|
447
|
-
</button>
|
|
448
|
-
</div>
|
|
449
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
450
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
451
|
-
{`// Primary email button
|
|
452
|
-
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
453
|
-
<EmailIcon className="h-4 w-4" />
|
|
454
|
-
Send Email
|
|
455
|
-
</button>
|
|
456
|
-
|
|
457
|
-
// Compose button
|
|
458
|
-
<button className="flex items-center gap-2 bg-green-500/20 border border-green-500/30 px-3 py-2 rounded-lg">
|
|
459
|
-
<EmailIcon className="h-4 w-4" />
|
|
460
|
-
Compose
|
|
461
|
-
</button>`}
|
|
462
|
-
</pre>
|
|
463
|
-
</div>
|
|
464
|
-
</div>
|
|
465
|
-
</div>
|
|
466
|
-
|
|
467
|
-
{/* Contact Card */}
|
|
468
|
-
<div className="!space-y-4">
|
|
469
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
470
|
-
Contact Information
|
|
471
|
-
</h3>
|
|
472
|
-
<div className="!space-y-4">
|
|
473
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
474
|
-
<div className="flex items-center justify-between">
|
|
475
|
-
<div className="flex items-center gap-3">
|
|
476
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-blue-500/20">
|
|
477
|
-
<EmailIcon className="h-5 w-5 text-blue-400" />
|
|
478
|
-
</div>
|
|
479
|
-
<div>
|
|
480
|
-
<div className="text-sm font-medium text-white">
|
|
481
|
-
john@example.com
|
|
482
|
-
</div>
|
|
483
|
-
<div className="text-xs text-white/60">
|
|
484
|
-
Primary email address
|
|
485
|
-
</div>
|
|
486
|
-
</div>
|
|
487
|
-
</div>
|
|
488
|
-
<button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-blue-500/20 hover:text-blue-400">
|
|
489
|
-
<EmailIcon className="h-4 w-4" />
|
|
490
|
-
</button>
|
|
491
|
-
</div>
|
|
492
|
-
</div>
|
|
493
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
494
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
495
|
-
{`<div className="flex items-center justify-between">
|
|
496
|
-
<div className="flex items-center gap-3">
|
|
497
|
-
<div className="flex h-10 w-10 items-center justify-center rounded-lg bg-blue-500/20">
|
|
498
|
-
<EmailIcon className="h-5 w-5 text-blue-400" />
|
|
499
|
-
</div>
|
|
500
|
-
<div>
|
|
501
|
-
<div className="text-sm font-medium text-white">john@example.com</div>
|
|
502
|
-
<div className="text-xs text-white/60">Primary email address</div>
|
|
503
|
-
</div>
|
|
504
|
-
</div>
|
|
505
|
-
<button className="p-2 rounded-lg text-gray-400 hover:bg-blue-500/20 hover:text-blue-400">
|
|
506
|
-
<EmailIcon className="h-4 w-4" />
|
|
507
|
-
</button>
|
|
508
|
-
</div>`}
|
|
509
|
-
</pre>
|
|
510
|
-
</div>
|
|
511
|
-
</div>
|
|
512
|
-
</div>
|
|
513
|
-
|
|
514
|
-
{/* Newsletter Card */}
|
|
515
|
-
<div className="!space-y-4">
|
|
516
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
517
|
-
Newsletter Signup
|
|
518
|
-
</h3>
|
|
519
|
-
<div className="!space-y-4">
|
|
520
|
-
<div className="rounded-lg border border-blue-500/20 bg-blue-500/5 p-6">
|
|
521
|
-
<div className="flex items-start gap-4">
|
|
522
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
523
|
-
<EmailIcon className="h-6 w-6 text-blue-400" />
|
|
524
|
-
</div>
|
|
525
|
-
<div className="flex-1">
|
|
526
|
-
<h4 className="mb-2 font-medium !text-white">
|
|
527
|
-
Stay Updated
|
|
528
|
-
</h4>
|
|
529
|
-
<p className="mb-4 text-sm !text-white/70">
|
|
530
|
-
Subscribe to our newsletter for the latest updates
|
|
531
|
-
and insights.
|
|
532
|
-
</p>
|
|
533
|
-
<div className="flex gap-3">
|
|
534
|
-
<input
|
|
535
|
-
className="flex-1 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-sm text-white placeholder-white/50"
|
|
536
|
-
placeholder="Enter your email"
|
|
537
|
-
/>
|
|
538
|
-
<button className="rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-sm text-blue-200">
|
|
539
|
-
Subscribe
|
|
540
|
-
</button>
|
|
541
|
-
</div>
|
|
542
|
-
</div>
|
|
543
|
-
</div>
|
|
544
|
-
</div>
|
|
545
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
546
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
547
|
-
{`<div className="border border-blue-500/20 bg-blue-500/5 p-6 rounded-lg">
|
|
548
|
-
<div className="flex items-start gap-4">
|
|
549
|
-
<div className="flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
550
|
-
<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" />
|
|
551
50
|
</div>
|
|
552
|
-
<div className="flex-1">
|
|
553
|
-
<h4 className="font-medium text-white mb-2">Stay Updated</h4>
|
|
554
|
-
<p className="text-sm text-white/70 mb-4">
|
|
555
|
-
Subscribe to our newsletter for the latest updates.
|
|
556
|
-
</p>
|
|
557
|
-
{/* Input and button */}
|
|
558
|
-
</div>
|
|
559
|
-
</div>
|
|
560
|
-
</div>`}
|
|
561
|
-
</pre>
|
|
562
|
-
</div>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
|
|
566
|
-
{/* Email Status */}
|
|
567
|
-
<div className="!space-y-4">
|
|
568
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
569
|
-
Email Status
|
|
570
|
-
</h3>
|
|
571
|
-
<div className="!space-y-4">
|
|
572
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
|
|
573
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
574
|
-
<EmailIcon className="h-4 w-4 text-blue-400" />
|
|
575
|
-
<span className="text-white">Inbox (5)</span>
|
|
576
|
-
<span className="ml-auto h-2 w-2 rounded-full bg-blue-400"></span>
|
|
577
|
-
</div>
|
|
578
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
579
|
-
<EmailIcon className="h-4 w-4 text-green-400" />
|
|
580
|
-
<span className="text-white">Sent</span>
|
|
581
|
-
</div>
|
|
582
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
583
|
-
<EmailIcon className="h-4 w-4 text-yellow-400" />
|
|
584
|
-
<span className="text-white">Drafts (2)</span>
|
|
585
|
-
<span className="ml-auto h-2 w-2 rounded-full bg-yellow-400"></span>
|
|
586
|
-
</div>
|
|
587
|
-
</div>
|
|
588
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
589
|
-
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
590
|
-
{`// Email status indicators
|
|
591
|
-
<div className="flex items-center gap-3 px-3 py-2 text-sm rounded">
|
|
592
|
-
<EmailIcon className="h-4 w-4 text-blue-400" />
|
|
593
|
-
<span className="text-white">Inbox (5)</span>
|
|
594
|
-
<span className="ml-auto h-2 w-2 rounded-full bg-blue-400"></span>
|
|
595
|
-
</div>`}
|
|
596
|
-
</pre>
|
|
597
|
-
</div>
|
|
598
|
-
</div>
|
|
599
|
-
</div>
|
|
600
|
-
</div>
|
|
601
|
-
</div>
|
|
602
|
-
|
|
603
|
-
{/* Accessibility */}
|
|
604
|
-
<div className="!space-y-8">
|
|
605
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
606
|
-
Accessibility Features
|
|
607
|
-
</h2>
|
|
608
|
-
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
609
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
610
|
-
<h3 className="text-lg font-semibold !text-green-300">
|
|
611
|
-
✅ Built-in Features
|
|
612
|
-
</h3>
|
|
613
|
-
<ul className="!space-y-2 text-sm !text-white/70">
|
|
614
|
-
<li className="!text-white/70">
|
|
615
|
-
Uses Radix UI AccessibleIcon wrapper
|
|
616
|
-
</li>
|
|
617
|
-
<li className="!text-white/70">
|
|
618
|
-
Provides screen reader label "Email icon"
|
|
619
|
-
</li>
|
|
620
|
-
<li className="!text-white/70">
|
|
621
|
-
Supports keyboard navigation when interactive
|
|
622
|
-
</li>
|
|
623
|
-
<li className="!text-white/70">
|
|
624
|
-
Maintains proper color contrast ratios
|
|
625
|
-
</li>
|
|
626
|
-
<li className="!text-white/70">
|
|
627
|
-
Scales with user's font size preferences
|
|
628
|
-
</li>
|
|
629
|
-
</ul>
|
|
630
|
-
</div>
|
|
631
|
-
|
|
632
|
-
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
633
|
-
<h3 className="text-lg font-semibold !text-blue-300">
|
|
634
|
-
💡 Best Practices
|
|
635
|
-
</h3>
|
|
636
|
-
<ul className="!space-y-2 text-sm text-white/70">
|
|
637
|
-
<li className="!text-white/70">
|
|
638
|
-
Always pair with descriptive text for actions
|
|
639
|
-
</li>
|
|
640
|
-
<li className="!text-white/70">
|
|
641
|
-
Use consistent colors for email states
|
|
642
|
-
</li>
|
|
643
|
-
<li className="!text-white/70">
|
|
644
|
-
Ensure sufficient color contrast on backgrounds
|
|
645
|
-
</li>
|
|
646
|
-
<li className="!text-white/70">
|
|
647
|
-
Add focus states for interactive elements
|
|
648
|
-
</li>
|
|
649
|
-
<li className="!text-white/70">
|
|
650
|
-
Consider unread indicators for clarity
|
|
651
|
-
</li>
|
|
652
|
-
</ul>
|
|
653
|
-
</div>
|
|
654
|
-
</div>
|
|
655
|
-
|
|
656
|
-
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
657
|
-
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
658
|
-
Custom Accessibility Label
|
|
659
|
-
</h3>
|
|
660
|
-
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
661
|
-
<div className="rounded-lg bg-black/40 p-4">
|
|
662
|
-
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
663
|
-
{`// Custom implementation with specific label
|
|
664
|
-
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
665
|
-
|
|
666
|
-
function CustomEmailIcon({ label = "Email", ...props }) {
|
|
667
|
-
return (
|
|
668
|
-
<AccessibleIcon label={label}>
|
|
669
|
-
<EmailIcon {...props} />
|
|
670
|
-
</AccessibleIcon>
|
|
671
51
|
)
|
|
672
|
-
}
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
<
|
|
676
|
-
label="Send email to customer"
|
|
677
|
-
className="h-4 w-4 text-blue-400"
|
|
678
|
-
/>`}
|
|
679
|
-
</pre>
|
|
680
|
-
</div>
|
|
681
|
-
<div className="!space-y-4">
|
|
682
|
-
<p className="text-sm !text-white/70">
|
|
683
|
-
For specific contexts, you can wrap the EmailIcon with a
|
|
684
|
-
custom AccessibleIcon component that provides more
|
|
685
|
-
descriptive labels for email functionality and
|
|
686
|
-
messaging.
|
|
687
|
-
</p>
|
|
688
|
-
<div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
|
|
689
|
-
<div className="flex items-center gap-2 text-sm text-blue-200">
|
|
690
|
-
<EmailIcon className="h-4 w-4" />
|
|
691
|
-
<span>
|
|
692
|
-
This approach gives screen readers more context
|
|
693
|
-
</span>
|
|
694
|
-
</div>
|
|
695
|
-
</div>
|
|
696
|
-
</div>
|
|
697
|
-
</div>
|
|
698
|
-
</div>
|
|
699
|
-
</div>
|
|
700
|
-
|
|
701
|
-
{/* Related Icons */}
|
|
702
|
-
<div className="!space-y-8">
|
|
703
|
-
<h2 className="text-center text-3xl font-bold !text-white">
|
|
704
|
-
Related Icons
|
|
705
|
-
</h2>
|
|
706
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
707
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
708
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
709
|
-
<span className="text-2xl">📨</span>
|
|
710
|
-
</div>
|
|
711
|
-
<div>
|
|
712
|
-
<div className="font-medium text-white">InboxIcon</div>
|
|
713
|
-
<div className="text-xs text-white/60">Email inbox</div>
|
|
714
|
-
</div>
|
|
715
|
-
</div>
|
|
716
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
717
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
718
|
-
<span className="text-2xl">💬</span>
|
|
719
|
-
</div>
|
|
720
|
-
<div>
|
|
721
|
-
<div className="font-medium text-white">MessageIcon</div>
|
|
722
|
-
<div className="text-xs text-white/60">Chat messages</div>
|
|
723
|
-
</div>
|
|
724
|
-
</div>
|
|
725
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
726
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
727
|
-
<span className="text-2xl">📧</span>
|
|
728
|
-
</div>
|
|
729
|
-
<div>
|
|
730
|
-
<div className="font-medium text-white">SendIcon</div>
|
|
731
|
-
<div className="text-xs text-white/60">Send actions</div>
|
|
732
|
-
</div>
|
|
733
|
-
</div>
|
|
734
|
-
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
735
|
-
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
736
|
-
<span className="text-2xl">📮</span>
|
|
737
|
-
</div>
|
|
738
|
-
<div>
|
|
739
|
-
<div className="font-medium text-white">MailboxIcon</div>
|
|
740
|
-
<div className="text-xs text-white/60">Mail delivery</div>
|
|
741
|
-
</div>
|
|
742
|
-
</div>
|
|
743
|
-
</div>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<div className="flex items-center gap-2">
|
|
55
|
+
<EmailIcon className="text-fm-icon-active h-6 w-6" />
|
|
744
56
|
</div>
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
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
|
+
/>
|
|
764
86
|
),
|
|
765
87
|
},
|
|
766
88
|
},
|
|
767
89
|
tags: ["autodocs"],
|
|
768
90
|
argTypes: {
|
|
769
|
-
|
|
770
|
-
control:
|
|
771
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
772
94
|
},
|
|
773
95
|
withAccessibility: {
|
|
774
96
|
control: "boolean",
|
|
775
|
-
description: "
|
|
776
|
-
},
|
|
777
|
-
height: {
|
|
778
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
779
|
-
description: "Height of the icon in pixels",
|
|
780
|
-
},
|
|
781
|
-
fill: {
|
|
782
|
-
control: "color",
|
|
783
|
-
description: "Fill color of the icon",
|
|
784
|
-
},
|
|
785
|
-
className: {
|
|
786
|
-
control: "text",
|
|
787
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
788
98
|
},
|
|
789
99
|
},
|
|
790
100
|
}
|
|
@@ -792,212 +102,81 @@ function CustomEmailIcon({ label = "Email", ...props }) {
|
|
|
792
102
|
export default meta
|
|
793
103
|
type Story = StoryObj<typeof EmailIcon>
|
|
794
104
|
|
|
795
|
-
// Story parameters for consistent dark theme
|
|
796
|
-
const storyParameters = {
|
|
797
|
-
backgrounds: {
|
|
798
|
-
default: "dark",
|
|
799
|
-
values: [
|
|
800
|
-
{ name: "dark", value: "#0a0a0a" },
|
|
801
|
-
{ name: "darker", value: "#000000" },
|
|
802
|
-
],
|
|
803
|
-
},
|
|
804
|
-
}
|
|
805
|
-
|
|
806
105
|
export const Default: Story = {
|
|
807
106
|
args: {
|
|
808
|
-
|
|
809
|
-
height: 21,
|
|
810
|
-
className: "text-blue-400",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
811
108
|
withAccessibility: true,
|
|
812
109
|
},
|
|
813
|
-
parameters: storyParameters,
|
|
814
110
|
render: (args) => (
|
|
815
|
-
<
|
|
111
|
+
<IconDefaultCanvas>
|
|
816
112
|
<EmailIcon {...args} />
|
|
817
|
-
</
|
|
113
|
+
</IconDefaultCanvas>
|
|
818
114
|
),
|
|
819
115
|
}
|
|
820
116
|
|
|
821
117
|
export const SizeVariations: Story = {
|
|
822
|
-
|
|
823
|
-
...storyParameters,
|
|
824
|
-
docs: {
|
|
825
|
-
description: {
|
|
826
|
-
story:
|
|
827
|
-
"EmailIcon in different sizes, from small UI elements to large email displays.",
|
|
828
|
-
},
|
|
829
|
-
},
|
|
830
|
-
},
|
|
831
|
-
render: () => (
|
|
832
|
-
<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">
|
|
833
|
-
<div className="text-center">
|
|
834
|
-
<EmailIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
835
|
-
<span className="text-xs text-white/60">12px</span>
|
|
836
|
-
</div>
|
|
837
|
-
<div className="text-center">
|
|
838
|
-
<EmailIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
839
|
-
<span className="text-xs text-white/60">16px</span>
|
|
840
|
-
</div>
|
|
841
|
-
<div className="text-center">
|
|
842
|
-
<EmailIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
843
|
-
<span className="text-xs text-white/60">20px</span>
|
|
844
|
-
</div>
|
|
845
|
-
<div className="text-center">
|
|
846
|
-
<EmailIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
847
|
-
<span className="text-xs text-white/60">24px</span>
|
|
848
|
-
</div>
|
|
849
|
-
<div className="text-center">
|
|
850
|
-
<EmailIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
851
|
-
<span className="text-xs text-white/60">32px</span>
|
|
852
|
-
</div>
|
|
853
|
-
<div className="text-center">
|
|
854
|
-
<EmailIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
855
|
-
<span className="text-xs text-white/60">48px</span>
|
|
856
|
-
</div>
|
|
857
|
-
</div>
|
|
858
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={EmailIcon} />,
|
|
859
119
|
}
|
|
860
120
|
|
|
861
121
|
export const ColorVariations: Story = {
|
|
862
|
-
|
|
863
|
-
...storyParameters,
|
|
864
|
-
docs: {
|
|
865
|
-
description: {
|
|
866
|
-
story:
|
|
867
|
-
"EmailIcon in different semantic colors for various email contexts and states.",
|
|
868
|
-
},
|
|
869
|
-
},
|
|
870
|
-
},
|
|
871
|
-
render: () => (
|
|
872
|
-
<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">
|
|
873
|
-
<div className="text-center">
|
|
874
|
-
<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">
|
|
875
|
-
<EmailIcon className="h-8 w-8 text-blue-400" />
|
|
876
|
-
</div>
|
|
877
|
-
<div className="text-sm font-medium text-white">Primary</div>
|
|
878
|
-
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
879
|
-
</div>
|
|
880
|
-
<div className="text-center">
|
|
881
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
|
|
882
|
-
<EmailIcon className="h-8 w-8 text-green-400" />
|
|
883
|
-
</div>
|
|
884
|
-
<div className="text-sm font-medium text-white">Success</div>
|
|
885
|
-
<div className="text-xs text-green-400">text-green-400</div>
|
|
886
|
-
</div>
|
|
887
|
-
<div className="text-center">
|
|
888
|
-
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-yellow-500/30 bg-yellow-500/20">
|
|
889
|
-
<EmailIcon className="h-8 w-8 text-yellow-400" />
|
|
890
|
-
</div>
|
|
891
|
-
<div className="text-sm font-medium text-white">Warning</div>
|
|
892
|
-
<div className="text-xs text-yellow-400">text-yellow-400</div>
|
|
893
|
-
</div>
|
|
894
|
-
<div className="text-center">
|
|
895
|
-
<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">
|
|
896
|
-
<EmailIcon className="h-8 w-8 text-gray-400" />
|
|
897
|
-
</div>
|
|
898
|
-
<div className="text-sm font-medium text-white">Neutral</div>
|
|
899
|
-
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
900
|
-
</div>
|
|
901
|
-
</div>
|
|
902
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={EmailIcon} />,
|
|
903
123
|
}
|
|
904
124
|
|
|
905
125
|
export const UsageExamples: Story = {
|
|
906
|
-
parameters: {
|
|
907
|
-
...storyParameters,
|
|
908
|
-
docs: {
|
|
909
|
-
description: {
|
|
910
|
-
story:
|
|
911
|
-
"Real-world usage examples showing EmailIcon in different email and communication contexts.",
|
|
912
|
-
},
|
|
913
|
-
},
|
|
914
|
-
},
|
|
915
126
|
render: () => (
|
|
916
|
-
<
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
Send Email
|
|
924
|
-
</button>
|
|
925
|
-
<button className="flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/20 px-3 py-2 text-green-200 transition-colors hover:bg-green-500/30">
|
|
926
|
-
<EmailIcon className="h-4 w-4" />
|
|
927
|
-
Compose
|
|
928
|
-
</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>
|
|
929
134
|
</div>
|
|
930
|
-
</
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
</div>
|
|
948
|
-
</div>
|
|
949
|
-
</div>
|
|
950
|
-
<button className="rounded-lg p-2 text-gray-400 transition-colors hover:bg-blue-500/20 hover:text-blue-400">
|
|
951
|
-
<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>
|
|
952
152
|
</button>
|
|
953
|
-
|
|
153
|
+
))}
|
|
954
154
|
</div>
|
|
955
|
-
</
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
<span className="ml-auto h-2 w-2 rounded-full bg-blue-400"></span>
|
|
965
|
-
</div>
|
|
966
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
967
|
-
<EmailIcon className="h-4 w-4 text-green-400" />
|
|
968
|
-
<span className="text-white">Sent</span>
|
|
969
|
-
</div>
|
|
970
|
-
<div className="flex items-center gap-3 rounded px-3 py-2 text-sm">
|
|
971
|
-
<EmailIcon className="h-4 w-4 text-yellow-400" />
|
|
972
|
-
<span className="text-white">Drafts (2)</span>
|
|
973
|
-
<span className="ml-auto h-2 w-2 rounded-full bg-yellow-400"></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>
|
|
974
164
|
</div>
|
|
165
|
+
<div className="bg-fm-icon-positive h-5 w-9 rounded-full" />
|
|
975
166
|
</div>
|
|
976
|
-
</
|
|
977
|
-
</
|
|
167
|
+
</IconUsageSection>
|
|
168
|
+
</IconUsageCanvas>
|
|
978
169
|
),
|
|
979
170
|
}
|
|
980
171
|
|
|
981
172
|
export const Playground: Story = {
|
|
982
|
-
parameters: {
|
|
983
|
-
...storyParameters,
|
|
984
|
-
docs: {
|
|
985
|
-
description: {
|
|
986
|
-
story:
|
|
987
|
-
"Interactive playground to experiment with different EmailIcon configurations.",
|
|
988
|
-
},
|
|
989
|
-
},
|
|
990
|
-
},
|
|
991
173
|
args: {
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
className: "text-blue-400",
|
|
174
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
175
|
+
withAccessibility: true,
|
|
995
176
|
},
|
|
996
177
|
render: (args) => (
|
|
997
|
-
<
|
|
998
|
-
<
|
|
999
|
-
|
|
1000
|
-
</div>
|
|
1001
|
-
</div>
|
|
178
|
+
<IconPlaygroundCanvas>
|
|
179
|
+
<EmailIcon {...args} />
|
|
180
|
+
</IconPlaygroundCanvas>
|
|
1002
181
|
),
|
|
1003
182
|
}
|