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 { ArrowCornerUpRightIcon } from "src/ui/icons/arrow-corner-up-right-icon"
5
+ import { ArrowLeftIcon } from "src/ui/icons/arrow-left-icon"
6
+ import { ArrowRightUpIcon } from "src/ui/icons/arrow-right-up-icon"
7
+ import { ChevronLeftIcon } from "src/ui/icons/chevron-left-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 { ArrowCornerUpLeftIcon } from "."
5
20
 
6
21
  const meta: Meta<typeof ArrowCornerUpLeftIcon> = {
@@ -18,804 +33,74 @@ const meta: Meta<typeof ArrowCornerUpLeftIcon> = {
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="from-fm-surface-primary via-fm-icon-info/5 to-fm-surface-primary min-h-screen bg-linear-to-br">
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-icon-info/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
- <ArrowCornerUpLeftIcon className="text-fm-icon-info h-12 w-12" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- ArrowCornerUpLeftIcon
94
- </h1>
95
- <p className="text-fm-secondary! !mx-auto max-w-3xl text-xl leading-relaxed">
96
- A directional icon for navigation, indicating upward and
97
- leftward movement. Perfect for back navigation, return
98
- actions, and corner-based directional indicators. Built with
99
- accessibility in mind using Radix UI's AccessibleIcon
100
- wrapper.
101
- </p>
102
-
103
- {/* Stats */}
104
- <div className="flex items-center justify-center gap-8 pt-8">
105
- <div className="text-center">
106
- <div className="text-fm-icon-info text-3xl font-bold">
107
- Accessible
108
- </div>
109
- <div className="text-fm-tertiary text-sm">
110
- Screen reader friendly
111
- </div>
112
- </div>
113
- <div className="bg-fm-divider-primary h-8 w-px" />
114
- <div className="text-center">
115
- <div className="text-fm-icon-info text-3xl font-bold">
116
- Scalable
117
- </div>
118
- <div className="text-fm-tertiary text-sm">
119
- Any size needed
120
- </div>
121
- </div>
122
- <div className="bg-fm-divider-primary h-8 w-px" />
123
- <div className="text-center">
124
- <div className="text-fm-secondary-600 text-3xl font-bold">
125
- Flexible
126
- </div>
127
- <div className="text-fm-tertiary text-sm">
128
- Customizable styling
129
- </div>
130
- </div>
131
- </div>
132
- </div>
133
- </div>
134
- </div>
135
-
136
- {/* Content */}
137
- <div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
138
- {/* Quick Usage */}
139
- <div className="!space-y-8">
140
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
141
- Quick Start
142
- </h2>
143
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
144
- <div className="!space-y-4">
145
- <h3 className="text-fm-icon-info! 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 { ArrowCornerUpLeftIcon } from "@icons/arrow-corner-up-left-icon"
151
-
152
- function MyComponent() {
36
+ <AuralIconDocsPage
37
+ accentToken="info"
38
+ features={[
39
+ {
40
+ title: "Corner Return",
41
+ description: "Curved back/undo signal",
42
+ },
43
+ { title: "currentColor", description: "Responds to text tokens" },
44
+ { title: "Accessible", description: "ARIA-ready by default" },
45
+ ]}
46
+ quickStart={{
47
+ codeExample: `import { ArrowCornerUpLeftIcon } from "src/ui/icons/arrow-corner-up-left-icon"
48
+
49
+ function UndoButton() {
153
50
  return (
154
- <button className="flex items-center gap-2">
155
- <ArrowCornerUpLeftIcon className="h-5 w-5 text-blue-500" />
156
- <span>Back to previous</span>
157
- </button>
158
- )
159
- }`}
160
- </pre>
161
- </div>
162
- </div>
163
-
164
- <div className="!space-y-4">
165
- <h3 className="text-fm-icon-info! text-xl font-semibold">
166
- Live Preview
167
- </h3>
168
- <div className="border-fm-divider-secondary bg-fm-surface-secondary flex h-32 items-center justify-center rounded-lg border">
169
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 hover:bg-fm-icon-info/20 flex items-center gap-3 rounded-lg border px-4 py-2 transition-colors">
170
- <ArrowCornerUpLeftIcon className="text-fm-icon-info h-5 w-5" />
171
- <span className="text-fm-icon-active">
172
- Back to previous
173
- </span>
174
- </button>
175
- </div>
176
- </div>
177
- </div>
178
- </div>
179
-
180
- {/* Props Documentation */}
181
- <div className="!space-y-8">
182
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
183
- Props & Configuration
184
- </h2>
185
-
186
- <div className="border-fm-divider-secondary bg-fm-surface-secondary overflow-hidden rounded-lg border">
187
- <div className="bg-fm-surface-secondary p-4">
188
- <h3 className="text-fm-icon-active! text-xl font-semibold">
189
- Props
190
- </h3>
191
- </div>
192
- <table className="!my-0 w-full">
193
- <thead className="bg-fm-surface-secondary">
194
- <tr className="border-fm-divider-secondary border-b">
195
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
196
- Prop
197
- </th>
198
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
199
- Type
200
- </th>
201
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
202
- Default
203
- </th>
204
- <th className="text-fm-icon-active! px-6 py-4 text-left text-sm font-semibold">
205
- Description
206
- </th>
207
- </tr>
208
- </thead>
209
- <tbody>
210
- {" "}
211
- <tr className="bg-fm-surface-secondary!">
212
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
213
- withAccessibility
214
- </td>
215
- <td className="text-fm-secondary! px-6 py-4 text-sm">
216
- boolean
217
- </td>
218
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
219
- true
220
- </td>
221
- <td className="text-fm-secondary! px-6 py-4 text-sm">
222
- Whether to wrap the icon with accessibility feature
223
- </td>
224
- </tr>
225
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
226
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
227
- height
228
- </td>
229
- <td className="text-fm-secondary! px-6 py-4 text-sm">
230
- number | string
231
- </td>
232
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
233
- 18
234
- </td>
235
- <td className="text-fm-secondary! px-6 py-4 text-sm">
236
- Height of the icon in pixels
237
- </td>
238
- </tr>
239
- <tr className="border-fm-divider-tertiary border-b">
240
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
241
- stroke
242
- </td>
243
- <td className="text-fm-secondary! px-6 py-4 text-sm">
244
- string
245
- </td>
246
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
247
- currentColor
248
- </td>
249
- <td className="text-fm-secondary! px-6 py-4 text-sm">
250
- Stroke color of the icon
251
- </td>
252
- </tr>
253
- <tr className="border-fm-divider-tertiary bg-fm-surface-secondary! border-b">
254
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
255
- strokeWidth
256
- </td>
257
- <td className="text-fm-secondary! px-6 py-4 text-sm">
258
- number | string
259
- </td>
260
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
261
- 1.5
262
- </td>
263
- <td className="text-fm-secondary! px-6 py-4 text-sm">
264
- Width of the stroke
265
- </td>
266
- </tr>
267
- <tr className="border-fm-divider-tertiary border-b">
268
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
269
- className
270
- </td>
271
- <td className="text-fm-secondary! px-6 py-4 text-sm">
272
- string
273
- </td>
274
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
275
- -
276
- </td>
277
- <td className="text-fm-secondary! px-6 py-4 text-sm">
278
- CSS classes for styling
279
- </td>
280
- </tr>
281
- <tr className="bg-fm-surface-secondary!">
282
- <td className="text-fm-icon-info! px-6 py-4 font-mono text-sm">
283
- ...svgProps
284
- </td>
285
- <td className="text-fm-secondary! px-6 py-4 text-sm">
286
- SVGProps
287
- </td>
288
- <td className="text-fm-placeholder! px-6 py-4 text-sm">
289
- -
290
- </td>
291
- <td className="text-fm-secondary! px-6 py-4 text-sm">
292
- All standard SVG element props
293
- </td>
294
- </tr>
295
- </tbody>
296
- </table>
297
- </div>
298
- </div>
299
-
300
- {/* Size Variations */}
301
- <div className="!space-y-8">
302
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
303
- Size Variations
304
- </h2>
305
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
306
- <div className="!space-y-6">
307
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
308
- <div className="!space-y-4">
309
- <h3 className="text-fm-icon-info! text-lg font-semibold">
310
- Standard Sizes
311
- </h3>
312
- <div className="bg-fm-surface-secondary flex items-end gap-6 rounded-lg p-6">
313
- <div className="text-center">
314
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
315
- <span className="text-fm-tertiary text-xs">
316
- 12px
317
- </span>
318
- </div>
319
- <div className="text-center">
320
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
321
- <span className="text-fm-tertiary text-xs">
322
- 16px
323
- </span>
324
- </div>
325
- <div className="text-center">
326
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
327
- <span className="text-fm-tertiary text-xs">
328
- 20px
329
- </span>
330
- </div>
331
- <div className="text-center">
332
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
333
- <span className="text-fm-tertiary text-xs">
334
- 24px
335
- </span>
336
- </div>
337
- <div className="text-center">
338
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
339
- <span className="text-fm-tertiary text-xs">
340
- 32px
341
- </span>
342
- </div>
343
- <div className="text-center">
344
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
345
- <span className="text-fm-tertiary text-xs">
346
- 48px
347
- </span>
348
- </div>
349
- </div>
350
- </div>
351
-
352
- <div className="!space-y-4">
353
- <h3 className="text-fm-icon-info! text-lg font-semibold">
354
- Code Example
355
- </h3>
356
- <div className="bg-fm-surface-secondary rounded-lg p-4">
357
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
358
- {`// Small (16px)
359
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
360
-
361
- // Medium (24px)
362
- <ArrowCornerUpLeftIcon className="h-6 w-6" />
363
-
364
- // Large (32px)
365
- <ArrowCornerUpLeftIcon className="h-8 w-8" />
366
-
367
- // Custom size
368
- <ArrowCornerUpLeftIcon width={40} height={40} />`}
369
- </pre>
370
- </div>
371
- </div>
372
- </div>
373
- </div>
374
- </div>
375
- </div>
376
-
377
- {/* Color Variations */}
378
- <div className="!space-y-8">
379
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
380
- Color Variations
381
- </h2>
382
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
383
- <div className="!space-y-4">
384
- <h3 className="text-fm-icon-info! text-lg font-semibold">
385
- Semantic Colors
386
- </h3>
387
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
388
- <div className="flex items-center gap-4">
389
- <ArrowCornerUpLeftIcon className="text-fm-icon-info h-6 w-6" />
390
- <div>
391
- <div className="text-fm-icon-active text-sm font-medium">
392
- Primary
393
- </div>
394
- <div className="text-fm-tertiary text-xs">
395
- text-fm-icon-info
396
- </div>
397
- </div>
398
- </div>
399
- <div className="flex items-center gap-4">
400
- <ArrowCornerUpLeftIcon className="text-fm-icon-info h-6 w-6" />
401
- <div>
402
- <div className="text-fm-icon-active text-sm font-medium">
403
- Secondary
404
- </div>
405
- <div className="text-fm-tertiary text-xs">
406
- text-fm-icon-info
407
- </div>
408
- </div>
409
- </div>
410
- <div className="flex items-center gap-4">
411
- <ArrowCornerUpLeftIcon className="text-fm-placeholder h-6 w-6" />
412
- <div>
413
- <div className="text-fm-icon-active text-sm font-medium">
414
- Neutral
415
- </div>
416
- <div className="text-fm-tertiary text-xs">
417
- text-fm-placeholder
418
- </div>
419
- </div>
420
- </div>
421
- <div className="flex items-center gap-4">
422
- <ArrowCornerUpLeftIcon className="text-fm-secondary-600 h-6 w-6" />
423
- <div>
424
- <div className="text-fm-icon-active text-sm font-medium">
425
- Accent
426
- </div>
427
- <div className="text-fm-tertiary text-xs">
428
- text-fm-secondary-600
429
- </div>
430
- </div>
431
- </div>
432
- </div>
433
- </div>
434
-
435
- <div className="!space-y-4">
436
- <h3 className="text-fm-icon-info! text-lg font-semibold">
437
- Custom Colors
438
- </h3>
439
- <div className="bg-fm-surface-secondary rounded-lg p-4">
440
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
441
- {`// Using Tailwind classes
442
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-blue-400" />
443
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-indigo-500" />
444
-
445
- // Using CSS custom properties
446
- <ArrowCornerUpLeftIcon
447
- className="h-6 w-6"
448
- style={{ color: 'var(--color-primary)' }}
449
- />
450
-
451
- // Direct stroke prop
452
- <ArrowCornerUpLeftIcon
453
- width={24}
454
- height={24}
455
- stroke="#3b82f6"
456
- />`}
457
- </pre>
458
- </div>
459
- </div>
460
- </div>
461
- </div>
462
-
463
- {/* Usage Examples */}
464
- <div className="!space-y-8">
465
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
466
- Usage Examples
467
- </h2>
468
-
469
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
470
- {/* Navigation Button */}
471
- <div className="!space-y-4">
472
- <h3 className="text-fm-icon-info! text-lg font-semibold">
473
- Back Navigation
474
- </h3>
475
- <div className="!space-y-4">
476
- <div className="flex items-center gap-4">
477
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-info hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
478
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
479
- Back to Dashboard
480
- </button>
481
- <button className="border-fm-divider-secondary bg-fm-surface-tertiary/10 text-fm-secondary hover:bg-fm-surface-tertiary/20 flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
482
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
483
- Return
484
- </button>
485
- </div>
486
- <div className="bg-fm-surface-secondary rounded-lg p-4">
487
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
488
- {`<button className="flex items-center gap-2 bg-blue-500/10 border border-blue-500/20 px-4 py-2 rounded-lg">
489
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
490
- Back to Dashboard
491
- </button>
492
-
493
- <button className="flex items-center gap-2 bg-gray-500/10 border border-gray-500/20 px-3 py-2 rounded-lg">
494
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
495
- Return
496
- </button>`}
497
- </pre>
498
- </div>
499
- </div>
500
- </div>
501
-
502
- {/* Breadcrumb Navigation */}
503
- <div className="!space-y-4">
504
- <h3 className="text-fm-icon-info! text-lg font-semibold">
505
- Breadcrumb Navigation
506
- </h3>
507
- <div className="!space-y-4">
508
- <nav className="flex items-center space-x-2 text-sm">
509
- <button className="text-fm-icon-info hover:text-fm-icon-info flex items-center gap-1">
510
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
511
- <span>Home</span>
512
- </button>
513
- <span className="text-fm-tertiary">/</span>
514
- <button className="text-fm-icon-info hover:text-fm-icon-info flex items-center gap-1">
515
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
516
- <span>Products</span>
517
- </button>
518
- <span className="text-fm-tertiary">/</span>
519
- <span className="text-fm-icon-active">
520
- Current Page
521
- </span>
522
- </nav>
523
- <div className="bg-fm-surface-secondary rounded-lg p-4">
524
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
525
- {`<nav className="flex items-center space-x-2 text-sm">
526
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
527
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
528
- <span>Home</span>
529
- </button>
530
- <span className="text-gray-500">/</span>
531
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
532
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
533
- <span>Products</span>
534
- </button>
535
- <span className="text-gray-500">/</span>
536
- <span className="text-white">Current Page</span>
537
- </nav>`}
538
- </pre>
539
- </div>
540
- </div>
541
- </div>
542
-
543
- {/* Menu Navigation */}
544
- <div className="!space-y-4">
545
- <h3 className="text-fm-icon-info! text-lg font-semibold">
546
- Menu Navigation
547
- </h3>
548
- <div className="!space-y-4">
549
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
550
- <div className="space-y-2">
551
- <div className="flex items-center justify-between">
552
- <span className="text-fm-icon-active">
553
- Settings
554
- </span>
555
- <button className="text-fm-placeholder hover:text-fm-icon-active p-1">
556
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
557
- </button>
558
- </div>
559
- <div className="flex items-center justify-between">
560
- <span className="text-fm-icon-active">Profile</span>
561
- <button className="text-fm-placeholder hover:text-fm-icon-active p-1">
562
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
563
- </button>
564
- </div>
565
- <div className="flex items-center justify-between">
566
- <span className="text-fm-icon-active">Help</span>
567
- <button className="text-fm-placeholder hover:text-fm-icon-active p-1">
568
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
569
- </button>
570
- </div>
571
- </div>
572
- </div>
573
- <div className="bg-fm-surface-secondary rounded-lg p-4">
574
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
575
- {`<div className="space-y-2">
576
- <div className="flex items-center justify-between">
577
- <span className="text-white">Settings</span>
578
- <button className="p-1 text-gray-400 hover:text-white">
579
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
51
+ <button aria-label="Undo">
52
+ <ArrowCornerUpLeftIcon className="h-5 w-5 text-fm-icon-active" />
580
53
  </button>
581
- </div>
582
- {/* More menu items... */}
583
- </div>`}
584
- </pre>
585
- </div>
586
- </div>
587
- </div>
588
-
589
- {/* Floating Action */}
590
- <div className="!space-y-4">
591
- <h3 className="text-fm-icon-info! text-lg font-semibold">
592
- Floating Action Button
593
- </h3>
594
- <div className="!space-y-4">
595
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative h-32 rounded-lg border p-4">
596
- <button className="bg-fm-icon-info hover:bg-fm-icon-info absolute bottom-4 left-4 flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-all hover:shadow-xl">
597
- <ArrowCornerUpLeftIcon className="text-fm-icon-active h-5 w-5" />
598
- </button>
599
- <div className="text-fm-tertiary text-center text-sm">
600
- Hover over the floating button
601
- </div>
602
- </div>
603
- <div className="bg-fm-surface-secondary rounded-lg p-4">
604
- <pre className="text-fm-icon-positive! overflow-x-auto text-sm">
605
- {`<button className="fixed bottom-4 left-4 flex h-12 w-12 items-center justify-center rounded-full bg-blue-500 shadow-lg transition-all hover:bg-blue-600 hover:shadow-xl">
606
- <ArrowCornerUpLeftIcon className="h-5 w-5 text-white" />
607
- </button>`}
608
- </pre>
609
- </div>
610
- </div>
611
- </div>
612
- </div>
613
- </div>
614
-
615
- {/* Accessibility */}
616
- <div className="!space-y-8">
617
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
618
- Accessibility Features
619
- </h2>
620
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
621
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
622
- <h3 className="text-fm-icon-positive! text-lg font-semibold">
623
- ✅ Built-in Features
624
- </h3>
625
- <ul className="text-fm-secondary! !space-y-2 text-sm">
626
- <li className="text-fm-secondary!">
627
- Uses Radix UI AccessibleIcon wrapper
628
- </li>
629
- <li className="text-fm-secondary!">
630
- Provides screen reader label "Arrow Corner Up Left icon"
631
- </li>
632
- <li className="text-fm-secondary!">
633
- Supports keyboard navigation when interactive
634
- </li>
635
- <li className="text-fm-secondary!">
636
- Maintains proper color contrast ratios
637
- </li>
638
- <li className="text-fm-secondary!">
639
- Scales with user's font size preferences
640
- </li>
641
- </ul>
642
- </div>
643
-
644
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-4 rounded-lg border p-6">
645
- <h3 className="text-fm-icon-info! text-lg font-semibold">
646
- 💡 Best Practices
647
- </h3>
648
- <ul className="text-fm-secondary !space-y-2 text-sm">
649
- <li className="text-fm-secondary!">
650
- Always pair with descriptive text or aria-label
651
- </li>
652
- <li className="text-fm-secondary!">
653
- Use consistent positioning for navigation
654
- </li>
655
- <li className="text-fm-secondary!">
656
- Ensure sufficient color contrast
657
- </li>
658
- <li className="text-fm-secondary!">
659
- Add focus states for interactive elements
660
- </li>
661
- <li className="text-fm-secondary!">
662
- Consider motion sensitivity for hover effects
663
- </li>
664
- </ul>
665
- </div>
666
- </div>
667
-
668
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-6">
669
- <h3 className="text-fm-secondary-600! mb-4 text-lg font-semibold">
670
- Custom Accessibility Label
671
- </h3>
672
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
673
- <div className="bg-fm-surface-secondary rounded-lg p-4">
674
- <pre className="text-fm-icon-info! overflow-x-auto text-sm">
675
- {`// Custom implementation with specific label
676
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
677
-
678
- function CustomArrowIcon({ label = "Navigate back", ...props }) {
679
- return (
680
- <AccessibleIcon label={label}>
681
- <ArrowCornerUpLeftIcon {...props} />
682
- </AccessibleIcon>
683
54
  )
684
- }
685
-
686
- // Usage with specific context
687
- <CustomArrowIcon
688
- label="Return to previous page"
689
- className="h-4 w-4 text-blue-400"
690
- />`}
691
- </pre>
692
- </div>
693
- <div className="!space-y-4">
694
- <p className="text-fm-secondary! text-sm">
695
- For specific contexts, you can wrap the
696
- ArrowCornerUpLeftIcon with a custom AccessibleIcon
697
- component that provides more descriptive labels.
698
- </p>
699
- <div className="border-fm-icon-info/20 bg-fm-icon-info/10 rounded-lg border p-4">
700
- <div className="text-fm-icon-info flex items-center gap-2 text-sm">
701
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
702
- <span>
703
- This approach gives screen readers more context
704
- </span>
705
- </div>
706
- </div>
707
- </div>
708
- </div>
709
- </div>
710
- </div>
711
-
712
- {/* Related Icons */}
713
- <div className="!space-y-8">
714
- <h2 className="text-fm-icon-active! text-center text-3xl font-bold">
715
- Related Icons
716
- </h2>
717
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
718
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
719
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
720
- <span className="text-2xl">↖️</span>
721
- </div>
722
- <div>
723
- <div className="text-fm-icon-active font-medium">
724
- ArrowUpLeftIcon
725
- </div>
726
- <div className="text-fm-tertiary text-xs">
727
- Diagonal navigation
728
- </div>
729
- </div>
730
- </div>
731
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
732
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
733
- <span className="text-2xl">⬅️</span>
734
- </div>
735
- <div>
736
- <div className="text-fm-icon-active font-medium">
737
- ArrowLeftIcon
738
- </div>
739
- <div className="text-fm-tertiary text-xs">
740
- Horizontal navigation
741
- </div>
742
- </div>
743
- </div>
744
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
745
- <div className="bg-fm-secondary-500/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
746
- <span className="text-2xl">⬆️</span>
747
- </div>
748
- <div>
749
- <div className="text-fm-icon-active font-medium">
750
- ArrowUpIcon
751
- </div>
752
- <div className="text-fm-tertiary text-xs">
753
- Vertical navigation
754
- </div>
755
- </div>
756
- </div>
757
- <div className="border-fm-divider-secondary bg-fm-surface-secondary !space-y-3 rounded-lg border p-4 text-center">
758
- <div className="bg-fm-icon-info/20 !mx-auto flex h-12 w-12 items-center justify-center rounded-lg">
759
- <span className="text-2xl">🔄</span>
760
- </div>
761
- <div>
762
- <div className="text-fm-icon-active font-medium">
763
- RefreshIcon
764
- </div>
765
- <div className="text-fm-tertiary text-xs">
766
- Reload & refresh
767
- </div>
768
- </div>
769
- </div>
770
- </div>
771
- </div>
772
- </div>
773
-
774
- {/* Footer */}
775
- <div className="border-fm-divider-secondary bg-fm-surface-secondary border-t backdrop-blur-xl">
776
- <div className="!mx-auto max-w-7xl px-6 py-8">
777
- <div className="!space-y-4 text-center">
778
- <p className="text-fm-tertiary!">
779
- ArrowCornerUpLeftIcon is part of the Aural UI icon library,
780
- built with accessibility and consistency in mind.
781
- </p>
782
- <p className="text-fm-placeholder! text-sm">
783
- All icons use Radix UI's AccessibleIcon for screen reader
784
- compatibility and follow WCAG guidelines.
785
- </p>
786
- </div>
787
- </div>
788
- </div>
789
- </div>
790
- </>
55
+ }`,
56
+ livePreview: (
57
+ <button
58
+ className="border-fm-divider-secondary rounded-lg border p-2"
59
+ aria-label="Undo"
60
+ >
61
+ <ArrowCornerUpLeftIcon className="text-fm-icon-active h-5 w-5" />
62
+ </button>
63
+ ),
64
+ }}
65
+ relatedIcons={[
66
+ {
67
+ name: "ArrowCornerUpRightIcon",
68
+ description: "Corner up-right arrow",
69
+ icon: ArrowCornerUpRightIcon,
70
+ accentToken: "info",
71
+ },
72
+ {
73
+ name: "ArrowLeftIcon",
74
+ description: "Simple left arrow",
75
+ icon: ArrowLeftIcon,
76
+ accentToken: "positive",
77
+ },
78
+ {
79
+ name: "ArrowRightUpIcon",
80
+ description: "Right-up arrow",
81
+ icon: ArrowRightUpIcon,
82
+ accentToken: "warning",
83
+ },
84
+ {
85
+ name: "ChevronLeftIcon",
86
+ description: "Left chevron",
87
+ icon: ChevronLeftIcon,
88
+ accentToken: "negative",
89
+ },
90
+ ]}
91
+ />
791
92
  ),
792
93
  },
793
94
  },
794
95
  tags: ["autodocs"],
795
96
  argTypes: {
796
- width: {
797
- control: { type: "range", min: 8, max: 96, step: 2 },
798
- description: "Width of the icon in pixels",
97
+ className: {
98
+ control: "text",
99
+ description: "CSS classes including size and color token",
799
100
  },
800
101
  withAccessibility: {
801
102
  control: "boolean",
802
- description: "Whether to wrap the icon with accessibility features",
803
- },
804
- height: {
805
- control: { type: "range", min: 8, max: 96, step: 2 },
806
- description: "Height of the icon in pixels",
807
- },
808
- stroke: {
809
- control: "color",
810
- description: "Stroke color of the icon",
811
- },
812
- strokeWidth: {
813
- control: { type: "range", min: 0.5, max: 4, step: 0.1 },
814
- description: "Width of the stroke",
815
- },
816
- className: {
817
- control: "text",
818
- description: "CSS classes for styling",
103
+ description: "Wrap with accessibility label",
819
104
  },
820
105
  },
821
106
  }
@@ -823,235 +108,98 @@ function CustomArrowIcon({ label = "Navigate back", ...props }) {
823
108
  export default meta
824
109
  type Story = StoryObj<typeof ArrowCornerUpLeftIcon>
825
110
 
826
- // Story parameters for consistent dark theme
827
- const storyParameters = {
828
- backgrounds: {
829
- default: "dark",
830
- values: [
831
- { name: "dark", value: "var(--color-fm-surface-primary)" },
832
- { name: "darker", value: "var(--color-fm-neutral-0)" },
833
- ],
834
- },
835
- }
836
-
837
111
  export const Default: Story = {
838
112
  args: {
839
- width: 24,
840
- height: 24,
841
- className: "text-fm-icon-info",
113
+ className: "h-6 w-6 text-fm-icon-active",
842
114
  withAccessibility: true,
843
115
  },
844
- parameters: storyParameters,
845
116
  render: (args) => (
846
- <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">
117
+ <IconDefaultCanvas>
847
118
  <ArrowCornerUpLeftIcon {...args} />
848
- </div>
119
+ </IconDefaultCanvas>
849
120
  ),
850
121
  }
851
122
 
852
123
  export const SizeVariations: Story = {
853
- parameters: {
854
- ...storyParameters,
855
- docs: {
856
- description: {
857
- story:
858
- "ArrowCornerUpLeftIcon in different sizes, from small UI elements to large displays.",
859
- },
860
- },
861
- },
862
- render: () => (
863
- <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">
864
- <div className="text-center">
865
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-3 w-3" />
866
- <span className="text-fm-tertiary text-xs">12px</span>
867
- </div>
868
- <div className="text-center">
869
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-4 w-4" />
870
- <span className="text-fm-tertiary text-xs">16px</span>
871
- </div>
872
- <div className="text-center">
873
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-5 w-5" />
874
- <span className="text-fm-tertiary text-xs">20px</span>
875
- </div>
876
- <div className="text-center">
877
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-6 w-6" />
878
- <span className="text-fm-tertiary text-xs">24px</span>
879
- </div>
880
- <div className="text-center">
881
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-8 w-8" />
882
- <span className="text-fm-tertiary text-xs">32px</span>
883
- </div>
884
- <div className="text-center">
885
- <ArrowCornerUpLeftIcon className="text-fm-icon-info !mx-auto mb-2 h-12 w-12" />
886
- <span className="text-fm-tertiary text-xs">48px</span>
887
- </div>
888
- </div>
889
- ),
124
+ render: () => <IconSizeVariations icon={ArrowCornerUpLeftIcon} />,
890
125
  }
891
126
 
892
127
  export const ColorVariations: Story = {
893
- parameters: {
894
- ...storyParameters,
895
- docs: {
896
- description: {
897
- story:
898
- "ArrowCornerUpLeftIcon in different semantic colors for various navigation contexts.",
899
- },
900
- },
901
- },
128
+ render: () => <IconColorVariations icon={ArrowCornerUpLeftIcon} />,
129
+ }
130
+
131
+ export const DirectionalVariations: Story = {
902
132
  render: () => (
903
- <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">
904
- <div className="text-center">
905
- <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">
906
- <ArrowCornerUpLeftIcon className="text-fm-icon-info h-8 w-8" />
907
- </div>
908
- <div className="text-fm-icon-active text-sm font-medium">Primary</div>
909
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
910
- </div>
911
- <div className="text-center">
912
- <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">
913
- <ArrowCornerUpLeftIcon className="text-fm-icon-info h-8 w-8" />
914
- </div>
915
- <div className="text-fm-icon-active text-sm font-medium">Secondary</div>
916
- <div className="text-fm-icon-info text-xs">text-fm-icon-info</div>
917
- </div>
918
- <div className="text-center">
919
- <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">
920
- <ArrowCornerUpLeftIcon className="text-fm-placeholder h-8 w-8" />
921
- </div>
922
- <div className="text-fm-icon-active text-sm font-medium">Neutral</div>
923
- <div className="text-fm-placeholder text-xs">text-fm-placeholder</div>
924
- </div>
925
- <div className="text-center">
926
- <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">
927
- <ArrowCornerUpLeftIcon className="text-fm-secondary-600 h-8 w-8" />
928
- </div>
929
- <div className="text-fm-icon-active text-sm font-medium">Accent</div>
930
- <div className="text-fm-secondary-600 text-xs">
931
- text-fm-secondary-600
932
- </div>
933
- </div>
934
- </div>
133
+ <IconDirectionalVariations
134
+ icon={ArrowCornerUpLeftIcon}
135
+ directions={[
136
+ { label: "Up Left", className: "h-8 w-8 text-fm-icon-active" },
137
+ {
138
+ label: "Up Right",
139
+ className: "h-8 w-8 text-fm-icon-active -scale-x-100",
140
+ },
141
+ ]}
142
+ />
935
143
  ),
936
144
  }
937
145
 
938
- export const NavigationExamples: Story = {
939
- parameters: {
940
- ...storyParameters,
941
- docs: {
942
- description: {
943
- story:
944
- "Real-world navigation examples showing ArrowCornerUpLeftIcon in different UI contexts.",
945
- },
946
- },
947
- },
146
+ export const UsageExamples: Story = {
948
147
  render: () => (
949
- <div className="from-fm-surface-primary to-fm-surface-secondary min-h-dvh !space-y-8 rounded-lg bg-linear-to-br p-8">
950
- {/* Back Navigation */}
951
- <div className="!space-y-2">
952
- <h3 className="text-fm-icon-active text-sm font-medium">
953
- Back Navigation
954
- </h3>
955
- <div className="flex items-center gap-4">
956
- <button className="border-fm-icon-info/20 bg-fm-icon-info/10 text-fm-icon-info hover:bg-fm-icon-info/20 flex items-center gap-2 rounded-lg border px-4 py-2 transition-colors">
957
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
958
- Back to Dashboard
959
- </button>
960
- <button className="border-fm-divider-secondary bg-fm-surface-tertiary/10 text-fm-secondary hover:bg-fm-surface-tertiary/20 flex items-center gap-2 rounded-lg border px-3 py-2 transition-colors">
961
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
962
- Return
963
- </button>
148
+ <IconUsageCanvas>
149
+ <IconUsageSection title="Undo Action">
150
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
151
+ <div className="flex items-center gap-2">
152
+ <button
153
+ className="border-fm-divider-secondary flex items-center gap-1.5 rounded-lg border px-3 py-2"
154
+ aria-label="Undo"
155
+ >
156
+ <ArrowCornerUpLeftIcon className="text-fm-icon-active h-4 w-4" />
157
+ <span className="text-fm-primary font-fm-text text-sm">Undo</span>
158
+ </button>
159
+ </div>
964
160
  </div>
965
- </div>
966
-
967
- {/* Breadcrumb Navigation */}
968
- <div className="!space-y-2">
969
- <h3 className="text-fm-icon-active text-sm font-medium">
970
- Breadcrumb Navigation
971
- </h3>
972
- <nav className="flex items-center space-x-2 text-sm">
973
- <button className="text-fm-icon-info hover:text-fm-icon-info flex items-center gap-1">
974
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
975
- <span>Home</span>
976
- </button>
977
- <span className="text-fm-tertiary">/</span>
978
- <button className="text-fm-icon-info hover:text-fm-icon-info flex items-center gap-1">
979
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
980
- <span>Products</span>
981
- </button>
982
- <span className="text-fm-tertiary">/</span>
983
- <span className="text-fm-icon-active">Current Page</span>
984
- </nav>
985
- </div>
986
-
987
- {/* Menu Navigation */}
988
- <div className="!space-y-2">
989
- <h3 className="text-fm-icon-active text-sm font-medium">
990
- Menu Navigation
991
- </h3>
992
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-4">
993
- <div className="space-y-2">
994
- <div className="flex items-center justify-between">
995
- <span className="text-fm-icon-active">Settings</span>
996
- <button className="text-fm-placeholder hover:text-fm-icon-active p-1">
997
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
998
- </button>
999
- </div>
1000
- <div className="flex items-center justify-between">
1001
- <span className="text-fm-icon-active">Profile</span>
1002
- <button className="text-fm-placeholder hover:text-fm-icon-active p-1">
1003
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
161
+ </IconUsageSection>
162
+
163
+ <IconUsageSection title="Reply to Message">
164
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm space-y-2 rounded-xl border p-4">
165
+ {["Great episode!", "Love this series"].map((msg) => (
166
+ <div
167
+ key={msg}
168
+ className="border-fm-divider-secondary flex items-center justify-between rounded-lg border px-3 py-2"
169
+ >
170
+ <span className="text-fm-primary font-fm-text text-sm">
171
+ {msg}
172
+ </span>
173
+ <button aria-label="Reply">
174
+ <ArrowCornerUpLeftIcon className="text-fm-icon-inactive h-4 w-4" />
1004
175
  </button>
1005
176
  </div>
1006
- <div className="flex items-center justify-between">
1007
- <span className="text-fm-icon-active">Help</span>
1008
- <button className="text-fm-placeholder hover:text-fm-icon-active p-1">
1009
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
1010
- </button>
1011
- </div>
1012
- </div>
177
+ ))}
1013
178
  </div>
1014
- </div>
1015
-
1016
- {/* Floating Action Button */}
1017
- <div className="!space-y-2">
1018
- <h3 className="text-fm-icon-active text-sm font-medium">
1019
- Floating Action Button
1020
- </h3>
1021
- <div className="border-fm-divider-secondary bg-fm-surface-secondary relative h-32 rounded-lg border p-4">
1022
- <button className="bg-fm-icon-info hover:bg-fm-icon-info absolute bottom-4 left-4 flex h-12 w-12 items-center justify-center rounded-full shadow-lg transition-all hover:shadow-xl">
1023
- <ArrowCornerUpLeftIcon className="text-fm-icon-active h-5 w-5" />
179
+ </IconUsageSection>
180
+
181
+ <IconUsageSection title="Return to Parent">
182
+ <div className="border-fm-divider-secondary bg-fm-surface-secondary w-full max-w-sm rounded-xl border p-4">
183
+ <button className="flex items-center gap-2">
184
+ <ArrowCornerUpLeftIcon className="text-fm-icon-info h-4 w-4" />
185
+ <span className="text-fm-icon-info font-fm-text text-sm">
186
+ Return to playlist
187
+ </span>
1024
188
  </button>
1025
- <div className="text-fm-tertiary text-center text-sm">
1026
- Hover over the floating button
1027
- </div>
1028
189
  </div>
1029
- </div>
1030
- </div>
190
+ </IconUsageSection>
191
+ </IconUsageCanvas>
1031
192
  ),
1032
193
  }
1033
194
 
1034
195
  export const Playground: Story = {
1035
- parameters: {
1036
- ...storyParameters,
1037
- docs: {
1038
- description: {
1039
- story:
1040
- "Interactive playground to experiment with different ArrowCornerUpLeftIcon configurations.",
1041
- },
1042
- },
1043
- },
1044
196
  args: {
1045
- width: 32,
1046
- height: 32,
1047
- className: "text-fm-icon-info",
1048
- strokeWidth: 1.5,
197
+ className: "h-8 w-8 text-fm-icon-active",
198
+ withAccessibility: true,
1049
199
  },
1050
200
  render: (args) => (
1051
- <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">
1052
- <div className="border-fm-divider-secondary bg-fm-surface-secondary rounded-lg border p-8">
1053
- <ArrowCornerUpLeftIcon {...args} />
1054
- </div>
1055
- </div>
201
+ <IconPlaygroundCanvas>
202
+ <ArrowCornerUpLeftIcon {...args} />
203
+ </IconPlaygroundCanvas>
1056
204
  ),
1057
205
  }