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