aural-ui 3.0.7 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (183) hide show
  1. package/dist/components/aspect-ratio/AspectRatio.stories.tsx +290 -1199
  2. package/dist/components/avatar/Avatar.stories.tsx +235 -237
  3. package/dist/components/badge/Badge.stories.tsx +379 -116
  4. package/dist/components/banner/Banner.stories.tsx +445 -391
  5. package/dist/components/breadcrumb/Breadcrumb.stories.tsx +453 -199
  6. package/dist/components/button/Button.stories.tsx +585 -230
  7. package/dist/components/button/index.tsx +7 -7
  8. package/dist/components/card/Card.stories.tsx +619 -301
  9. package/dist/components/char-count/CharCount.stories.tsx +350 -248
  10. package/dist/components/checkbox/Checkbox.stories.tsx +309 -167
  11. package/dist/components/chip/Chip.stories.tsx +362 -168
  12. package/dist/components/circular-loader/CircularLoader.stories.tsx +221 -620
  13. package/dist/components/clamp-lines/ClampLines.stories.tsx +246 -117
  14. package/dist/components/collapsible/Collapsible.stories.tsx +391 -252
  15. package/dist/components/command/Command.stories.tsx +533 -856
  16. package/dist/components/dialog/Dialog.stories.tsx +505 -949
  17. package/dist/components/divider/Divider.stories.tsx +265 -502
  18. package/dist/components/dot-loader/DotLoader.stories.tsx +256 -257
  19. package/dist/components/drawer/Drawer.stories.tsx +659 -993
  20. package/dist/components/drawer/index.tsx +3 -3
  21. package/dist/components/dropdown/Dropdown.stories.tsx +643 -1018
  22. package/dist/components/form/Form.stories.tsx +560 -274
  23. package/dist/components/helper-text/HelperText.stories.tsx +199 -200
  24. package/dist/components/hover-card/HoverCard.stories.tsx +318 -1221
  25. package/dist/components/icon-button/IconButton.stories.tsx +837 -194
  26. package/dist/components/if-else/if-else.stories.tsx +370 -83
  27. package/dist/components/input/Input.stories.tsx +436 -368
  28. package/dist/components/label/Label.stories.tsx +156 -154
  29. package/dist/components/list/List.stories.tsx +485 -822
  30. package/dist/components/marquee/Marquee.stories.tsx +356 -694
  31. package/dist/components/otp-inputs/OtpInputs.stories.tsx +352 -410
  32. package/dist/components/overlay/Overlay.stories.tsx +452 -818
  33. package/dist/components/overlay/index.tsx +4 -4
  34. package/dist/components/pagination/Pagination.stories.tsx +721 -210
  35. package/dist/components/popover/Popover.stories.tsx +484 -873
  36. package/dist/components/radio/Radio.stories.tsx +432 -124
  37. package/dist/components/resizable/Resizable.stories.tsx +496 -752
  38. package/dist/components/scroll-area/ScrollArea.stories.tsx +384 -1006
  39. package/dist/components/search/Search.stories.tsx +314 -575
  40. package/dist/components/select/Select.stories.tsx +684 -787
  41. package/dist/components/sheet/Sheet.stories.tsx +671 -936
  42. package/dist/components/skelton/Skelton.stories.tsx +230 -764
  43. package/dist/components/slider/Slider.stories.tsx +384 -737
  44. package/dist/components/stepper/Stepper.stories.tsx +371 -514
  45. package/dist/components/switch/Switch.stories.tsx +461 -208
  46. package/dist/components/switch-case/SwitchCase.stories.tsx +367 -188
  47. package/dist/components/table/Table.stories.tsx +770 -914
  48. package/dist/components/tabs/Tabs.stories.tsx +459 -1400
  49. package/dist/components/tag/Tag.stories.tsx +714 -542
  50. package/dist/components/textarea/TextArea.stories.tsx +621 -562
  51. package/dist/components/thumbnail-tags/ThumbnailTags.stories.tsx +228 -148
  52. package/dist/components/toast/Toast.stories.tsx +452 -1333
  53. package/dist/components/toggle/Toggle.stories.tsx +488 -909
  54. package/dist/components/tooltip/Tooltip.stories.tsx +344 -1372
  55. package/dist/components/typography/Typography.stories.tsx +406 -89
  56. package/dist/hooks/use-change-state/UseChangeState.stories.tsx +309 -606
  57. package/dist/hooks/use-previous/UsePrevious.stories.tsx +367 -917
  58. package/dist/hooks/use-standalone-pagination/UseStandalonePagination.stories.tsx +639 -867
  59. package/dist/icons/Icons.stories.tsx +0 -12
  60. package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +226 -1013
  61. package/dist/icons/alert-icon/AlertIcon.stories.tsx +109 -929
  62. package/dist/icons/all-icons.tsx +124 -87
  63. package/dist/icons/angle-down-icon/AngleDownIcon.stories.tsx +140 -971
  64. package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +148 -888
  65. package/dist/icons/arrow-box-left-icon/ArrowBoxLeftIcon.stories.tsx +135 -1019
  66. package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +137 -953
  67. package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +138 -997
  68. package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +136 -942
  69. package/dist/icons/arrow-right-icon/ArrowRightIcon.stories.tsx +148 -1092
  70. package/dist/icons/arrow-right-up-icon/ArrowRightUpIcon.stories.tsx +146 -1211
  71. package/dist/icons/art-board-icon/ArtBoardIcon.stories.tsx +126 -615
  72. package/dist/icons/audio-bar-icon/AudioBarIcon.stories.tsx +144 -1164
  73. package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +167 -985
  74. package/dist/icons/bubble-check-icon/BubbleCheckIcon.stories.tsx +122 -1179
  75. package/dist/icons/bubble-crossed-icon/BubbleCrossedIcon.stories.tsx +124 -1168
  76. package/dist/icons/bubble-sparkle-icon/BubbleSparkleIcon.stories.tsx +119 -850
  77. package/dist/icons/camera-icon/CameraIcon.stories.tsx +112 -1213
  78. package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +117 -934
  79. package/dist/icons/chevron-double-left-icon/ChevronDoubleLeftIcon.stories.tsx +160 -961
  80. package/dist/icons/chevron-double-right-icon/ChevronDoubleRightIcon.stories.tsx +163 -961
  81. package/dist/icons/chevron-down-icon/ChevronDownIcon.stories.tsx +144 -942
  82. package/dist/icons/chevron-left-icon/ChevronLeftIcon.stories.tsx +129 -966
  83. package/dist/icons/chevron-right-icon/ChevronRightIcon.stories.tsx +147 -964
  84. package/dist/icons/chevron-up-icon/ChevronUpIcon.stories.tsx +145 -975
  85. package/dist/icons/circle-tick-icon/CircleTickIcon.stories.tsx +150 -1142
  86. package/dist/icons/circular-play-icon/CircularPlayIcon.stories.tsx +114 -461
  87. package/dist/icons/coin-icon/CoinIcon.stories.tsx +124 -1322
  88. package/dist/icons/coin-toons-icon/CoinToonsIcon.stories.tsx +117 -1318
  89. package/dist/icons/column-wide-add-icon/ColumnWideAddIcon.stories.tsx +114 -903
  90. package/dist/icons/command-icon/CommandIcon.stories.tsx +127 -1042
  91. package/dist/icons/copy-icon/CopyIcon.stories.tsx +123 -962
  92. package/dist/icons/cross-circle-icon/CrossCircleIcon.stories.tsx +147 -999
  93. package/dist/icons/cross-icon/CrossIcon.stories.tsx +139 -960
  94. package/dist/icons/download-icon/DownloadIcon.stories.tsx +126 -820
  95. package/dist/icons/edit-big-icon/EditBigIcon.stories.tsx +124 -1031
  96. package/dist/icons/email-icon/EmailIcon.stories.tsx +115 -936
  97. package/dist/icons/expand-icon/ExpandIcon.stories.tsx +112 -1111
  98. package/dist/icons/eye-close-icon/EyeCloseIcon.stories.tsx +144 -1025
  99. package/dist/icons/eye-open-icon/EyeOpenIcon.stories.tsx +143 -1036
  100. package/dist/icons/feature-shine-icon/FeatureShineIcon.stories.tsx +127 -1011
  101. package/dist/icons/file-chart-icon/FileChartIcon.stories.tsx +126 -1056
  102. package/dist/icons/file-text-icon/FileTextIcon.stories.tsx +125 -614
  103. package/dist/icons/filter-bar-row-icon/FilterBarRowIcon.stories.tsx +119 -1050
  104. package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +169 -989
  105. package/dist/icons/git-branch-icon/GitBranchIcon.stories.tsx +115 -1145
  106. package/dist/icons/git-fork-icon/GitForkIcon.stories.tsx +115 -1122
  107. package/dist/icons/globe-icon/GlobeIcon.stories.tsx +130 -313
  108. package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +145 -940
  109. package/dist/icons/grip-vertical-icon/GripVerticalIcon.stories.tsx +119 -1174
  110. package/dist/icons/head-icon/HeadIcon.stories.tsx +111 -916
  111. package/dist/icons/heart-icon/HeartIcon.stories.tsx +120 -1019
  112. package/dist/icons/image-avatar-sparkle-icon/ImageAvatarSparkleIcon.stories.tsx +119 -683
  113. package/dist/icons/image-icon/ImageIcon.stories.tsx +105 -1121
  114. package/dist/icons/import-folder-icon/ImportFolderIcon.stories.tsx +111 -1192
  115. package/dist/icons/import-left-arrow-folder-icon/ImportLeftArrowFolderIcon.stories.tsx +136 -1256
  116. package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +159 -962
  117. package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +161 -1385
  118. package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +124 -972
  119. package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +119 -948
  120. package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +119 -942
  121. package/dist/icons/light-bulb-simple-icon/LightBulbSimpleIcon.stories.tsx +108 -1215
  122. package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +154 -1517
  123. package/dist/icons/magic-book-icon/MagicBookIcon.stories.tsx +110 -1188
  124. package/dist/icons/magic-edit-icon/MagicEditIcon.stories.tsx +119 -678
  125. package/dist/icons/maintenance-icon/MaintenanceIcon.stories.tsx +123 -1184
  126. package/dist/icons/message-icon/MessageIcon.stories.tsx +114 -538
  127. package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +116 -1158
  128. package/dist/icons/moon-icon/MoonIcon.stories.tsx +120 -536
  129. package/dist/icons/move-horizontal-icon/MoveHorizontalIcon.stories.tsx +109 -1184
  130. package/dist/icons/move-vertical-icon/MoveVerticalIcon.stories.tsx +115 -1134
  131. package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +119 -971
  132. package/dist/icons/notepad-icon/NotepadIcon.stories.tsx +111 -1100
  133. package/dist/icons/notes-icon/NotesIcon.stories.tsx +119 -1101
  134. package/dist/icons/page-search-icon/PageSearchIcon.stories.tsx +109 -1111
  135. package/dist/icons/page-text-icon/PageTextIcon.stories.tsx +122 -684
  136. package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +113 -954
  137. package/dist/icons/paper-plane-icon/PaperPlaneIcon.stories.tsx +112 -877
  138. package/dist/icons/pause-icon/PauseIcon.stories.tsx +113 -1000
  139. package/dist/icons/pencil-icon/PencilIcon.stories.tsx +115 -1070
  140. package/dist/icons/phone-icon/PhoneIcon.stories.tsx +115 -978
  141. package/dist/icons/plus-icon/PlusIcon.stories.tsx +106 -1093
  142. package/dist/icons/pocket-studio-icon/PocketStudioIcon.stories.tsx +107 -829
  143. package/dist/icons/scroll-down-icon/ScrollDownIcon.stories.tsx +102 -469
  144. package/dist/icons/search-icon/SearchIcon.stories.tsx +111 -1124
  145. package/dist/icons/setting-icon/SettingIcon.stories.tsx +107 -970
  146. package/dist/icons/share-icon/ShareIcon.stories.tsx +120 -1025
  147. package/dist/icons/shield-icon/ShieldIcon.stories.tsx +117 -931
  148. package/dist/icons/site-logo-icon/SiteLogoIcon.stories.tsx +137 -1104
  149. package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +172 -982
  150. package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +164 -983
  151. package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +105 -958
  152. package/dist/icons/spinner-gradient-icon/SpinnerGradientIcon.stories.tsx +158 -580
  153. package/dist/icons/spinner-gradient-icon/index.tsx +6 -1
  154. package/dist/icons/spinner-solid-icon/SpinnerSolidIcon.stories.tsx +158 -587
  155. package/dist/icons/spinner-solid-icon/index.tsx +6 -1
  156. package/dist/icons/spinner-solid-neutral-icon/SpinnerSolidINeutralcon.stories.tsx +146 -682
  157. package/dist/icons/spinner-solid-neutral-icon/index.tsx +1 -1
  158. package/dist/icons/star-icon/StarIcon.stories.tsx +124 -904
  159. package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +112 -964
  160. package/dist/icons/suggestion-icon/SuggestionIcon.stories.tsx +116 -852
  161. package/dist/icons/sun-icon/SunIcon.stories.tsx +120 -831
  162. package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +116 -950
  163. package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +123 -980
  164. package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +156 -1427
  165. package/dist/icons/tick-circle-icon/TickCircleIcon.stories.tsx +146 -1142
  166. package/dist/icons/tick-icon/TickIcon.stories.tsx +145 -1276
  167. package/dist/icons/trash-icon/TrashIcon.stories.tsx +108 -933
  168. package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +157 -1402
  169. package/dist/icons/upload-icon/UploadIcon.stories.tsx +115 -889
  170. package/dist/icons/vertical-menu-icon/VerticalMenuIcon.stories.tsx +118 -984
  171. package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +125 -1049
  172. package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +123 -1356
  173. package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +110 -1171
  174. package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +112 -1093
  175. package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +115 -1087
  176. package/dist/icons/warning-icon/WarningIcon.stories.tsx +122 -1046
  177. package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +161 -936
  178. package/dist/index.cjs +84 -84
  179. package/dist/index.js +84 -84
  180. package/dist/styles/aural-all-theme.css +1222 -0
  181. package/dist/styles/{aural-theme.css → aural-dark-theme.css} +15 -3
  182. package/dist/styles/aural-light-theme.css +1047 -0
  183. package/package.json +1 -1
