aural-ui 4.0.1 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (175) hide show
  1. package/README.md +8 -1
  2. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
  3. package/dist/components/avatar/Avatar.stories.tsx +219 -235
  4. package/dist/components/badge/Badge.stories.tsx +379 -116
  5. package/dist/components/banner/Banner.stories.tsx +445 -391
  6. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  7. package/dist/components/button/Button.stories.tsx +585 -230
  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 -636
  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 +530 -867
  16. package/dist/components/dialog/Dialog.stories.tsx +501 -950
  17. package/dist/components/divider/Divider.stories.tsx +264 -527
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -1023
  20. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
  21. package/dist/components/form/Form.stories.tsx +560 -274
  22. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  23. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
  24. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  25. package/dist/components/if-else/if-else.stories.tsx +370 -83
  26. package/dist/components/input/Input.stories.tsx +436 -368
  27. package/dist/components/label/Label.stories.tsx +156 -154
  28. package/dist/components/list/List.stories.tsx +484 -835
  29. package/dist/components/marquee/Marquee.stories.tsx +356 -712
  30. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
  31. package/dist/components/overlay/Overlay.stories.tsx +452 -824
  32. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  33. package/dist/components/popover/Popover.stories.tsx +481 -896
  34. package/dist/components/radio/Radio.stories.tsx +432 -124
  35. package/dist/components/resizable/Resizable.stories.tsx +495 -799
  36. package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
  37. package/dist/components/search/Search.stories.tsx +312 -595
  38. package/dist/components/select/Select.stories.tsx +684 -789
  39. package/dist/components/sheet/Sheet.stories.tsx +671 -950
  40. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  41. package/dist/components/slider/Slider.stories.tsx +383 -760
  42. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  43. package/dist/components/switch/Switch.stories.tsx +461 -208
  44. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  45. package/dist/components/table/Table.stories.tsx +770 -916
  46. package/dist/components/tabs/Tabs.stories.tsx +458 -1455
  47. package/dist/components/tag/Tag.stories.tsx +714 -542
  48. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  49. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
  50. package/dist/components/toast/Toast.stories.tsx +452 -1339
  51. package/dist/components/toggle/Toggle.stories.tsx +488 -931
  52. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
  53. package/dist/components/typography/Typography.stories.tsx +406 -89
  54. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  55. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  56. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  57. package/dist/icons/Icons.stories.tsx +0 -12
  58. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
  59. package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
  60. package/dist/icons/all-icons.tsx +37 -16
  61. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
  62. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
  63. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
  64. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
  65. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
  66. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
  67. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
  68. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
  69. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
  70. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
  71. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
  72. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
  73. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
  74. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
  75. package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
  76. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
  77. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
  78. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
  79. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
  80. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
  81. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
  82. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
  83. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
  84. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
  85. package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
  86. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
  87. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
  88. package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
  89. package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
  90. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
  91. package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
  92. package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
  93. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
  94. package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
  95. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
  96. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
  97. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
  98. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
  99. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
  100. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
  101. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
  102. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
  103. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
  104. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
  105. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
  106. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
  107. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
  108. package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
  109. package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
  110. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
  111. package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
  112. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
  113. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
  114. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
  115. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
  116. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
  117. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
  118. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
  119. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
  120. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
  121. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
  122. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
  123. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
  124. package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
  125. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
  126. package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
  127. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
  128. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
  129. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
  130. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
  131. package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
  132. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
  133. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
  134. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
  135. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
  136. package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
  137. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
  138. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
  139. package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
  140. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
  141. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
  142. package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
  143. package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
  144. package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
  145. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
  146. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
  147. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
  148. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
  149. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
  150. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
  151. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
  152. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
  153. package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
  154. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
  155. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
  156. package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
  157. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
  158. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
  159. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
  160. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
  161. package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
  162. package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
  163. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
  164. package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
  165. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
  166. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
  167. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
  168. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
  169. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
  170. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
  171. package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
  172. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
  173. package/dist/index.cjs +90 -90
  174. package/dist/index.js +90 -90
  175. package/package.json +8 -3
