aural-ui 3.0.7 → 4.1.0

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