aural-ui 4.0.1 → 4.2.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 (175) hide show
  1. package/README.md +8 -1
  2. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1228
  3. package/dist/components/avatar/Avatar.stories.tsx +219 -235
  4. package/dist/components/badge/Badge.stories.tsx +379 -116
  5. package/dist/components/banner/Banner.stories.tsx +445 -391
  6. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  7. package/dist/components/button/Button.stories.tsx +585 -230
  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 -636
  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 +530 -867
  16. package/dist/components/dialog/Dialog.stories.tsx +501 -950
  17. package/dist/components/divider/Divider.stories.tsx +264 -527
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -1023
  20. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1028
  21. package/dist/components/form/Form.stories.tsx +560 -274
  22. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  23. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1254
  24. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  25. package/dist/components/if-else/if-else.stories.tsx +370 -83
  26. package/dist/components/input/Input.stories.tsx +436 -368
  27. package/dist/components/label/Label.stories.tsx +156 -154
  28. package/dist/components/list/List.stories.tsx +484 -835
  29. package/dist/components/marquee/Marquee.stories.tsx +356 -712
  30. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -422
  31. package/dist/components/overlay/Overlay.stories.tsx +452 -824
  32. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  33. package/dist/components/popover/Popover.stories.tsx +481 -896
  34. package/dist/components/radio/Radio.stories.tsx +432 -124
  35. package/dist/components/resizable/Resizable.stories.tsx +495 -799
  36. package/dist/components/scroll-area/ScrollArea.stories.tsx +383 -1059
  37. package/dist/components/search/Search.stories.tsx +312 -595
  38. package/dist/components/select/Select.stories.tsx +684 -789
  39. package/dist/components/sheet/Sheet.stories.tsx +671 -950
  40. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  41. package/dist/components/slider/Slider.stories.tsx +383 -760
  42. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  43. package/dist/components/switch/Switch.stories.tsx +461 -208
  44. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  45. package/dist/components/table/Table.stories.tsx +770 -916
  46. package/dist/components/tabs/Tabs.stories.tsx +458 -1455
  47. package/dist/components/tag/Tag.stories.tsx +714 -542
  48. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  49. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -154
  50. package/dist/components/toast/Toast.stories.tsx +452 -1339
  51. package/dist/components/toggle/Toggle.stories.tsx +488 -931
  52. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1388
  53. package/dist/components/typography/Typography.stories.tsx +406 -89
  54. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  55. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  56. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  57. package/dist/icons/Icons.stories.tsx +0 -12
  58. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +223 -1060
  59. package/dist/icons/alert-icon/AlertIcon.stories.tsx +106 -968
  60. package/dist/icons/all-icons.tsx +37 -16
  61. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +137 -1010
  62. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +145 -935
  63. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +132 -1046
  64. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +134 -986
  65. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +135 -1028
  66. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +133 -971
  67. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +145 -1123
  68. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +143 -1252
  69. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +123 -632
  70. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +141 -1223
  71. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +164 -1018
  72. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +121 -1236
  73. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +121 -1213
  74. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +116 -893
  75. package/dist/icons/camera-icon/CameraIcon.stories.tsx +109 -1254
  76. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +114 -975
  77. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +157 -994
  78. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +160 -992
  79. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +140 -970
  80. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +126 -993
  81. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +144 -987
  82. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +141 -1007
  83. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +147 -1187
  84. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +110 -476
  85. package/dist/icons/coin-icon/CoinIcon.stories.tsx +120 -1364
  86. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +113 -1360
  87. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +111 -942
  88. package/dist/icons/command-icon/CommandIcon.stories.tsx +124 -1087
  89. package/dist/icons/copy-icon/CopyIcon.stories.tsx +119 -996
  90. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +144 -1046
  91. package/dist/icons/cross-icon/CrossIcon.stories.tsx +136 -999
  92. package/dist/icons/download-icon/DownloadIcon.stories.tsx +123 -857
  93. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +121 -1080
  94. package/dist/icons/email-icon/EmailIcon.stories.tsx +112 -979
  95. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +109 -1146
  96. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +141 -1068
  97. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +140 -1081
  98. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +124 -1050
  99. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +123 -1091
  100. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +122 -633
  101. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +116 -1087
  102. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +166 -1020
  103. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +112 -1182
  104. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +112 -1155
  105. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +127 -325
  106. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +142 -985
  107. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +116 -1217
  108. package/dist/icons/head-icon/HeadIcon.stories.tsx +108 -953
  109. package/dist/icons/heart-icon/HeartIcon.stories.tsx +117 -1060
  110. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +116 -716
  111. package/dist/icons/image-icon/ImageIcon.stories.tsx +102 -1164
  112. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +108 -1233
  113. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +133 -1289
  114. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +155 -1012
  115. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +158 -1438
  116. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +121 -1011
  117. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +116 -981
  118. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +116 -979
  119. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +105 -1252
  120. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +151 -1554
  121. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +107 -1227
  122. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +116 -707
  123. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +119 -1226
  124. package/dist/icons/message-icon/MessageIcon.stories.tsx +111 -557
  125. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +112 -1198
  126. package/dist/icons/moon-icon/MoonIcon.stories.tsx +117 -557
  127. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +106 -1235
  128. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +112 -1185
  129. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +116 -1012
  130. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +108 -1137
  131. package/dist/icons/notes-icon/NotesIcon.stories.tsx +116 -1138
  132. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +106 -1146
  133. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +119 -719
  134. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +110 -999
  135. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +109 -912
  136. package/dist/icons/pause-icon/PauseIcon.stories.tsx +110 -1041
  137. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +112 -1109
  138. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +112 -1023
  139. package/dist/icons/plus-icon/PlusIcon.stories.tsx +103 -1132
  140. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +104 -870
  141. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +99 -476
  142. package/dist/icons/search-icon/SearchIcon.stories.tsx +108 -1161
  143. package/dist/icons/setting-icon/SettingIcon.stories.tsx +104 -1009
  144. package/dist/icons/share-icon/ShareIcon.stories.tsx +117 -1064
  145. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +114 -974
  146. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +134 -1160
  147. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +169 -1017
  148. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +161 -1016
  149. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +102 -1001
  150. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +155 -593
  151. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +155 -608
  152. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +142 -712
  153. package/dist/icons/star-icon/StarIcon.stories.tsx +120 -946
  154. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +109 -1013
  155. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +113 -891
  156. package/dist/icons/sun-icon/SunIcon.stories.tsx +117 -864
  157. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +113 -989
  158. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +120 -1027
  159. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +153 -1476
  160. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +143 -1187
  161. package/dist/icons/tick-icon/TickIcon.stories.tsx +142 -1322
  162. package/dist/icons/trash-icon/TrashIcon.stories.tsx +105 -970
  163. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +154 -1457
  164. package/dist/icons/upload-icon/UploadIcon.stories.tsx +112 -930
  165. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +115 -1019
  166. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +122 -1092
  167. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +120 -1401
  168. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +107 -1212
  169. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +109 -1122
  170. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +112 -1124
  171. package/dist/icons/warning-icon/WarningIcon.stories.tsx +119 -1083
  172. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +158 -983
  173. package/dist/index.cjs +90 -90
  174. package/dist/index.js +90 -90
  175. package/package.json +8 -3
