aural-ui 4.0.1 → 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 (174) hide show
  1. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
  2. package/dist/components/avatar/Avatar.stories.tsx +219 -235
  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/card/Card.stories.tsx +619 -301
  8. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  9. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  10. package/dist/components/chip/Chip.stories.tsx +362 -168
  11. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -636
  12. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  13. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  14. package/dist/components/command/Command.stories.tsx +530 -867
  15. package/dist/components/dialog/Dialog.stories.tsx +501 -950
  16. package/dist/components/divider/Divider.stories.tsx +264 -527
  17. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  18. package/dist/components/drawer/Drawer.stories.tsx +659 -1023
  19. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
  20. package/dist/components/form/Form.stories.tsx +560 -274
  21. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  22. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
  23. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  24. package/dist/components/if-else/if-else.stories.tsx +370 -83
  25. package/dist/components/input/Input.stories.tsx +436 -368
  26. package/dist/components/label/Label.stories.tsx +156 -154
  27. package/dist/components/list/List.stories.tsx +484 -835
  28. package/dist/components/marquee/Marquee.stories.tsx +356 -712
  29. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
  30. package/dist/components/overlay/Overlay.stories.tsx +452 -824
  31. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  32. package/dist/components/popover/Popover.stories.tsx +481 -896
  33. package/dist/components/radio/Radio.stories.tsx +432 -124
  34. package/dist/components/resizable/Resizable.stories.tsx +495 -799
  35. package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
  36. package/dist/components/search/Search.stories.tsx +312 -595
  37. package/dist/components/select/Select.stories.tsx +684 -789
  38. package/dist/components/sheet/Sheet.stories.tsx +671 -950
  39. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  40. package/dist/components/slider/Slider.stories.tsx +383 -760
  41. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  42. package/dist/components/switch/Switch.stories.tsx +461 -208
  43. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  44. package/dist/components/table/Table.stories.tsx +770 -916
  45. package/dist/components/tabs/Tabs.stories.tsx +458 -1455
  46. package/dist/components/tag/Tag.stories.tsx +714 -542
  47. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  48. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
  49. package/dist/components/toast/Toast.stories.tsx +452 -1339
  50. package/dist/components/toggle/Toggle.stories.tsx +488 -931
  51. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
  52. package/dist/components/typography/Typography.stories.tsx +406 -89
  53. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  54. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  55. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  56. package/dist/icons/Icons.stories.tsx +0 -12
  57. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
  58. package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
  59. package/dist/icons/all-icons.tsx +37 -16
  60. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
  61. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
  62. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
  63. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
  64. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
  65. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
  66. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
  67. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
  68. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
  69. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
  70. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
  71. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
  72. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
  73. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
  74. package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
  75. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
  76. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
  77. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
  78. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
  79. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
  80. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
  81. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
  82. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
  83. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
  84. package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
  85. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
  86. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
  87. package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
  88. package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
  89. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
  90. package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
  91. package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
  92. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
  93. package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
  94. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
  95. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
  96. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
  97. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
  98. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
  99. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
  100. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
  101. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
  102. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
  103. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
  104. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
  105. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
  106. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
  107. package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
  108. package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
  109. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
  110. package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
  111. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
  112. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
  113. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
  114. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
  115. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
  116. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
  117. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
  118. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
  119. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
  120. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
  121. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
  122. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
  123. package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
  124. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
  125. package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
  126. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
  127. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
  128. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
  129. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
  130. package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
  131. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
  132. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
  133. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
  134. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
  135. package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
  136. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
  137. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
  138. package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
  139. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
  140. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
  141. package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
  142. package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
  143. package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
  144. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
  145. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
  146. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
  147. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
  148. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
  149. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
  150. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
  151. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
  152. package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
  153. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
  154. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
  155. package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
  156. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
  157. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
  158. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
  159. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
  160. package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
  161. package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
  162. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
  163. package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
  164. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
  165. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
  166. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
  167. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
  168. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
  169. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
  170. package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
  171. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
  172. package/dist/index.cjs +1 -1
  173. package/dist/index.js +1 -1
  174. package/package.json +1 -1
@@ -1,6 +1,21 @@
1
1
  import React from "react"
2
2
  import type { Meta, StoryObj } from "@storybook/react-vite"
3
3
 
4
+ import { ArrowBoxLeftIcon } from "src/ui/icons/arrow-box-left-icon"
5
+ import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
6
+ import { DownloadIcon } from "src/ui/icons/download-icon"
7
+ import { UploadIcon } from "src/ui/icons/upload-icon"
8
+ import {
9
+ IconColorVariations,
10
+ IconDefaultCanvas,
11
+ IconDirectionalVariations,
12
+ IconPlaygroundCanvas,
13
+ IconSizeVariations,
14
+ IconUsageCanvas,
15
+ IconUsageSection,
16
+ } from "src/ui/story-spec/icons/icon-story-canvas"
17
+ import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
18
+
4
19
  import { ImportLeftArrowFolderIcon } from "."
5
20
 
