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