@@ -1,6 +1,21 @@
1
1
  import React from "react"
2
2
  import type { Meta, StoryObj } from "@storybook/react-vite"
3
3
 
4
+ import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
5
+ import { ChevronRightIcon } from "src/ui/icons/chevron-right-icon"
6
+ import { ForwardTenSecondsIcon } from "src/ui/icons/forward-ten-seconds-icon"
7
+ import { SkipForwardIcon } from "src/ui/icons/skip-forward-icon"
8
+ import {
9
+ IconColorVariations,
10
+ IconDefaultCanvas,
11
+ IconDirectionalVariations,
12
+ IconPlaygroundCanvas,
13
+ IconSizeVariations,
14
+ IconUsageCanvas,
15
+ IconUsageSection,
16
+ } from "src/ui/story-spec/icons/icon-story-canvas"
17
+ import { AuralIconDocsPage } from "src/ui/story-spec/icons/icon-story-docs-page"
18
+
4
19
  import { ArrowRightIcon } from "."
5
20
 
6
21
  const meta: Meta<typeof ArrowRightIcon> = {
@@ -18,907 +33,73 @@ const meta: Meta<typeof ArrowRightIcon> = {
18
33
  },
19
34
  docs: {
20
35
  page: () => (
21
- <>
22
- {/* Override default docs styling */}
23
- <style>
24
- {`
25
- .sbdocs-wrapper {
26
- padding: 0 ;
27
- max-width: none ;
28
- background: transparent ;
29
- }
30
- .sbdocs-content {
31
- max-width: none ;
32
- padding: 0 ;
33
- margin: 0 ;
34
- background: transparent ;
35
- }
36
- .docs-story {
37
- background: transparent ;
38
- }
39
- .sbdocs {
40
- background: transparent ;
41
- }
42
- body {
43
- background: var(--color-fm-surface-primary) ;
44
- }
45
- #storybook-docs {
46
- background: var(--color-fm-surface-primary) ;
47
- }
48
- .sbdocs-preview {
49
- background: transparent ;
50
- border: none ;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: var(--color-fm-icon-active) ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: var(--color-fm-secondary) ;
57
- }
58
- .sbdocs-code {
59
- background: var(--color-fm-surface-secondary) ;
60
- color: var(--color-fm-secondary-500) ;
61
- border: 1px solid var(--color-fm-divider-secondary) ;
62
- }
63
- .sbdocs-pre {
64
- background: var(--color-fm-surface-secondary) ;
65
- border: 1px solid var(--color-fm-divider-secondary) ;
66
- }
67
- .sbdocs-table {
68
- background: var(--color-fm-surface-secondary) ;
69
- border: 1px solid var(--color-fm-divider-secondary) ;
70
- }
71
- .sbdocs-table th {
72
- background: var(--color-fm-surface-secondary) ;
73
- color: var(--color-fm-icon-active) ;
74
- border-bottom: 1px solid var(--color-fm-divider-secondary) ;
75
- }
76
- .sbdocs-table td {
77
- color: var(--color-fm-secondary) ;
78
- border-bottom: 1px solid var(--color-fm-divider-tertiary) ;
79
- }
80
- `}
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-info/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-icon-info/30 from-fm-icon-info/20 to-fm-icon-info/20 !mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border bg-linear-to-br">
90
- <ArrowRightIcon className="text-fm-icon-info h-12 w-12" />
91
- </div>
92
- <h1 className="text-fm-icon-active! text-5xl font-bold">
93
- ArrowRightIcon
94
- </h1>
95
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
96
- A directional navigation icon indicating forward movement
97
- and progression. Perfect for next buttons, call-to-action
98
- elements, and guiding users through workflows.
99
- </p>
100
-
101
- {/* Stats */}
102
- <div className="flex items-center justify-center gap-8 pt-8">
103
- <div className="text-center">
104
- <div className="text-fm-icon-info text-3xl font-bold">
105
- Progress
106
- </div>
107
- <div className="text-fm-tertiary text-sm">
108
- Forward movement
109
- </div>
110
- </div>
111
- <div className="bg-fm-divider-primary h-8 w-px" />
112
- <div className="text-center">
113
- <div className="text-fm-icon-info text-3xl font-bold">
114
- Action
115
- </div>
116
- <div className="text-fm-tertiary text-sm">
117
- Call to action
118
- </div>
119
- </div>
120
- <div className="bg-fm-divider-primary h-8 w-px" />
121
- <div className="text-center">
122
- <div className="text-fm-icon-info text-3xl font-bold">
123
- Flow
124
- </div>
125
- <div className="text-fm-tertiary text-sm">
126
- Workflow guidance
127
- </div>
128
- </div>
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
-
134
- {/* Content */}
135
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
136
- {/* Quick Usage */}
137
- <div className="!space-y-8">
138
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
139
- Quick Start
140
- </h2>
141
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
142
- <div className="!space-y-4">
143
- <h3 className="text-fm-icon-info! text-xl font-semibold">
144
- Basic Usage
145
- </h3>
146
- <div className="bg-fm-surface-secondary rounded-lg p-4">
147
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
148
- {`import { ArrowRightIcon } from "@icons/arrow-right-icon"
149
-
150
- function NextButton() {
36
+ <AuralIconDocsPage
37
+ accentToken="positive"
38
+ features={[
39
+ {
40
+ title: "Navigation Forward",
41
+ description: "Clear forward/proceed signal",
42
+ },
43
+ { title: "currentColor", description: "Responds to text tokens" },
44
+ { title: "Accessible", description: "ARIA-ready by default" },
45
+ ]}
46
+ quickStart={{
47
+ codeExample: `import { ArrowRightIcon } from "src/ui/icons/arrow-right-icon"
48
+
49
+ function ContinueButton() {
151
50
  return (
152
51
  <button className="flex items-center gap-2">
153
- <span>Next Step</span>
154
- <ArrowRightIcon className="h-4 w-4 text-gray-400" />
155
- </button>
156
- )
157
- }`}
158
- </pre>
159
- </div>
160
- </div>
161
-
162
- <div className="!space-y-4">
163
- <h3 className="text-fm-icon-info! text-xl font-semibold">
164
- Live Preview
165
- </h3>
166
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
167
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
168
- <span>Next Step</span>
169
- <ArrowRightIcon className="text-fm-icon-info h-4 w-4 transition-transform hover:translate-x-1" />
170
- </button>
171
- </div>
172
- </div>
173
- </div>
174
- </div>
175
-
176
- {/* Props Documentation */}
177
- <div className="!space-y-8">
178
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
179
- Props & Configuration
180
- </h2>
181
-
182
- <div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
183
- <div className="bg-fm-surface-secondary p-4">
184
- <h3 className="text-fm-icon-active! text-xl font-semibold">
185
- Props
186
- </h3>
187
- </div>
188
- <table className="!my-0 w-full">
189
- <thead className="bg-fm-surface-secondary">
190
- <tr className="border-fm-divider-secondary border-b">
191
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
192
- Prop
193
- </th>
194
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
195
- Type
196
- </th>
197
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
198
- Default
199
- </th>
200
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
201
- Description
202
- </th>
203
- </tr>
204
- </thead>
205
- <tbody>
206
- {" "}
207
- <tr className="bg-fm-surface-secondary!">
208
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
209
- withAccessibility
210
- </td>
211
- <td className="text-fm-secondary! px-6 py-4 text-sm">
212
- boolean
213
- </td>
214
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
215
- true
216
- </td>
217
- <td className="text-fm-secondary! px-6 py-4 text-sm">
218
- Whether to wrap the icon with accessibility feature
219
- </td>
220
- </tr>
221
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
222
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
223
- height
224
- </td>
225
- <td className="text-fm-secondary! px-6 py-4 text-sm">
226
- number | string
227
- </td>
228
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
229
- 14
230
- </td>
231
- <td className="text-fm-secondary! px-6 py-4 text-sm">
232
- Height of the icon in pixels
233
- </td>
234
- </tr>
235
- <tr className="border-fm-divider-tertiary border-b">
236
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
237
- stroke
238
- </td>
239
- <td className="text-fm-secondary! px-6 py-4 text-sm">
240
- string
241
- </td>
242
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
243
- currentColor
244
- </td>
245
- <td className="text-fm-secondary! px-6 py-4 text-sm">
246
- Stroke color of the icon
247
- </td>
248
- </tr>
249
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
250
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
251
- strokeWidth
252
- </td>
253
- <td className="text-fm-secondary! px-6 py-4 text-sm">
254
- number | string
255
- </td>
256
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
257
- 1.5
258
- </td>
259
- <td className="text-fm-secondary! px-6 py-4 text-sm">
260
- Stroke width of the icon
261
- </td>
262
- </tr>
263
- <tr className="border-fm-divider-tertiary border-b">
264
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
265
- strokeLinecap
266
- </td>
267
- <td className="text-fm-secondary! px-6 py-4 text-sm">
268
- string
269
- </td>
270
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
271
- square
272
- </td>
273
- <td className="text-fm-secondary! px-6 py-4 text-sm">
274
- Line cap style for stroke
275
- </td>
276
- </tr>
277
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
278
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
279
- className
280
- </td>
281
- <td className="text-fm-secondary! px-6 py-4 text-sm">
282
- string
283
- </td>
284
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
285
- -
286
- </td>
287
- <td className="text-fm-secondary! px-6 py-4 text-sm">
288
- CSS classes for styling
289
- </td>
290
- </tr>
291
- <tr className="bg-fm-surface-secondary!">
292
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
293
- ...svgProps
294
- </td>
295
- <td className="text-fm-secondary! px-6 py-4 text-sm">
296
- SVGProps
297
- </td>
298
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
299
- -
300
- </td>
301
- <td className="text-fm-secondary! px-6 py-4 text-sm">
302
- All standard SVG element props
303
- </td>
304
- </tr>
305
- </tbody>
306
- </table>
307
- </div>
308
- </div>
309
-
310
- {/* Size Variations */}
311
- <div className="!space-y-8">
312
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
313
- Size Variations
314
- </h2>
315
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
316
- <div className="!space-y-6">
317
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
318
- <div className="!space-y-4">
319
- <h3 className="text-fm-icon-info! text-lg font-semibold">
320
- Standard Sizes
321
- </h3>
322
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
323
- <div className="text-center">
324
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
325
- <span className="text-fm-tertiary text-xs">
326
- 12px
327
- </span>
328
- </div>
329
- <div className="text-center">
330
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
331
- <span className="text-fm-tertiary text-xs">
332
- 16px
333
- </span>
334
- </div>
335
- <div className="text-center">
336
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
337
- <span className="text-fm-tertiary text-xs">
338
- 20px
339
- </span>
340
- </div>
341
- <div className="text-center">
342
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
343
- <span className="text-fm-tertiary text-xs">
344
- 24px
345
- </span>
346
- </div>
347
- <div className="text-center">
348
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
349
- <span className="text-fm-tertiary text-xs">
350
- 32px
351
- </span>
352
- </div>
353
- <div className="text-center">
354
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
355
- <span className="text-fm-tertiary text-xs">
356
- 48px
357
- </span>
358
- </div>
359
- </div>
360
- </div>
361
-
362
- <div className="!space-y-4">
363
- <h3 className="text-fm-icon-info! text-lg font-semibold">
364
- Code Example
365
- </h3>
366
- <div className="bg-fm-surface-secondary rounded-lg p-4">
367
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
368
- {`// Small (16px)
369
- <ArrowRightIcon className="h-4 w-4" />
370
-
371
- // Medium (24px)
372
- <ArrowRightIcon className="h-6 w-6" />
373
-
374
- // Large (32px)
375
- <ArrowRightIcon className="h-8 w-8" />
376
-
377
- // Custom size
378
- <ArrowRightIcon width={40} height={35} />`}
379
- </pre>
380
- </div>
381
- </div>
382
- </div>
383
- </div>
384
- </div>
385
- </div>
386
-
387
- {/* Direction & Animation */}
388
- <div className="!space-y-8">
389
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
390
- Direction & Animation
391
- </h2>
392
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
393
- <div className="!space-y-4">
394
- <h3 className="text-fm-icon-info! text-lg font-semibold">
395
- Directional Variants
396
- </h3>
397
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
398
- <div className="grid grid-cols-2 gap-4">
399
- <div className="flex flex-col items-center gap-2">
400
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6" />
401
- <span className="text-fm-tertiary! text-xs">
402
- Right (Default)
403
- </span>
404
- </div>
405
- <div className="flex flex-col items-center gap-2">
406
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6 rotate-180" />
407
- <span className="text-fm-tertiary! text-xs">
408
- Left (rotate-180)
409
- </span>
410
- </div>
411
- <div className="flex flex-col items-center gap-2">
412
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
413
- <span className="text-fm-tertiary! text-xs">
414
- Up (-rotate-90)
415
- </span>
416
- </div>
417
- <div className="flex flex-col items-center gap-2">
418
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6 rotate-90" />
419
- <span className="text-fm-tertiary! text-xs">
420
- Down (rotate-90)
421
- </span>
422
- </div>
423
- </div>
424
- </div>
425
- </div>
426
-
427
- <div className="!space-y-4">
428
- <h3 className="text-fm-icon-info! text-lg font-semibold">
429
- Animation Examples
430
- </h3>
431
- <div className="bg-fm-surface-secondary rounded-lg p-4">
432
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
433
- {`// Smooth slide animation
434
- <ArrowRightIcon className="h-4 w-4 transition-transform hover:translate-x-1" />
435
-
436
- // Button with progressive animation
437
- <button className="group flex items-center gap-2">
438
- <span>Continue</span>
439
- <ArrowRightIcon className="h-4 w-4 transition-transform group-hover:translate-x-1" />
440
- </button>
441
-
442
- // Pulsing call-to-action
443
- <ArrowRightIcon className="h-4 w-4 animate-pulse text-cyan-400" />`}
444
- </pre>
445
- </div>
446
- </div>
447
- </div>
448
- </div>
449
-
450
- {/* Usage Examples */}
451
- <div className="!space-y-8">
452
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
453
- Usage Examples
454
- </h2>
455
-
456
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
457
- {/* Call to Action Button */}
458
- <div className="!space-y-4">
459
- <h3 className="text-fm-icon-info! text-lg font-semibold">
460
- Call to Action Button
461
- </h3>
462
- <div className="!space-y-4">
463
- <button className="group border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-6 py-3 transition-all">
464
- <span>Get Started</span>
465
- <ArrowRightIcon className="text-fm-icon-info h-4 w-4 transition-transform group-hover:translate-x-1" />
466
- </button>
467
- <div className="bg-fm-surface-secondary rounded-lg p-4">
468
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
469
- {`<button className="group flex items-center gap-2 px-6 py-3 bg-cyan-500/10 border border-cyan-500/20 rounded-lg">
470
- <span>Get Started</span>
471
- <ArrowRightIcon className="h-4 w-4 text-cyan-400 transition-transform group-hover:translate-x-1" />
472
- </button>`}
473
- </pre>
474
- </div>
475
- </div>
476
- </div>
477
-
478
- {/* Navigation Link */}
479
- <div className="!space-y-4">
480
- <h3 className="text-fm-icon-info! text-lg font-semibold">
481
- Navigation Link
482
- </h3>
483
- <div className="!space-y-4">
484
- <div className="!space-y-3">
485
- <a
486
- href="#"
487
- className="group border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4 transition-colors"
488
- >
489
- <div>
490
- <h4 className="text-fm-icon-active! font-medium">
491
- Documentation
492
- </h4>
493
- <p className="text-fm-tertiary! text-sm">
494
- Learn how to use our components
495
- </p>
496
- </div>
497
- <ArrowRightIcon className="text-fm-icon-info h-5 w-5 transition-transform group-hover:translate-x-1" />
498
- </a>
499
- <a
500
- href="#"
501
- className="group border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4 transition-colors"
502
- >
503
- <div>
504
- <h4 className="text-fm-icon-active! font-medium">
505
- Examples
506
- </h4>
507
- <p className="text-fm-tertiary! text-sm">
508
- Browse through code examples
509
- </p>
510
- </div>
511
- <ArrowRightIcon className="text-fm-icon-info h-5 w-5 transition-transform group-hover:translate-x-1" />
512
- </a>
513
- </div>
514
- <div className="bg-fm-surface-secondary rounded-lg p-4">
515
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
516
- {`<a href="#" className="group flex items-center justify-between p-4 rounded-lg border border-white/10 bg-white/5 hover:bg-white/10">
517
- <div>
518
- <h4 className="font-medium text-white">Documentation</h4>
519
- <p className="text-sm text-white/60">Learn how to use our components</p>
520
- </div>
521
- <ArrowRightIcon className="h-5 w-5 text-cyan-400 transition-transform group-hover:translate-x-1" />
522
- </a>`}
523
- </pre>
524
- </div>
525
- </div>
526
- </div>
527
-
528
- {/* Step Navigation */}
529
- <div className="!space-y-4">
530
- <h3 className="text-fm-icon-info! text-lg font-semibold">
531
- Step Navigation
532
- </h3>
533
- <div className="!space-y-4">
534
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
535
- <div className="flex items-center justify-between">
536
- <div>
537
- <div className="text-fm-icon-active! text-sm font-medium">
538
- Step 2 of 5
539
- </div>
540
- <div className="text-fm-tertiary! text-xs">
541
- Personal Information
542
- </div>
543
- </div>
544
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 flex items-center gap-2 rounded border px-4 py-2 text-sm transition-colors">
545
- <span className="text-fm-icon-active!">
546
- Continue
547
- </span>
548
- <ArrowRightIcon className="text-fm-icon-info h-4 w-4" />
549
- </button>
550
- </div>
551
- </div>
552
- <div className="bg-fm-surface-secondary rounded-lg p-4">
553
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
554
- {`<div className="flex items-center justify-between">
555
- <div>
556
- <div className="text-sm font-medium text-white">Step 2 of 5</div>
557
- <div className="text-xs text-white/60">Personal Information</div>
558
- </div>
559
- <button className="flex items-center gap-2 px-4 py-2 text-sm bg-cyan-500/10 border border-cyan-500/20 rounded">
560
- <span>Continue</span>
561
- <ArrowRightIcon className="h-4 w-4 text-cyan-400" />
562
- </button>
563
- </div>`}
564
- </pre>
565
- </div>
566
- </div>
567
- </div>
568
-
569
- {/* Pagination Next */}
570
- <div className="!space-y-4">
571
- <h3 className="text-fm-icon-info! text-lg font-semibold">
572
- Pagination Controls
573
- </h3>
574
- <div className="!space-y-4">
575
- <div className="flex items-center justify-between">
576
- <button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
577
- <ArrowRightIcon className="text-fm-placeholder h-4 w-4 rotate-180" />
578
- <span className="text-fm-icon-active!">Previous</span>
579
- </button>
580
- <span className="text-fm-secondary! text-sm">
581
- Page 3 of 12
582
- </span>
583
- <button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
584
- <span className="text-fm-icon-active!">Next</span>
585
- <ArrowRightIcon className="text-fm-icon-info h-4 w-4" />
586
- </button>
587
- </div>
588
- <div className="bg-fm-surface-secondary rounded-lg p-4">
589
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
590
- {`<div className="flex items-center justify-between">
591
- <button className="flex items-center gap-2 px-3 py-2 text-sm">
592
- <ArrowRightIcon className="h-4 w-4 rotate-180 text-gray-400" />
593
- <span>Previous</span>
594
- </button>
595
- <span className="text-sm text-white/70">Page 3 of 12</span>
596
- <button className="flex items-center gap-2 px-3 py-2 text-sm">
597
- <span>Next</span>
598
- <ArrowRightIcon className="h-4 w-4 text-cyan-400" />
599
- </button>
600
- </div>`}
601
- </pre>
602
- </div>
603
- </div>
604
- </div>
605
-
606
- {/* External Link */}
607
- <div className="!space-y-4">
608
- <h3 className="text-fm-icon-info! text-lg font-semibold">
609
- External Link
610
- </h3>
611
- <div className="!space-y-4">
612
- <div className="!space-y-2">
613
- <a
614
- href="#"
615
- className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
616
- >
617
- Learn more
618
- <ArrowRightIcon className="h-3 w-3" />
619
- </a>
620
- <a
621
- href="#"
622
- className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
623
- >
624
- View documentation
625
- <ArrowRightIcon className="h-3 w-3" />
626
- </a>
627
- <a
628
- href="#"
629
- className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
630
- >
631
- Visit our blog
632
- <ArrowRightIcon className="h-3 w-3" />
633
- </a>
634
- </div>
635
- <div className="bg-fm-surface-secondary rounded-lg p-4">
636
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
637
- {`<a href="#" className="inline-flex items-center gap-1 text-sm text-cyan-400 hover:text-cyan-300">
638
- Learn more
639
- <ArrowRightIcon className="h-3 w-3" />
640
- </a>
641
-
642
- <a href="#" className="inline-flex items-center gap-1 text-sm text-cyan-400 hover:text-cyan-300">
643
- View documentation
644
- <ArrowRightIcon className="h-3 w-3" />
645
- </a>`}
646
- </pre>
647
- </div>
648
- </div>
649
- </div>
650
-
651
- {/* Card Actions */}
652
- <div className="!space-y-4">
653
- <h3 className="text-fm-icon-info! text-lg font-semibold">
654
- Card with Actions
655
- </h3>
656
- <div className="!space-y-4">
657
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
658
- <div className="!space-y-4">
659
- <div>
660
- <h4 className="text-fm-icon-active! font-medium">
661
- Pro Plan
662
- </h4>
663
- <p className="text-fm-tertiary! text-sm">
664
- Advanced features for power users
665
- </p>
666
- </div>
667
- <div className="flex items-center justify-between">
668
- <span className="text-fm-icon-active! text-2xl font-bold">
669
- $29
670
- <span className="text-fm-tertiary text-sm font-normal">
671
- /month
672
- </span>
673
- </span>
674
- <button className="bg-fm-icon-info text-fm-icon-active hover:bg-fm-icon-info flex items-center gap-2 rounded px-4 py-2 text-sm font-medium transition-colors">
675
- Upgrade Now
676
- <ArrowRightIcon className="h-4 w-4" />
677
- </button>
678
- </div>
679
- </div>
680
- </div>
681
- <div className="bg-fm-surface-secondary rounded-lg p-4">
682
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
683
- {`<div className="rounded-lg border border-white/10 bg-white/5 p-6">
684
- <div className="space-y-4">
685
- <div>
686
- <h4 className="font-medium text-white">Pro Plan</h4>
687
- <p className="text-sm text-white/60">Advanced features for power users</p>
688
- </div>
689
- <div className="flex items-center justify-between">
690
- <span className="text-2xl font-bold text-white">$29<span className="text-sm font-normal text-white/60">/month</span></span>
691
- <button className="flex items-center gap-2 px-4 py-2 bg-cyan-500 rounded text-sm font-medium text-white">
692
- Upgrade Now
693
- <ArrowRightIcon className="h-4 w-4" />
694
- </button>
695
- </div>
696
- </div>
697
- </div>`}
698
- </pre>
699
- </div>
700
- </div>
701
- </div>
702
- </div>
703
- </div>
704
-
705
- {/* Accessibility */}
706
- <div className="!space-y-8">
707
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
708
- Accessibility Features
709
- </h2>
710
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
711
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
712
- <h3 className="text-fm-icon-positive! text-lg font-semibold">
713
- ✅ Built-in Features
714
- </h3>
715
- <ul className="text-fm-secondary! !space-y-2 text-sm">
716
- <li className="text-fm-secondary!">
717
- Uses Radix UI AccessibleIcon wrapper
718
- </li>
719
- <li className="text-fm-secondary!">
720
- Provides screen reader label "Arrow Right icon"
721
- </li>
722
- <li className="text-fm-secondary!">
723
- Supports keyboard navigation when used in buttons
724
- </li>
725
- <li className="text-fm-secondary!">
726
- Maintains proper color contrast ratios
727
- </li>
728
- <li className="text-fm-secondary!">
729
- Respects user's motion preferences for animations
730
- </li>
731
- </ul>
732
- </div>
733
-
734
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
735
- <h3 className="text-fm-icon-info! text-lg font-semibold">
736
- 💡 Best Practices
737
- </h3>
738
- <ul className="text-fm-secondary !space-y-2 text-sm">
739
- <li className="text-fm-secondary!">
740
- Always pair with descriptive text or aria-label
741
- </li>
742
- <li className="text-fm-secondary!">
743
- Use consistent direction conventions
744
- </li>
745
- <li className="text-fm-secondary!">
746
- Provide clear focus indicators for interactive elements
747
- </li>
748
- <li className="text-fm-secondary!">
749
- Test navigation flow with keyboard only
750
- </li>
751
- <li className="text-fm-secondary!">
752
- Consider touch targets on mobile devices
753
- </li>
754
- </ul>
755
- </div>
756
- </div>
757
-
758
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
759
- <h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
760
- Accessible Button Implementation
761
- </h3>
762
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
763
- <div className="bg-fm-surface-secondary rounded-lg p-4">
764
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
765
- {`// Accessible next button with proper labeling
766
- function AccessibleNextButton({ onNext, children, disabled = false }) {
767
- return (
768
- <button
769
- onClick={onNext}
770
- disabled={disabled}
771
- aria-label="Proceed to next step"
772
- className="flex items-center gap-2 px-4 py-2 rounded-lg focus:ring-2 focus:ring-cyan-500 disabled:opacity-50"
773
- >
774
- {children}
775
- <ArrowRightIcon
776
- className="h-4 w-4 text-cyan-400"
777
- aria-hidden="true"
778
- />
52
+ Continue
53
+ <ArrowRightIcon className="h-4 w-4 text-fm-icon-active" />
779
54
  </button>
780
55
  )
781
- }
782
-
783
- // Usage
784
- <AccessibleNextButton onNext={() => handleNext()}>
785
- Continue
786
- </AccessibleNextButton>`}
787
- </pre>
788
- </div>
789
- <div className="!space-y-4">
790
- <p className="text-fm-secondary! text-sm">
791
- This implementation includes proper ARIA labeling,
792
- keyboard navigation, and disabled states for optimal
793
- accessibility.
794
- </p>
795
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
796
- <div className="text-fm-icon-info! flex items-center gap-2 text-sm">
797
- <ArrowRightIcon className="h-4 w-4" />
798
- <span>
799
- The icon is marked as aria-hidden since the button
800
- provides context
801
- </span>
802
- </div>
803
- </div>
804
- </div>
805
- </div>
806
- </div>
807
- </div>
808
-
809
- {/* Related Icons */}
810
- <div className="!space-y-8">
811
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
812
- Related Icons
813
- </h2>
814
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
815
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
816
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
817
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6 rotate-180" />
818
- </div>
819
- <div>
820
- <div className="text-fm-icon-active font-medium">
821
- ArrowLeftIcon
822
- </div>
823
- <div className="text-fm-tertiary text-xs">
824
- Previous/back actions
825
- </div>
826
- </div>
827
- </div>
828
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
829
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
830
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6 -rotate-90" />
831
- </div>
832
- <div>
833
- <div className="text-fm-icon-active font-medium">
834
- ArrowUpIcon
835
- </div>
836
- <div className="text-fm-tertiary text-xs">
837
- Upward movement
838
- </div>
839
- </div>
840
- </div>
841
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
842
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
843
- <ArrowRightIcon className="text-fm-secondary-600 h-6 w-6 rotate-90" />
844
- </div>
845
- <div>
846
- <div className="text-fm-icon-active font-medium">
847
- ArrowDownIcon
848
- </div>
849
- <div className="text-fm-tertiary text-xs">
850
- Downward movement
851
- </div>
852
- </div>
853
- </div>
854
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
855
- <div className="bg-fm-icon-positive/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
856
- <span className="text-2xl">➡️</span>
857
- </div>
858
- <div>
859
- <div className="text-fm-icon-active font-medium">
860
- ChevronRightIcon
861
- </div>
862
- <div className="text-fm-tertiary text-xs">
863
- Alternative arrow style
864
- </div>
865
- </div>
866
- </div>
867
- </div>
868
- </div>
869
- </div>
870
-
871
- {/* Footer */}
872
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
873
- <div className="!mx-auto max-w-7xl px-6 py-8">
874
- <div className="!space-y-4 text-center">
875
- <p className="text-fm-tertiary!">
876
- ArrowRightIcon is part of the Aural UI icon library,
877
- designed for clear forward progression and action guidance.
878
- </p>
879
- <p className="text-fm-placeholder! text-sm">
880
- Perfect for call-to-action buttons, navigation links, step
881
- progression, and any interface requiring forward direction
882
- indication.
883
- </p>
884
- </div>
885
- </div>
886
- </div>
887
- </div>
888
- </>
56
+ }`,
57
+ livePreview: (
58
+ <button className="text-fm-primary font-fm-text flex items-center gap-2 text-sm">
59
+ Continue
60
+ <ArrowRightIcon className="text-fm-icon-active h-4 w-4" />
61
+ </button>
62
+ ),
63
+ }}
64
+ relatedIcons={[
65
+ {
66
+ name: "ArrowLeftIcon",
67
+ description: "Points left",
68
+ icon: ArrowLeftIcon,
69
+ accentToken: "info",
70
+ },
71
+ {
72
+ name: "ChevronRightIcon",
73
+ description: "Lighter right chevron",
74
+ icon: ChevronRightIcon,
75
+ accentToken: "positive",
76
+ },
77
+ {
78
+ name: "ForwardTenSecondsIcon",
79
+ description: "Skip 10 seconds",
80
+ icon: ForwardTenSecondsIcon,
81
+ accentToken: "warning",
82
+ },
83
+ {
84
+ name: "SkipForwardIcon",
85
+ description: "Skip to next",
86
+ icon: SkipForwardIcon,
87
+ accentToken: "negative",
88
+ },
89
+ ]}
90
+ />
889
91
  ),
890
92
  },