6
21
  const meta: Meta<typeof ImportLeftArrowFolderIcon> = {
@@ -18,1058 +33,73 @@ const meta: Meta<typeof ImportLeftArrowFolderIcon> = {
18
33
  },
19
34
  docs: {
20
35
  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: var(--color-fm-surface-primary) ;
44
- }
45
- #storybook-docs {
46
- background: var(--color-fm-surface-primary) ;
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: var(--color-fm-icon-active) ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: var(--color-fm-secondary) ;
57
- }
58
- .sbdocs-code {
59
- background: var(--color-fm-surface-secondary) ;
60
- color: var(--color-fm-secondary-500) ;
61
- border: 1px solid var(--color-fm-divider-secondary) ;
62
- }
63
- .sbdocs-pre {
64
- background: var(--color-fm-surface-secondary) ;
65
- border: 1px solid var(--color-fm-divider-secondary) ;
66
- }
67
- .sbdocs-table {
68
- background: var(--color-fm-surface-secondary) ;
69
- border: 1px solid var(--color-fm-divider-secondary) ;
70
- }
71
- .sbdocs-table th {
72
- background: var(--color-fm-surface-secondary) ;
73
- color: var(--color-fm-icon-active) ;
74
- border-bottom: 1px solid var(--color-fm-divider-secondary) ;
75
- }
76
- .sbdocs-table td {
77
- color: var(--color-fm-secondary) ;
78
- border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
79
- }
80
- @keyframes search-pulse {
81
- 0%, 100% { transform: scale(1); opacity: 1; }
82
- 50% { transform: scale(1.05); opacity: 0.8; }
83
- }
84
- .animate-search-pulse {
85
- animation: search-pulse 2s ease-in-out infinite;
86
- }
87
- @keyframes document-slide {
88
- 0%, 100% { transform: translateX(0) rotate(0deg); }
89
- 50% { transform: translateX(-2px) rotate(-1deg); }
90
- }
91
- .animate-document-slide {
92
- animation: document-slide 3s ease-in-out infinite;
93
- }
94
- `}
95
- </style>
96
-
97
- <div className="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
98
- {/* Header */}
99
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative overflow-hidden border-b backdrop-blur-xl">
100
- <div className="from-fm-icon-info/10 to-fm-icon-info/10 absolute inset-0 bg-linear-to-r via-transparent" />
101
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
102
- <div className="!space-y-6 text-center">
103
- <div className="border-fm-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
104
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-12 w-12" />
105
- </div>
106
- <h1 className="!text-fm-primary text-5xl font-bold">
107
- ImportLeftArrowFolderIcon
108
- </h1>
109
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
110
- A specialized folder icon featuring a left-pointing import
111
- arrow, symbolizing incoming files or data. Ideal for file
112
- transfer interfaces, document import workflows, and
113
- organized content systems. Designed with accessibility in
114
- mind using Radix UI's AccessibleIcon wrapper.
115
- </p>
116
-
117
- {/* Stats */}
118
- <div className="flex items-center justify-center gap-8 pt-8">
119
- <div className="text-center">
120
- <div className="text-fm-icon-info text-3xl font-bold">
121
- Import
122
- </div>
123
- <div className="text-fm-tertiary text-sm">
124
- Bring in files smoothly
125
- </div>
126
- </div>
127
- <div className="bg-fm-divider-primary h-8 w-px" />
128
- <div className="text-center">
129
- <div className="text-fm-icon-info text-3xl font-bold">
130
- Directional
131
- </div>
132
- <div className="text-fm-tertiary text-sm">
133
- Left-arrow indicator
134
- </div>
135
- </div>
136
- <div className="bg-fm-divider-primary h-8 w-px" />
137
- <div className="text-center">
138
- <div className="text-fm-icon-info text-3xl font-bold">
139
- Accessible
140
- </div>
141
- <div className="text-fm-tertiary text-sm">
142
- Radix UI supported
143
- </div>
144
- </div>
145
- </div>
146
- </div>
147
- </div>
148
- </div>
149
-
150
- {/* Content */}
151
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
152
- {/* Quick Usage */}
153
- <div className="!space-y-8">
154
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
155
- Quick Start
156
- </h2>
157
-
158
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
159
- {/* Basic Usage */}
160
- <div className="!space-y-4">
161
- <h3 className="text-fm-icon-info! text-xl font-semibold">
162
- Basic Usage
163
- </h3>
164
- <div className="bg-fm-surface-secondary rounded-lg p-4">
165
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">{`import { ImportLeftArrowFolderIcon } from "@icons/import-left-arrow-folder-icon"
36
+ <AuralIconDocsPage
37
+ accentToken="info"
38
+ features={[
39
+ {
40
+ title: "Import Files",
41
+ description: "Folder with import arrow",
42
+ },
43
+ { title: "currentColor", description: "Responds to text tokens" },
44
+ { title: "Accessible", description: "ARIA-ready by default" },
45
+ ]}
46
+ quickStart={{
47
+ codeExample: `import { ImportLeftArrowFolderIcon } from "src/ui/icons/import-left-arrow-folder-icon"
166
48
 
167
49
  function ImportButton() {
168
50
  return (
169
- <button
170
- aria-label="Import folder"
171
- className="flex items-center gap-2 rounded border border-indigo-500/30 bg-indigo-500/10 px-4 py-2 text-indigo-300 hover:bg-indigo-500/20 hover:cursor-pointer"
172
- >
173
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
51
+ <button className="flex items-center gap-2">
52
+ <ImportLeftArrowFolderIcon className="h-5 w-5 text-fm-icon-active" />
174
53
  Import
175
54
  </button>
176
55
  )
177
- }`}</pre>
178
- </div>
179
- </div>
180
-
181
- {/* Live Preview */}
182
- <div className="!space-y-4">
183
- <h3 className="text-fm-icon-info! text-xl font-semibold">
184
- Live Preview
185
- </h3>
186
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
187
- <button className="border-fm-icon-info/30 bg-fm-icon-info/10 text-fm-icon-info hover:bg-fm-icon-info/20 flex items-center gap-2 rounded border px-4 py-2 hover:cursor-pointer">
188
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
189
- Import
190
- </button>
191
- </div>
192
- </div>
193
- </div>
194
- </div>
195
-
196
- {/* Props Documentation */}
197
- <div className="!space-y-8">
198
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
199
- Props & Configuration
200
- </h2>
201
-
202
- <div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
203
- <div className="bg-fm-surface-secondary p-4">
204
- <h3 className="text-fm-icon-active! text-xl font-semibold">
205
- Props
206
- </h3>
207
- </div>
208
- <table className="!my-0 w-full">
209
- <thead className="bg-fm-surface-secondary">
210
- <tr className="border-fm-divider-secondary border-b">
211
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
212
- Prop
213
- </th>
214
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
215
- Type
216
- </th>
217
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
218
- Default
219
- </th>
220
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
221
- Description
222
- </th>
223
- </tr>
224
- </thead>
225
- <tbody>
226
- {" "}
227
- <tr className="bg-fm-surface-secondary!">
228
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
229
- withAccessibility
230
- </td>
231
- <td className="text-fm-secondary! px-6 py-4 text-sm">
232
- boolean
233
- </td>
234
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
235
- true
236
- </td>
237
- <td className="text-fm-secondary! px-6 py-4 text-sm">
238
- Whether to wrap the icon with accessibility feature
239
- </td>
240
- </tr>
241
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
242
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
243
- height
244
- </td>
245
- <td className="text-fm-secondary! px-6 py-4 text-sm">
246
- number | string
247
- </td>
248
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
249
- 24
250
- </td>
251
- <td className="text-fm-secondary! px-6 py-4 text-sm">
252
- Height of the icon in pixels
253
- </td>
254
- </tr>
255
- <tr className="border-fm-divider-tertiary border-b">
256
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
257
- stroke
258
- </td>
259
- <td className="text-fm-secondary! px-6 py-4 text-sm">
260
- string
261
- </td>
262
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
263
- currentColor
264
- </td>
265
- <td className="text-fm-secondary! px-6 py-4 text-sm">
266
- Stroke color of the icon lines
267
- </td>
268
- </tr>
269
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
270
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
271
- strokeWidth
272
- </td>
273
- <td className="text-fm-secondary! px-6 py-4 text-sm">
274
- number | string
275
- </td>
276
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
277
- 1.5
278
- </td>
279
- <td className="text-fm-secondary! px-6 py-4 text-sm">
280
- Thickness of the stroke lines
281
- </td>
282
- </tr>
283
- <tr className="border-fm-divider-tertiary border-b">
284
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
285
- strokeLinecap
286
- </td>
287
- <td className="text-fm-secondary! px-6 py-4 text-sm">
288
- string
289
- </td>
290
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
291
- square
292
- </td>
293
- <td className="text-fm-secondary! px-6 py-4 text-sm">
294
- Style of line endings (e.g., butt, round, square)
295
- </td>
296
- </tr>
297
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
298
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
299
- className
300
- </td>
301
- <td className="text-fm-secondary! px-6 py-4 text-sm">
302
- string
303
- </td>
304
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
305
- -
306
- </td>
307
- <td className="text-fm-secondary! px-6 py-4 text-sm">
308
- CSS classes for styling (use for size, color, etc.)
309
- </td>
310
- </tr>
311
- <tr className="bg-fm-surface-secondary!">
312
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
313
- ...svgProps
314
- </td>
315
- <td className="text-fm-secondary! px-6 py-4 text-sm">
316
- SVGProps
317
- </td>
318
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
319
- -
320
- </td>
321
- <td className="text-fm-secondary! px-6 py-4 text-sm">
322
- All standard SVG element props supported by React
323
- </td>
324
- </tr>
325
- </tbody>
326
- </table>
327
- </div>
328
- </div>
329
-
330
- {/* Size Variations */}
331
- <div className="!space-y-8">
332
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
333
- Size Variations
334
- </h2>
335
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
336
- <div className="!space-y-6">
337
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
338
- <div className="!space-y-4">
339
- <h3 className="text-fm-icon-info! text-lg font-semibold">
340
- Standard Sizes
341
- </h3>
342
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
343
- <div className="text-center">
344
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
345
- <span className="text-fm-tertiary text-xs">
346
- 12px
347
- </span>
348
- </div>
349
- <div className="text-center">
350
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
351
- <span className="text-fm-tertiary text-xs">
352
- 16px
353
- </span>
354
- </div>
355
- <div className="text-center">
356
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
357
- <span className="text-fm-tertiary text-xs">
358
- 20px
359
- </span>
360
- </div>
361
- <div className="text-center">
362
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
363
- <span className="text-fm-tertiary text-xs">
364
- 24px
365
- </span>
366
- </div>
367
- <div className="text-center">
368
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
369
- <span className="text-fm-tertiary text-xs">
370
- 32px
371
- </span>
372
- </div>
373
- <div className="text-center">
374
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
375
- <span className="text-fm-tertiary text-xs">
376
- 48px
377
- </span>
378
- </div>
379
- </div>
380
- </div>
381
-
382
- <div className="!space-y-4">
383
- <h3 className="text-fm-icon-info! text-lg font-semibold">
384
- Code Example
385
- </h3>
386
- <div className="bg-fm-surface-secondary rounded-lg p-4">
387
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
388
- {`// Small (16px)
389
- <ImportLeftArrowFolderIcon className="h-4 w-4 " />
390
-
391
- // Medium (24px)
392
- <ImportLeftArrowFolderIcon className="h-6 w-6 " />
393
-
394
- // Large (32px)
395
- <ImportLeftArrowFolderIcon className="h-8 w-8 " />
396
-
397
- // Custom size with props
398
- <ImportLeftArrowFolderIcon width={40} height={40} />`}
399
- </pre>
400
- </div>
401
- </div>
402
- </div>
403
- </div>
404
- </div>
405
- </div>
406
-
407
- {/* Color Variations */}
408
- <div className="!space-y-8">
409
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
410
- Color Variations
411
- </h2>
412
-
413
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
414
- {/* Semantic Colors */}
415
- <div className="!space-y-4">
416
- <h3 className="text-fm-icon-info! text-lg font-semibold">
417
- Semantic Colors
418
- </h3>
419
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
420
- <div className="flex items-center gap-4">
421
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-6 w-6" />
422
- <div>
423
- <div className="text-fm-icon-active text-sm font-medium">
424
- Primary
425
- </div>
426
- <div className="text-fm-tertiary text-xs">
427
- text-fm-icon-info
428
- </div>
429
- </div>
430
- </div>
431
- <div className="flex items-center gap-4">
432
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-6 w-6" />
433
- <div>
434
- <div className="text-fm-icon-active text-sm font-medium">
435
- Active
436
- </div>
437
- <div className="text-fm-tertiary text-xs">
438
- text-fm-icon-info
439
- </div>
440
- </div>
441
- </div>
442
- <div className="flex items-center gap-4">
443
- <ImportLeftArrowFolderIcon className="text-fm-placeholder h-6 w-6" />
444
- <div>
445
- <div className="text-fm-icon-active text-sm font-medium">
446
- Disabled
447
- </div>
448
- <div className="text-fm-tertiary text-xs">
449
- text-fm-placeholder
450
- </div>
451
- </div>
452
- </div>
453
- <div className="flex items-center gap-4">
454
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-6 w-6" />
455
- <div>
456
- <div className="text-fm-icon-active text-sm font-medium">
457
- Info
458
- </div>
459
- <div className="text-fm-tertiary text-xs">
460
- text-fm-icon-info
461
- </div>
462
- </div>
463
- </div>
464
- <div className="flex items-center gap-4">
465
- <ImportLeftArrowFolderIcon className="text-fm-icon-positive h-6 w-6" />
466
- <div>
467
- <div className="text-fm-icon-active text-sm font-medium">
468
- Success
469
- </div>
470
- <div className="text-fm-tertiary text-xs">
471
- text-fm-icon-positive
472
- </div>
473
- </div>
474
- </div>
475
- <div className="flex items-center gap-4">
476
- <ImportLeftArrowFolderIcon className="text-fm-icon-warning h-6 w-6" />
477
- <div>
478
- <div className="text-fm-icon-active text-sm font-medium">
479
- Warning
480
- </div>
481
- <div className="text-fm-tertiary text-xs">
482
- text-fm-icon-warning
483
- </div>
484
- </div>
485
- </div>
486
- <div className="flex items-center gap-4">
487
- <ImportLeftArrowFolderIcon className="text-fm-icon-negative h-6 w-6" />
488
- <div>
489
- <div className="text-fm-icon-active text-sm font-medium">
490
- Error
491
- </div>
492
- <div className="text-fm-tertiary text-xs">
493
- text-fm-icon-negative
494
- </div>
495
- </div>
496
- </div>
497
- </div>
498
- </div>
499
-
500
- {/* Custom Colors */}
501
- <div className="!space-y-4">
502
- <h3 className="text-fm-icon-info! text-lg font-semibold">
503
- Custom Colors
504
- </h3>
505
- <div className="bg-fm-surface-secondary rounded-lg p-4">
506
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
507
- {`// Using Tailwind classes
508
- <ImportLeftArrowFolderIcon className="h-6 w-6 text-indigo-400" />
509
- <ImportLeftArrowFolderIcon className="h-6 w-6 text-cyan-500" />
510
-
511
- // Using CSS custom properties
512
- <ImportLeftArrowFolderIcon
513
- className="h-6 w-6"
514
- style={{ color: 'var(--color-primary)' }}
515
- />
516
-
517
- // Direct stroke prop
518
- <ImportLeftArrowFolderIcon
519
- width={24}
520
- height={24}
521
- stroke="#3b82f6"
522
- />`}
523
- </pre>
524
- </div>
525
- </div>
526
- </div>
527
- </div>
528
-
529
- {/* Usage Examples */}
530
- <div className="!space-y-8">
531
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
532
- Usage Examples
533
- </h2>
534
-
535
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
536
- {/* File Import Area */}
537
- <div className="!space-y-4">
538
- <h3 className="text-fm-icon-info! text-lg font-semibold">
539
- File Import Area
540
- </h3>
541
- <div className="!space-y-4">
542
- <div className="border-fm-divider-primary bg-fm-surface-secondary hover:border-fm-icon-info/50 hover:bg-fm-icon-info/10 relative rounded-lg border-2 border-dashed p-8 text-center transition-colors">
543
- <ImportLeftArrowFolderIcon className="text-fm-placeholder !mx-auto h-12 w-12" />
544
- <h4 className="text-fm-icon-active! mt-4 text-lg font-medium">
545
- Import Folder
546
- </h4>
547
- <p className="text-fm-tertiary! mt-2 text-sm">
548
- Drag and drop folders here, or click to browse
549
- </p>
550
- <button className="bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 mt-4 rounded-lg px-4 py-2 transition-colors">
551
- Browse Folders
552
- </button>
553
- </div>
554
- <div className="bg-fm-surface-secondary rounded-lg p-4">
555
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
556
- {`<div className="relative border-2 border-dashed border-white/20 bg-white/5 p-8 text-center rounded-lg hover:border-indigo-400/50 hover:bg-indigo-500/10 transition-colors">
557
- <ImportFolderIcon className="mx-auto h-12 w-12 text-white/40" />
558
- <h4 className="mt-4 text-lg font-medium text-white">Import Folder</h4>
559
- <p className="mt-2 text-sm text-white/60">
560
- Drag and drop folders here, or click to browse
561
- </p>
562
- <button className="mt-4 bg-indigo-500/20 px-4 py-2 rounded-lg text-indigo-300 hover:bg-indigo-500/30 transition-colors">
563
- Browse Folders
564
- </button>
565
- </div>`}
566
- </pre>
567
- </div>
568
- </div>
569
- </div>
570
-
571
- {/* Import Status List */}
572
- <div className="!space-y-4">
573
- <h3 className="text-fm-icon-info! text-lg font-semibold">
574
- Import Status List
575
- </h3>
576
- <div className="!space-y-4">
577
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4">
578
- {[
579
- { name: "Documents", status: "completed", count: 24 },
580
- { name: "Images", status: "processing", count: 56 },
581
- { name: "Videos", status: "pending", count: 12 },
582
- ].map((folder, index) => (
583
- <div
584
- key={index}
585
- className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-3 rounded border p-3 transition-colors"
586
- >
587
- <ImportLeftArrowFolderIcon
588
- className={`h-5 w-5 ${
589
- folder.status === "completed"
590
- ? "text-green-400"
591
- : folder.status === "processing"
592
- ? "text-yellow-400"
593
- : "text-gray-400"
594
- }`}
595
- />
596
- <div className="flex-1">
597
- <div className="text-fm-icon-active text-sm font-medium">
598
- {folder.name}
599
- </div>
600
- <div className="text-fm-tertiary text-xs">
601
- {folder.count} files
602
- </div>
603
- </div>
604
- <div
605
- className={`rounded px-2 py-1 text-xs ${
606
- folder.status === "completed"
607
- ? "bg-green-500/20 text-green-300"
608
- : folder.status === "processing"
609
- ? "bg-yellow-500/20 text-yellow-300"
610
- : "bg-gray-500/20 text-gray-300"
611
- }`}
612
- >
613
- {folder.status}
614
- </div>
615
- </div>
616
- ))}
617
- </div>
618
- <div className="bg-fm-surface-secondary rounded-lg p-4">
619
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
620
- {`// Import status item
621
- <div className="flex items-center gap-3 border border-white/10 bg-white/5 p-3 rounded hover:bg-white/10 transition-colors">
622
- <ImportFolderIcon className="h-5 w-5 text-green-400" />
623
- <div className="flex-1">
624
- <div className="text-sm font-medium text-white">Documents</div>
625
- <div className="text-xs text-white/60">24 files</div>
626
- </div>
627
- <div className="text-xs px-2 py-1 rounded bg-green-500/20 text-green-300">
628
- completed
629
- </div>
630
- </div>`}
631
- </pre>
632
- </div>
633
- </div>
634
- </div>
635
-
636
- {/* Button Integration */}
637
- <div className="!space-y-4">
638
- <h3 className="text-fm-icon-info! text-lg font-semibold">
639
- Button Integration
640
- </h3>
641
- <div className="!space-y-4">
642
- <div className="flex flex-wrap gap-4">
643
- <button className="border-fm-icon-info/30 bg-fm-icon-info/20 text-fm-icon-info hover:bg-fm-icon-info/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
644
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
645
- Import Folder
646
- </button>
647
- <button className="border-fm-icon-warning/30 bg-fm-icon-warning/20 text-fm-icon-warning hover:bg-fm-icon-warning/30 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
648
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
649
- Batch Import
650
- </button>
651
- <button className="border-fm-divider-primary bg-fm-surface-secondary text-fm-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
652
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
653
- Browse Folders
654
- </button>
655
- </div>
656
- <div className="bg-fm-surface-secondary rounded-lg p-4">
657
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
658
- {`// Primary import button
659
- <button className="flex items-center gap-2 bg-indigo-500/20 border border-indigo-500/30 px-4 py-2 rounded-lg">
660
- <ImportFolderIcon className="h-4 w-4" />
661
- Import Folder
662
- </button>
663
-
664
- // Secondary button
665
- <button className="flex items-center gap-2 bg-white/5 border border-white/20 px-4 py-2 rounded-lg">
666
- <ImportFolderIcon className="h-4 w-4" />
667
- Browse Folders
668
- </button>`}
669
- </pre>
670
- </div>
671
- </div>
672
- </div>
673
-
674
- {/* Sidebar Navigation */}
675
- <div className="!space-y-4">
676
- <h3 className="text-fm-icon-info! text-lg font-semibold">
677
- Sidebar Navigation
678
- </h3>
679
- <div className="!space-y-4">
680
- <div className="border-fm-divider-secondary bg-fm-surface-secondary max-w-xs rounded-lg border p-3">
681
- {[
682
- { name: "All Files", icon: "📄", active: false },
683
- {
684
- name: "Import Folder",
685
- icon: "ImportFolderIcon",
686
- active: true,
687
- },
688
- { name: "Recent", icon: "🕒", active: false },
689
- { name: "Shared", icon: "👥", active: false },
690
- ].map((item, index) => (
691
- <div
692
- key={index}
693
- className={`flex cursor-pointer items-center gap-3 rounded p-2 transition-colors ${
694
- item.active
695
- ? "bg-indigo-500/20 text-indigo-200"
696
- : "text-white/70 hover:bg-white/10"
697
- }`}
698
- >
699
- {item.icon === "ImportFolderIcon" ? (
700
- <ImportLeftArrowFolderIcon
701
- className={`h-4 w-4 ${
702
- item.active
703
- ? "text-indigo-400"
704
- : "text-white/50"
705
- }`}
706
- />
707
- ) : (
708
- <span className="text-sm">{item.icon}</span>
709
- )}
710
- <span className="flex-1 text-sm">{item.name}</span>
711
- {item.active && (
712
- <div className="bg-fm-icon-info h-2 w-2 rounded-full"></div>
713
- )}
714
- </div>
715
- ))}
716
- </div>
717
- <div className="bg-fm-surface-secondary rounded-lg p-4">
718
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
719
- {`// Navigation item
720
- <div className="flex items-center gap-3 p-2 rounded bg-indigo-500/20 text-indigo-200 cursor-pointer">
721
- <ImportFolderIcon className="h-4 w-4 text-indigo-400" />
722
- <span className="flex-1 text-sm">Import Folder</span>
723
- <div className="h-2 w-2 rounded-full bg-indigo-400"></div>
724
- </div>`}
725
- </pre>
726
- </div>
727
- </div>
728
- </div>
729
- </div>
730
- </div>
731
-
732
- {/* Interactive States And Animations */}
733
- <div className="!space-y-8">
734
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
735
- Interactive States & Animations
736
- </h2>
737
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
738
- <div className="!space-y-4">
739
- <h3 className="text-fm-icon-info! text-lg font-semibold">
740
- Hover & Animation Effects
741
- </h3>
742
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
743
- <div className="flex items-center gap-4">
744
- <ImportLeftArrowFolderIcon className="text-fm-tertiary hover:text-fm-icon-info h-6 w-6 transition-colors" />
745
- <div>
746
- <div className="text-fm-icon-active text-sm font-medium">
747
- Color Change
748
- </div>
749
- <div className="text-fm-tertiary text-xs">
750
- hover:text-fm-icon-info
751
- </div>
752
- </div>
753
- </div>
754
- <div className="flex items-center gap-4">
755
- <ImportLeftArrowFolderIcon className="text-fm-icon-active h-6 w-6 transition-transform hover:scale-110" />
756
- <div>
757
- <div className="text-fm-icon-active text-sm font-medium">
758
- Scale Up
759
- </div>
760
- <div className="text-fm-tertiary text-xs">
761
- hover:scale-110
762
- </div>
763
- </div>
764
- </div>
765
- <div className="flex items-center gap-4">
766
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-6 w-6 animate-pulse" />
767
- <div>
768
- <div className="text-fm-icon-active text-sm font-medium">
769
- Processing
770
- </div>
771
- <div className="text-fm-tertiary text-xs">
772
- animate-pulse
773
- </div>
774
- </div>
775
- </div>
776
- <div className="flex items-center gap-4">
777
- <div
778
- className="rounded p-2 focus:ring-2 focus:ring-indigo-400 focus:outline-none"
779
- tabIndex={0}
780
- >
781
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-6 w-6" />
782
- </div>
783
- <div>
784
- <div className="text-fm-icon-active text-sm font-medium">
785
- Focus Ring
786
- </div>
787
- <div className="text-fm-tertiary text-xs">
788
- focus:ring-2
789
- </div>
790
- </div>
791
- </div>
792
- <div className="flex items-center gap-4">
793
- <ImportLeftArrowFolderIcon className="animate-document-slide text-fm-icon-negative h-6 w-6" />
794
-
795
- <div>
796
- <div className="text-fm-icon-active text-sm font-medium">
797
- Document Slide
798
- </div>
799
- <div className="text-fm-tertiary text-xs">
800
- animate-document-slide
801
- </div>
802
- </div>
803
- </div>
804
- </div>
805
- </div>
806
-
807
- <div className="!space-y-4">
808
- <h3 className="text-fm-icon-info! text-lg font-semibold">
809
- State Examples
810
- </h3>
811
- <div className="bg-fm-surface-secondary rounded-lg p-4">
812
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
813
- {`// Hover effects
814
- <ImportLeftArrowFolderIcon className="h-6 w-6 text-white/60 hover:text-green-400 transition-colors " />
815
-
816
- // Scale on hover
817
- <ImportLeftArrowFolderIcon className="h-6 w-6 text-white hover:scale-110 transition-transform " />
818
-
819
- // Processing animation
820
- <ImportLeftArrowFolderIcon className="h-6 w-6 text-green-400 animate-pulse " />
821
-
822
- // Focus states for accessibility
823
- <div className="p-2 rounded focus:ring-2 focus:ring-green-500 focus:outline-none" tabIndex={0}>
824
- <ImportLeftArrowFolderIcon className="h-6 w-6 text-white " />
825
- </div>
826
-
827
- // Pulse animation keyframes
828
- @keyframes pulse {
829
- 0%, 100% { opacity: 1; }
830
- 50% { opacity: 0.5; }
831
- }
832
-
833
- .animate-pulse {
834
- animation: pulse 2s ease-in-out infinite;
835
- }`}
836
- </pre>
837
- </div>
838
- </div>
839
- </div>
840
- </div>
841
-
842
- {/* Accessibility */}
843
- <div className="!space-y-8">
844
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
845
- Accessibility Features
846
- </h2>
847
-
848
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
849
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
850
- <h3 className="text-fm-icon-positive! text-lg font-semibold">
851
- ✅ Built-in Features
852
- </h3>
853
- <ul className="text-fm-secondary! !space-y-2 text-sm">
854
- <li className="text-fm-secondary!">
855
- Uses Radix UI AccessibleIcon wrapper
856
- </li>
857
- <li className="text-fm-secondary!">
858
- Provides screen reader label "Import Left Arrow folder
859
- icon"
860
- </li>
861
- <li className="text-fm-secondary!">
862
- Maintains proper color contrast ratios
863
- </li>
864
- <li className="text-fm-secondary!">
865
- Scales with user's font size preferences
866
- </li>
867
- </ul>
868
- </div>
869
-
870
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
871
- <h3 className="text-fm-icon-info! text-lg font-semibold">
872
- 💡 Best Practices
873
- </h3>
874
- <ul className="text-fm-secondary !space-y-2 text-sm">
875
- <li className="text-fm-secondary!">
876
- Always provide descriptive labels for import-related
877
- actions
878
- </li>
879
- <li className="text-fm-secondary!">
880
- Use consistent placement in upload or import interfaces
881
- </li>
882
- <li className="text-fm-secondary!">
883
- Ensure sufficient click/touch target sizes
884
- </li>
885
- <li className="text-fm-secondary!">
886
- Add focus states for keyboard navigation
887
- </li>
888
- <li className="text-fm-secondary!">
889
- Respect reduced motion preferences for import animations
890
- </li>
891
- </ul>
892
- </div>
893
- </div>
894
-
895
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
896
- <h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
897
- Custom Accessibility Implementation
898
- </h3>
899
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
900
- {/* Code Example Block */}
901
- <div className="bg-fm-surface-secondary rounded-lg p-4">
902
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">{`// Import button with ARIA
903
- <button
904
- aria-label="Import files into folder"
905
- aria-pressed={importing}
906
- className="flex items-center gap-2 p-2"
907
- >
908
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
909
- <span className="sr-only">Start file import</span>
910
- </button>
911
-
912
- // Grouped file input options
913
- <fieldset aria-labelledby="import-heading" className="space-y-2">
914
- <legend id="import-heading" className="sr-only">Import Options</legend>
915
- <div>
916
- <label className="inline-flex items-center gap-2">
917
- <input type="checkbox" aria-describedby="import-desc" />
918
- Import as Draft
919
- </label>
920
- </div>
921
- <div>
922
- <label className="inline-flex items-center gap-2">
923
- <input type="checkbox" />
924
- Overwrite Existing
925
- </label>
926
- </div>
927
- </fieldset>
928
- <p id="import-desc" className="sr-only">
929
- Choose how you want imported files to be handled upon upload.
930
- </p>`}</pre>
931
- </div>
932
-
933
- {/* Accessibility Note */}
934
- <div className="!space-y-4">
935
- <p className="text-fm-secondary! text-sm">
936
- When using <code>ImportLeftArrowFolderIcon</code> in
937
- upload or file action buttons, ensure ARIA labels
938
- clearly describe the behavior. Use semantic grouping
939
- with <code>fieldset</code> and
940
- <code>legend</code> for complex import settings to
941
- assist screen readers.
942
- </p>
943
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
944
- <div className="text-fm-icon-info flex items-center gap-2 text-sm">
945
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
946
- <span>
947
- Use <code>aria-pressed</code> or{" "}
948
- <code>aria-expanded</code> for toggles, and wrap
949
- related settings in
950
- <code>fieldset</code> elements with clear labeling.
951
- </span>
952
- </div>
953
- </div>
954
- </div>
955
- </div>
956
- </div>
957
- </div>
958
-
959
- {/* Related Icons */}
960
- <div className="!space-y-8">
961
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
962
- Related Icons
963
- </h2>
964
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
965
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
966
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
967
- <span className="text-2xl">🔍</span>
968
- </div>
969
- <div>
970
- <div className="text-fm-icon-active font-medium">
971
- SearchIcon
972
- </div>
973
- <div className="text-fm-tertiary text-xs">
974
- General search
975
- </div>
976
- </div>
977
- </div>
978
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
979
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
980
- <span className="text-2xl">📈</span>
981
- </div>
982
- <div>
983
- <div className="text-fm-icon-active font-medium">
984
- TrendingUpIcon
985
- </div>
986
- <div className="text-fm-tertiary text-xs">
987
- Growth metrics
988
- </div>
989
- </div>
990
- </div>
991
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
992
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
993
- <span className="text-2xl">📁</span>
994
- </div>
995
- <div>
996
- <div className="text-fm-icon-active font-medium">
997
- FolderIcon
998
- </div>
999
- <div className="text-fm-tertiary text-xs">
1000
- File Organization
1001
- </div>
1002
- </div>
1003
- </div>
1004
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
1005
- <div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
1006
- <span className="text-2xl">💾</span>
1007
- </div>
1008
- <div>
1009
- <div className="text-fm-icon-active font-medium">
1010
- SaveIcon
1011
- </div>
1012
- <div className="text-fm-tertiary text-xs">
1013
- Save changes
1014
- </div>
1015
- </div>
1016
- </div>
1017
- </div>
1018
- </div>
1019
- </div>
1020
-
1021
- {/* Footer */}
1022
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
1023
- <div className="!mx-auto max-w-7xl px-6 py-8">
1024
- <div className="!space-y-4 text-center">
1025
- <p className="text-fm-tertiary!">
1026
- FilterBarRowIcon is part of the Aural UI icon library, built
1027
- for document search, content discovery, and page navigation
1028
- functionality.
1029
- </p>
1030
- <p className="text-fm-placeholder! text-sm">
1031
- All icons use Radix UI's AccessibleIcon for screen reader
1032
- compatibility and follow WCAG guidelines for search
1033
- interfaces.
1034
- </p>
1035
- </div>
1036
- </div>
1037
- </div>
1038
- </div>
1039
- </>
56
+ }`,
57
+ livePreview: (
58
+ <button className="text-fm-primary font-fm-text flex items-center gap-2 text-sm">
59
+ <ImportLeftArrowFolderIcon className="text-fm-icon-active h-5 w-5" />
60
+ Import
61
+ </button>
62
+ ),
63
+ }}
64
+ relatedIcons={[
65
+ {
66
+ name: "DownloadIcon",
67
+ description: "Download to device",
68
+ icon: DownloadIcon,
69
+ accentToken: "info",
70
+ },
71
+ {
72
+ name: "UploadIcon",
73
+ description: "Upload from device",
74
+ icon: UploadIcon,
75
+ accentToken: "positive",
76
+ },
77
+ {
78
+ name: "ArrowLeftIcon",
79
+ description: "Simple left arrow",
80
+ icon: ArrowLeftIcon,
81
+ accentToken: "warning",
82
+ },
83
+ {
84
+ name: "ArrowBoxLeftIcon",
85
+ description: "Boxed left arrow",
86
+ icon: ArrowBoxLeftIcon,
87
+ accentToken: "negative",
88
+ },
89
+ ]}
90
+ />
1040
91
  ),
