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