@@ -1,6 +1,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> = {
@@ -11,781 +26,81 @@ const meta: Meta<typeof ArrowCornerUpLeftIcon> = {
11
26
  backgrounds: {
12
27
  default: "dark",
13
28
  values: [
14
- { name: "dark", value: "#0a0a0a" },
15
- { name: "darker", value: "#000000" },
16
- { name: "light", value: "#ffffff" },
29
+ { name: "dark", value: "var(--color-fm-surface-primary)" },
30
+ { name: "darker", value: "var(--color-fm-neutral-0)" },
31
+ { name: "light", value: "var(--color-fm-neutral-1100)" },
17
32
  ],
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: #0a0a0a ;
44
- }
45
- #storybook-docs {
46
- background: #0a0a0a ;
47
- }
48
- .sbdocs-preview {
49
- background: transparent ;
50
- border: none ;
51
- }
52
- .sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
53
- color: white ;
54
- }
55
- .sbdocs-p, .sbdocs-li {
56
- color: rgba(255, 255, 255, 0.7) ;
57
- }
58
- .sbdocs-code {
59
- background: rgba(255, 255, 255, 0.1) ;
60
- color: rgba(168, 85, 247, 1) ;
61
- border: 1px solid rgba(255, 255, 255, 0.1) ;
62
- }
63
- .sbdocs-pre {
64
- background: rgba(0, 0, 0, 0.4) ;
65
- border: 1px solid rgba(255, 255, 255, 0.1) ;
66
- }
67
- .sbdocs-table {
68
- background: rgba(255, 255, 255, 0.05) ;
69
- border: 1px solid rgba(255, 255, 255, 0.1) ;
70
- }
71
- .sbdocs-table th {
72
- background: rgba(255, 255, 255, 0.05) ;
73
- color: white ;
74
- border-bottom: 1px solid rgba(255, 255, 255, 0.1) ;
75
- }
76
- .sbdocs-table td {
77
- color: rgba(255, 255, 255, 0.7) ;
78
- border-bottom: 1px solid rgba(255, 255, 255, 0.05) ;
79
- }
80
- `}
81
- </style>
82
-
83
- <div className="min-h-screen bg-gradient-to-br from-gray-900 via-blue-900/20 to-gray-900">
84
- {/* Header */}
85
- <div className="relative overflow-hidden border-b border-white/10 bg-black/20 backdrop-blur-xl">
86
- <div className="absolute inset-0 bg-gradient-to-r from-blue-500/10 via-transparent to-indigo-500/10" />
87
- <div className="relative !mx-auto max-w-7xl px-6 py-16">
88
- <div className="!space-y-6 text-center">
89
- <div className="!mx-auto flex h-24 w-24 items-center justify-center rounded-2xl border border-blue-500/30 bg-gradient-to-br from-blue-500/20 to-indigo-500/20">
90
- <ArrowCornerUpLeftIcon className="h-12 w-12 text-blue-400" />
91
- </div>
92
- <h1 className="!text-fm-primary text-5xl font-bold">
93
- ArrowCornerUpLeftIcon
94
- </h1>
95
- <p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
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-3xl font-bold text-blue-300">
107
- Accessible
108
- </div>
109
- <div className="text-sm text-white/60">
110
- Screen reader friendly
111
- </div>
112
- </div>
113
- <div className="h-8 w-px bg-white/20" />
114
- <div className="text-center">
115
- <div className="text-3xl font-bold text-indigo-300">
116
- Scalable
117
- </div>
118
- <div className="text-sm text-white/60">
119
- Any size needed
120
- </div>
121
- </div>
122
- <div className="h-8 w-px bg-white/20" />
123
- <div className="text-center">
124
- <div className="text-3xl font-bold text-purple-300">
125
- Flexible
126
- </div>
127
- <div className="text-sm text-white/60">
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-center text-3xl font-bold !text-white">
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-xl font-semibold !text-blue-300">
146
- Basic Usage
147
- </h3>
148
- <div className="rounded-lg bg-black/40 p-4">
149
- <pre className="overflow-x-auto text-sm !text-green-300">
150
- {`import { 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>
51
+ <button aria-label="Undo">
52
+ <ArrowCornerUpLeftIcon className="h-5 w-5 text-fm-icon-active" />
157
53
  </button>
158
54
  )
