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 { BubbleCrossedIcon } from "src/ui/icons/bubble-crossed-icon"
5
+ import { BubbleSparkleIcon } from "src/ui/icons/bubble-sparkle-icon"
6
+ import { CircleTickIcon } from "src/ui/icons/circle-tick-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 { BubbleCheckIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof BubbleCheckIcon> = {
@@ -11,978 +25,82 @@ const meta: Meta<typeof BubbleCheckIcon> = {
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-green-500/30 bg-gradient-to-br from-green-500/20 to-emerald-500/20">
90
- <BubbleCheckIcon className="h-12 w-12 text-green-400" />
91
- </div>
92
- <h1 className="text-5xl font-bold !text-white">
93
- BubbleCheckIcon
94
- </h1>
95
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
- A communication icon representing successful messages,
97
- confirmations, and positive feedback. Combines chat bubble
98
- symbolism with checkmark validation for clear success
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-green-300">
106
- Success
107
- </div>
108
- <div className="text-sm text-white/60">
109
- Positive feedback
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-emerald-300">
115
- Communication
116
- </div>
117
- <div className="text-sm text-white/60">
118
- Message validation
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-teal-300">
124
- Confirmation
125
- </div>
126
- <div className="text-sm text-white/60">
127
- Action completed
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-green-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 { BubbleCheckIcon } from "@icons/bubble-check-icon"
150
-
151
- function SuccessMessage() {
35
+ <AuralIconDocsPage
36
+ accentToken="positive"
37
+ features={[
38
+ {
39
+ title: "Success State",
40
+ description: "Approved or verified chat",
41
+ },
42
+ {
43
+ title: "Feedback Bubble",
44
+ description: "Positive message feedback",
45
+ },
46
+ { title: "Accessible", description: "ARIA-ready by default" },
47
+ ]}
48
+ quickStart={{
49
+ codeExample: `import { BubbleCheckIcon } from "src/ui/icons/bubble-check-icon"
50
+
51
+ function ApprovedMessage() {
152
52
  return (
153
53
  <div className="flex items-center gap-2">
154
- <BubbleCheckIcon className="h-5 w-5 text-green-500" />
155
- <span>Message sent successfully!</span>
54
+ <BubbleCheckIcon className="h-5 w-5 text-fm-icon-positive" />
55
+ <span>Message approved</span>
156
56
  </div>
157
57
  )
158
- }`}
159
- </pre>
160
- </div>
161
- </div>
162
-
163
- <div className="!space-y-4">
164
- <h3 className="text-xl font-semibold !text-green-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-green-500/20 bg-green-500/10 px-4 py-2">
169
- <BubbleCheckIcon className="h-5 w-5 text-green-400" />
170
- <span className="!text-white">
171
- Message sent successfully!
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-center text-3xl font-bold !text-white">
182
- Props & Configuration
183
- </h2>
184
-
185
- <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
186
- <div className="bg-white/5 p-4">
187
- <h3 className="text-xl font-semibold !text-white">Props</h3>
188
- </div>
189
- <table className="!my-0 w-full">
190
- <thead className="bg-white/5">
191
- <tr className="border-b border-white/10">
192
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
193
- Prop
194
- </th>
195
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
196
- Type
197
- </th>
198
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
199
- Default
200
- </th>
201
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
202
- Description
203
- </th>
204
- </tr>
205
- </thead>
206
- <tbody>
207
- {" "}
208
- <tr className="!bg-black/10">
209
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
210
- withAccessibility
211
- </td>
212
- <td className="px-6 py-4 text-sm !text-white/70">
213
- boolean
214
- </td>
215
- <td className="px-6 py-4 text-sm !text-white/50">
216
- true
217
- </td>
218
- <td className="px-6 py-4 text-sm !text-white/70">
219
- Whether to wrap the icon with accessibility feature
220
- </td>
221
- </tr>
222
- <tr className="border-b border-white/5 !bg-black/10">
223
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
224
- height
225
- </td>
226
- <td className="px-6 py-4 text-sm !text-white/70">
227
- number | string
228
- </td>
229
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
230
- <td className="px-6 py-4 text-sm !text-white/70">
231
- Height of the icon in pixels
232
- </td>
233
- </tr>
234
- <tr className="border-b border-white/5">
235
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
236
- stroke
237
- </td>
238
- <td className="px-6 py-4 text-sm !text-white/70">
239
- string
240
- </td>
241
- <td className="px-6 py-4 text-sm !text-white/50">
242
- currentColor
243
- </td>
244
- <td className="px-6 py-4 text-sm !text-white/70">
245
- Stroke color of the icon
246
- </td>
247
- </tr>
248
- <tr className="border-b border-white/5 !bg-black/10">
249
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
250
- strokeWidth
251
- </td>
252
- <td className="px-6 py-4 text-sm !text-white/70">
253
- number | string
254
- </td>
255
- <td className="px-6 py-4 text-sm !text-white/50">
256
- 1.5
257
- </td>
258
- <td className="px-6 py-4 text-sm !text-white/70">
259
- Stroke width of the icon
260
- </td>
261
- </tr>
262
- <tr className="border-b border-white/5">
263
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
264
- strokeLinecap
265
- </td>
266
- <td className="px-6 py-4 text-sm !text-white/70">
267
- string
268
- </td>
269
- <td className="px-6 py-4 text-sm !text-white/50">
270
- square
271
- </td>
272
- <td className="px-6 py-4 text-sm !text-white/70">
273
- Line cap style for stroke
274
- </td>
275
- </tr>
276
- <tr className="border-b border-white/5 !bg-black/10">
277
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
278
- className
279
- </td>
280
- <td className="px-6 py-4 text-sm !text-white/70">
281
- string
282
- </td>
283
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
284
- <td className="px-6 py-4 text-sm !text-white/70">
285
- CSS classes for styling
286
- </td>
287
- </tr>
288
- <tr className="!bg-black/10">
289
- <td className="px-6 py-4 font-mono text-sm !text-green-300">
290
- ...svgProps
291
- </td>
292
- <td className="px-6 py-4 text-sm !text-white/70">
293
- SVGProps
294
- </td>
295
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
296
- <td className="px-6 py-4 text-sm !text-white/70">
297
- All standard SVG element props
298
- </td>
299
- </tr>
300
- </tbody>
301
- </table>
302
- </div>
303
- </div>
304
-
305
- {/* Size Variations */}
306
- <div className="!space-y-8">
307
- <h2 className="text-center text-3xl font-bold !text-white">
308
- Size Variations
309
- </h2>
310
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
311
- <div className="!space-y-6">
312
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
313
- <div className="!space-y-4">
314
- <h3 className="text-lg font-semibold !text-green-300">
315
- Standard Sizes
316
- </h3>
317
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
318
- <div className="text-center">
319
- <BubbleCheckIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
320
- <span className="text-xs text-white/60">12px</span>
321
- </div>
322
- <div className="text-center">
323
- <BubbleCheckIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
324
- <span className="text-xs text-white/60">16px</span>
325
- </div>
326
- <div className="text-center">
327
- <BubbleCheckIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
328
- <span className="text-xs text-white/60">20px</span>
329
- </div>
330
- <div className="text-center">
331
- <BubbleCheckIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
332
- <span className="text-xs text-white/60">24px</span>
333
- </div>
334
- <div className="text-center">
335
- <BubbleCheckIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
336
- <span className="text-xs text-white/60">32px</span>
337
- </div>
338
- <div className="text-center">
339
- <BubbleCheckIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
340
- <span className="text-xs text-white/60">48px</span>
341
- </div>
342
- </div>
343
- </div>
344
-
345
- <div className="!space-y-4">
346
- <h3 className="text-lg font-semibold !text-green-300">
347
- Code Example
348
- </h3>
349
- <div className="rounded-lg bg-black/40 p-4">
350
- <pre className="overflow-x-auto text-sm !text-blue-300">
351
- {`// Small (16px)
352
- <BubbleCheckIcon className="h-4 w-4" />
353
-
354
- // Medium (24px)
355
- <BubbleCheckIcon className="h-6 w-6" />
356
-
357
- // Large (32px)
358
- <BubbleCheckIcon className="h-8 w-8" />
359
-
360
- // Custom size
361
- <BubbleCheckIcon width={40} height={40} />`}
362
- </pre>
363
- </div>
364
- </div>
365
- </div>
366
- </div>
367
- </div>
368
- </div>
369
-
370
- {/* Color Variations */}
371
- <div className="!space-y-8">
372
- <h2 className="text-center text-3xl font-bold !text-white">
373
- Color Variations
374
- </h2>
375
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
376
- <div className="!space-y-4">
377
- <h3 className="text-lg font-semibold !text-green-300">
378
- Success States
379
- </h3>
380
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
381
- <div className="flex items-center gap-4">
382
- <BubbleCheckIcon className="h-6 w-6 text-green-400" />
383
- <div>
384
- <div className="text-sm font-medium !text-white">
385
- Success
386
- </div>
387
- <div className="text-xs !text-white/60">
388
- text-green-400
389
- </div>
390
- </div>
391
- </div>
392
- <div className="flex items-center gap-4">
393
- <BubbleCheckIcon className="h-6 w-6 text-emerald-400" />
394
- <div>
395
- <div className="text-sm font-medium !text-white">
396
- Completed
397
- </div>
398
- <div className="text-xs !text-white/60">
399
- text-emerald-400
400
- </div>
401
- </div>
402
- </div>
403
- <div className="flex items-center gap-4">
404
- <BubbleCheckIcon className="h-6 w-6 text-teal-400" />
405
- <div>
406
- <div className="text-sm font-medium !text-white">
407
- Confirmed
408
- </div>
409
- <div className="text-xs !text-white/60">
410
- text-teal-400
411
- </div>
412
- </div>
413
- </div>
414
- <div className="flex items-center gap-4">
415
- <BubbleCheckIcon className="h-6 w-6 text-lime-400" />
416
- <div>
417
- <div className="text-sm font-medium !text-white">
418
- Approved
419
- </div>
420
- <div className="text-xs !text-white/60">
421
- text-lime-400
422
- </div>
423
- </div>
424
- </div>
425
- </div>
426
- </div>
427
-
428
- <div className="!space-y-4">
429
- <h3 className="text-lg font-semibold !text-green-300">
430
- Custom Colors
431
- </h3>
432
- <div className="rounded-lg bg-black/40 p-4">
433
- <pre className="overflow-x-auto text-sm !text-green-300">
434
- {`// Using Tailwind classes
435
- <BubbleCheckIcon className="h-6 w-6 text-green-400" />
436
- <BubbleCheckIcon className="h-6 w-6 text-emerald-500" />
437
-
438
- // Using CSS custom properties
439
- <BubbleCheckIcon
440
- className="h-6 w-6"
441
- style={{ color: 'var(--color-success)' }}
442
- />
443
-
444
- // Direct stroke prop
445
- <BubbleCheckIcon
446
- width={24}
447
- height={24}
448
- stroke="#10b981"
449
- />`}
450
- </pre>
451
- </div>
452
- </div>
453
- </div>
58
+ }`,
59
+ livePreview: (
60
+ <div className="flex items-center gap-2">
61
+ <BubbleCheckIcon className="text-fm-icon-positive h-6 w-6" />
454
62
  </div>
455
-
456
- {/* Usage Examples */}
457
- <div className="!space-y-8">
458
- <h2 className="text-center text-3xl font-bold !text-white">
459
- Usage Examples
460
- </h2>
461
-
462
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
463
- {/* Success Message */}
464
- <div className="!space-y-4">
465
- <h3 className="text-lg font-semibold !text-green-300">
466
- Success Toast
467
- </h3>
468
- <div className="!space-y-4">
469
- <div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
470
- <div className="flex items-start gap-3">
471
- <BubbleCheckIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-green-400" />
472
- <div>
473
- <h4 className="font-medium !text-green-200">
474
- Message Sent
475
- </h4>
476
- <p className="text-sm !text-green-300/80">
477
- Your message has been delivered successfully to
478
- all recipients.
479
- </p>
480
- </div>
481
- </div>
482
- </div>
483
- <div className="rounded-lg bg-black/40 p-4">
484
- <pre className="overflow-x-auto text-sm !text-green-300">
485
- {`<div className="border border-green-500/20 bg-green-500/10 p-4 rounded-lg">
486
- <div className="flex items-start gap-3">
487
- <BubbleCheckIcon className="h-5 w-5 text-green-400 mt-0.5 flex-shrink-0" />
488
- <div>
489
- <h4 className="font-medium text-green-200">Message Sent</h4>
490
- <p className="text-sm text-green-300/80">
491
- Your message has been delivered successfully to all recipients.
492
- </p>
493
- </div>
494
- </div>
495
- </div>`}
496
- </pre>
497
- </div>
498
- </div>
499
- </div>
500
-
501
- {/* Chat Message Status */}
502
- <div className="!space-y-4">
503
- <h3 className="text-lg font-semibold !text-green-300">
504
- Chat Message Status
505
- </h3>
506
- <div className="!space-y-4">
507
- <div className="!space-y-3">
508
- <div className="flex justify-end">
509
- <div className="max-w-xs rounded-lg bg-blue-500 px-3 py-2">
510
- <p className="text-sm !text-white">
511
- Hey! How are you doing?
512
- </p>
513
- <div className="mt-1 flex items-center justify-end gap-1">
514
- <span className="text-xs text-blue-100">
515
- 2:30 PM
516
- </span>
517
- <BubbleCheckIcon className="h-3 w-3 text-green-300" />
518
- </div>
519
- </div>
520
- </div>
521
- <div className="flex justify-end">
522
- <div className="max-w-xs rounded-lg bg-blue-500 px-3 py-2">
523
- <p className="text-sm !text-white">
524
- Did you get my previous message?
525
- </p>
526
- <div className="mt-1 flex items-center justify-end gap-1">
527
- <span className="text-xs text-blue-100">
528
- 2:32 PM
529
- </span>
530
- <BubbleCheckIcon className="h-3 w-3 text-green-300" />
531
- </div>
532
- </div>
533
- </div>
534
- </div>
535
- <div className="rounded-lg bg-black/40 p-4">
536
- <pre className="overflow-x-auto text-sm !text-green-300">
537
- {`<div className="flex justify-end">
538
- <div className="max-w-xs rounded-lg bg-blue-500 px-3 py-2">
539
- <p className="text-sm text-white">Hey! How are you doing?</p>
540
- <div className="mt-1 flex items-center justify-end gap-1">
541
- <span className="text-xs text-blue-100">2:30 PM</span>
542
- <BubbleCheckIcon className="h-3 w-3 text-green-300" />
543
- </div>
544
- </div>
545
- </div>`}
546
- </pre>
547
- </div>
548
- </div>
549
- </div>
550
-
551
- {/* Form Confirmation */}
552
- <div className="!space-y-4">
553
- <h3 className="text-lg font-semibold !text-green-300">
554
- Form Confirmation
555
- </h3>
556
- <div className="!space-y-4">
557
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
558
- <div className="text-center">
559
- <div className="!mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-500/20">
560
- <BubbleCheckIcon className="h-8 w-8 text-green-400" />
561
- </div>
562
- <h3 className="mb-2 text-lg font-semibold !text-white">
563
- Form Submitted!
564
- </h3>
565
- <p className="text-sm !text-white/70">
566
- We've received your feedback and will get back to
567
- you within 24 hours.
568
- </p>
569
- </div>
570
- </div>
571
- <div className="rounded-lg bg-black/40 p-4">
572
- <pre className="overflow-x-auto text-sm !text-green-300">
573
- {`<div className="text-center">
574
- <div className="mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-500/20">
575
- <BubbleCheckIcon className="h-8 w-8 text-green-400" />
576
- </div>
577
- <h3 className="mb-2 text-lg font-semibold text-white">Form Submitted!</h3>
578
- <p className="text-sm text-white/70">
579
- We've received your feedback and will get back to you within 24 hours.
580
- </p>
581
- </div>`}
582
- </pre>
583
- </div>
584
- </div>
585
- </div>
586
-
587
- {/* Status List */}
588
- <div className="!space-y-4">
589
- <h3 className="text-lg font-semibold !text-green-300">
590
- Status List
591
- </h3>
592
- <div className="!space-y-4">
593
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4">
594
- <div className="flex items-center gap-3">
595
- <BubbleCheckIcon className="h-4 w-4 text-green-400" />
596
- <span className="text-sm !text-white">
597
- Email verification completed
598
- </span>
599
- </div>
600
- <div className="flex items-center gap-3">
601
- <BubbleCheckIcon className="h-4 w-4 text-green-400" />
602
- <span className="text-sm !text-white">
603
- Profile information updated
604
- </span>
605
- </div>
606
- <div className="flex items-center gap-3">
607
- <BubbleCheckIcon className="h-4 w-4 text-green-400" />
608
- <span className="text-sm !text-white">
609
- Security settings configured
610
- </span>
611
- </div>
612
- <div className="flex items-center gap-3">
613
- <div className="h-4 w-4 rounded-full border-2 border-white/20"></div>
614
- <span className="text-sm !text-white/60">
615
- Payment method pending
616
- </span>
617
- </div>
618
- </div>
619
- <div className="rounded-lg bg-black/40 p-4">
620
- <pre className="overflow-x-auto text-sm !text-green-300">
621
- {`<div className="space-y-3">
622
- <div className="flex items-center gap-3">
623
- <BubbleCheckIcon className="h-4 w-4 text-green-400" />
624
- <span className="text-sm text-white">Email verification completed</span>
625
- </div>
626
- <div className="flex items-center gap-3">
627
- <BubbleCheckIcon className="h-4 w-4 text-green-400" />
628
- <span className="text-sm text-white">Profile information updated</span>
629
- </div>
630
- <div className="flex items-center gap-3">
631
- <div className="h-4 w-4 rounded-full border-2 border-white/20"></div>
632
- <span className="text-sm text-white/60">Payment method pending</span>
633
- </div>
634
- </div>`}
635
- </pre>
636
- </div>
637
- </div>
638
- </div>
639
-
640
- {/* Notification Badges */}
641
- <div className="!space-y-4">
642
- <h3 className="text-lg font-semibold !text-green-300">
643
- Notification Badges
644
- </h3>
645
- <div className="!space-y-4">
646
- <div className="flex gap-4">
647
- <div className="relative">
648
- <button className="rounded-lg border border-white/10 bg-white/5 p-3 transition-colors hover:bg-white/10">
649
- <svg
650
- className="h-5 w-5 text-white"
651
- fill="none"
652
- stroke="currentColor"
653
- viewBox="0 0 24 24"
654
- >
655
- <path
656
- strokeLinecap="round"
657
- strokeLinejoin="round"
658
- strokeWidth={2}
659
- d="M15 17h5l-5 5v-5z"
660
- />
661
- <path
662
- strokeLinecap="round"
663
- strokeLinejoin="round"
664
- strokeWidth={2}
665
- d="M9 12h6m-6 4h6m2 5V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"
666
- />
667
- </svg>
668
- </button>
669
- <BubbleCheckIcon className="absolute -top-1 -right-1 h-4 w-4 text-green-400" />
670
- </div>
671
- <div className="relative">
672
- <button className="rounded-lg border border-white/10 bg-white/5 p-3 transition-colors hover:bg-white/10">
673
- <svg
674
- className="h-5 w-5 text-white"
675
- fill="none"
676
- stroke="currentColor"
677
- viewBox="0 0 24 24"
678
- >
679
- <path
680
- strokeLinecap="round"
681
- strokeLinejoin="round"
682
- strokeWidth={2}
683
- d="M3 8l7.89 4.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z"
684
- />
685
- </svg>
686
- </button>
687
- <BubbleCheckIcon className="absolute -top-1 -right-1 h-4 w-4 text-green-400" />
688
- </div>
689
- </div>
690
- <div className="rounded-lg bg-black/40 p-4">
691
- <pre className="overflow-x-auto text-sm !text-green-300">
692
- {`<div className="relative">
693
- <button className="p-3 border border-white/10 bg-white/5 rounded-lg">
694
- {/* Main icon */}
695
- </button>
696
- <BubbleCheckIcon className="absolute -top-1 -right-1 h-4 w-4 text-green-400" />
697
- </div>`}
698
- </pre>
699
- </div>
700
- </div>
701
- </div>
702
-
703
- {/* Action Button */}
704
- <div className="!space-y-4">
705
- <h3 className="text-lg font-semibold !text-green-300">
706
- Action Button
707
- </h3>
708
- <div className="!space-y-4">
709
- <div className="flex gap-4">
710
- <button className="flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/20 px-4 py-2 text-green-200 transition-colors hover:bg-green-500/30">
711
- <BubbleCheckIcon className="h-4 w-4" />
712
- Mark as Read
713
- </button>
714
- <button className="flex items-center gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/20 px-4 py-2 text-emerald-200 transition-colors hover:bg-emerald-500/30">
715
- <BubbleCheckIcon className="h-4 w-4" />
716
- Approve Message
717
- </button>
718
- </div>
719
- <div className="rounded-lg bg-black/40 p-4">
720
- <pre className="overflow-x-auto text-sm !text-green-300">
721
- {`// Confirm action button
722
- <button className="flex items-center gap-2 bg-green-500/20 border border-green-500/30 px-4 py-2 rounded-lg">
723
- <BubbleCheckIcon className="h-4 w-4" />
724
- Mark as Read
725
- </button>
726
-
727
- // Approval button
728
- <button className="flex items-center gap-2 bg-emerald-500/20 border border-emerald-500/30 px-4 py-2 rounded-lg">
729
- <BubbleCheckIcon className="h-4 w-4" />
730
- Approve Message
731
- </button>`}
732
- </pre>
733
- </div>
734
- </div>
735
- </div>
736
- </div>
737
- </div>
738
-
739
- {/* Animation States */}
740
- <div className="!space-y-8">
741
- <h2 className="text-center text-3xl font-bold !text-white">
742
- Animation States
743
- </h2>
744
- <div className="grid grid-cols-1 gap-8 md:grid-cols-3">
745
- <div className="text-center">
746
- <h3 className="mb-4 text-lg font-medium !text-white">
747
- Bounce Animation
748
- </h3>
749
- <div className="rounded-lg border border-white/10 bg-white/5 px-6 py-8">
750
- <BubbleCheckIcon className="!mx-auto h-8 w-8 animate-bounce text-green-400" />
751
- </div>
752
- <p className="mt-2 text-xs !text-white/60">
753
- animate-bounce
754
- </p>
755
- </div>
756
-
757
- <div className="text-center">
758
- <h3 className="mb-4 text-lg font-medium !text-white">
759
- Pulse Animation
760
- </h3>
761
- <div className="rounded-lg border border-white/10 bg-white/5 px-6 py-8">
762
- <BubbleCheckIcon className="!mx-auto h-8 w-8 animate-pulse text-green-400" />
763
- </div>
764
- <p className="mt-2 text-xs !text-white/60">animate-pulse</p>
765
- </div>
766
-
767
- <div className="text-center">
768
- <h3 className="mb-4 text-lg font-medium !text-white">
769
- Scale on Hover
770
- </h3>
771
- <div className="rounded-lg border border-white/10 bg-white/5 px-6 py-8">
772
- <BubbleCheckIcon className="!mx-auto h-8 w-8 text-green-400 transition-transform hover:scale-110" />
773
- </div>
774
- <p className="mt-2 text-xs !text-white/60">
775
- hover:scale-110
776
- </p>
777
- </div>
778
- </div>
779
- </div>
780
-
781
- {/* Accessibility */}
782
- <div className="!space-y-8">
783
- <h2 className="text-center text-3xl font-bold !text-white">
784
- Accessibility Features
785
- </h2>
786
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
787
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
788
- <h3 className="text-lg font-semibold !text-green-300">
789
- ✅ Built-in Features
790
- </h3>
791
- <ul className="!space-y-2 text-sm !text-white/70">
792
- <li className="!text-white/70">
793
- Uses Radix UI AccessibleIcon wrapper
794
- </li>
795
- <li className="!text-white/70">
796
- Provides screen reader label "Bubble Check icon"
797
- </li>
798
- <li className="!text-white/70">
799
- Supports keyboard navigation when interactive
800
- </li>
801
- <li className="!text-white/70">
802
- Maintains proper color contrast ratios
803
- </li>
804
- <li className="!text-white/70">
805
- Scales with user's font size preferences
806
- </li>
807
- </ul>
808
- </div>
809
-
810
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
811
- <h3 className="text-lg font-semibold !text-green-300">
812
- 💡 Best Practices
813
- </h3>
814
- <ul className="!space-y-2 text-sm text-white/70">
815
- <li className="!text-white/70">
816
- Always pair with descriptive success text
817
- </li>
818
- <li className="!text-white/70">
819
- Use consistent colors for success states
820
- </li>
821
- <li className="!text-white/70">
822
- Ensure sufficient color contrast for visibility
823
- </li>
824
- <li className="!text-white/70">
825
- Add focus states for interactive elements
826
- </li>
827
- <li className="!text-white/70">
828
- Consider animation preferences for users
829
- </li>
830
- </ul>
831
- </div>
832
- </div>
833
-
834
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
835
- <h3 className="mb-4 text-lg font-semibold !text-purple-300">
836
- Custom Accessibility Implementation
837
- </h3>
838
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
839
- <div className="rounded-lg bg-black/40 p-4">
840
- <pre className="overflow-x-auto text-sm !text-blue-300">
841
- {`// Custom implementation with specific context
842
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
843
-
844
- function SuccessMessageIcon({ label = "Success message", ...props }) {
845
- return (
846
- <AccessibleIcon label={label}>
847
- <BubbleCheckIcon {...props} />
848
- </AccessibleIcon>
849
- )
850
- }
851
-
852
- // Usage with specific context
853
- <SuccessMessageIcon
854
- label="Message sent successfully"
855
- className="h-5 w-5 text-green-400"
856
- />
857
-
858
- // For status indicators
859
- <SuccessMessageIcon
860
- label="Task completed successfully"
861
- className="h-4 w-4 text-emerald-400"
862
- />`}
863
- </pre>
864
- </div>
865
- <div className="!space-y-4">
866
- <p className="text-sm !text-white/70">
867
- For specific contexts, you can wrap the BubbleCheckIcon
868
- with a custom AccessibleIcon component that provides
869
- more descriptive labels for different success scenarios.
870
- </p>
871
- <div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
872
- <div className="flex items-center gap-2 text-sm text-green-200">
873
- <BubbleCheckIcon className="h-4 w-4" />
874
- <span>
875
- This gives screen readers specific context about the
876
- success state
877
- </span>
878
- </div>
879
- </div>
880
- </div>
881
- </div>
882
- </div>
883
- </div>
884
-
885
- {/* Related Icons */}
886
- <div className="!space-y-8">
887
- <h2 className="text-center text-3xl font-bold !text-white">
888
- Related Icons
889
- </h2>
890
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
891
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
892
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
893
- <span className="text-2xl">✅</span>
894
- </div>
895
- <div>
896
- <div className="font-medium !text-white">CheckIcon</div>
897
- <div className="text-xs !text-white/60">
898
- Simple checkmark
899
- </div>
900
- </div>
901
- </div>
902
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
903
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
904
- <span className="text-2xl">💬</span>
905
- </div>
906
- <div>
907
- <div className="font-medium !text-white">BubbleIcon</div>
908
- <div className="text-xs !text-white/60">Chat bubble</div>
909
- </div>
910
- </div>
911
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
912
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-emerald-500/20">
913
- <span className="text-2xl">✉️</span>
914
- </div>
915
- <div>
916
- <div className="font-medium !text-white">MessageIcon</div>
917
- <div className="text-xs !text-white/60">
918
- Email message
919
- </div>
920
- </div>
921
- </div>
922
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
923
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-teal-500/20">
924
- <span className="text-2xl">🎉</span>
925
- </div>
926
- <div>
927
- <div className="font-medium !text-white">SuccessIcon</div>
928
- <div className="text-xs !text-white/60">Celebration</div>
929
- </div>
930
- </div>
931
- </div>
932
- </div>
933
- </div>
934
-
935
- {/* Footer */}
936
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
937
- <div className="!mx-auto max-w-7xl px-6 py-8">
938
- <div className="!space-y-4 text-center">
939
- <p className="!text-white/60">
940
- BubbleCheckIcon is part of the Aural UI icon library,
941
- designed for clear success communication and message
942
- validation.
943
- </p>
944
- <p className="text-sm !text-white/40">
945
- Perfect for chat applications, form confirmations, status
946
- indicators, and any interface requiring success feedback.
947
- </p>
948
- </div>
949
- </div>
950
- </div>
951
- </div>
952
- </>
63
+ ),
64
+ }}
65
+ relatedIcons={[
66
+ {
67
+ name: "BubbleCrossedIcon",
68
+ description: "Rejected chat bubble icon",
69
+ icon: BubbleCrossedIcon,
70
+ accentToken: "info",
71
+ },
72
+ {
73
+ name: "BubbleSparkleIcon",
74
+ description: "AI/sparkle chat bubble",
75
+ icon: BubbleSparkleIcon,
76
+ accentToken: "positive",
77
+ },
78
+ {
79
+ name: "TickCircleIcon",
80
+ description: "Success tick in circle",
81
+ icon: TickCircleIcon,
82
+ accentToken: "warning",
83
+ },
84
+ {
85
+ name: "CircleTickIcon",
86
+ description: "Circle with tick mark",
87
+ icon: CircleTickIcon,
88
+ accentToken: "negative",
89
+ },
90
+ ]}
91
+ />
953
92
  ),
954
93
  },
955
94
  },
956
95
  tags: ["autodocs"],
957
96
  argTypes: {
958
- width: {
959
- control: { type: "range", min: 8, max: 96, step: 2 },
960
- description: "Width of the icon in pixels",
97
+ className: {
98
+ control: "text",
99
+ description: "CSS classes including color token",
961
100
  },
962
101
  withAccessibility: {
963
102
  control: "boolean",
964
- description: "Whether to wrap the icon with accessibility features",
965
- },
966
- height: {
967
- control: { type: "range", min: 8, max: 96, step: 2 },
968
- description: "Height of the icon in pixels",
969
- },
970
- stroke: {
971
- control: "color",
972
- description: "Stroke color of the icon",
973
- },
974
- strokeWidth: {
975
- control: { type: "range", min: 1, max: 4, step: 0.5 },
976
- description: "Stroke width of the icon",
977
- },
978
- strokeLinecap: {
979
- control: { type: "select" },
980
- options: ["butt", "round", "square"],
981
- description: "Line cap style for stroke",
982
- },
983
- className: {
984
- control: "text",
985
- description: "CSS classes for styling",
103
+ description: "Wrap with accessibility label",
986
104
  },
987
105
  },
988
106
  }
@@ -990,258 +108,83 @@ function SuccessMessageIcon({ label = "Success message", ...props }) {
990
108
  export default meta
991
109
  type Story = StoryObj<typeof BubbleCheckIcon>
992
110
 
993
- // Story parameters for consistent dark theme
994
- const storyParameters = {
995
- backgrounds: {
996
- default: "dark",
997
- values: [
998
- { name: "dark", value: "#0a0a0a" },
999
- { name: "darker", value: "#000000" },
1000
- ],
1001
- },
1002
- }
1003
-
1004
111
  export const Default: Story = {
1005
112
  args: {
1006
- width: 24,
1007
- height: 24,
1008
- className: "text-green-400",
113
+ className: "h-6 w-6 text-fm-icon-positive",
1009
114
  withAccessibility: true,
1010
115
  },
1011
- parameters: storyParameters,
1012
116
  render: (args) => (
1013
- <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>
1014
118
  <BubbleCheckIcon {...args} />
1015
- </div>
119
+ </IconDefaultCanvas>
1016
120
  ),
1017
121
  }
1018
122
 
1019
123
  export const SizeVariations: Story = {
1020
- parameters: {
1021
- ...storyParameters,
1022
- docs: {
1023
- description: {
1024
- story:
1025
- "BubbleCheckIcon in different sizes, from small status indicators to large success displays.",
1026
- },
1027
- },
1028
- },
1029
- render: () => (
1030
- <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">
1031
- <div className="text-center">
1032
- <BubbleCheckIcon className="!mx-auto mb-2 h-3 w-3 text-green-400" />
1033
- <span className="text-xs text-white/60">12px</span>
1034
- </div>
1035
- <div className="text-center">
1036
- <BubbleCheckIcon className="!mx-auto mb-2 h-4 w-4 text-green-400" />
1037
- <span className="text-xs text-white/60">16px</span>
1038
- </div>
1039
- <div className="text-center">
1040
- <BubbleCheckIcon className="!mx-auto mb-2 h-5 w-5 text-green-400" />
1041
- <span className="text-xs text-white/60">20px</span>
1042
- </div>
1043
- <div className="text-center">
1044
- <BubbleCheckIcon className="!mx-auto mb-2 h-6 w-6 text-green-400" />
1045
- <span className="text-xs text-white/60">24px</span>
1046
- </div>
1047
- <div className="text-center">
1048
- <BubbleCheckIcon className="!mx-auto mb-2 h-8 w-8 text-green-400" />
1049
- <span className="text-xs text-white/60">32px</span>
1050
- </div>
1051
- <div className="text-center">
1052
- <BubbleCheckIcon className="!mx-auto mb-2 h-12 w-12 text-green-400" />
1053
- <span className="text-xs text-white/60">48px</span>
1054
- </div>
1055
- </div>
1056
- ),
124
+ render: () => <IconSizeVariations icon={BubbleCheckIcon} />,
1057
125
  }
1058
126
 
1059
127
  export const ColorVariations: Story = {
1060
- parameters: {
1061
- ...storyParameters,
1062
- docs: {
1063
- description: {
1064
- story:
1065
- "BubbleCheckIcon in different success colors for various confirmation contexts.",
1066
- },
1067
- },
1068
- },
1069
- render: () => (
1070
- <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">
1071
- <div className="text-center">
1072
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
1073
- <BubbleCheckIcon className="h-8 w-8 text-green-400" />
1074
- </div>
1075
- <div className="text-sm font-medium !text-white">Success</div>
1076
- <div className="text-xs text-green-400">text-green-400</div>
1077
- </div>
1078
- <div className="text-center">
1079
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-emerald-500/30 bg-emerald-500/20">
1080
- <BubbleCheckIcon className="h-8 w-8 text-emerald-400" />
1081
- </div>
1082
- <div className="text-sm font-medium !text-white">Completed</div>
1083
- <div className="text-xs text-emerald-400">text-emerald-400</div>
1084
- </div>
1085
- <div className="text-center">
1086
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-teal-500/30 bg-teal-500/20">
1087
- <BubbleCheckIcon className="h-8 w-8 text-teal-400" />
1088
- </div>
1089
- <div className="text-sm font-medium !text-white">Confirmed</div>
1090
- <div className="text-xs text-teal-400">text-teal-400</div>
1091
- </div>
1092
- <div className="text-center">
1093
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-lime-500/30 bg-lime-500/20">
1094
- <BubbleCheckIcon className="h-8 w-8 text-lime-400" />
1095
- </div>
1096
- <div className="text-sm font-medium !text-white">Approved</div>
1097
- <div className="text-xs text-lime-400">text-lime-400</div>
1098
- </div>
1099
- </div>
1100
- ),
128
+ render: () => <IconColorVariations icon={BubbleCheckIcon} />,
1101
129
  }
1102
130
 
1103
131
  export const UsageExamples: Story = {
1104
- parameters: {
1105
- ...storyParameters,
1106
- docs: {
1107
- description: {
1108
- story:
1109
- "Real-world usage examples showing BubbleCheckIcon in different communication contexts.",
1110
- },
1111
- },
1112
- },
1113
132
  render: () => (
1114
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
1115
- {/* Success Toast */}
1116
- <div className="!space-y-2">
1117
- <h3 className="text-sm font-medium !text-white">Success Toast</h3>
1118
- <div className="rounded-lg border border-green-500/20 bg-green-500/10 p-4">
1119
- <div className="flex items-start gap-3">
1120
- <BubbleCheckIcon className="mt-0.5 h-5 w-5 flex-shrink-0 text-green-400" />
1121
- <div>
1122
- <h4 className="font-medium text-green-200">Message Sent</h4>
1123
- <p className="text-sm text-green-300/80">
1124
- Your message has been delivered successfully to all recipients.
1125
- </p>
1126
- </div>
1127
- </div>
133
+ <IconUsageCanvas>
134
+ <IconUsageSection title="Message Approved">
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
+ <BubbleCheckIcon className="text-fm-icon-positive h-5 w-5 shrink-0" />
137
+ <span className="text-fm-primary font-fm-text text-sm">
138
+ Your message has been approved
139
+ </span>
1128
140
  </div>
1129
- </div>
1130
-
1131
- {/* Chat Status */}
1132
- <div className="!space-y-2">
1133
- <h3 className="text-sm font-medium !text-white">Chat Message Status</h3>
1134
- <div className="flex justify-end">
1135
- <div className="max-w-xs rounded-lg bg-blue-500 px-3 py-2">
1136
- <p className="text-sm text-white">Hey! How are you doing?</p>
1137
- <div className="mt-1 flex items-center justify-end gap-1">
1138
- <span className="text-xs text-blue-100">2:30 PM</span>
1139
- <BubbleCheckIcon className="h-3 w-3 text-green-300" />
141
+ </IconUsageSection>
142
+
143
+ <IconUsageSection title="Review Status List">
144
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm overflow-hidden rounded-xl border">
145
+ {[
146
+ { label: "Introduction", status: "approved" },
147
+ { label: "Chapter 1", status: "approved" },
148
+ { label: "Chapter 2", status: "pending" },
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
+ <BubbleCheckIcon
155
+ className={`h-4 w-4 ${status === "approved" ? "text-fm-icon-positive" : "text-fm-icon-inactive"}`}
156
+ />
157
+ <span className="text-fm-primary font-fm-text text-sm">
158
+ {label}
159
+ </span>
1140
160
  </div>
1141
- </div>
161
+ ))}
1142
162
  </div>
1143
- </div>
1144
-
1145
- {/* Form Confirmation */}
1146
- <div className="!space-y-2">
1147
- <h3 className="text-sm font-medium !text-white">Form Confirmation</h3>
1148
- <div className="rounded-lg border border-white/10 bg-white/5 p-6 text-center">
1149
- <div className="!mx-auto mb-4 flex h-16 w-16 items-center justify-center rounded-full bg-green-500/20">
1150
- <BubbleCheckIcon className="h-8 w-8 text-green-400" />
163
+ </IconUsageSection>
164
+
165
+ <IconUsageSection title="Chat Reply Feedback">
166
+ <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">
167
+ <span className="text-fm-secondary font-fm-text text-sm">
168
+ Response quality
169
+ </span>
170
+ <div className="flex gap-2">
171
+ <BubbleCheckIcon className="text-fm-icon-positive h-5 w-5" />
172
+ <BubbleCrossedIcon className="text-fm-icon-inactive h-5 w-5" />
1151
173
  </div>
1152
- <h3 className="mb-2 text-lg font-semibold !text-white">
1153
- Form Submitted!
1154
- </h3>
1155
- <p className="text-sm !text-white/70">
1156
- We've received your feedback and will get back to you within 24
1157
- hours.
1158
- </p>
1159
- </div>
1160
- </div>
1161
-
1162
- {/* Action Buttons */}
1163
- <div className="!space-y-2">
1164
- <h3 className="text-sm font-medium !text-white">Action Buttons</h3>
1165
- <div className="flex gap-4">
1166
- <button className="flex items-center gap-2 rounded-lg border border-green-500/30 bg-green-500/20 px-4 py-2 text-green-200 transition-colors hover:bg-green-500/30">
1167
- <BubbleCheckIcon className="h-4 w-4" />
1168
- Mark as Read
1169
- </button>
1170
- <button className="flex items-center gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/20 px-4 py-2 text-emerald-200 transition-colors hover:bg-emerald-500/30">
1171
- <BubbleCheckIcon className="h-4 w-4" />
1172
- Approve Message
1173
- </button>
1174
174
  </div>
1175
- </div>
1176
- </div>
1177
- ),
1178
- }
1179
-
1180
- export const AnimatedStates: Story = {
1181
- parameters: {
1182
- ...storyParameters,
1183
- docs: {
1184
- description: {
1185
- story:
1186
- "BubbleCheckIcon with different animation states for success feedback.",
1187
- },
1188
- },
1189
- },
1190
- render: () => (
1191
- <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">
1192
- <div className="text-center">
1193
- <h3 className="mb-4 text-lg font-medium !text-white">
1194
- Bounce Animation
1195
- </h3>
1196
- <div className="rounded-lg border border-white/10 bg-white/5 px-6 py-8">
1197
- <BubbleCheckIcon className="!mx-auto h-8 w-8 animate-bounce text-green-400" />
1198
- </div>
1199
- <p className="mt-2 text-xs !text-white/60">Success celebration</p>
1200
- </div>
1201
-
1202
- <div className="text-center">
1203
- <h3 className="mb-4 text-lg font-medium !text-white">
1204
- Pulse Animation
1205
- </h3>
1206
- <div className="rounded-lg border border-white/10 bg-white/5 px-6 py-8">
1207
- <BubbleCheckIcon className="!mx-auto h-8 w-8 animate-pulse text-green-400" />
1208
- </div>
1209
- <p className="mt-2 text-xs !text-white/60">Attention drawing</p>
1210
- </div>
1211
-
1212
- <div className="text-center">
1213
- <h3 className="mb-4 text-lg font-medium !text-white">Scale on Hover</h3>
1214
- <div className="rounded-lg border border-white/10 bg-white/5 px-6 py-8">
1215
- <BubbleCheckIcon className="!mx-auto h-8 w-8 text-green-400 transition-transform hover:scale-110" />
1216
- </div>
1217
- <p className="mt-2 text-xs !text-white/60">Interactive feedback</p>
1218
- </div>
1219
- </div>
175
+ </IconUsageSection>
176
+ </IconUsageCanvas>
1220
177
  ),
1221
178
  }
1222
179
 
1223
180
  export const Playground: Story = {
1224
- parameters: {
1225
- ...storyParameters,
1226
- docs: {
1227
- description: {
1228
- story:
1229
- "Interactive playground to experiment with different BubbleCheckIcon configurations.",
1230
- },
1231
- },
1232
- },
1233
181
  args: {
1234
- width: 32,
1235
- height: 32,
1236
- className: "text-green-400",
1237
- strokeWidth: 1.5,
1238
- strokeLinecap: "square",
182
+ className: "h-8 w-8 text-fm-icon-positive",
183
+ withAccessibility: true,
1239
184
  },
1240
185
  render: (args) => (
1241
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1242
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1243
- <BubbleCheckIcon {...args} />
1244
- </div>
1245
- </div>
186
+ <IconPlaygroundCanvas>
187
+ <BubbleCheckIcon {...args} />
188
+ </IconPlaygroundCanvas>
1246
189
  ),
1247
190
  }