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,14 +1,27 @@
|
|
|
1
1
|
import React from "react"
|
|
2
2
|
import type { Meta, StoryObj } from "@storybook/react-vite"
|
|
3
3
|
|
|
4
|
+
import { BubbleCheckIcon } from "src/ui/icons/bubble-check-icon"
|
|
5
|
+
import { BubbleSparkleIcon } from "src/ui/icons/bubble-sparkle-icon"
|
|
6
|
+
import { EmailIcon } from "src/ui/icons/email-icon"
|
|
7
|
+
import { PaperPlaneIcon } from "src/ui/icons/paper-plane-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 { MessageIcon } from "."
|
|
5
|
-
import { ArrowRightUpIcon } from "../arrow-right-up-icon"
|
|
6
19
|
|
|
7
20
|
const meta: Meta<typeof MessageIcon> = {
|
|
8
21
|
title: "Icons/MessageIcon",
|
|
9
22
|
component: MessageIcon,
|
|
10
23
|
parameters: {
|
|
11
|
-
layout: "
|
|
24
|
+
layout: "fullscreen",
|
|
12
25
|
backgrounds: {
|
|
13
26
|
default: "dark",
|
|
14
27
|
values: [
|
|
@@ -18,445 +31,70 @@ const meta: Meta<typeof MessageIcon> = {
|
|
|
18
31
|
],
|
|
19
32
|
},
|
|
20
33
|
docs: {
|
|
21
|
-
description: {
|
|
22
|
-
component:
|
|
23
|
-
"A message or chat bubble icon, ideal for messaging, comments, and communication interfaces.",
|
|
24
|
-
},
|
|
25
|
-
canvas: {
|
|
26
|
-
sourceState: "shown",
|
|
27
|
-
},
|
|
28
34
|
page: () => (
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color: var(--color-fm-icon-active) !important; }
|
|
39
|
-
.sbdocs-p, .sbdocs-li { color: var(--color-fm-secondary) !important; }
|
|
40
|
-
.sbdocs-code { background: var(--color-fm-surface-secondary) !important; color: var(--color-fm-secondary-500) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
41
|
-
.sbdocs-pre { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
42
|
-
.sbdocs-table { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
43
|
-
.sbdocs-table th { background: var(--color-fm-surface-secondary) !important; color: var(--color-fm-icon-active) !important; border-bottom: 1px solid var(--color-fm-divider-secondary) !important; }
|
|
44
|
-
.sbdocs-table td { color: var(--color-fm-secondary) !important; border-bottom: 1px solid var(--color-fm-divider-tertiary) !important; }
|
|
45
|
-
`}</style>
|
|
46
|
-
<div className="bg-fm-surface-primary min-h-screen">
|
|
47
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
|
|
48
|
-
<div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
|
|
49
|
-
<div className="relative !mx-auto max-w-7xl px-6 py-16">
|
|
50
|
-
<div className="!space-y-6 text-center">
|
|
51
|
-
<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">
|
|
52
|
-
<MessageIcon className="text-fm-icon-info h-12 w-12" />
|
|
53
|
-
</div>
|
|
54
|
-
<h1 className="text-fm-icon-active! text-5xl font-bold">
|
|
55
|
-
MessageIcon
|
|
56
|
-
</h1>
|
|
57
|
-
<p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
|
|
58
|
-
A message or chat bubble icon, ideal for messaging,
|
|
59
|
-
comments, and communication interfaces.
|
|
60
|
-
</p>
|
|
61
|
-
<div className="mx-auto flex items-center justify-center gap-8">
|
|
62
|
-
<div className="text-center">
|
|
63
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
64
|
-
Chat
|
|
65
|
-
</div>
|
|
66
|
-
<div className="text-fm-icon-active/80 text-sm">
|
|
67
|
-
Conversations
|
|
68
|
-
</div>
|
|
69
|
-
</div>
|
|
70
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
71
|
-
<div className="text-center">
|
|
72
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
73
|
-
Comments
|
|
74
|
-
</div>
|
|
75
|
-
<div className="text-fm-icon-active/80 text-sm">
|
|
76
|
-
Feedback
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
<div className="bg-fm-divider-primary h-8 w-px" />
|
|
80
|
-
<div className="text-center">
|
|
81
|
-
<div className="text-fm-icon-info text-3xl font-bold">
|
|
82
|
-
Accessible
|
|
83
|
-
</div>
|
|
84
|
-
<div className="text-fm-icon-active/80 text-sm">
|
|
85
|
-
Screen reader support
|
|
86
|
-
</div>
|
|
87
|
-
</div>
|
|
88
|
-
</div>
|
|
89
|
-
</div>
|
|
90
|
-
</div>
|
|
91
|
-
</div>
|
|
92
|
-
<div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
|
|
93
|
-
<div className="!space-y-8">
|
|
94
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
95
|
-
Key Features
|
|
96
|
-
</h3>
|
|
97
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
98
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
99
|
-
<div className="text-3xl">💬</div>
|
|
100
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
101
|
-
Message Bubble
|
|
102
|
-
</h4>
|
|
103
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
104
|
-
Represents chat, comments, and communication
|
|
105
|
-
</p>
|
|
106
|
-
</div>
|
|
107
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
108
|
-
<div className="text-3xl">♿</div>
|
|
109
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
110
|
-
Accessibility
|
|
111
|
-
</h4>
|
|
112
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
113
|
-
Built with screen reader support
|
|
114
|
-
</p>
|
|
115
|
-
</div>
|
|
116
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
117
|
-
<div className="text-3xl">🎨</div>
|
|
118
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
119
|
-
Customizable
|
|
120
|
-
</h4>
|
|
121
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
122
|
-
Flexible styling options
|
|
123
|
-
</p>
|
|
124
|
-
</div>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
<div className="!space-y-8">
|
|
128
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
129
|
-
API Reference
|
|
130
|
-
</h3>
|
|
131
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
|
|
132
|
-
<div className="bg-fm-surface-secondary p-4">
|
|
133
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
134
|
-
Props
|
|
135
|
-
</h4>
|
|
136
|
-
</div>
|
|
137
|
-
<table className="!my-0 w-full">
|
|
138
|
-
<thead className="bg-fm-surface-secondary">
|
|
139
|
-
<tr className="border-fm-divider-secondary border-b">
|
|
140
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
141
|
-
Prop
|
|
142
|
-
</th>
|
|
143
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
144
|
-
Type
|
|
145
|
-
</th>
|
|
146
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
147
|
-
Default
|
|
148
|
-
</th>
|
|
149
|
-
<th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
|
|
150
|
-
Description
|
|
151
|
-
</th>
|
|
152
|
-
</tr>
|
|
153
|
-
</thead>
|
|
154
|
-
<tbody>
|
|
155
|
-
{" "}
|
|
156
|
-
<tr className="bg-fm-surface-secondary!">
|
|
157
|
-
<td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
|
|
158
|
-
withAccessibility
|
|
159
|
-
</td>
|
|
160
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
161
|
-
boolean
|
|
162
|
-
</td>
|
|
163
|
-
<td className="text-fm-placeholder! px-6 py-4 text-sm">
|
|
164
|
-
true
|
|
165
|
-
</td>
|
|
166
|
-
<td className="text-fm-secondary! px-6 py-4 text-sm">
|
|
167
|
-
Whether to wrap the icon with accessibility feature
|
|
168
|
-
</td>
|
|
169
|
-
</tr>
|
|
170
|
-
</tbody>
|
|
171
|
-
</table>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
<div className="!space-y-8">
|
|
175
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
176
|
-
Usage Examples
|
|
177
|
-
</h3>
|
|
178
|
-
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
179
|
-
<div className="space-y-4">
|
|
180
|
-
<h4 className="text-fm-icon-info! text-lg font-semibold">
|
|
181
|
-
Basic Usage
|
|
182
|
-
</h4>
|
|
183
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
184
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">{`import { MessageIcon } from "@/components/ui/icons/message-icon"
|
|
35
|
+
<AuralIconDocsPage
|
|
36
|
+
accentToken="info"
|
|
37
|
+
features={[
|
|
38
|
+
{ title: "Messaging", description: "Chat or comment bubble" },
|
|
39
|
+
{ title: "Feedback", description: "User comment or review" },
|
|
40
|
+
{ title: "Accessible", description: "ARIA-ready by default" },
|
|
41
|
+
]}
|
|
42
|
+
quickStart={{
|
|
43
|
+
codeExample: `import { MessageIcon } from "src/ui/icons/message-icon"
|
|
185
44
|
|
|
186
|
-
function
|
|
45
|
+
function CommentsButton() {
|
|
187
46
|
return (
|
|
188
47
|
<button className="flex items-center gap-2">
|
|
189
|
-
<MessageIcon className="h-
|
|
190
|
-
<span>
|
|
48
|
+
<MessageIcon className="h-5 w-5 text-fm-icon-active" />
|
|
49
|
+
<span>Comments</span>
|
|
191
50
|
</button>
|
|
192
51
|
)
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
<div className="text-center">
|
|
228
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
229
|
-
<span className="text-fm-tertiary text-xs">
|
|
230
|
-
16px
|
|
231
|
-
</span>
|
|
232
|
-
</div>
|
|
233
|
-
<div className="text-center">
|
|
234
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
235
|
-
<span className="text-fm-tertiary text-xs">
|
|
236
|
-
20px
|
|
237
|
-
</span>
|
|
238
|
-
</div>
|
|
239
|
-
<div className="text-center">
|
|
240
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
241
|
-
<span className="text-fm-tertiary text-xs">
|
|
242
|
-
24px
|
|
243
|
-
</span>
|
|
244
|
-
</div>
|
|
245
|
-
<div className="text-center">
|
|
246
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
247
|
-
<span className="text-fm-tertiary text-xs">
|
|
248
|
-
32px
|
|
249
|
-
</span>
|
|
250
|
-
</div>
|
|
251
|
-
<div className="text-center">
|
|
252
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
253
|
-
<span className="text-fm-tertiary text-xs">
|
|
254
|
-
48px
|
|
255
|
-
</span>
|
|
256
|
-
</div>
|
|
257
|
-
</div>
|
|
258
|
-
</div>
|
|
259
|
-
<div className="!space-y-4">
|
|
260
|
-
<h3 className="text-fm-icon-info! text-lg font-semibold">
|
|
261
|
-
Code Example
|
|
262
|
-
</h3>
|
|
263
|
-
<div className="bg-fm-surface-secondary rounded-lg p-4">
|
|
264
|
-
<pre className="text-fm-icon-positive! overflow-x-auto text-sm">{`// Small (16px)
|
|
265
|
-
<MessageIcon className="h-4 w-4" />
|
|
266
|
-
|
|
267
|
-
// Medium (24px)
|
|
268
|
-
<MessageIcon className="h-6 w-6" />
|
|
269
|
-
|
|
270
|
-
// Large (32px)
|
|
271
|
-
<MessageIcon className="h-8 w-8" />
|
|
272
|
-
|
|
273
|
-
// Custom size
|
|
274
|
-
<MessageIcon width={40} height={40} />`}</pre>
|
|
275
|
-
</div>
|
|
276
|
-
</div>
|
|
277
|
-
</div>
|
|
278
|
-
</div>
|
|
279
|
-
</div>
|
|
280
|
-
</div>
|
|
281
|
-
<div className="!space-y-8">
|
|
282
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
283
|
-
Common Use Cases
|
|
284
|
-
</h3>
|
|
285
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
|
|
286
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
287
|
-
<div className="text-2xl">💬</div>
|
|
288
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
289
|
-
Messaging
|
|
290
|
-
</h4>
|
|
291
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
292
|
-
Chat and messaging UIs
|
|
293
|
-
</p>
|
|
294
|
-
</div>
|
|
295
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
296
|
-
<div className="text-2xl">🗨️</div>
|
|
297
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
298
|
-
Comments
|
|
299
|
-
</h4>
|
|
300
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
301
|
-
Comment sections and feedback
|
|
302
|
-
</p>
|
|
303
|
-
</div>
|
|
304
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
|
|
305
|
-
<div className="text-2xl">📱</div>
|
|
306
|
-
<h4 className="text-fm-icon-active! text-lg font-semibold">
|
|
307
|
-
Mobile Apps
|
|
308
|
-
</h4>
|
|
309
|
-
<p className="text-fm-icon-active!/80 text-sm">
|
|
310
|
-
Communication features in apps
|
|
311
|
-
</p>
|
|
312
|
-
</div>
|
|
313
|
-
</div>
|
|
314
|
-
</div>
|
|
315
|
-
<div className="!space-y-8">
|
|
316
|
-
<h3 className="text-fm-icon-active! text-center text-2xl font-bold">
|
|
317
|
-
Best Practices
|
|
318
|
-
</h3>
|
|
319
|
-
<div className="grid grid-cols-1 gap-6 md:grid-cols-2">
|
|
320
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
321
|
-
<h4 className="text-fm-icon-positive! text-lg font-semibold">
|
|
322
|
-
✅ Do
|
|
323
|
-
</h4>
|
|
324
|
-
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
325
|
-
<li className="text-fm-icon-active!/80">
|
|
326
|
-
Use appropriate sizes for different contexts
|
|
327
|
-
</li>
|
|
328
|
-
<li className="text-fm-icon-active!/80">
|
|
329
|
-
Choose colors that match your UI theme
|
|
330
|
-
</li>
|
|
331
|
-
<li className="text-fm-icon-active!/80">
|
|
332
|
-
Provide clear labels for icon buttons
|
|
333
|
-
</li>
|
|
334
|
-
<li className="text-fm-icon-active!/80">
|
|
335
|
-
Use consistent styling across your app
|
|
336
|
-
</li>
|
|
337
|
-
<li className="text-fm-icon-active!/80">
|
|
338
|
-
Consider accessibility in all implementations
|
|
339
|
-
</li>
|
|
340
|
-
</ul>
|
|
341
|
-
</div>
|
|
342
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
|
|
343
|
-
<h4 className="text-fm-icon-negative! text-lg font-semibold">
|
|
344
|
-
❌ Don't
|
|
345
|
-
</h4>
|
|
346
|
-
<ul className="text-fm-icon-active!/80 space-y-2 text-sm">
|
|
347
|
-
<li className="text-fm-icon-active!/80">
|
|
348
|
-
Use multiple icon styles in the same view
|
|
349
|
-
</li>
|
|
350
|
-
<li className="text-fm-icon-active!/80">
|
|
351
|
-
Overuse the icon in navigation
|
|
352
|
-
</li>
|
|
353
|
-
<li className="text-fm-icon-active!/80">
|
|
354
|
-
Use inappropriate sizes for the context
|
|
355
|
-
</li>
|
|
356
|
-
<li className="text-fm-icon-active!/80">
|
|
357
|
-
Forget to add hover states
|
|
358
|
-
</li>
|
|
359
|
-
<li className="text-fm-icon-active!/80">
|
|
360
|
-
Ignore accessibility requirements
|
|
361
|
-
</li>
|
|
362
|
-
</ul>
|
|
363
|
-
</div>
|
|
364
|
-
</div>
|
|
365
|
-
</div>
|
|
366
|
-
</div>
|
|
367
|
-
<div className="!space-y-8 p-7">
|
|
368
|
-
<h2 className="text-fm-icon-active! text-center text-3xl font-bold">
|
|
369
|
-
Related Icons
|
|
370
|
-
</h2>
|
|
371
|
-
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
372
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
373
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
374
|
-
<ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 rotate-90" />
|
|
375
|
-
</div>
|
|
376
|
-
<div>
|
|
377
|
-
<div className="text-fm-icon-active font-medium">
|
|
378
|
-
ArrowRightDownIcon
|
|
379
|
-
</div>
|
|
380
|
-
<div className="text-fm-tertiary text-xs">
|
|
381
|
-
Download/decrease
|
|
382
|
-
</div>
|
|
383
|
-
</div>
|
|
384
|
-
</div>
|
|
385
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
386
|
-
<div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
387
|
-
<ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
|
|
388
|
-
</div>
|
|
389
|
-
<div>
|
|
390
|
-
<div className="text-fm-icon-active font-medium">
|
|
391
|
-
ArrowLeftUpIcon
|
|
392
|
-
</div>
|
|
393
|
-
<div className="text-fm-tertiary text-xs">Back and up</div>
|
|
394
|
-
</div>
|
|
395
|
-
</div>
|
|
396
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
397
|
-
<div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
398
|
-
<span className="text-2xl">↗️</span>
|
|
399
|
-
</div>
|
|
400
|
-
<div>
|
|
401
|
-
<div className="text-fm-icon-active font-medium">
|
|
402
|
-
ExternalLinkIcon
|
|
403
|
-
</div>
|
|
404
|
-
<div className="text-fm-tertiary text-xs">
|
|
405
|
-
Alternative style
|
|
406
|
-
</div>
|
|
407
|
-
</div>
|
|
408
|
-
</div>
|
|
409
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
|
|
410
|
-
<div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
|
|
411
|
-
<span className="text-2xl">📈</span>
|
|
412
|
-
</div>
|
|
413
|
-
<div>
|
|
414
|
-
<div className="text-fm-icon-active font-medium">
|
|
415
|
-
TrendingUpIcon
|
|
416
|
-
</div>
|
|
417
|
-
<div className="text-fm-tertiary text-xs">
|
|
418
|
-
Growth metrics
|
|
419
|
-
</div>
|
|
420
|
-
</div>
|
|
421
|
-
</div>
|
|
422
|
-
</div>
|
|
423
|
-
</div>
|
|
424
|
-
<div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
|
|
425
|
-
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
426
|
-
<div className="!space-y-4 text-center">
|
|
427
|
-
<p className="text-fm-tertiary!">
|
|
428
|
-
MessageIcon is part of the Aural UI icon library, designed
|
|
429
|
-
for chat, comments, and communication interfaces.
|
|
430
|
-
</p>
|
|
431
|
-
<p className="text-fm-placeholder! text-sm">
|
|
432
|
-
Perfect for messaging apps, comment sections, and any
|
|
433
|
-
interface requiring a message or chat bubble representation.
|
|
434
|
-
</p>
|
|
435
|
-
</div>
|
|
436
|
-
</div>
|
|
437
|
-
</div>
|
|
438
|
-
</div>
|
|
439
|
-
</>
|
|
52
|
+
}`,
|
|
53
|
+
livePreview: (
|
|
54
|
+
<button className="flex items-center gap-2">
|
|
55
|
+
<MessageIcon className="text-fm-icon-active h-6 w-6" />
|
|
56
|
+
</button>
|
|
57
|
+
),
|
|
58
|
+
}}
|
|
59
|
+
relatedIcons={[
|
|
60
|
+
{
|
|
61
|
+
name: "BubbleCheckIcon",
|
|
62
|
+
description: "Chat bubble with check icon",
|
|
63
|
+
icon: BubbleCheckIcon,
|
|
64
|
+
accentToken: "info",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
name: "BubbleSparkleIcon",
|
|
68
|
+
description: "AI sparkle bubble icon",
|
|
69
|
+
icon: BubbleSparkleIcon,
|
|
70
|
+
accentToken: "positive",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
name: "EmailIcon",
|
|
74
|
+
description: "Email / inbox icon",
|
|
75
|
+
icon: EmailIcon,
|
|
76
|
+
accentToken: "warning",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
name: "PaperPlaneIcon",
|
|
80
|
+
description: "Send / paper plane icon",
|
|
81
|
+
icon: PaperPlaneIcon,
|
|
82
|
+
accentToken: "negative",
|
|
83
|
+
},
|
|
84
|
+
]}
|
|
85
|
+
/>
|
|
440
86
|
),
|
|
441
87
|
},
|
|
442
88
|
},
|
|
443
89
|
tags: ["autodocs"],
|
|
444
90
|
argTypes: {
|
|
445
|
-
|
|
446
|
-
control:
|
|
447
|
-
description: "
|
|
91
|
+
className: {
|
|
92
|
+
control: "text",
|
|
93
|
+
description: "CSS classes including color token",
|
|
448
94
|
},
|
|
449
95
|
withAccessibility: {
|
|
450
96
|
control: "boolean",
|
|
451
|
-
description: "
|
|
452
|
-
},
|
|
453
|
-
height: {
|
|
454
|
-
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
455
|
-
description: "Height of the icon in pixels",
|
|
456
|
-
},
|
|
457
|
-
className: {
|
|
458
|
-
control: "text",
|
|
459
|
-
description: "CSS classes for styling",
|
|
97
|
+
description: "Wrap with accessibility label",
|
|
460
98
|
},
|
|
461
99
|
},
|
|
462
100
|
}
|
|
@@ -464,162 +102,78 @@ function ChatButton() {
|
|
|
464
102
|
export default meta
|
|
465
103
|
type Story = StoryObj<typeof MessageIcon>
|
|
466
104
|
|
|
467
|
-
const storyParameters = {
|
|
468
|
-
backgrounds: {
|
|
469
|
-
default: "dark",
|
|
470
|
-
values: [
|
|
471
|
-
{ name: "dark", value: "var(--color-fm-surface-primary)" },
|
|
472
|
-
{ name: "darker", value: "var(--color-fm-neutral-0)" },
|
|
473
|
-
],
|
|
474
|
-
},
|
|
475
|
-
}
|
|
476
|
-
|
|
477
105
|
export const Default: Story = {
|
|
478
106
|
args: {
|
|
479
|
-
|
|
480
|
-
height: 24,
|
|
481
|
-
className: "text-fm-icon-info",
|
|
107
|
+
className: "h-6 w-6 text-fm-icon-active",
|
|
482
108
|
withAccessibility: true,
|
|
483
109
|
},
|
|
484
|
-
parameters: storyParameters,
|
|
485
110
|
render: (args) => (
|
|
486
|
-
<
|
|
111
|
+
<IconDefaultCanvas>
|
|
487
112
|
<MessageIcon {...args} />
|
|
488
|
-
</
|
|
113
|
+
</IconDefaultCanvas>
|
|
489
114
|
),
|
|
490
115
|
}
|
|
491
116
|
|
|
492
117
|
export const SizeVariations: Story = {
|
|
493
|
-
|
|
494
|
-
...storyParameters,
|
|
495
|
-
docs: {
|
|
496
|
-
description: {
|
|
497
|
-
story:
|
|
498
|
-
"MessageIcon in different sizes, from small inline buttons to large call-to-action elements.",
|
|
499
|
-
},
|
|
500
|
-
},
|
|
501
|
-
},
|
|
502
|
-
render: () => (
|
|
503
|
-
<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">
|
|
504
|
-
<div className="text-center">
|
|
505
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
|
|
506
|
-
<span className="text-fm-tertiary text-xs">12px</span>
|
|
507
|
-
</div>
|
|
508
|
-
<div className="text-center">
|
|
509
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
|
|
510
|
-
<span className="text-fm-tertiary text-xs">16px</span>
|
|
511
|
-
</div>
|
|
512
|
-
<div className="text-center">
|
|
513
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
|
|
514
|
-
<span className="text-fm-tertiary text-xs">20px</span>
|
|
515
|
-
</div>
|
|
516
|
-
<div className="text-center">
|
|
517
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
518
|
-
<span className="text-fm-tertiary text-xs">24px</span>
|
|
519
|
-
</div>
|
|
520
|
-
<div className="text-center">
|
|
521
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
|
|
522
|
-
<span className="text-fm-tertiary text-xs">32px</span>
|
|
523
|
-
</div>
|
|
524
|
-
<div className="text-center">
|
|
525
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
|
|
526
|
-
<span className="text-fm-tertiary text-xs">48px</span>
|
|
527
|
-
</div>
|
|
528
|
-
</div>
|
|
529
|
-
),
|
|
118
|
+
render: () => <IconSizeVariations icon={MessageIcon} />,
|
|
530
119
|
}
|
|
531
120
|
|
|
532
121
|
export const ColorVariations: Story = {
|
|
533
|
-
|
|
534
|
-
...storyParameters,
|
|
535
|
-
docs: {
|
|
536
|
-
description: {
|
|
537
|
-
story:
|
|
538
|
-
"MessageIcon with different color variations using Tailwind classes.",
|
|
539
|
-
},
|
|
540
|
-
},
|
|
541
|
-
},
|
|
542
|
-
render: () => (
|
|
543
|
-
<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">
|
|
544
|
-
<div className="text-center">
|
|
545
|
-
<MessageIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
|
|
546
|
-
<span className="text-fm-tertiary text-xs">Blue</span>
|
|
547
|
-
</div>
|
|
548
|
-
<div className="text-center">
|
|
549
|
-
<MessageIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
|
|
550
|
-
<span className="text-fm-tertiary text-xs">Purple</span>
|
|
551
|
-
</div>
|
|
552
|
-
<div className="text-center">
|
|
553
|
-
<MessageIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
|
|
554
|
-
<span className="text-fm-tertiary text-xs">Green</span>
|
|
555
|
-
</div>
|
|
556
|
-
<div className="text-center">
|
|
557
|
-
<MessageIcon className="text-fm-icon-negative !mx-auto mb-2 h-6 w-6" />
|
|
558
|
-
<span className="text-fm-tertiary text-xs">Red</span>
|
|
559
|
-
</div>
|
|
560
|
-
<div className="text-center">
|
|
561
|
-
<MessageIcon className="text-fm-icon-warning !mx-auto mb-2 h-6 w-6" />
|
|
562
|
-
<span className="text-fm-tertiary text-xs">Yellow</span>
|
|
563
|
-
</div>
|
|
564
|
-
</div>
|
|
565
|
-
),
|
|
122
|
+
render: () => <IconColorVariations icon={MessageIcon} />,
|
|
566
123
|
}
|
|
567
124
|
|
|
568
125
|
export const UsageExamples: Story = {
|
|
569
|
-
parameters: {
|
|
570
|
-
...storyParameters,
|
|
571
|
-
docs: {
|
|
572
|
-
description: {
|
|
573
|
-
story: "Common usage examples of MessageIcon in different contexts.",
|
|
574
|
-
},
|
|
575
|
-
},
|
|
576
|
-
},
|
|
577
126
|
render: () => (
|
|
578
|
-
<
|
|
579
|
-
<
|
|
580
|
-
<button className="border-fm-
|
|
581
|
-
<MessageIcon className="text-fm-icon-
|
|
582
|
-
<span
|
|
127
|
+
<IconUsageCanvas>
|
|
128
|
+
<IconUsageSection title="Comment Button">
|
|
129
|
+
<button className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-2 rounded-xl border px-4 py-2">
|
|
130
|
+
<MessageIcon className="text-fm-icon-active h-4 w-4" />
|
|
131
|
+
<span className="text-fm-primary font-fm-text text-sm">
|
|
132
|
+
12 Comments
|
|
133
|
+
</span>
|
|
583
134
|
</button>
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
135
|
+
</IconUsageSection>
|
|
136
|
+
|
|
137
|
+
<IconUsageSection title="Episode Actions">
|
|
138
|
+
<div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
|
|
139
|
+
<div className="flex items-center gap-3">
|
|
140
|
+
<div className="bg-fm-divider-secondary h-14 w-14 shrink-0 rounded-xl" />
|
|
141
|
+
<div className="flex-1">
|
|
142
|
+
<div className="text-fm-primary font-fm-text text-sm font-medium">
|
|
143
|
+
The Final Chapter
|
|
144
|
+
</div>
|
|
145
|
+
<div className="text-fm-secondary font-fm-text text-xs">
|
|
146
|
+
45 min
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
<div className="flex gap-3">
|
|
150
|
+
<MessageIcon className="text-fm-icon-active h-5 w-5" />
|
|
151
|
+
<PaperPlaneIcon className="text-fm-icon-inactive h-5 w-5" />
|
|
152
|
+
</div>
|
|
153
|
+
</div>
|
|
593
154
|
</div>
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
155
|
+
</IconUsageSection>
|
|
156
|
+
|
|
157
|
+
<IconUsageSection title="Unread Badge">
|
|
158
|
+
<div className="relative inline-block">
|
|
159
|
+
<MessageIcon className="text-fm-icon-active h-6 w-6" />
|
|
160
|
+
<span className="bg-fm-icon-negative text-fm-primary absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full text-xs">
|
|
161
|
+
3
|
|
162
|
+
</span>
|
|
597
163
|
</div>
|
|
598
|
-
</
|
|
599
|
-
</
|
|
164
|
+
</IconUsageSection>
|
|
165
|
+
</IconUsageCanvas>
|
|
600
166
|
),
|
|
601
167
|
}
|
|
602
168
|
|
|
603
169
|
export const Playground: Story = {
|
|
604
|
-
parameters: {
|
|
605
|
-
...storyParameters,
|
|
606
|
-
docs: {
|
|
607
|
-
description: {
|
|
608
|
-
story:
|
|
609
|
-
"Interactive playground to experiment with different MessageIcon configurations.",
|
|
610
|
-
},
|
|
611
|
-
},
|
|
612
|
-
},
|
|
613
170
|
args: {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
className: "text-fm-icon-info",
|
|
171
|
+
className: "h-8 w-8 text-fm-icon-active",
|
|
172
|
+
withAccessibility: true,
|
|
617
173
|
},
|
|
618
174
|
render: (args) => (
|
|
619
|
-
<
|
|
620
|
-
<
|
|
621
|
-
|
|
622
|
-
</div>
|
|
623
|
-
</div>
|
|
175
|
+
<IconPlaygroundCanvas>
|
|
176
|
+
<MessageIcon {...args} />
|
|
177
|
+
</IconPlaygroundCanvas>
|
|
624
178
|
),
|
|
625
179
|
}
|