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 { EmailIcon } from "src/ui/icons/email-icon"
5
+ import { MessageIcon } from "src/ui/icons/message-icon"
6
+ import { ShareIcon } from "src/ui/icons/share-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 { PaperPlaneIcon } from "."
5
19
 
6
20
  const meta: Meta<typeof PaperPlaneIcon> = {
@@ -11,735 +25,76 @@ const meta: Meta<typeof PaperPlaneIcon> = {
11
25
  backgrounds: {
12
26
  default: "dark",
13
27
  values: [
14
- { name: "dark", value: "#0a0a0a" },
15
- { name: "darker", value: "#000000" },
16
- { name: "light", value: "#ffffff" },
28
+ { name: "dark", value: "var(--color-fm-surface-primary)" },
29
+ { name: "darker", value: "var(--color-fm-neutral-0)" },
30
+ { name: "light", value: "var(--color-fm-neutral-1100)" },
17
31
  ],
18
32
  },
19
33
  docs: {
20
34
  page: () => (
21
- <>
22
- {/* Override default docs styling */}
23
- <style>
24
- {`
25
- .sbdocs-wrapper {
26
- padding: 0 ;
27
- max-width: none ;
28
- background: transparent ;
29
- }
30
- .sbdocs-content {
31
- max-width: none ;
32
- padding: 0 ;
33
- margin: 0 ;
34
- background: transparent ;
35
- }
36
- .docs-story {
37
- background: transparent ;
38
- }
39
- .sbdocs {
40
- background: transparent ;
41
- }
42
- body {
43
- background: #0a0a0a ;
44
- }
45
- #storybook-docs {
46
- background: #0a0a0a ;
47
- }
48
- .sbdocs-preview {
49
- background: transparent ;
50
- border: none ;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: white ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: rgba(255, 255, 255, 0.7) ;
57
- }
58
- .sbdocs-code {
59
- background: rgba(255, 255, 255, 0.1) ;
60
- color: rgba(168, 85, 247, 1) ;
61
- border: 1px solid rgba(255, 255, 255, 0.1) ;
62
- }
63
- .sbdocs-pre {
64
- background: rgba(0, 0, 0, 0.4) ;
65
- border: 1px solid rgba(255, 255, 255, 0.1) ;
66
- }
67
- .sbdocs-table {
68
- background: rgba(255, 255, 255, 0.05) ;
69
- border: 1px solid rgba(255, 255, 255, 0.1) ;
70
- }
71
- .sbdocs-table th {
72
- background: rgba(255, 255, 255, 0.05) ;
73
- color: white ;
74
- border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
75
- }
76
- .sbdocs-table td {
77
- color: rgba(255, 255, 255, 0.7) ;
78
- border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="min-h-screen bg-gradient-to-br from-gray-900 via-purple-900/20 to-gray-900">
84
- {/* Header */}
85
- <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
86
- <div className="absolute inset-0 bg-gradient-to-r from-purple-500/10 via-transparent to-green-500/10" />
87
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
- <div className="!space-y-6 text-center">
89
- <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-purple-500/30 bg-gradient-to-br from-purple-500/20 to-green-500/20">
90
- <PaperPlaneIcon className="h-12 w-12 text-purple-400" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- PaperPlaneIcon
94
- </h1>
95
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
96
- A paper-planeIcon icon symbolizing replies, submissions, and
97
- outbound communication. Ideal for use in chat UIs, comment
98
- boxes, and form submissions. Built with accessibility in
99
- mind using Radix UI's AccessibleIcon wrapper.
100
- </p>
101
-
102
- {/* Stats */}
103
- <div className="flex items-center justify-center gap-8 pt-8">
104
- <div className="text-center">
105
- <div className="text-3xl font-bold text-purple-300">
106
- Accessible
107
- </div>
108
- <div className="text-sm text-white/60">
109
- Screen reader friendly
110
- </div>
111
- </div>
112
- <div className="h-8 w-px bg-white/20" />
113
- <div className="text-center">
114
- <div className="text-3xl font-bold text-green-300">
115
- Scalable
116
- </div>
117
- <div className="text-sm text-white/60">
118
- Any size needed
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-blue-300">
124
- Navigation
125
- </div>
126
- <div className="text-sm text-white/60">
127
- Upward movement
128
- </div>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- </div>
134
-
135
- {/* Content */}
136
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
137
- {/* Quick Usage */}
138
- <div className="!space-y-8">
139
- <h2 className="text-center text-3xl font-bold !text-white">
140
- Quick Start
141
- </h2>
142
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
143
- {/* Basic Usage */}
144
- <div className="!space-y-4">
145
- <h3 className="text-xl font-semibold !text-purple-300">
146
- Basic Usage
147
- </h3>
148
- <div className="rounded-lg bg-black/40 p-4">
149
- <pre className="overflow-x-auto text-sm !text-green-300">
150
- {`import { PaperPlaneIcon } from "lucide-react"
151
-
152
- function SendMessageButton({ onSend }) {
35
+ <AuralIconDocsPage
36
+ accentToken="info"
37
+ features={[
38
+ { title: "Send", description: "Send message or submission" },
39
+ { title: "Submit", description: "Submit form or feedback" },
40
+ { title: "Accessible", description: "ARIA-ready by default" },
41
+ ]}
42
+ quickStart={{
43
+ codeExample: `import { PaperPlaneIcon } from "src/ui/icons/paper-plane-icon"
44
+
45
+ function SendButton() {
153
46
  return (
154
- <button
155
- className="flex items-center gap-2 text-white hover:text-purple-300 transition-colors"
156
- onClick={onSend}
157
- >
158
- <span>Send Message</span>
159
- <PaperPlaneIcon className="h-4 w-4 text-purple-400" />
47
+ <button className="flex items-center gap-2">
48
+ <PaperPlaneIcon className="h-5 w-5 text-fm-icon-active" />
49
+ <span>Send</span>
160
50
  </button>
161
51
  )
162
- }`}
163
- </pre>
164
- </div>
165
- </div>
166
-
167
- {/* Live Preview */}
168
- <div className="!space-y-4">
169
- <h3 className="text-xl font-semibold !text-purple-300">
170
- Live Preview
171
- </h3>
172
- <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
173
- <button className="flex items-center gap-3 rounded-lg border border-purple-500/20 bg-purple-500/10 px-4 py-2 transition-colors hover:bg-purple-500/20">
174
- <span className="text-white">Send Message</span>
175
- <PaperPlaneIcon className="h-4 w-4 text-purple-400" />
176
- </button>
177
- </div>
178
- </div>
179
- </div>
180
- </div>
181
-
182
- {/* Props Documentation */}
183
- <div className="!space-y-8">
184
- <h2 className="text-center text-3xl font-bold !text-white">
185
- Props & Configuration
186
- </h2>
187
-
188
- <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
189
- <div className="bg-white/5 p-4">
190
- <h3 className="text-xl font-semibold !text-white">Props</h3>
191
- </div>
192
- <table className="!my-0 w-full">
193
- <thead className="bg-white/5">
194
- <tr className="border-b border-white/10">
195
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
196
- Prop
197
- </th>
198
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
199
- Type
200
- </th>
201
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
202
- Default
203
- </th>
204
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
205
- Description
206
- </th>
207
- </tr>
208
- </thead>
209
- <tbody>
210
- {" "}
211
- <tr className="!bg-black/10">
212
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
213
- withAccessibility
214
- </td>
215
- <td className="px-6 py-4 text-sm !text-white/70">
216
- boolean
217
- </td>
218
- <td className="px-6 py-4 text-sm !text-white/50">
219
- true
220
- </td>
221
- <td className="px-6 py-4 text-sm !text-white/70">
222
- Whether to wrap the icon with accessibility feature
223
- </td>
224
- </tr>
225
- <tr className="border-b border-white/5 !bg-black/10">
226
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
227
- height
228
- </td>
229
- <td className="px-6 py-4 text-sm !text-white/70">
230
- number | string
231
- </td>
232
- <td className="px-6 py-4 text-sm !text-white/50">24</td>
233
- <td className="px-6 py-4 text-sm !text-white/70">
234
- Height of the icon in pixels
235
- </td>
236
- </tr>
237
- <tr className="border-b border-white/5">
238
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
239
- stroke
240
- </td>
241
- <td className="px-6 py-4 text-sm !text-white/70">
242
- string
243
- </td>
244
- <td className="px-6 py-4 text-sm !text-white/50">
245
- currentColor
246
- </td>
247
- <td className="px-6 py-4 text-sm !text-white/70">
248
- Stroke color of the icon
249
- </td>
250
- </tr>
251
- <tr className="border-b border-white/5 !bg-black/10">
252
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
253
- className
254
- </td>
255
- <td className="px-6 py-4 text-sm !text-white/70">
256
- string
257
- </td>
258
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
259
- <td className="px-6 py-4 text-sm !text-white/70">
260
- CSS classes for styling (use for overrides)
261
- </td>
262
- </tr>
263
- <tr className="border-b border-white/5">
264
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
265
- strokeWidth
266
- </td>
267
- <td className="px-6 py-4 text-sm !text-white/70">
268
- number | string
269
- </td>
270
- <td className="px-6 py-4 text-sm !text-white/50">
271
- 1.5
272
- </td>
273
- <td className="px-6 py-4 text-sm !text-white/70">
274
- Stroke width of the chevron line
275
- </td>
276
- </tr>
277
- <tr className="!bg-black/10">
278
- <td className="px-6 py-4 font-mono text-sm !text-purple-300">
279
- ...svgProps
280
- </td>
281
- <td className="px-6 py-4 text-sm !text-white/70">
282
- SVGProps
283
- </td>
284
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
285
- <td className="px-6 py-4 text-sm !text-white/70">
286
- All standard SVG element props
287
- </td>
288
- </tr>
289
- </tbody>
290
- </table>
291
- </div>
292
- </div>
293
-
294
- {/* Size Variations */}
295
- <div className="!space-y-8">
296
- <h2 className="text-center text-3xl font-bold !text-white">
297
- Size Variations
298
- </h2>
299
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
300
- <div className="!space-y-6">
301
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
302
- <div className="!space-y-4">
303
- <h3 className="text-lg font-semibold !text-purple-300">
304
- Standard Sizes
305
- </h3>
306
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
307
- <div className="text-center">
308
- <PaperPlaneIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
309
- <span className="text-xs text-white/60">12px</span>
310
- </div>
311
- <div className="text-center">
312
- <PaperPlaneIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
313
- <span className="text-xs text-white/60">16px</span>
314
- </div>
315
- <div className="text-center">
316
- <PaperPlaneIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
317
- <span className="text-xs text-white/60">20px</span>
318
- </div>
319
- <div className="text-center">
320
- <PaperPlaneIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
321
- <span className="text-xs text-white/60">24px</span>
322
- </div>
323
- <div className="text-center">
324
- <PaperPlaneIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
325
- <span className="text-xs text-white/60">32px</span>
326
- </div>
327
- <div className="text-center">
328
- <PaperPlaneIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
329
- <span className="text-xs text-white/60">48px</span>
330
- </div>
331
- </div>
332
- </div>
333
-
334
- <div className="!space-y-4">
335
- <h3 className="text-lg font-semibold !text-purple-300">
336
- Code Example
337
- </h3>
338
- <div className="rounded-lg bg-black/40 p-4">
339
- <pre className="overflow-x-auto text-sm !text-blue-300">
340
- {`// Small (16px)
341
- <PaperPlaneIcon className="h-4 w-4 " />
342
-
343
- // Medium (24px)
344
- <PaperPlaneIcon className="h-6 w-6 " />
345
-
346
- // Large (32px)
347
- <PaperPlaneIcon className="h-8 w-8 " />
348
-
349
- // Custom size
350
- <PaperPlaneIcon width={40} height={40} />`}
351
- </pre>
352
- </div>
353
- </div>
354
- </div>
355
- </div>
356
- </div>
357
- </div>
358
-
359
- {/* Color Variations */}
360
- <div className="!space-y-8">
361
- <h2 className="text-center text-3xl font-bold !text-white">
362
- Color Variations
363
- </h2>
364
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
365
- <div className="!space-y-4">
366
- <h3 className="text-lg font-semibold !text-purple-300">
367
- Semantic Colors
368
- </h3>
369
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
370
- <div className="flex items-center gap-4">
371
- <PaperPlaneIcon className="h-6 w-6 text-purple-400" />
372
- <div>
373
- <div className="text-sm font-medium text-white">
374
- Primary
375
- </div>
376
- <div className="text-xs text-white/60">
377
- text-purple-400
378
- </div>
379
- </div>
380
- </div>
381
- <div className="flex items-center gap-4">
382
- <PaperPlaneIcon className="h-6 w-6 text-gray-400" />
383
- <div>
384
- <div className="text-sm font-medium text-white">
385
- Secondary
386
- </div>
387
- <div className="text-xs text-white/60">
388
- text-gray-400
389
- </div>
390
- </div>
391
- </div>
392
- <div className="flex items-center gap-4">
393
- <PaperPlaneIcon className="h-6 w-6 text-green-400" />
394
- <div>
395
- <div className="text-sm font-medium text-white">
396
- Accent
397
- </div>
398
- <div className="text-xs text-white/60">
399
- text-green-400
400
- </div>
401
- </div>
402
- </div>
403
- <div className="flex items-center gap-4">
404
- <PaperPlaneIcon className="h-6 w-6 text-white/40" />
405
- <div>
406
- <div className="text-sm font-medium text-white">
407
- Disabled
408
- </div>
409
- <div className="text-xs text-white/60">
410
- text-white/40
411
- </div>
412
- </div>
413
- </div>
414
- </div>
415
- </div>
416
-
417
- <div className="!space-y-4">
418
- <h3 className="text-lg font-semibold !text-purple-300">
419
- Custom Colors
420
- </h3>
421
- <div className="rounded-lg bg-black/40 p-4">
422
- <pre className="overflow-x-auto text-sm !text-green-300">
423
- {`// Using Tailwind classes with
424
- <PaperPlaneIcon className="h-6 w-6 text-purple-400 " />
425
- <PaperPlaneIcon className="h-6 w-6 text-green-500 " />
426
-
427
- // Using CSS custom properties
428
- <PaperPlaneIcon
429
- className="h-6 w-6 "
430
- style={{ color: 'var(--color-primary)' }}
431
- />
432
-
433
- // Direct stroke prop
434
- <PaperPlaneIcon
435
- width={24}
436
- height={24}
437
- stroke="#9333ea"
438
- />`}
439
- </pre>
440
- </div>
441
- </div>
442
- </div>
443
- </div>
444
-
445
- {/* Usage Examples */}
446
- <div className="!space-y-8">
447
- <h2 className="text-center text-3xl font-bold !text-white">
448
- Usage Examples
449
- </h2>
450
-
451
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
452
- {/* Send Message */}
453
- <div className="!space-y-4">
454
- <h3 className="text-lg font-semibold !text-purple-300">
455
- Send Message
456
- </h3>
457
- <div className="!space-y-4">
458
- <div className="flex items-center gap-4">
459
- <button className="flex items-center gap-2 rounded-lg border border-purple-500/30 bg-purple-500/10 px-4 py-2 text-purple-200 transition-colors hover:bg-purple-500/20">
460
- <PaperPlaneIcon className="h-4 w-4" />
461
- Send Message
462
- </button>
463
- <button className="flex items-center justify-center rounded-full border border-white/20 bg-white/5 p-3 text-white transition-colors hover:bg-white/10">
464
- <PaperPlaneIcon className="h-5 w-5" />
465
- </button>
466
- </div>
467
- <div className="rounded-lg bg-black/40 p-4">
468
- <pre className="overflow-x-auto text-sm !text-green-300">
469
- {`// Full-width send button
470
- <button className="flex items-center gap-2 bg-purple-500/10 border border-purple-500/30 px-4 py-2 rounded-lg">
471
- <PaperPlaneIcon className="h-4 w-4" />
472
- Send Message
473
- </button>
474
-
475
- // Icon-only send
476
- <button className="flex items-center justify-center bg-white/5 border border-white/20 p-3 rounded-full">
477
- <PaperPlaneIcon className="h-5 w-5" />
478
- </button>`}
479
- </pre>
480
- </div>
481
- </div>
482
- </div>
483
-
484
- {/* Reply to a Message */}
485
- <div className="!space-y-4">
486
- <h3 className="text-lg font-semibold !text-purple-300">
487
- Reply to a Message
488
- </h3>
489
- <div className="!space-y-4">
490
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
491
- <div className="flex items-center justify-between">
492
- <span className="font-medium text-white">
493
- From: Olivia
494
- </span>
495
- <button className="flex items-center gap-2 text-purple-400 hover:text-purple-300">
496
- <PaperPlaneIcon className="h-4 w-4" />
497
- Reply
498
- </button>
499
- </div>
500
- <div className="mt-3 text-sm text-white/70">
501
- “Could you send over the latest project brief?”
502
- </div>
503
- </div>
504
- <div className="rounded-lg bg-black/40 p-4">
505
- <pre className="overflow-x-auto text-sm !text-green-300">
506
- {`// Reply to incoming message
507
- <div className="flex items-center justify-between">
508
- <span className="font-medium text-white">From: Olivia</span>
509
- <button className="flex items-center gap-2 text-purple-400 hover:text-purple-300">
510
- <PaperPlaneIcon className="h-4 w-4" />
511
- Reply
512
- </button>
513
- </div>
514
-
515
- <div className="mt-3 text-sm text-white/70">
516
- “Could you send over the latest project brief?”
517
- </div>`}
518
- </pre>
519
- </div>
520
- </div>
521
- </div>
522
- </div>
523
- </div>
524
-
525
- {/* Accessibility */}
526
- <div className="!space-y-8">
527
- <h2 className="text-center text-3xl font-bold !text-white">
528
- Accessibility Features
529
- </h2>
530
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
531
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
532
- <h3 className="text-lg font-semibold !text-green-300">
533
- ✅ Built-in Features
534
- </h3>
535
- <ul className="!space-y-2 text-sm !text-white/70">
536
- <li className="!text-white/70">
537
- Uses Radix UI AccessibleIcon wrapper
538
- </li>
539
- <li className="!text-white/70">
540
- Provides screen reader label "Chevron Up icon"
541
- </li>
542
- <li className="!text-white/70">
543
- Supports keyboard navigation when interactive
544
- </li>
545
- <li className="!text-white/70">
546
- Maintains proper color contrast ratios
547
- </li>
548
- <li className="!text-white/70">
549
- Scales with user's font size preferences
550
- </li>
551
- </ul>
552
- </div>
553
-
554
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
555
- <h3 className="text-lg font-semibold !text-purple-300">
556
- 💡 Best Practices
557
- </h3>
558
- <ul className="!space-y-2 text-sm text-white/70">
559
- <li className="!text-white/70">
560
- Use descriptive aria-labels for navigation buttons
561
- </li>
562
- <li className="!text-white/70">
563
- Provide keyboard shortcuts for common actions
564
- </li>
565
- <li className="!text-white/70">
566
- Ensure sufficient touch target size (44px minimum)
567
- </li>
568
- <li className="!text-white/70">
569
- Add focus states for interactive elements
570
- </li>
571
- <li className="!text-white/70">
572
- Consider aria-expanded for collapsible content
573
- </li>
574
- </ul>
575
- </div>
576
- </div>
577
-
578
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
579
- <h3 className="mb-4 text-lg font-semibold !text-purple-300">
580
- Proper ARIA Implementation
581
- </h3>
582
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
583
- {/* Code Block */}
584
- <div className="rounded-lg bg-black/40 p-4">
585
- <pre className="overflow-x-auto text-sm !text-blue-300">
586
- {`// Send message button with ARIA
587
- <button
588
- aria-label="Send message to recipient"
589
- className="flex items-center gap-2"
590
- >
591
- <PaperPlaneIcon className="h-4 w-4" />
592
- Send Message
593
- </button>
594
-
595
- // Reply to message
596
- <button
597
- aria-label="Reply to message from John"
598
- className="flex items-center gap-2"
599
- >
600
- <PaperPlaneIcon className="h-4 w-4" />
601
- Reply
602
- </button>
603
-
604
- // Message sorting control
605
- <button
606
- aria-label="Sort messages by newest first"
607
- aria-pressed={sortOrder === 'newest'}
608
- className="flex items-center gap-2"
609
- >
610
- Newest
611
- <PaperPlaneIcon className="h-4 w-4" />
612
- </button>`}
613
- </pre>
614
- </div>
615
-
616
- {/* Explanation Block */}
617
- <div className="!space-y-4">
618
- <p className="text-sm !text-white/70">
619
- Use clear and specific ARIA labels for all
620
- message-related actions such as sending, replying, or
621
- sorting. Screen reader users benefit most when the
622
- action and the context (like sender name or sorting
623
- method) are announced.
624
- </p>
625
- <div className="rounded-lg border border-purple-500/20 bg-purple-500/10 p-4">
626
- <div className="flex items-center gap-2 text-sm text-purple-200">
627
- <PaperPlaneIcon className="h-4 w-4" />
628
- <span>
629
- Use <code>aria-label</code> to describe the *intent*
630
- of sending or replying, not just the button
631
- appearance.
632
- </span>
633
- </div>
634
- </div>
635
- </div>
636
- </div>
637
- </div>
638
- </div>
639
-
640
- {/* Related Icons */}
641
- <div className="!space-y-8">
642
- <h2 className="text-center text-3xl font-bold !text-white">
643
- Related Icons
644
- </h2>
645
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
646
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
647
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
648
- <span className="!text-2xl !text-white">↓</span>
649
- </div>
650
- <div>
651
- <div className="font-medium text-white">
652
- ChevronDownIcon
653
- </div>
654
- <div className="text-xs text-white/60">
655
- Downward direction
656
- </div>
657
- </div>
658
- </div>
659
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
660
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
661
- <span className="!text-2xl !text-white">→</span>
662
- </div>
663
- <div>
664
- <div className="font-medium text-white">
665
- ChevronRightIcon
666
- </div>
667
- <div className="text-xs text-white/60">
668
- Right direction
669
- </div>
670
- </div>
671
- </div>
672
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
673
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-pink-500/20">
674
- <span className="!text-2xl !text-white">←</span>
675
- </div>
676
- <div>
677
- <div className="font-medium text-white">
678
- ChevronLeftIcon
679
- </div>
680
- <div className="text-xs text-white/60">
681
- Left direction
682
- </div>
683
- </div>
684
- </div>
685
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
686
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
687
- <span className="!text-2xl !text-white">↑</span>
688
- </div>
689
- <div>
690
- <div className="font-medium text-white">ArrowUpIcon</div>
691
- <div className="text-xs text-white/60">Arrow variant</div>
692
- </div>
693
- </div>
694
- </div>
695
- </div>
696
- </div>
697
-
698
- {/* Footer */}
699
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
700
- <div className="!mx-auto max-w-7xl px-6 py-8">
701
- <div className="!space-y-4 text-center">
702
- <p className="!text-white/60">
703
- PaperPlaneIcon is part of the Aural UI icon library, built
704
- with accessibility and intuitive upward navigation in mind.
705
- </p>
706
- <p className="text-sm !text-white/40">
707
- All icons use Radix UI's AccessibleIcon for screen reader
708
- compatibility and follow WCAG guidelines.
709
- </p>
710
- </div>
711
- </div>
712
- </div>
713
- </div>
714
- </>
52
+ }`,
53
+ livePreview: (
54
+ <button className="flex items-center gap-2">
55
+ <PaperPlaneIcon className="text-fm-icon-active h-6 w-6" />
56
+ </button>
57
+ ),
58
+ }}
59
+ relatedIcons={[
60
+ {
61
+ name: "EmailIcon",
62
+ description: "Email / inbox icon",
63
+ icon: EmailIcon,
64
+ accentToken: "info",
65
+ },
66
+ {
67
+ name: "MessageIcon",
68
+ description: "Chat / message bubble icon",
69
+ icon: MessageIcon,
70
+ accentToken: "positive",
71
+ },
72
+ {
73
+ name: "ShareIcon",
74
+ description: "Share content icon",
75
+ icon: ShareIcon,
76
+ accentToken: "warning",
77
+ },
78
+ {
79
+ name: "UploadIcon",
80
+ description: "Upload / send to cloud icon",
81
+ icon: UploadIcon,
82
+ accentToken: "negative",
83
+ },
84
+ ]}
85
+ />
715
86
  ),
716
87
  },
717
88
  },
718
89
  tags: ["autodocs"],
719
90
  argTypes: {
720
- width: {
721
- control: { type: "range", min: 8, max: 96, step: 2 },
722
- description: "Width of the icon in pixels",
91
+ className: {
92
+ control: "text",
93
+ description: "CSS classes including color token",
723
94
  },
724
95
  withAccessibility: {
725
96
  control: "boolean",
726
- description: "Whether to wrap the icon with accessibility features",
727
- },
728
- height: {
729
- control: { type: "range", min: 8, max: 96, step: 2 },
730
- description: "Height of the icon in pixels",
731
- },
732
- stroke: {
733
- control: "color",
734
- description: "Stroke color of the icon",
735
- },
736
- strokeWidth: {
737
- control: { type: "range", min: 0.5, max: 3, step: 0.1 },
738
- description: "Stroke width of the chevron line",
739
- },
740
- className: {
741
- control: "text",
742
- description: "CSS classes for styling (use for overrides)",
97
+ description: "Wrap with accessibility label",
743
98
  },
744
99
  },
745
100
  }
@@ -747,198 +102,78 @@ function SendMessageButton({ onSend }) {
747
102
  export default meta
748
103
  type Story = StoryObj<typeof PaperPlaneIcon>
749
104
 
750
- // Story parameters for consistent dark theme
751
- const storyParameters = {
752
- backgrounds: {
753
- default: "dark",
754
- values: [
755
- { name: "dark", value: "#0a0a0a" },
756
- { name: "darker", value: "#000000" },
757
- ],
758
- },
759
- }
760
-
761
105
  export const Default: Story = {
762
106
  args: {
763
- width: 24,
764
- height: 24,
765
- className: "text-purple-400 ",
107
+ className: "h-6 w-6 text-fm-icon-active",
766
108
  withAccessibility: true,
767
109
  },
768
- parameters: storyParameters,
769
110
  render: (args) => (
770
- <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
111
+ <IconDefaultCanvas>
771
112
  <PaperPlaneIcon {...args} />
772
- </div>
113
+ </IconDefaultCanvas>
773
114
  ),
774
115
  }
775
116
 
776
117
  export const SizeVariations: Story = {
777
- parameters: {
778
- ...storyParameters,
779
- docs: {
780
- description: {
781
- story:
782
- "PaperPlaneIcon in different sizes, from small UI elements to large displays.",
783
- },
784
- },
785
- },
786
- render: () => (
787
- <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">
788
- <div className="text-center">
789
- <PaperPlaneIcon className="!mx-auto mb-2 h-3 w-3 text-purple-400" />
790
- <span className="text-xs text-white/60">12px</span>
791
- </div>
792
- <div className="text-center">
793
- <PaperPlaneIcon className="!mx-auto mb-2 h-4 w-4 text-purple-400" />
794
- <span className="text-xs text-white/60">16px</span>
795
- </div>
796
- <div className="text-center">
797
- <PaperPlaneIcon className="!mx-auto mb-2 h-5 w-5 text-purple-400" />
798
- <span className="text-xs text-white/60">20px</span>
799
- </div>
800
- <div className="text-center">
801
- <PaperPlaneIcon className="!mx-auto mb-2 h-6 w-6 text-purple-400" />
802
- <span className="text-xs text-white/60">24px</span>
803
- </div>
804
- <div className="text-center">
805
- <PaperPlaneIcon className="!mx-auto mb-2 h-8 w-8 text-purple-400" />
806
- <span className="text-xs text-white/60">32px</span>
807
- </div>
808
- <div className="text-center">
809
- <PaperPlaneIcon className="!mx-auto mb-2 h-12 w-12 text-purple-400" />
810
- <span className="text-xs text-white/60">48px</span>
811
- </div>
812
- </div>
813
- ),
118
+ render: () => <IconSizeVariations icon={PaperPlaneIcon} />,
814
119
  }
815
120
 
816
121
  export const ColorVariations: Story = {
817
- parameters: {
818
- ...storyParameters,
819
- docs: {
820
- description: {
821
- story:
822
- "PaperPlaneIcon in different semantic colors for various upward navigation contexts.",
823
- },
824
- },
825
- },
826
- render: () => (
827
- <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">
828
- <div className="text-center">
829
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
830
- <PaperPlaneIcon className="h-8 w-8 text-purple-400" />
831
- </div>
832
- <div className="text-sm font-medium text-white">Primary</div>
833
- <div className="text-xs text-purple-400">text-purple-400</div>
834
- </div>
835
- <div className="text-center">
836
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-gray-500/30 bg-gray-500/20">
837
- <PaperPlaneIcon className="h-8 w-8 text-gray-400" />
838
- </div>
839
- <div className="text-sm font-medium text-white">Secondary</div>
840
- <div className="text-xs text-gray-400">text-gray-400</div>
841
- </div>
842
- <div className="text-center">
843
- <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">
844
- <PaperPlaneIcon className="h-8 w-8 text-green-400" />
845
- </div>
846
- <div className="text-sm font-medium text-white">Accent</div>
847
- <div className="text-xs text-green-400">text-green-400</div>
848
- </div>
849
- <div className="text-center">
850
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/10 bg-white/5">
851
- <PaperPlaneIcon className="h-8 w-8 text-white/40" />
852
- </div>
853
- <div className="text-sm font-medium text-white">Disabled</div>
854
- <div className="text-xs text-white/40">text-white/40</div>
855
- </div>
856
- </div>
857
- ),
122
+ render: () => <IconColorVariations icon={PaperPlaneIcon} />,
858
123
  }
859
124
 
860
125
  export const UsageExamples: Story = {
861
- parameters: {
862
- ...storyParameters,
863
- docs: {
864
- description: {
865
- story:
866
- "Real-world usage examples showing PaperPlaneIcon in different upward navigation contexts.",
867
- },
868
- },
869
- },
870
126
  render: () => (
871
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
872
- {/* Copy Content */}
873
- <div className="!space-y-2">
874
- <h3 className="text-sm font-medium text-white">Scroll to Top</h3>
875
- <div className="flex items-center gap-4">
876
- <button className="flex items-center gap-2 rounded-lg border border-purple-500/30 bg-purple-500/10 px-4 py-2 text-purple-200 transition-colors hover:bg-purple-500/20">
877
- <PaperPlaneIcon className="h-4 w-4" />
878
- Back to Top
879
- </button>
880
- <button className="flex items-center justify-center rounded-full border border-white/20 bg-white/5 p-3 text-white transition-colors hover:bg-white/10">
881
- <PaperPlaneIcon className="h-5 w-5" />
127
+ <IconUsageCanvas>
128
+ <IconUsageSection title="Chat Send Button">
129
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex w-full max-w-sm items-center gap-2 rounded-xl border px-3 py-2">
130
+ <span className="text-fm-tertiary font-fm-text flex-1 text-sm">
131
+ Write a comment...
132
+ </span>
133
+ <button>
134
+ <PaperPlaneIcon className="text-fm-icon-active h-5 w-5" />
882
135
  </button>
883
136
  </div>
884
- </div>
885
-
886
- {/* Collapsible */}
887
- <div className="!space-y-2">
888
- <h3 className="text-sm font-medium text-white">Collapsible Content</h3>
889
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
890
- <button className="flex w-full items-center justify-between text-left">
891
- <span className="font-medium text-white">Advanced Settings</span>
892
- <PaperPlaneIcon className="h-4 w-4 text-white/60 transition-transform" />
893
- </button>
894
- <div className="mt-3 space-y-2 text-sm text-white/70">
895
- <div>Option 1: Enable advanced features</div>
896
- <div>Option 2: Custom configuration</div>
137
+ </IconUsageSection>
138
+
139
+ <IconUsageSection title="Feedback Sent Confirmation">
140
+ <div className="flex flex-col items-center gap-3 py-4">
141
+ <PaperPlaneIcon className="text-fm-icon-positive h-10 w-10" />
142
+ <div className="text-center">
143
+ <div className="text-fm-primary font-fm-text text-sm font-medium">
144
+ Feedback sent!
145
+ </div>
146
+ <div className="text-fm-secondary font-fm-text text-xs">
147
+ Thank you for your input
148
+ </div>
897
149
  </div>
898
150
  </div>
899
- </div>
900
-
901
- {/* Sort Controls */}
902
- <div className="!space-y-2">
903
- <h3 className="text-sm font-medium text-white">Sort Controls</h3>
904
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
905
- <div className="space-y-2">
906
- <button className="flex w-full items-center justify-between rounded px-3 py-2 text-left text-white hover:bg-white/10">
907
- <span>Name</span>
908
- <PaperPlaneIcon className="h-4 w-4 text-purple-400" />
909
- </button>
910
- <button className="flex w-full items-center justify-between rounded px-3 py-2 text-left text-white hover:bg-white/10">
911
- <span>Date</span>
912
- <PaperPlaneIcon className="h-4 w-4 text-white/40" />
151
+ </IconUsageSection>
152
+
153
+ <IconUsageSection title="Share Actions">
154
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary flex items-center gap-3 rounded-xl border p-3">
155
+ {[PaperPlaneIcon, ShareIcon, EmailIcon].map((Icon, i) => (
156
+ <button
157
+ key={i}
158
+ className="flex h-8 w-8 items-center justify-center rounded-lg"
159
+ >
160
+ <Icon className="text-fm-icon-active h-4 w-4" />
913
161
  </button>
914
- </div>
162
+ ))}
915
163
  </div>
916
- </div>
917
- </div>
164
+ </IconUsageSection>
165
+ </IconUsageCanvas>
918
166
  ),
919
167
  }
920
168
 
921
169
  export const Playground: Story = {
922
- parameters: {
923
- ...storyParameters,
924
- docs: {
925
- description: {
926
- story:
927
- "Interactive playground to experiment with different PaperPlaneIcon configurations.",
928
- },
929
- },
930
- },
931
170
  args: {
932
- width: 32,
933
- height: 32,
934
- className: "text-purple-400 ",
935
- strokeWidth: 1.5,
171
+ className: "h-8 w-8 text-fm-icon-active",
172
+ withAccessibility: true,
936
173
  },
937
174
  render: (args) => (
938
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
939
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
940
- <PaperPlaneIcon {...args} />
941
- </div>
942
- </div>
175
+ <IconPlaygroundCanvas>
176
+ <PaperPlaneIcon {...args} />
177
+ </IconPlaygroundCanvas>
943
178
  ),
944
179
  }