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