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