@@ -1,14 +1,27 @@
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: [
@@ -18,445 +31,69 @@ const meta: Meta<typeof MoonIcon> = {
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: var(--color-fm-surface-primary) !important; }
36
- #storybook-docs { background: var(--color-fm-surface-primary) !important; }
37
- .sbdocs-preview { background: transparent !important; border: none !important; }
38
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 { color: var(--color-fm-icon-active) !important; }
39
- .sbdocs-p, .sbdocs-li { color: var(--color-fm-secondary) !important; }
40
- .sbdocs-code { background: var(--color-fm-surface-secondary) !important; color: var(--color-fm-secondary-500) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
41
- .sbdocs-pre { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
42
- .sbdocs-table { background: var(--color-fm-surface-secondary) !important; border: 1px solid var(--color-fm-divider-secondary) !important; }
43
- .sbdocs-table th { background: var(--color-fm-surface-secondary) !important; color: var(--color-fm-icon-active) !important; border-bottom: 1px solid var(--color-fm-divider-secondary) !important; }
44
- .sbdocs-table td { color: var(--color-fm-secondary) !important; border-bottom: 1px solid var(--color-fm-divider-tertiary) !important; }
45
- `}</style>
46
- <div className="bg-fm-surface-primary min-h-screen">
47
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
48
- <div className="from-fm-secondary-500/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
49
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
50
- <div className="!space-y-6 text-center">
51
- <div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
52
- <MoonIcon className="text-fm-icon-info h-12 w-12" />
53
- </div>
54
- <h1 className="text-fm-icon-active! text-5xl font-bold">
55
- MoonIcon
56
- </h1>
57
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
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-fm-icon-info text-3xl font-bold">
64
- Chat
65
- </div>
66
- <div className="text-fm-icon-active/80 text-sm">
67
- Conversations
68
- </div>
69
- </div>
70
- <div className="bg-fm-divider-primary h-8 w-px" />
71
- <div className="text-center">
72
- <div className="text-fm-icon-info text-3xl font-bold">
73
- Comments
74
- </div>
75
- <div className="text-fm-icon-active/80 text-sm">
76
- Feedback
77
- </div>
78
- </div>
79
- <div className="bg-fm-divider-primary h-8 w-px" />
80
- <div className="text-center">
81
- <div className="text-fm-icon-info text-3xl font-bold">
82
- Accessible
83
- </div>
84
- <div className="text-fm-icon-active/80 text-sm">
85
- Screen reader support
86
- </div>
87
- </div>
88
- </div>
89
- </div>
90
- </div>
91
- </div>
92
- <div className="!mx-auto flex max-w-7xl flex-col gap-6 space-y-16 px-6 py-16">
93
- <div className="!space-y-8">
94
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
95
- Key Features
96
- </h3>
97
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
98
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
99
- <div className="text-3xl">💬</div>
100
- <h4 className="text-fm-icon-active! text-lg font-semibold">
101
- Message Bubble
102
- </h4>
103
- <p className="text-fm-icon-active!/80 text-sm">
104
- Represents chat, comments, and communication
105
- </p>
106
- </div>
107
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
108
- <div className="text-3xl">♿</div>
109
- <h4 className="text-fm-icon-active! text-lg font-semibold">
110
- Accessibility
111
- </h4>
112
- <p className="text-fm-icon-active!/80 text-sm">
113
- Built with screen reader support
114
- </p>
115
- </div>
116
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
117
- <div className="text-3xl">🎨</div>
118
- <h4 className="text-fm-icon-active! text-lg font-semibold">
119
- Customizable
120
- </h4>
121
- <p className="text-fm-icon-active!/80 text-sm">
122
- Flexible styling options
123
- </p>
124
- </div>
125
- </div>
126
- </div>
127
- <div className="!space-y-8">
128
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
129
- API Reference
130
- </h3>
131
- <div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
132
- <div className="bg-fm-surface-secondary p-4">
133
- <h4 className="text-fm-icon-active! text-lg font-semibold">
134
- Props
135
- </h4>
136
- </div>
137
- <table className="!my-0 w-full">
138
- <thead className="bg-fm-surface-secondary">
139
- <tr className="border-fm-divider-secondary border-b">
140
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
141
- Prop
142
- </th>
143
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
144
- Type
145
- </th>
146
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
147
- Default
148
- </th>
149
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
150
- Description
151
- </th>
152
- </tr>
153
- </thead>
154
- <tbody>
155
- {" "}
156
- <tr className="bg-fm-surface-secondary!">
157
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
158
- withAccessibility
159
- </td>
160
- <td className="text-fm-secondary! px-6 py-4 text-sm">
161
- boolean
162
- </td>
163
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
164
- true
165
- </td>
166
- <td className="text-fm-secondary! px-6 py-4 text-sm">
167
- Whether to wrap the icon with accessibility feature
168
- </td>
169
- </tr>
170
- </tbody>
171
- </table>
172
- </div>
173
- </div>
174
- <div className="!space-y-8">
175
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
176
- Usage Examples
177
- </h3>
178
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
179
- <div className="space-y-4">
180
- <h4 className="text-fm-icon-info! text-lg font-semibold">
181
- Basic Usage
182
- </h4>
183
- <div className="bg-fm-surface-secondary rounded-lg p-4">
184
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">{`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"
185
44
 
186
- function ChatButton() {
45
+ function DarkModeToggle() {
187
46
  return (
188
- <button className="flex items-center gap-2">
189
- <MoonIcon className="h-4 w-4 text-blue-400" />
190
- <span>Send Message</span>
47
+ <button>
48
+ <MoonIcon className="h-5 w-5 text-fm-icon-active" />
191
49
  </button>
192
50
  )
193
- }`}</pre>
194
- </div>
195
- </div>
196
- <div className="space-y-4">
197
- <h4 className="text-fm-icon-info! text-lg font-semibold">
198
- Live Preview
199
- </h4>
200
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
201
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
202
- <MoonIcon className="text-fm-icon-info h-4 w-4" />
203
- <span>Send Message</span>
204
- </button>
205
- </div>
206
- </div>
207
- </div>
208
- </div>
209
- <div className="!space-y-8">
210
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
211
- Size Examples
212
- </h3>
213
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
214
- <div className="!space-y-6">
215
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
216
- <div className="!space-y-4">
217
- <h3 className="text-fm-icon-info! text-lg font-semibold">
218
- Standard Sizes
219
- </h3>
220
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
221
- <div className="text-center">
222
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
223
- <span className="text-fm-tertiary text-xs">
224
- 12px
225
- </span>
226
- </div>
227
- <div className="text-center">
228
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
229
- <span className="text-fm-tertiary text-xs">
230
- 16px
231
- </span>
232
- </div>
233
- <div className="text-center">
234
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
235
- <span className="text-fm-tertiary text-xs">
236
- 20px
237
- </span>
238
- </div>
239
- <div className="text-center">
240
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
241
- <span className="text-fm-tertiary text-xs">
242
- 24px
243
- </span>
244
- </div>
245
- <div className="text-center">
246
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
247
- <span className="text-fm-tertiary text-xs">
248
- 32px
249
- </span>
250
- </div>
251
- <div className="text-center">
252
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
253
- <span className="text-fm-tertiary text-xs">
254
- 48px
255
- </span>
256
- </div>
257
- </div>
258
- </div>
259
- <div className="!space-y-4">
260
- <h3 className="text-fm-icon-info! text-lg font-semibold">
261
- Code Example
262
- </h3>
263
- <div className="bg-fm-surface-secondary rounded-lg p-4">
264
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">{`// Small (16px)
265
- <MoonIcon className="h-4 w-4" />
266
-
267
- // Medium (24px)
268
- <MoonIcon className="h-6 w-6" />
269
-
270
- // Large (32px)
271
- <MoonIcon className="h-8 w-8" />
272
-
273
- // Custom size
274
- <MoonIcon width={40} height={40} />`}</pre>
275
- </div>
276
- </div>
277
- </div>
278
- </div>
279
- </div>
280
- </div>
281
- <div className="!space-y-8">
282
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
283
- Common Use Cases
284
- </h3>
285
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2 lg:grid-cols-3">
286
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
287
- <div className="text-2xl">💬</div>
288
- <h4 className="text-fm-icon-active! text-lg font-semibold">
289
- Messaging
290
- </h4>
291
- <p className="text-fm-icon-active!/80 text-sm">
292
- Chat and messaging UIs
293
- </p>
294
- </div>
295
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
296
- <div className="text-2xl">🗨️</div>
297
- <h4 className="text-fm-icon-active! text-lg font-semibold">
298
- Comments
299
- </h4>
300
- <p className="text-fm-icon-active!/80 text-sm">
301
- Comment sections and feedback
302
- </p>
303
- </div>
304
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-6">
305
- <div className="text-2xl">📱</div>
306
- <h4 className="text-fm-icon-active! text-lg font-semibold">
307
- Mobile Apps
308
- </h4>
309
- <p className="text-fm-icon-active!/80 text-sm">
310
- Communication features in apps
311
- </p>
312
- </div>
313
- </div>
314
- </div>
315
- <div className="!space-y-8">
316
- <h3 className="text-fm-icon-active! text-center text-2xl font-bold">
317
- Best Practices
318
- </h3>
319
- <div className="grid grid-cols-1 gap-6 md:grid-cols-2">
320
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
321
- <h4 className="text-fm-icon-positive! text-lg font-semibold">
322
- ✅ Do
323
- </h4>
324
- <ul className="text-fm-icon-active!/80 space-y-2 text-sm">
325
- <li className="text-fm-icon-active!/80">
326
- Use appropriate sizes for different contexts
327
- </li>
328
- <li className="text-fm-icon-active!/80">
329
- Choose colors that match your UI theme
330
- </li>
331
- <li className="text-fm-icon-active!/80">
332
- Provide clear labels for icon buttons
333
- </li>
334
- <li className="text-fm-icon-active!/80">
335
- Use consistent styling across your app
336
- </li>
337
- <li className="text-fm-icon-active!/80">
338
- Consider accessibility in all implementations
339
- </li>
340
- </ul>
341
- </div>
342
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-4 rounded-lg border p-6">
343
- <h4 className="text-fm-icon-negative! text-lg font-semibold">
344
- ❌ Don't
345
- </h4>
346
- <ul className="text-fm-icon-active!/80 space-y-2 text-sm">
347
- <li className="text-fm-icon-active!/80">
348
- Use multiple icon styles in the same view
349
- </li>
350
- <li className="text-fm-icon-active!/80">
351
- Overuse the icon in navigation
352
- </li>
353
- <li className="text-fm-icon-active!/80">
354
- Use inappropriate sizes for the context
355
- </li>
356
- <li className="text-fm-icon-active!/80">
357
- Forget to add hover states
358
- </li>
359
- <li className="text-fm-icon-active!/80">
360
- Ignore accessibility requirements
361
- </li>
362
- </ul>
363
- </div>
364
- </div>
365
- </div>
366
- </div>
367
- <div className="!space-y-8 p-7">
368
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
369
- Related Icons
370
- </h2>
371
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
372
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
373
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
374
- <ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 rotate-90" />
375
- </div>
376
- <div>
377
- <div className="text-fm-icon-active font-medium">
378
- ArrowRightDownIcon
379
- </div>
380
- <div className="text-fm-tertiary text-xs">
381
- Download/decrease
382
- </div>
383
- </div>
384
- </div>
385
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
386
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
387
- <ArrowRightUpIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
388
- </div>
389
- <div>
390
- <div className="text-fm-icon-active font-medium">
391
- ArrowLeftUpIcon
392
- </div>
393
- <div className="text-fm-tertiary text-xs">Back and up</div>
394
- </div>
395
- </div>
396
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
397
- <div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
398
- <span className="text-2xl">↗️</span>
399
- </div>
400
- <div>
401
- <div className="text-fm-icon-active font-medium">
402
- ExternalLinkIcon
403
- </div>
404
- <div className="text-fm-tertiary text-xs">
405
- Alternative style
406
- </div>
407
- </div>
408
- </div>
409
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
410
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
411
- <span className="text-2xl">📈</span>
412
- </div>
413
- <div>
414
- <div className="text-fm-icon-active font-medium">
415
- TrendingUpIcon
416
- </div>
417
- <div className="text-fm-tertiary text-xs">
418
- Growth metrics
419
- </div>
420
- </div>
421
- </div>
422
- </div>
423
- </div>
424
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
425
- <div className="!mx-auto max-w-7xl px-6 py-8">
426
- <div className="!space-y-4 text-center">
427
- <p className="text-fm-tertiary!">
428
- MoonIcon is part of the Aural UI icon library, designed for
429
- chat, comments, and communication interfaces.
430
- </p>
431
- <p className="text-fm-placeholder! text-sm">
432
- Perfect for messaging apps, comment sections, and any
433
- interface requiring a message or chat bubble representation.
434
- </p>
435
- </div>
436
- </div>
437
- </div>
438
- </div>
439
- </>
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
+ />
440
85
  ),
441
86
  },
442
87
  },
443
88
  tags: ["autodocs"],
444
89
  argTypes: {
445
- width: {
446
- control: { type: "range", min: 8, max: 96, step: 2 },
447
- description: "Width of the icon in pixels",
90
+ className: {
91
+ control: "text",
92
+ description: "CSS classes including color token",
448
93
  },
449
94
  withAccessibility: {
450
95
  control: "boolean",
451
- description: "Whether to wrap the icon with accessibility features",
452
- },
453
- height: {
454
- control: { type: "range", min: 8, max: 96, step: 2 },
455
- description: "Height of the icon in pixels",
456
- },
457
- className: {
458
- control: "text",
459
- description: "CSS classes for styling",
96
+ description: "Wrap with accessibility label",
460
97
  },
461
98
  },
462
99
  }
@@ -464,160 +101,83 @@ function ChatButton() {
464
101
  export default meta
465
102
  type Story = StoryObj<typeof MoonIcon>
466
103
 
467
- const storyParameters = {
468
- backgrounds: {
469
- default: "dark",
470
- values: [
471
- { name: "dark", value: "var(--color-fm-surface-primary)" },
472
- { name: "darker", value: "var(--color-fm-neutral-0)" },
473
- ],
474
- },
475
- }
476
-
477
104
  export const Default: Story = {
478
105
  args: {
479
- width: 24,
480
- height: 24,
481
- className: "text-fm-icon-info",
106
+ className: "h-6 w-6 text-fm-icon-active",
482
107
  withAccessibility: true,
483
108
  },
484
- parameters: storyParameters,
485
109
  render: (args) => (
486
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
110
+ <IconDefaultCanvas>
487
111
  <MoonIcon {...args} />
488
- </div>
112
+ </IconDefaultCanvas>
489
113
  ),
490
114
  }
491
115
 
492
116
  export const SizeVariations: Story = {
493
- parameters: {
494
- ...storyParameters,
495
- docs: {
496
- description: {
497
- story:
498
- "MoonIcon in different sizes, from small inline buttons to large call-to-action elements.",
499
- },
500
- },
501
- },
502
- render: () => (
503
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
504
- <div className="text-center">
505
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
506
- <span className="text-fm-tertiary text-xs">12px</span>
507
- </div>
508
- <div className="text-center">
509
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
510
- <span className="text-fm-tertiary text-xs">16px</span>
511
- </div>
512
- <div className="text-center">
513
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
514
- <span className="text-fm-tertiary text-xs">20px</span>
515
- </div>
516
- <div className="text-center">
517
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
518
- <span className="text-fm-tertiary text-xs">24px</span>
519
- </div>
520
- <div className="text-center">
521
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
522
- <span className="text-fm-tertiary text-xs">32px</span>
523
- </div>
524
- <div className="text-center">
525
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
526
- <span className="text-fm-tertiary text-xs">48px</span>
527
- </div>
528
- </div>
529
- ),
117
+ render: () => <IconSizeVariations icon={MoonIcon} />,
530
118
  }
531
119
 
532
120
  export const ColorVariations: Story = {
533
- parameters: {
534
- ...storyParameters,
535
- docs: {
536
- description: {
537
- story:
538
- "MoonIcon with different color variations using Tailwind classes.",
539
- },
540
- },
541
- },
542
- render: () => (
543
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
544
- <div className="text-center">
545
- <MoonIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
546
- <span className="text-fm-tertiary text-xs">Blue</span>
547
- </div>
548
- <div className="text-center">
549
- <MoonIcon className="text-fm-secondary-600 !mx-auto mb-2 h-6 w-6" />
550
- <span className="text-fm-tertiary text-xs">Purple</span>
551
- </div>
552
- <div className="text-center">
553
- <MoonIcon className="text-fm-icon-positive !mx-auto mb-2 h-6 w-6" />
554
- <span className="text-fm-tertiary text-xs">Green</span>
555
- </div>
556
- <div className="text-center">
557
- <MoonIcon className="text-fm-icon-negative !mx-auto mb-2 h-6 w-6" />
558
- <span className="text-fm-tertiary text-xs">Red</span>
559
- </div>
560
- <div className="text-center">
561
- <MoonIcon className="text-fm-icon-warning !mx-auto mb-2 h-6 w-6" />
562
- <span className="text-fm-tertiary text-xs">Yellow</span>
563
- </div>
564
- </div>
565
- ),
121
+ render: () => <IconColorVariations icon={MoonIcon} />,
566
122
  }
567
123
 
568
124
  export const UsageExamples: Story = {
569
- parameters: {
570
- ...storyParameters,
571
- docs: {
572
- description: {
573
- story:
574
- "Common usage examples of MoonIcon, such as dark mode toggles, night mode indicators, and quiet hours.",
575
- },
576
- },
577
- },
578
125
  render: () => (
579
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh flex-col items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
580
- {/* Dark Mode Toggle */}
581
- <button className="border-fm-icon-warning/20 bg-fm-icon-warning/10 text-fm-icon-active hover:bg-fm-icon-warning/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
582
- <MoonIcon className="text-fm-icon-warning h-4 w-4" />
583
- <span>Enable Dark Mode</span>
584
- </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>
585
137
 
586
- {/* Quiet Hours Setting */}
587
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 flex items-center gap-2 rounded-lg border px-4 py-2">
588
- <MoonIcon className="text-fm-icon-info h-4 w-4" />
589
- <span className="text-fm-icon-active/80">Quiet Hours: On</span>
590
- </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>
591
154
 
592
- {/* Sleep Mode */}
593
- <button className="border-fm-secondary-500/20 bg-fm-secondary-500/10 text-fm-icon-active hover:bg-fm-secondary-500/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
594
- <MoonIcon className="text-fm-secondary-600 h-4 w-4" />
595
- <span>Activate Sleep Mode</span>
596
- </button>
597
- </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>
598
170
  ),
599
171
  }
600
172
 
601
173
  export const Playground: Story = {
602
- parameters: {
603
- ...storyParameters,
604
- docs: {
605
- description: {
606
- story:
607
- "Interactive playground to experiment with different MoonIcon configurations.",
608
- },
609
- },
610
- },
611
174
  args: {
612
- width: 32,
613
- height: 32,
614
- className: "text-fm-icon-info",
175
+ className: "h-8 w-8 text-fm-icon-active",
176
+ withAccessibility: true,
615
177
  },
616
178
  render: (args) => (
617
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
618
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
619
- <MoonIcon {...args} />
620
- </div>
621
- </div>
179
+ <IconPlaygroundCanvas>
180
+ <MoonIcon {...args} />
181
+ </IconPlaygroundCanvas>
622
182
  ),
623
183
  }