891
93
  },
892
94
  tags: ["autodocs"],
893
95
  argTypes: {
894
- width: {
895
- control: { type: "range", min: 8, max: 96, step: 2 },
896
- description: "Width of the icon in pixels",
96
+ className: {
97
+ control: "text",
98
+ description: "CSS classes including size and color token",
897
99
  },
898
100
  withAccessibility: {
899
101
  control: "boolean",
900
- description: "Whether to wrap the icon with accessibility features",
901
- },
902
- height: {
903
- control: { type: "range", min: 6, max: 84, step: 2 },
904
- description: "Height of the icon in pixels",
905
- },
906
- stroke: {
907
- control: "color",
908
- description: "Stroke color of the icon",
909
- },
910
- strokeWidth: {
911
- control: { type: "range", min: 1, max: 4, step: 0.5 },
912
- description: "Stroke width of the icon",
913
- },
914
- strokeLinecap: {
915
- control: { type: "select" },
916
- options: ["butt", "round", "square"],
917
- description: "Line cap style for stroke",
918
- },
919
- className: {
920
- control: "text",
921
- description: "CSS classes for styling",
102
+ description: "Wrap with accessibility label",
922
103
  },
923
104
  },
924
105
  }
@@ -926,268 +107,109 @@ function AccessibleNextButton({ onNext, children, disabled = false }) {
926
107
  export default meta
927
108
  type Story = StoryObj<typeof ArrowRightIcon>
928
109
 
929
- // Story parameters for consistent dark theme
930
- const storyParameters = {
931
- backgrounds: {
932
- default: "dark",
933
- values: [
934
- { name: "dark", value: "var(--color-fm-surface-primary)" },
935
- { name: "darker", value: "var(--color-fm-neutral-0)" },
936
- ],
937
- },
938
- }
939
-
940
110
  export const Default: Story = {
941
111
  args: {
942
- width: 24,
943
- height: 21,
944
- className: "text-fm-icon-info",
112
+ className: "h-6 w-6 text-fm-icon-active",
945
113
  withAccessibility: true,
946
114
  },
947
- parameters: storyParameters,
948
115
  render: (args) => (
949
- <div className="from-fm-surface-primary to-fm-surface-secondary flex h-32 min-h-dvh items-center justify-center rounded-lg bg-linear-to-br">
116
+ <IconDefaultCanvas>
950
117
  <ArrowRightIcon {...args} />
951
- </div>
118
+ </IconDefaultCanvas>
952
119
  ),
953
120
  }
954
121
 
955
122
  export const SizeVariations: Story = {
956
- parameters: {
957
- ...storyParameters,
958
- docs: {
959
- description: {
960
- story:
961
- "ArrowRightIcon in different sizes, from small inline links to large call-to-action buttons.",
962
- },
963
- },
964
- },
965
- render: () => (
966
- <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">
967
- <div className="text-center">
968
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
969
- <span className="text-fm-tertiary text-xs">12px</span>
970
- </div>
971
- <div className="text-center">
972
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
973
- <span className="text-fm-tertiary text-xs">16px</span>
974
- </div>
975
- <div className="text-center">
976
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
977
- <span className="text-fm-tertiary text-xs">20px</span>
978
- </div>
979
- <div className="text-center">
980
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
981
- <span className="text-fm-tertiary text-xs">24px</span>
982
- </div>
983
- <div className="text-center">
984
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
985
- <span className="text-fm-tertiary text-xs">32px</span>
986
- </div>
987
- <div className="text-center">
988
- <ArrowRightIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
989
- <span className="text-fm-tertiary text-xs">48px</span>
990
- </div>
991
- </div>
992
- ),
123
+ render: () => <IconSizeVariations icon={ArrowRightIcon} />,
124
+ }
125
+
126
+ export const ColorVariations: Story = {
127
+ render: () => <IconColorVariations icon={ArrowRightIcon} />,
993
128
  }
994
129
 
995
130
  export const DirectionalVariations: Story = {
996
- parameters: {
997
- ...storyParameters,
998
- docs: {
999
- description: {
1000
- story:
1001
- "ArrowRightIcon rotated to different directions for various navigation purposes.",
1002
- },
1003
- },
1004
- },
1005
131
  render: () => (
1006
- <div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-2 items-center justify-center gap-8 rounded-lg bg-linear-to-br p-8 md:grid-cols-4">
1007
- <div className="text-center">
1008
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
1009
- <ArrowRightIcon className="text-fm-icon-info h-8 w-8" />
1010
- </div>
1011
- <div className="text-fm-icon-active text-sm font-medium">Right</div>
1012
- <div className="text-fm-icon-info text-xs">Default</div>
1013
- </div>
1014
- <div className="text-center">
1015
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
1016
- <ArrowRightIcon className="text-fm-icon-info h-8 w-8 rotate-180" />
1017
- </div>
1018
- <div className="text-fm-icon-active text-sm font-medium">Left</div>
1019
- <div className="text-fm-icon-info text-xs">rotate-180</div>
1020
- </div>
1021
- <div className="text-center">
1022
- <div className="border-fm-icon-info/30 bg-fm-icon-info/20 !mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border">
1023
- <ArrowRightIcon className="text-fm-icon-info h-8 w-8 -rotate-90" />
1024
- </div>
1025
- <div className="text-fm-icon-active text-sm font-medium">Up</div>
1026
- <div className="text-fm-icon-info text-xs">-rotate-90</div>
1027
- </div>
1028
- <div className="text-center">
1029
- <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">
1030
- <ArrowRightIcon className="text-fm-secondary-600 h-8 w-8 rotate-90" />
1031
- </div>
1032
- <div className="text-fm-icon-active text-sm font-medium">Down</div>
1033
- <div className="text-fm-secondary-600 text-xs">rotate-90</div>
1034
- </div>
1035
- </div>
132
+ <IconDirectionalVariations
133
+ icon={ArrowRightIcon}
134
+ directions={[
135
+ { label: "Right", className: "h-8 w-8 text-fm-icon-active" },
136
+ {
137
+ label: "Up",
138
+ className: "h-8 w-8 text-fm-icon-active -rotate-90",
139
+ },
140
+ {
141
+ label: "Left",
142
+ className: "h-8 w-8 text-fm-icon-active rotate-180",
143
+ },
144
+ {
145
+ label: "Down",
146
+ className: "h-8 w-8 text-fm-icon-active rotate-90",
147
+ },
148
+ ]}
149
+ />
1036
150
  ),
1037
151
  }
1038
152
 
1039
153
  export const UsageExamples: Story = {
1040
- parameters: {
1041
- ...storyParameters,
1042
- docs: {
1043
- description: {
1044
- story:
1045
- "Real-world usage examples showing ArrowRightIcon in different UI contexts.",
1046
- },
1047
- },
1048
- },
1049
154
  render: () => (
1050
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
1051
- {/* Call to Action */}
1052
- <div className="!space-y-2">
1053
- <h3 className="text-fm-icon-active text-sm font-medium">
1054
- Call to Action Button
1055
- </h3>
1056
- <button className="group border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-active hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-6 py-3 transition-all">
1057
- <span>Get Started</span>
1058
- <ArrowRightIcon className="text-fm-icon-info h-4 w-4 transition-transform group-hover:translate-x-1" />
1059
- </button>
1060
- </div>
1061
-
1062
- {/* Navigation Link */}
1063
- <div className="!space-y-2">
1064
- <h3 className="text-fm-icon-active text-sm font-medium">
1065
- Navigation Link
1066
- </h3>
1067
- <a
1068
- href="#"
1069
- className="group border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center justify-between rounded-lg border p-4 transition-colors"
1070
- >
1071
- <div>
1072
- <h4 className="text-fm-icon-active font-medium">Documentation</h4>
1073
- <p className="text-fm-tertiary text-sm">
1074
- Learn how to use our components
1075
- </p>
1076
- </div>
1077
- <ArrowRightIcon className="text-fm-icon-info h-5 w-5 transition-transform group-hover:translate-x-1" />
1078
- </a>
1079
- </div>
1080
-
1081
- {/* Pagination */}
1082
- <div className="!space-y-2">
1083
- <h3 className="text-fm-icon-active text-sm font-medium">Pagination</h3>
1084
- <div className="flex items-center justify-between">
1085
- <button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
1086
- <ArrowRightIcon className="text-fm-placeholder h-4 w-4 rotate-180" />
1087
- <span className="text-fm-icon-active">Previous</span>
1088
- </button>
1089
- <span className="text-fm-secondary text-sm">Page 3 of 12</span>
1090
- <button className="border-fm-divider-secondary bg-fm-surface-secondary hover:bg-fm-surface-secondary flex items-center gap-2 rounded border px-3 py-2 text-sm transition-colors">
1091
- <span className="text-fm-icon-active">Next</span>
1092
- <ArrowRightIcon className="text-fm-icon-info h-4 w-4" />
155
+ <IconUsageCanvas>
156
+ <IconUsageSection title="CTA Button">
157
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
158
+ <button className="bg-fm-icon-active flex w-full items-center justify-center gap-2 rounded-xl py-3">
159
+ <span className="text-fm-primary font-fm-text text-sm font-medium">
160
+ Start Listening
161
+ </span>
162
+ <ArrowRightIcon className="text-fm-primary h-4 w-4" />
1093
163
  </button>
1094
164
  </div>
1095
- </div>
1096
-
1097
- {/* External Links */}
1098
- <div className="!space-y-2">
1099
- <h3 className="text-fm-icon-active text-sm font-medium">
1100
- External Links
1101
- </h3>
1102
- <div className="!space-y-2">
1103
- <a
1104
- href="#"
1105
- className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
1106
- >
1107
- Learn more
1108
- <ArrowRightIcon className="h-3 w-3" />
1109
- </a>
1110
- <br />
1111
- <a
1112
- href="#"
1113
- className="text-fm-icon-info hover:text-fm-icon-info inline-flex items-center gap-1 text-sm"
1114
- >
1115
- View documentation
1116
- <ArrowRightIcon className="h-3 w-3" />
1117
- </a>
165
+ </IconUsageSection>
166
+
167
+ <IconUsageSection title="Wizard Step Navigation">
168
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
169
+ <div className="flex items-center justify-between">
170
+ <button className="border-fm-divider-secondary flex items-center gap-1.5 rounded-lg border px-3 py-2">
171
+ <ArrowLeftIcon className="text-fm-icon-active h-4 w-4" />
172
+ <span className="text-fm-primary font-fm-text text-sm">
173
+ Previous
174
+ </span>
175
+ </button>
176
+ <span className="text-fm-secondary font-fm-text text-sm">
177
+ Step 3 of 4
178
+ </span>
179
+ <button className="bg-fm-icon-active flex items-center gap-1.5 rounded-lg px-3 py-2">
180
+ <span className="text-fm-primary font-fm-text text-sm">Next</span>
181
+ <ArrowRightIcon className="text-fm-primary h-4 w-4" />
182
+ </button>
183
+ </div>
1118
184
  </div>
1119
- </div>
1120
- </div>
1121
- ),
1122
- }
1123
-
1124
- export const AnimatedStates: Story = {
1125
- parameters: {
1126
- ...storyParameters,
1127
- docs: {
1128
- description: {
1129
- story:
1130
- "ArrowRightIcon with different animation states for interactive elements.",
1131
- },
1132
- },
1133
- },
1134
- render: () => (
1135
- <div className="from-fm-surface-primary to-fm-surface-secondary grid min-h-dvh grid-cols-1 items-center gap-8 rounded-lg bg-linear-to-br p-8 md:grid-cols-3">
1136
- <div className="text-center">
1137
- <h3 className="text-fm-icon-active mb-4 text-lg font-medium">
1138
- Hover Animation
1139
- </h3>
1140
- <button className="group border-fm-icon-info/30 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 rounded-lg border px-6 py-3 transition-colors">
1141
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6 transition-transform duration-300 group-hover:translate-x-2" />
1142
- </button>
1143
- <p className="text-fm-tertiary mt-2 text-xs">Hover to slide right</p>
1144
- </div>
1145
-
1146
- <div className="text-center">
1147
- <h3 className="text-fm-icon-active mb-4 text-lg font-medium">
1148
- Pulse Animation
1149
- </h3>
1150
- <button className="border-fm-icon-info/30 bg-fm-icon-info/10 rounded-lg border px-6 py-3">
1151
- <ArrowRightIcon className="text-fm-icon-info h-6 w-6 animate-pulse" />
1152
- </button>
1153
- <p className="text-fm-tertiary mt-2 text-xs">Attention grabbing</p>
1154
- </div>
1155
-
1156
- <div className="text-center">
1157
- <h3 className="text-fm-icon-active mb-4 text-lg font-medium">
1158
- Color Change
1159
- </h3>
1160
- <button className="border-fm-icon-info/30 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 rounded-lg border px-6 py-3 transition-colors">
1161
- <ArrowRightIcon className="text-fm-icon-info hover:text-fm-icon-info h-6 w-6 transition-colors duration-300" />
1162
- </button>
1163
- <p className="text-fm-tertiary mt-2 text-xs">Hover to lighten</p>
1164
- </div>
1165
- </div>
185
+ </IconUsageSection>
186
+
187
+ <IconUsageSection title="Link with Arrow">
188
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
189
+ {["View all episodes", "See full credits", "Read more"].map(
190
+ (link) => (
191
+ <button key={link} className="flex w-full items-center gap-2">
192
+ <span className="text-fm-icon-info font-fm-text text-sm">
193
+ {link}
194
+ </span>
195
+ <ArrowRightIcon className="text-fm-icon-info h-3.5 w-3.5" />
196
+ </button>
197
+ )
198
+ )}
199
+ </div>
200
+ </IconUsageSection>
201
+ </IconUsageCanvas>
1166
202
  ),
1167
203
  }
1168
204
 
1169
205
  export const Playground: Story = {
1170
- parameters: {
1171
- ...storyParameters,
1172
- docs: {
1173
- description: {
1174
- story:
1175
- "Interactive playground to experiment with different ArrowRightIcon configurations.",
1176
- },
1177
- },
1178
- },
1179
206
  args: {
1180
- width: 32,
1181
- height: 28,
1182
- className: "text-fm-icon-info",
1183
- strokeWidth: 1.5,
1184
- strokeLinecap: "square",
207
+ className: "h-8 w-8 text-fm-icon-active",
208
+ withAccessibility: true,
1185
209
  },
1186
210
  render: (args) => (
1187
- <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">
1188
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
1189
- <ArrowRightIcon {...args} />
1190
- </div>
1191
- </div>
211
+ <IconPlaygroundCanvas>
212
+ <ArrowRightIcon {...args} />
213
+ </IconPlaygroundCanvas>
1192
214
  ),
1193
215
  }