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