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