1041
92
  },
1042
93
  },
1043
94
  tags: ["autodocs"],
1044
95
  argTypes: {
1045
- width: {
1046
- control: { type: "range", min: 8, max: 96, step: 2 },
1047
- description: "Width of the icon in pixels",
96
+ className: {
97
+ control: "text",
98
+ description: "CSS classes including size and color token",
1048
99
  },
1049
100
  withAccessibility: {
1050
101
  control: "boolean",
1051
- description: "Whether to wrap the icon with accessibility features",
1052
- },
1053
- height: {
1054
- control: { type: "range", min: 8, max: 96, step: 2 },
1055
- description: "Height of the icon in pixels",
1056
- },
1057
- stroke: {
1058
- control: "color",
1059
- description: "Stroke color of the icon lines",
1060
- },
1061
- strokeWidth: {
1062
- control: { type: "range", min: 1, max: 4, step: 0.5 },
1063
- description: "Stroke width of the icon",
1064
- },
1065
- strokeLinecap: {
1066
- control: "select",
1067
- options: ["butt", "round", "square"],
1068
- description: "Style of line endings",
1069
- },
1070
- className: {
1071
- control: "text",
1072
- description: "CSS classes for styling (use for overrides)",
102
+ description: "Wrap with accessibility label",
1073
103
  },
1074
104
  },
1075
105
  }