159
- }`}
160
- </pre>
161
- </div>
162
- </div>
163
-
164
- <div className="!space-y-4">
165
- <h3 className="text-xl font-semibold !text-blue-300">
166
- Live Preview
167
- </h3>
168
- <div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
169
- <button className="flex items-center gap-3 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 transition-colors hover:bg-blue-500/20">
170
- <ArrowCornerUpLeftIcon className="h-5 w-5 text-blue-400" />
171
- <span className="text-white">Back to previous</span>
172
- </button>
173
- </div>
174
- </div>
175
- </div>
176
- </div>
177
-
178
- {/* Props Documentation */}
179
- <div className="!space-y-8">
180
- <h2 className="text-center text-3xl font-bold !text-white">
181
- Props & Configuration
182
- </h2>
183
-
184
- <div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
185
- <div className="bg-white/5 p-4">
186
- <h3 className="text-xl font-semibold !text-white">Props</h3>
187
- </div>
188
- <table className="!my-0 w-full">
189
- <thead className="bg-white/5">
190
- <tr className="border-b border-white/10">
191
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
192
- Prop
193
- </th>
194
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
195
- Type
196
- </th>
197
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
198
- Default
199
- </th>
200
- <th className="px-6 py-4 text-left text-sm font-semibold !text-white">
201
- Description
202
- </th>
203
- </tr>
204
- </thead>
205
- <tbody>
206
- {" "}
207
- <tr className="!bg-black/10">
208
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
209
- withAccessibility
210
- </td>
211
- <td className="px-6 py-4 text-sm !text-white/70">
212
- boolean
213
- </td>
214
- <td className="px-6 py-4 text-sm !text-white/50">
215
- true
216
- </td>
217
- <td className="px-6 py-4 text-sm !text-white/70">
218
- Whether to wrap the icon with accessibility feature
219
- </td>
220
- </tr>
221
- <tr className="border-b border-white/5 !bg-black/10">
222
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
223
- height
224
- </td>
225
- <td className="px-6 py-4 text-sm !text-white/70">
226
- number | string
227
- </td>
228
- <td className="px-6 py-4 text-sm !text-white/50">18</td>
229
- <td className="px-6 py-4 text-sm !text-white/70">
230
- Height of the icon in pixels
231
- </td>
232
- </tr>
233
- <tr className="border-b border-white/5">
234
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
235
- stroke
236
- </td>
237
- <td className="px-6 py-4 text-sm !text-white/70">
238
- string
239
- </td>
240
- <td className="px-6 py-4 text-sm !text-white/50">
241
- currentColor
242
- </td>
243
- <td className="px-6 py-4 text-sm !text-white/70">
244
- Stroke color of the icon
245
- </td>
246
- </tr>
247
- <tr className="border-b border-white/5 !bg-black/10">
248
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
249
- strokeWidth
250
- </td>
251
- <td className="px-6 py-4 text-sm !text-white/70">
252
- number | string
253
- </td>
254
- <td className="px-6 py-4 text-sm !text-white/50">
255
- 1.5
256
- </td>
257
- <td className="px-6 py-4 text-sm !text-white/70">
258
- Width of the stroke
259
- </td>
260
- </tr>
261
- <tr className="border-b border-white/5">
262
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
263
- className
264
- </td>
265
- <td className="px-6 py-4 text-sm !text-white/70">
266
- string
267
- </td>
268
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
269
- <td className="px-6 py-4 text-sm !text-white/70">
270
- CSS classes for styling
271
- </td>
272
- </tr>
273
- <tr className="!bg-black/10">
274
- <td className="px-6 py-4 font-mono text-sm !text-blue-300">
275
- ...svgProps
276
- </td>
277
- <td className="px-6 py-4 text-sm !text-white/70">
278
- SVGProps
279
- </td>
280
- <td className="px-6 py-4 text-sm !text-white/50">-</td>
281
- <td className="px-6 py-4 text-sm !text-white/70">
282
- All standard SVG element props
283
- </td>
284
- </tr>
285
- </tbody>
286
- </table>
287
- </div>
288
- </div>
289
-
290
- {/* Size Variations */}
291
- <div className="!space-y-8">
292
- <h2 className="text-center text-3xl font-bold !text-white">
293
- Size Variations
294
- </h2>
295
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
296
- <div className="!space-y-6">
297
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
298
- <div className="!space-y-4">
299
- <h3 className="text-lg font-semibold !text-blue-300">
300
- Standard Sizes
301
- </h3>
302
- <div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
303
- <div className="text-center">
304
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
305
- <span className="text-xs text-white/60">12px</span>
306
- </div>
307
- <div className="text-center">
308
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
309
- <span className="text-xs text-white/60">16px</span>
310
- </div>
311
- <div className="text-center">
312
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
313
- <span className="text-xs text-white/60">20px</span>
314
- </div>
315
- <div className="text-center">
316
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
317
- <span className="text-xs text-white/60">24px</span>
318
- </div>
319
- <div className="text-center">
320
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
321
- <span className="text-xs text-white/60">32px</span>
322
- </div>
323
- <div className="text-center">
324
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
325
- <span className="text-xs text-white/60">48px</span>
326
- </div>
327
- </div>
328
- </div>
329
-
330
- <div className="!space-y-4">
331
- <h3 className="text-lg font-semibold !text-blue-300">
332
- Code Example
333
- </h3>
334
- <div className="rounded-lg bg-black/40 p-4">
335
- <pre className="overflow-x-auto text-sm !text-blue-300">
336
- {`// Small (16px)
337
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
338
-
339
- // Medium (24px)
340
- <ArrowCornerUpLeftIcon className="h-6 w-6" />
341
-
342
- // Large (32px)
343
- <ArrowCornerUpLeftIcon className="h-8 w-8" />
344
-
345
- // Custom size
346
- <ArrowCornerUpLeftIcon width={40} height={40} />`}
347
- </pre>
348
- </div>
349
- </div>
350
- </div>
351
- </div>
352
- </div>
353
- </div>
354
-
355
- {/* Color Variations */}
356
- <div className="!space-y-8">
357
- <h2 className="text-center text-3xl font-bold !text-white">
358
- Color Variations
359
- </h2>
360
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
361
- <div className="!space-y-4">
362
- <h3 className="text-lg font-semibold !text-blue-300">
363
- Semantic Colors
364
- </h3>
365
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
366
- <div className="flex items-center gap-4">
367
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-blue-400" />
368
- <div>
369
- <div className="text-sm font-medium text-white">
370
- Primary
371
- </div>
372
- <div className="text-xs text-white/60">
373
- text-blue-400
374
- </div>
375
- </div>
376
- </div>
377
- <div className="flex items-center gap-4">
378
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-indigo-400" />
379
- <div>
380
- <div className="text-sm font-medium text-white">
381
- Secondary
382
- </div>
383
- <div className="text-xs text-white/60">
384
- text-indigo-400
385
- </div>
386
- </div>
387
- </div>
388
- <div className="flex items-center gap-4">
389
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-gray-400" />
390
- <div>
391
- <div className="text-sm font-medium text-white">
392
- Neutral
393
- </div>
394
- <div className="text-xs text-white/60">
395
- text-gray-400
396
- </div>
397
- </div>
398
- </div>
399
- <div className="flex items-center gap-4">
400
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-purple-400" />
401
- <div>
402
- <div className="text-sm font-medium text-white">
403
- Accent
404
- </div>
405
- <div className="text-xs text-white/60">
406
- text-purple-400
407
- </div>
408
- </div>
409
- </div>
410
- </div>
411
- </div>
412
-
413
- <div className="!space-y-4">
414
- <h3 className="text-lg font-semibold !text-blue-300">
415
- Custom Colors
416
- </h3>
417
- <div className="rounded-lg bg-black/40 p-4">
418
- <pre className="overflow-x-auto text-sm !text-green-300">
419
- {`// Using Tailwind classes
420
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-blue-400" />
421
- <ArrowCornerUpLeftIcon className="h-6 w-6 text-indigo-500" />
422
-
423
- // Using CSS custom properties
424
- <ArrowCornerUpLeftIcon
425
- className="h-6 w-6"
426
- style={{ color: 'var(--color-primary)' }}
427
- />
428
-
429
- // Direct stroke prop
430
- <ArrowCornerUpLeftIcon
431
- width={24}
432
- height={24}
433
- stroke="#3b82f6"
434
- />`}
435
- </pre>
436
- </div>
437
- </div>
438
- </div>
439
- </div>
440
-
441
- {/* Usage Examples */}
442
- <div className="!space-y-8">
443
- <h2 className="text-center text-3xl font-bold !text-white">
444
- Usage Examples
445
- </h2>
446
-
447
- <div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
448
- {/* Navigation Button */}
449
- <div className="!space-y-4">
450
- <h3 className="text-lg font-semibold !text-blue-300">
451
- Back Navigation
452
- </h3>
453
- <div className="!space-y-4">
454
- <div className="flex items-center gap-4">
455
- <button className="flex items-center gap-2 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/20">
456
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
457
- Back to Dashboard
458
- </button>
459
- <button className="flex items-center gap-2 rounded-lg border border-gray-500/20 bg-gray-500/10 px-3 py-2 text-gray-200 transition-colors hover:bg-gray-500/20">
460
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
461
- Return
462
- </button>
463
- </div>
464
- <div className="rounded-lg bg-black/40 p-4">
465
- <pre className="overflow-x-auto text-sm !text-green-300">
466
- {`<button className="flex items-center gap-2 bg-blue-500/10 border border-blue-500/20 px-4 py-2 rounded-lg">
467
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
468
- Back to Dashboard
469
- </button>
470
-
471
- <button className="flex items-center gap-2 bg-gray-500/10 border border-gray-500/20 px-3 py-2 rounded-lg">
472
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
473
- Return
474
- </button>`}
475
- </pre>
476
- </div>
477
- </div>
478
- </div>
479
-
480
- {/* Breadcrumb Navigation */}
481
- <div className="!space-y-4">
482
- <h3 className="text-lg font-semibold !text-blue-300">
483
- Breadcrumb Navigation
484
- </h3>
485
- <div className="!space-y-4">
486
- <nav className="flex items-center space-x-2 text-sm">
487
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
488
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
489
- <span>Home</span>
490
- </button>
491
- <span className="text-gray-500">/</span>
492
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
493
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
494
- <span>Products</span>
495
- </button>
496
- <span className="text-gray-500">/</span>
497
- <span className="text-white">Current Page</span>
498
- </nav>
499
- <div className="rounded-lg bg-black/40 p-4">
500
- <pre className="overflow-x-auto text-sm !text-green-300">
501
- {`<nav className="flex items-center space-x-2 text-sm">
502
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
503
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
504
- <span>Home</span>
505
- </button>
506
- <span className="text-gray-500">/</span>
507
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
508
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
509
- <span>Products</span>
510
- </button>
511
- <span className="text-gray-500">/</span>
512
- <span className="text-white">Current Page</span>
513
- </nav>`}
514
- </pre>
515
- </div>
516
- </div>
517
- </div>
518
-
519
- {/* Menu Navigation */}
520
- <div className="!space-y-4">
521
- <h3 className="text-lg font-semibold !text-blue-300">
522
- Menu Navigation
523
- </h3>
524
- <div className="!space-y-4">
525
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
526
- <div className="space-y-2">
527
- <div className="flex items-center justify-between">
528
- <span className="text-white">Settings</span>
529
- <button className="p-1 text-gray-400 hover:text-white">
530
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
531
- </button>
532
- </div>
533
- <div className="flex items-center justify-between">
534
- <span className="text-white">Profile</span>
535
- <button className="p-1 text-gray-400 hover:text-white">
536
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
537
- </button>
538
- </div>
539
- <div className="flex items-center justify-between">
540
- <span className="text-white">Help</span>
541
- <button className="p-1 text-gray-400 hover:text-white">
542
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
543
- </button>
544
- </div>
545
- </div>
546
- </div>
547
- <div className="rounded-lg bg-black/40 p-4">
548
- <pre className="overflow-x-auto text-sm !text-green-300">
549
- {`<div className="space-y-2">
550
- <div className="flex items-center justify-between">
551
- <span className="text-white">Settings</span>
552
- <button className="p-1 text-gray-400 hover:text-white">
553
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
554
- </button>
555
- </div>
556
- {/* More menu items... */}
557
- </div>`}
558
- </pre>
559
- </div>
560
- </div>
561
- </div>
562
-
563
- {/* Floating Action */}
564
- <div className="!space-y-4">
565
- <h3 className="text-lg font-semibold !text-blue-300">
566
- Floating Action Button
567
- </h3>
568
- <div className="!space-y-4">
569
- <div className="relative h-32 rounded-lg border border-white/10 bg-white/5 p-4">
570
- <button className="absolute 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">
571
- <ArrowCornerUpLeftIcon className="h-5 w-5 text-white" />
572
- </button>
573
- <div className="text-center text-sm text-white/60">
574
- Hover over the floating button
575
- </div>
576
- </div>
577
- <div className="rounded-lg bg-black/40 p-4">
578
- <pre className="overflow-x-auto text-sm !text-green-300">
579
- {`<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">
580
- <ArrowCornerUpLeftIcon className="h-5 w-5 text-white" />
581
- </button>`}
582
- </pre>
583
- </div>
584
- </div>
585
- </div>
586
- </div>
587
- </div>
588
-
589
- {/* Accessibility */}
590
- <div className="!space-y-8">
591
- <h2 className="text-center text-3xl font-bold !text-white">
592
- Accessibility Features
593
- </h2>
594
- <div className="grid grid-cols-1 gap-8 md:grid-cols-2">
595
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
596
- <h3 className="text-lg font-semibold !text-green-300">
597
- ✅ Built-in Features
598
- </h3>
599
- <ul className="!space-y-2 text-sm !text-white/70">
600
- <li className="!text-white/70">
601
- Uses Radix UI AccessibleIcon wrapper
602
- </li>
603
- <li className="!text-white/70">
604
- Provides screen reader label "Arrow Corner Up Left icon"
605
- </li>
606
- <li className="!text-white/70">
607
- Supports keyboard navigation when interactive
608
- </li>
609
- <li className="!text-white/70">
610
- Maintains proper color contrast ratios
611
- </li>
612
- <li className="!text-white/70">
613
- Scales with user's font size preferences
614
- </li>
615
- </ul>
616
- </div>
617
-
618
- <div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
619
- <h3 className="text-lg font-semibold !text-blue-300">
620
- 💡 Best Practices
621
- </h3>
622
- <ul className="!space-y-2 text-sm text-white/70">
623
- <li className="!text-white/70">
624
- Always pair with descriptive text or aria-label
625
- </li>
626
- <li className="!text-white/70">
627
- Use consistent positioning for navigation
628
- </li>
629
- <li className="!text-white/70">
630
- Ensure sufficient color contrast
631
- </li>
632
- <li className="!text-white/70">
633
- Add focus states for interactive elements
634
- </li>
635
- <li className="!text-white/70">
636
- Consider motion sensitivity for hover effects
637
- </li>
638
- </ul>
639
- </div>
640
- </div>
641
-
642
- <div className="rounded-lg border border-white/10 bg-white/5 p-6">
643
- <h3 className="mb-4 text-lg font-semibold !text-purple-300">
644
- Custom Accessibility Label
645
- </h3>
646
- <div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
647
- <div className="rounded-lg bg-black/40 p-4">
648
- <pre className="overflow-x-auto text-sm !text-blue-300">
649
- {`// Custom implementation with specific label
650
- import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
651
-
652
- function CustomArrowIcon({ label = "Navigate back", ...props }) {
653
- return (
654
- <AccessibleIcon label={label}>
655
- <ArrowCornerUpLeftIcon {...props} />
656
- </AccessibleIcon>
657
- )
658
- }
659
-
660
- // Usage with specific context
661
- <CustomArrowIcon
662
- label="Return to previous page"
663
- className="h-4 w-4 text-blue-400"
664
- />`}
665
- </pre>
666
- </div>
667
- <div className="!space-y-4">
668
- <p className="text-sm !text-white/70">
669
- For specific contexts, you can wrap the
670
- ArrowCornerUpLeftIcon with a custom AccessibleIcon
671
- component that provides more descriptive labels.
672
- </p>
673
- <div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
674
- <div className="flex items-center gap-2 text-sm text-blue-200">
675
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
676
- <span>
677
- This approach gives screen readers more context
678
- </span>
679
- </div>
680
- </div>
681
- </div>
682
- </div>
683
- </div>
684
- </div>
685
-
686
- {/* Related Icons */}
687
- <div className="!space-y-8">
688
- <h2 className="text-center text-3xl font-bold !text-white">
689
- Related Icons
690
- </h2>
691
- <div className="grid grid-cols-2 gap-6 md:grid-cols-4">
692
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
693
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
694
- <span className="text-2xl">↖️</span>
695
- </div>
696
- <div>
697
- <div className="font-medium text-white">
698
- ArrowUpLeftIcon
699
- </div>
700
- <div className="text-xs text-white/60">
701
- Diagonal navigation
702
- </div>
703
- </div>
704
- </div>
705
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
706
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
707
- <span className="text-2xl">⬅️</span>
708
- </div>
709
- <div>
710
- <div className="font-medium text-white">
711
- ArrowLeftIcon
712
- </div>
713
- <div className="text-xs text-white/60">
714
- Horizontal navigation
715
- </div>
716
- </div>
717
- </div>
718
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
719
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
720
- <span className="text-2xl">⬆️</span>
721
- </div>
722
- <div>
723
- <div className="font-medium text-white">ArrowUpIcon</div>
724
- <div className="text-xs text-white/60">
725
- Vertical navigation
726
- </div>
727
- </div>
728
- </div>
729
- <div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
730
- <div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-cyan-500/20">
731
- <span className="text-2xl">🔄</span>
732
- </div>
733
- <div>
734
- <div className="font-medium text-white">RefreshIcon</div>
735
- <div className="text-xs text-white/60">
736
- Reload & refresh
737
- </div>
738
- </div>
739
- </div>
740
- </div>
741
- </div>
742
- </div>
743
-
744
- {/* Footer */}
745
- <div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
746
- <div className="!mx-auto max-w-7xl px-6 py-8">
747
- <div className="!space-y-4 text-center">
748
- <p className="!text-white/60">
749
- ArrowCornerUpLeftIcon is part of the Aural UI icon library,
750
- built with accessibility and consistency in mind.
751
- </p>
752
- <p className="text-sm !text-white/40">
753
- All icons use Radix UI's AccessibleIcon for screen reader
754
- compatibility and follow WCAG guidelines.
755
- </p>
756
- </div>
757
- </div>
758
- </div>
759
- </div>
760
- </>
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
+ />
761
92
  ),
762
93
  },
763
94
  },
764
95
  tags: ["autodocs"],
765
96
  argTypes: {
766
- width: {
767
- control: { type: "range", min: 8, max: 96, step: 2 },
768
- description: "Width of the icon in pixels",
97
+ className: {
98
+ control: "text",
99
+ description: "CSS classes including size and color token",
769
100
  },
770
101
  withAccessibility: {
771
102
  control: "boolean",
772
- description: "Whether to wrap the icon with accessibility features",
773
- },
774
- height: {
775
- control: { type: "range", min: 8, max: 96, step: 2 },
776
- description: "Height of the icon in pixels",
777
- },
778
- stroke: {
779
- control: "color",
780
- description: "Stroke color of the icon",
781
- },
782
- strokeWidth: {
783
- control: { type: "range", min: 0.5, max: 4, step: 0.1 },
784
- description: "Width of the stroke",
785
- },
786
- className: {
787
- control: "text",
788
- description: "CSS classes for styling",
103
+ description: "Wrap with accessibility label",
789
104
  },
790
105
  },
791
106
  }
@@ -793,229 +108,98 @@ function CustomArrowIcon({ label = "Navigate back", ...props }) {
793
108
  export default meta
794
109
  type Story = StoryObj<typeof ArrowCornerUpLeftIcon>
795
110
 
796
- // Story parameters for consistent dark theme
797
- const storyParameters = {
798
- backgrounds: {
799
- default: "dark",
800
- values: [
801
- { name: "dark", value: "#0a0a0a" },
802
- { name: "darker", value: "#000000" },
803
- ],
804
- },
805
- }
806
-
807
111
  export const Default: Story = {
808
112
  args: {
809
- width: 24,
810
- height: 24,
811
- className: "text-blue-400",
113
+ className: "h-6 w-6 text-fm-icon-active",
812
114
  withAccessibility: true,
813
115
  },
814
- parameters: storyParameters,
815
116
  render: (args) => (
816
- <div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
117
+ <IconDefaultCanvas>
817
118
  <ArrowCornerUpLeftIcon {...args} />
818
- </div>
119
+ </IconDefaultCanvas>
819
120
  ),
820
121
  }
821
122
 
822
123
  export const SizeVariations: Story = {
823
- parameters: {
824
- ...storyParameters,
825
- docs: {
826
- description: {
827
- story:
828
- "ArrowCornerUpLeftIcon in different sizes, from small UI elements to large displays.",
829
- },
830
- },
831
- },
832
- render: () => (
833
- <div className="flex h-64 min-h-dvh items-center justify-center gap-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
834
- <div className="text-center">
835
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
836
- <span className="text-xs text-white/60">12px</span>
837
- </div>
838
- <div className="text-center">
839
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
840
- <span className="text-xs text-white/60">16px</span>
841
- </div>
842
- <div className="text-center">
843
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
844
- <span className="text-xs text-white/60">20px</span>
845
- </div>
846
- <div className="text-center">
847
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
848
- <span className="text-xs text-white/60">24px</span>
849
- </div>
850
- <div className="text-center">
851
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
852
- <span className="text-xs text-white/60">32px</span>
853
- </div>
854
- <div className="text-center">
855
- <ArrowCornerUpLeftIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
856
- <span className="text-xs text-white/60">48px</span>
857
- </div>
858
- </div>
859
- ),
124
+ render: () => <IconSizeVariations icon={ArrowCornerUpLeftIcon} />,
860
125
  }
861
126
 
862
127
  export const ColorVariations: Story = {
863
- parameters: {
864
- ...storyParameters,
865
- docs: {
866
- description: {
867
- story:
868
- "ArrowCornerUpLeftIcon in different semantic colors for various navigation contexts.",
869
- },
870
- },
871
- },
128
+ render: () => <IconColorVariations icon={ArrowCornerUpLeftIcon} />,
129
+ }
130
+
131
+ export const DirectionalVariations: Story = {
872
132
  render: () => (
873
- <div className="grid min-h-dvh grid-cols-2 items-center justify-center gap-6 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8 md:grid-cols-4">
874
- <div className="text-center">
875
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-blue-500/30 bg-blue-500/20">
876
- <ArrowCornerUpLeftIcon className="h-8 w-8 text-blue-400" />
877
- </div>
878
- <div className="text-sm font-medium text-white">Primary</div>
879
- <div className="text-xs text-blue-400">text-blue-400</div>
880
- </div>
881
- <div className="text-center">
882
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-indigo-500/30 bg-indigo-500/20">
883
- <ArrowCornerUpLeftIcon className="h-8 w-8 text-indigo-400" />
884
- </div>
885
- <div className="text-sm font-medium text-white">Secondary</div>
886
- <div className="text-xs text-indigo-400">text-indigo-400</div>
887
- </div>
888
- <div className="text-center">
889
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-gray-500/30 bg-gray-500/20">
890
- <ArrowCornerUpLeftIcon className="h-8 w-8 text-gray-400" />
891
- </div>
892
- <div className="text-sm font-medium text-white">Neutral</div>
893
- <div className="text-xs text-gray-400">text-gray-400</div>
894
- </div>
895
- <div className="text-center">
896
- <div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-purple-500/30 bg-purple-500/20">
897
- <ArrowCornerUpLeftIcon className="h-8 w-8 text-purple-400" />
898
- </div>
899
- <div className="text-sm font-medium text-white">Accent</div>
900
- <div className="text-xs text-purple-400">text-purple-400</div>
901
- </div>
902
- </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
+ />
903
143
  ),
904
144
  }
905
145
 
906
- export const NavigationExamples: Story = {
907
- parameters: {
908
- ...storyParameters,
909
- docs: {
910
- description: {
911
- story:
912
- "Real-world navigation examples showing ArrowCornerUpLeftIcon in different UI contexts.",
913
- },
914
- },
915
- },
146
+ export const UsageExamples: Story = {
916
147
  render: () => (
917
- <div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
918
- {/* Back Navigation */}
919
- <div className="!space-y-2">
920
- <h3 className="text-sm font-medium text-white">Back Navigation</h3>
921
- <div className="flex items-center gap-4">
922
- <button className="flex items-center gap-2 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/20">
923
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
924
- Back to Dashboard
925
- </button>
926
- <button className="flex items-center gap-2 rounded-lg border border-gray-500/20 bg-gray-500/10 px-3 py-2 text-gray-200 transition-colors hover:bg-gray-500/20">
927
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
928
- Return
929
- </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>
930
160
  </div>
931
- </div>
932
-
933
- {/* Breadcrumb Navigation */}
934
- <div className="!space-y-2">
935
- <h3 className="text-sm font-medium text-white">
936
- Breadcrumb Navigation
937
- </h3>
938
- <nav className="flex items-center space-x-2 text-sm">
939
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
940
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
941
- <span>Home</span>
942
- </button>
943
- <span className="text-gray-500">/</span>
944
- <button className="flex items-center gap-1 text-blue-400 hover:text-blue-300">
945
- <ArrowCornerUpLeftIcon className="h-3 w-3" />
946
- <span>Products</span>
947
- </button>
948
- <span className="text-gray-500">/</span>
949
- <span className="text-white">Current Page</span>
950
- </nav>
951
- </div>
952
-
953
- {/* Menu Navigation */}
954
- <div className="!space-y-2">
955
- <h3 className="text-sm font-medium text-white">Menu Navigation</h3>
956
- <div className="rounded-lg border border-white/10 bg-white/5 p-4">
957
- <div className="space-y-2">
958
- <div className="flex items-center justify-between">
959
- <span className="text-white">Settings</span>
960
- <button className="p-1 text-gray-400 hover:text-white">
961
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
962
- </button>
963
- </div>
964
- <div className="flex items-center justify-between">
965
- <span className="text-white">Profile</span>
966
- <button className="p-1 text-gray-400 hover:text-white">
967
- <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" />
968
175
  </button>
969
176
  </div>
970
- <div className="flex items-center justify-between">
971
- <span className="text-white">Help</span>
972
- <button className="p-1 text-gray-400 hover:text-white">
973
- <ArrowCornerUpLeftIcon className="h-4 w-4" />
974
- </button>
975
- </div>
976
- </div>
177
+ ))}
977
178
  </div>
978
- </div>
979
-
980
- {/* Floating Action Button */}
981
- <div className="!space-y-2">
982
- <h3 className="text-sm font-medium text-white">
983
- Floating Action Button
984
- </h3>
985
- <div className="relative h-32 rounded-lg border border-white/10 bg-white/5 p-4">
986
- <button className="absolute 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">
987
- <ArrowCornerUpLeftIcon className="h-5 w-5 text-white" />
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>
988
188
  </button>
989
- <div className="text-center text-sm text-white/60">
990
- Hover over the floating button
991
- </div>
992
189
  </div>
993
- </div>
994
- </div>
190
+ </IconUsageSection>
191
+ </IconUsageCanvas>
995
192
  ),
996
193
  }
997
194
 
998
195
  export const Playground: Story = {
999
- parameters: {
1000
- ...storyParameters,
1001
- docs: {
1002
- description: {
1003
- story:
1004
- "Interactive playground to experiment with different ArrowCornerUpLeftIcon configurations.",
1005
- },
1006
- },
1007
- },
1008
196
  args: {
1009
- width: 32,
1010
- height: 32,
1011
- className: "text-blue-400",
1012
- strokeWidth: 1.5,
197
+ className: "h-8 w-8 text-fm-icon-active",
198
+ withAccessibility: true,
1013
199
  },
1014
200
  render: (args) => (
1015
- <div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
1016
- <div className="rounded-lg border border-white/10 bg-white/5 p-8">
1017
- <ArrowCornerUpLeftIcon {...args} />
1018
- </div>
1019
- </div>
201
+ <IconPlaygroundCanvas>
202
+ <ArrowCornerUpLeftIcon {...args} />
203
+ </IconPlaygroundCanvas>
1020
204
  ),
1021
205
  }