@@ -1077,293 +107,107 @@ function ImportButton() {
1077
107
  export default meta
1078
108
  type Story = StoryObj<typeof ImportLeftArrowFolderIcon>
1079
109
 
1080
- // Story parameters for consistent dark theme
1081
- const storyParameters = {
1082
- backgrounds: {
1083
- default: "dark",
1084
- values: [
1085
- { name: "dark", value: "var(--color-fm-surface-primary)" },
1086
- { name: "darker", value: "var(--color-fm-neutral-0)" },
1087
- ],
1088
- },
1089
- }
1090
-
1091
110
  export const Default: Story = {
1092
111
  args: {
1093
- width: 24,
1094
- height: 24,
1095
- className: "text-fm-icon-info ",
112
+ className: "h-6 w-6 text-fm-icon-active",
1096
113
  withAccessibility: true,
1097
114
  },
1098
- parameters: storyParameters,
1099
115
  render: (args) => (
1100
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
116
+ <IconDefaultCanvas>
1101
117
  <ImportLeftArrowFolderIcon {...args} />
1102
- </div>
118
+ </IconDefaultCanvas>
1103
119
  ),
1104
120
  }
1105
121
 
1106
122
  export const SizeVariations: Story = {
1107
- parameters: {
1108
- ...storyParameters,
1109
- docs: {
1110
- description: {
1111
- story:
1112
- "GitBranchIcon in different sizes, from small search inputs to large interface elements.",
1113
- },
1114
- },
1115
- },
1116
- render: () => (
1117
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8">
1118
- <div className="text-center">
1119
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
1120
- <span className="text-fm-tertiary text-xs">12px</span>
1121
- </div>
1122
- <div className="text-center">
1123
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
1124
- <span className="text-fm-tertiary text-xs">16px</span>
1125
- </div>
1126
- <div className="text-center">
1127
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
1128
- <span className="text-fm-tertiary text-xs">20px</span>
1129
- </div>
1130
- <div className="text-center">
1131
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
1132
- <span className="text-fm-tertiary text-xs">24px</span>
1133
- </div>
1134
- <div className="text-center">
1135
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
1136
- <span className="text-fm-tertiary text-xs">32px</span>
1137
- </div>
1138
- <div className="text-center">
1139
- <ImportLeftArrowFolderIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
1140
- <span className="text-fm-tertiary text-xs">48px</span>
1141
- </div>
1142
- </div>
1143
- ),
123
+ render: () => <IconSizeVariations icon={ImportLeftArrowFolderIcon} />,
1144
124
  }
1145
125
 
1146
126
  export const ColorVariations: Story = {
1147
- parameters: {
1148
- ...storyParameters,
1149
- docs: {
1150
- description: {
1151
- story:
1152
- "GitBranchIcon in different colors for various search states and contexts.",
1153
- },
1154
- },
1155
- },
127
+ render: () => <IconColorVariations icon={ImportLeftArrowFolderIcon} />,
128
+ }
129
+
130
+ export const DirectionalVariations: Story = {
1156
131
  render: () => (
1157
- <div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
1158
- <div className="text-center">
1159
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
1160
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-8 w-8" />
1161
- </div>
1162
- <div className="text-fm-icon-active text-sm font-medium">Primary</div>
1163
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
1164
- </div>
1165
- <div className="text-center">
1166
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
1167
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-8 w-8" />
1168
- </div>
1169
- <div className="text-fm-icon-active text-sm font-medium">Active</div>
1170
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
1171
- </div>
1172
- <div className="text-center">
1173
- <div className="border-fm-divider-primary bg-fm-surface-tertiary/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
1174
- <ImportLeftArrowFolderIcon className="text-fm-placeholder h-8 w-8" />
1175
- </div>
1176
- <div className="text-fm-icon-active text-sm font-medium">Disabled</div>
1177
- <div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
1178
- </div>
1179
- <div className="text-center">
1180
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
1181
- <ImportLeftArrowFolderIcon className="text-fm-icon-info h-8 w-8" />
1182
- </div>
1183
- <div className="text-fm-icon-active text-sm font-medium">Info</div>
1184
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
1185
- </div>
1186
- </div>
132
+ <IconDirectionalVariations
133
+ icon={ImportLeftArrowFolderIcon}
134
+ directions={[
135
+ { label: "Import", className: "h-8 w-8 text-fm-icon-active" },
136
+ {
137
+ label: "Export",
138
+ className: "h-8 w-8 text-fm-icon-active rotate-180",
139
+ },
140
+ ]}
141
+ />
1187
142
  ),
1188
143
  }
1189
144
 
1190
145
  export const UsageExamples: Story = {
1191
- parameters: {
1192
- ...storyParameters,
1193
- docs: {
1194
- description: {
1195
- story:
1196
- "Real-world usage examples showing GitBranchIcon used in version control interfaces, including actions like creating branches, checking out branches, managing recent branches, and performing branch management tasks such as renaming or deleting branches.",
1197
- },
1198
- },
1199
- },
1200
146
  render: () => (
1201
- <div className="from-fm-surface-primary to-fm-surface-primary min-h-dvh space-y-8 rounded-lg bg-linear-to-br p-8">
1202
- {/* File Import Area */}
1203
- <div className="space-y-2">
1204
- <h3 className="text-fm-icon-active text-sm font-medium">
1205
- File Import Area
1206
- </h3>
1207
- <div className="border-fm-divider-primary bg-fm-surface-secondary hover:border-fm-icon-info/50 hover:bg-fm-icon-info/10 relative rounded-lg border-2 border-dashed p-8 text-center transition-colors">
1208
- <ImportLeftArrowFolderIcon className="text-fm-placeholder mx-auto h-12 w-12" />
1209
- <h4 className="text-fm-icon-active mt-4 text-lg font-medium">
1210
- Import Folder
1211
- </h4>
1212
- <p className="text-fm-tertiary mt-2 text-sm">
1213
- Drag and drop folders here, or click to browse
1214
- </p>
1215
- <button className="border-fm-icon-info/30 bg-fm-icon-info/15 text-fm-icon-info hover:bg-fm-icon-info/25 mt-4 rounded-lg border px-4 py-2 transition hover:cursor-pointer">
1216
- Browse Folders
147
+ <IconUsageCanvas>
148
+ <IconUsageSection title="Import Action">
149
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
150
+ <button className="border-fm-divider-secondary flex w-full items-center gap-3 rounded-xl border px-4 py-3">
151
+ <ImportLeftArrowFolderIcon className="text-fm-icon-active h-5 w-5" />
152
+ <div className="text-left">
153
+ <div className="text-fm-primary font-fm-text text-sm font-medium">
154
+ Import episodes
155
+ </div>
156
+ <div className="text-fm-secondary font-fm-text text-xs">
157
+ From RSS or file
158
+ </div>
159
+ </div>
1217
160
  </button>
1218
161
  </div>
1219
- </div>
162
+ </IconUsageSection>
1220
163
 
1221
- {/* Import Status */}
1222
- <div className="space-y-2">
1223
- <h3 className="text-fm-icon-active text-sm font-medium">
1224
- Import Status
1225
- </h3>
1226
- <div className="border-fm-divider-secondary bg-fm-surface-secondary space-y-3 rounded-lg border p-4">
164
+ <IconUsageSection title="File Operations">
165
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-px overflow-hidden rounded-xl border">
1227
166
  {[
1228
- { name: "Documents", status: "completed", count: 24 },
1229
- { name: "Images", status: "processing", count: 56 },
1230
- { name: "Videos", status: "pending", count: 12 },
1231
- ].map((folder, index) => (
1232
- <div
1233
- key={index}
1234
- className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-3 rounded border p-3 transition"
167
+ { label: "Import audio", icon: ImportLeftArrowFolderIcon },
168
+ { label: "Download file", icon: DownloadIcon },
169
+ { label: "Upload asset", icon: UploadIcon },
170
+ ].map(({ label, icon: Icon }) => (
171
+ <button
172
+ key={label}
173
+ className="border-fm-divider-secondary flex w-full items-center gap-3 border-b px-4 py-3 last:border-b-0"
1235
174
  >
1236
- <ImportLeftArrowFolderIcon
1237
- className={`h-5 w-5 ${
1238
- folder.status === "completed"
1239
- ? "text-green-400"
1240
- : folder.status === "processing"
1241
- ? "text-yellow-400"
1242
- : "text-gray-400"
1243
- }`}
1244
- />
1245
- <div className="flex-1">
1246
- <div className="text-fm-icon-active text-sm font-medium">
1247
- {folder.name}
1248
- </div>
1249
- <div className="text-fm-tertiary text-xs">
1250
- {folder.count} files
1251
- </div>
1252
- </div>
1253
- <div
1254
- className={`rounded px-2 py-1 text-xs ${
1255
- folder.status === "completed"
1256
- ? "bg-green-500/20 text-green-300"
1257
- : folder.status === "processing"
1258
- ? "bg-yellow-500/20 text-yellow-300"
1259
- : "bg-gray-500/20 text-gray-300"
1260
- }`}
1261
- >
1262
- {folder.status}
1263
- </div>
1264
- </div>
175
+ <Icon className="text-fm-icon-active h-4 w-4" />
176
+ <span className="text-fm-primary font-fm-text text-sm">
177
+ {label}
178
+ </span>
179
+ </button>
1265
180
  ))}
1266
181
  </div>
1267
- </div>
182
+ </IconUsageSection>
1268
183
 
1269
- {/* Button Integration */}
1270
- <div className="space-y-2">
1271
- <h3 className="text-fm-icon-active text-sm font-medium">
1272
- Button Integration
1273
- </h3>
1274
- <div className="flex gap-4">
1275
- <button className="border-fm-icon-info/30 bg-fm-icon-info/15 text-fm-icon-info hover:bg-fm-icon-info/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition hover:cursor-pointer">
1276
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
1277
- Import Folder
1278
- </button>
1279
- <button className="border-fm-icon-info/30 bg-fm-icon-info/15 text-fm-icon-info hover:bg-fm-icon-info/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition hover:cursor-pointer">
1280
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
1281
- Batch Import
1282
- </button>
1283
- <button className="border-fm-icon-warning/30 bg-fm-icon-warning/15 text-fm-icon-warning hover:bg-fm-icon-warning/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition hover:cursor-pointer">
1284
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
1285
- Browse Folders
1286
- </button>
1287
- <button className="border-fm-icon-negative/30 bg-fm-icon-negative/15 text-fm-icon-negative hover:bg-fm-icon-negative/25 flex items-center gap-2 rounded-lg border px-4 py-2 transition hover:cursor-pointer">
1288
- <ImportLeftArrowFolderIcon className="h-4 w-4" />
1289
- Clear All
1290
- </button>
1291
- </div>
1292
- </div>
1293
- </div>
1294
- ),
1295
- }
1296
-
1297
- export const InteractiveStates: Story = {
1298
- parameters: {
1299
- ...storyParameters,
1300
- docs: {
1301
- description: {
1302
- story:
1303
- "Interactive states showing hover effects, animations, and different search states.",
1304
- },
1305
- },
1306
- },
1307
- render: () => (
1308
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh space-y-8 rounded-lg bg-linear-to-br p-8">
1309
- <div className="space-y-4">
1310
- <h3 className="text-fm-secondary text-sm font-medium">
1311
- Interactive States & Motion
1312
- </h3>
1313
- <div className="flex gap-8">
1314
- {/* Hover color transition */}
1315
- <div className="flex flex-col items-center gap-2">
1316
- <ImportLeftArrowFolderIcon className="text-fm-tertiary hover:text-fm-icon-info h-8 w-8 transition-colors" />
1317
- <span className="text-fm-tertiary text-xs">Hover to Highlight</span>
1318
- </div>
1319
-
1320
- {/* Hover scale up */}
1321
- <div className="flex flex-col items-center gap-2">
1322
- <ImportLeftArrowFolderIcon className="text-fm-icon-active h-8 w-8 transition-transform duration-200 hover:scale-110" />
1323
- <span className="text-fm-tertiary text-xs">Scale on Hover</span>
184
+ <IconUsageSection title="Empty State Import">
185
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm flex-col items-center rounded-xl border p-6 text-center">
186
+ <ImportLeftArrowFolderIcon className="text-fm-icon-inactive mb-3 h-8 w-8" />
187
+ <div className="text-fm-primary font-fm-text mb-1 text-sm font-medium">
188
+ No content yet
1324
189
  </div>
1325
-
1326
- {/* Pulse animation to show sync */}
1327
- <div className="flex flex-col items-center gap-2">
1328
- <ImportLeftArrowFolderIcon className="text-fm-icon-positive h-8 w-8 animate-pulse" />
1329
- <span className="text-fm-tertiary text-xs">Sync Pulse</span>
1330
- </div>
1331
- <div className="flex flex-col items-center gap-2">
1332
- <div
1333
- className="rounded p-1 focus:ring-2 focus:ring-green-500 focus:outline-none"
1334
- tabIndex={0}
1335
- >
1336
- <ImportLeftArrowFolderIcon className="text-fm-icon-active h-8 w-8" />
1337
- </div>
1338
- <span className="text-fm-tertiary text-xs">Focus Ring</span>
190
+ <div className="text-fm-secondary font-fm-text mb-3 text-xs">
191
+ Import your first episode to get started
1339
192
  </div>
193
+ <button className="border-fm-divider-secondary flex items-center gap-2 rounded-lg border px-3 py-2">
194
+ <ImportLeftArrowFolderIcon className="text-fm-icon-active h-4 w-4" />
195
+ <span className="text-fm-primary font-fm-text text-sm">Import</span>
196
+ </button>
1340
197
  </div>
1341
- </div>
1342
- </div>
198
+ </IconUsageSection>
199
+ </IconUsageCanvas>
1343
200
  ),
1344
201
  }
1345
202
 
1346
203
  export const Playground: Story = {
1347
- parameters: {
1348
- ...storyParameters,
1349
- docs: {
1350
- description: {
1351
- story:
1352
- "Interactive playground to experiment with different GitBranchIcon configurations.",
1353
- },
1354
- },
1355
- },
1356
204
  args: {
1357
- width: 32,
1358
- height: 32,
1359
- className: "text-fm-icon-info ",
1360
- strokeLinecap: "square",
205
+ className: "h-8 w-8 text-fm-icon-active",
206
+ withAccessibility: true,
1361
207
  },
1362
208
  render: (args) => (
1363
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-64 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
1364
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
1365
- <ImportLeftArrowFolderIcon {...args} />
1366
- </div>
1367
- </div>
209
+ <IconPlaygroundCanvas>
210
+ <ImportLeftArrowFolderIcon {...args} />
211
+ </IconPlaygroundCanvas>
1368
212
  ),
1369
213
  }