aural-ui 2.1.0 → 2.1.1
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.
- package/dist/icons/apple-logo-icon/AppleLogoIcon.stories.tsx +952 -0
- package/dist/icons/apple-logo-icon/index.tsx +26 -0
- package/dist/icons/apple-logo-icon/meta.ts +8 -0
- package/dist/icons/arrow-left-icon/ArrowLeftIcon.stories.tsx +1008 -0
- package/dist/icons/arrow-left-icon/index.tsx +24 -0
- package/dist/icons/arrow-left-icon/meta.ts +8 -0
- package/dist/icons/backward-ten-seconds-icon/BackwardTenSecondsIcon.stories.tsx +1050 -0
- package/dist/icons/backward-ten-seconds-icon/index.tsx +35 -0
- package/dist/icons/backward-ten-seconds-icon/meta.ts +8 -0
- package/dist/icons/camera-icon/CameraIcon.stories.tsx +1271 -0
- package/dist/icons/camera-icon/index.tsx +22 -0
- package/dist/icons/camera-icon/meta.ts +8 -0
- package/dist/icons/coin-icon/CoinIcon.stories.tsx +1382 -0
- package/dist/icons/coin-icon/index.tsx +36 -0
- package/dist/icons/coin-icon/meta.ts +8 -0
- package/dist/icons/email-icon/EmailIcon.stories.tsx +995 -0
- package/dist/icons/email-icon/index.tsx +22 -0
- package/dist/icons/email-icon/meta.ts +8 -0
- package/dist/icons/expand-icon/ExpandIcon.stories.tsx +1167 -0
- package/dist/icons/expand-icon/index.tsx +22 -0
- package/dist/icons/expand-icon/meta.ts +8 -0
- package/dist/icons/forward-ten-seconds-icon/ForwardTenSecondsIcon.stories.tsx +1054 -0
- package/dist/icons/forward-ten-seconds-icon/index.tsx +33 -0
- package/dist/icons/forward-ten-seconds-icon/meta.ts +8 -0
- package/dist/icons/google-logo-icon/GoogleLogoIcon.stories.tsx +1004 -0
- package/dist/icons/google-logo-icon/index.tsx +34 -0
- package/dist/icons/google-logo-icon/meta.ts +8 -0
- package/dist/icons/heart-icon/HeartIcon.stories.tsx +1080 -0
- package/dist/icons/heart-icon/index.tsx +21 -0
- package/dist/icons/heart-icon/meta.ts +8 -0
- package/dist/icons/index.ts +32 -4
- package/dist/icons/indian-flag-icon/IndianFlagIcon.stories.tsx +1020 -0
- package/dist/icons/indian-flag-icon/index.tsx +46 -0
- package/dist/icons/indian-flag-icon/meta.ts +8 -0
- package/dist/icons/instagram-icon/InstagramIcon.stories.tsx +1449 -0
- package/dist/icons/instagram-icon/index.tsx +17 -0
- package/dist/icons/instagram-icon/meta.ts +8 -0
- package/dist/icons/linked-in-icon/LinkedInIcon.stories.tsx +1582 -0
- package/dist/icons/linked-in-icon/index.tsx +17 -0
- package/dist/icons/linked-in-icon/meta.ts +8 -0
- package/dist/icons/minimize-icon/MinimizeIcon.stories.tsx +1214 -0
- package/dist/icons/minimize-icon/index.tsx +22 -0
- package/dist/icons/minimize-icon/meta.ts +8 -0
- package/dist/icons/pause-icon/PauseIcon.stories.tsx +1060 -0
- package/dist/icons/pause-icon/index.tsx +30 -0
- package/dist/icons/pause-icon/meta.ts +8 -0
- package/dist/icons/share-icon/ShareIcon.stories.tsx +1081 -0
- package/dist/icons/share-icon/index.tsx +22 -0
- package/dist/icons/share-icon/meta.ts +8 -0
- package/dist/icons/skip-backward-icon/SkipBackwardIcon.stories.tsx +1047 -0
- package/dist/icons/skip-backward-icon/index.tsx +29 -0
- package/dist/icons/skip-backward-icon/meta.ts +8 -0
- package/dist/icons/skip-forward-icon/SkipForwardIcon.stories.tsx +1049 -0
- package/dist/icons/skip-forward-icon/index.tsx +29 -0
- package/dist/icons/skip-forward-icon/meta.ts +8 -0
- package/dist/icons/store-coin-icon/StoreCoinIcon.stories.tsx +1020 -0
- package/dist/icons/store-coin-icon/index.tsx +35 -0
- package/dist/icons/store-coin-icon/meta.ts +8 -0
- package/dist/icons/threads-icon/ThreadsIcon.stories.tsx +1489 -0
- package/dist/icons/threads-icon/index.tsx +17 -0
- package/dist/icons/threads-icon/meta.ts +8 -0
- package/dist/icons/twitter-x-icon/TwitterXIcon.stories.tsx +1463 -0
- package/dist/icons/twitter-x-icon/index.tsx +17 -0
- package/dist/icons/twitter-x-icon/meta.ts +8 -0
- package/dist/icons/video-play-list-icon/VideoPlaylistIcon.stories.tsx +1105 -0
- package/dist/icons/video-play-list-icon/index.tsx +22 -0
- package/dist/icons/video-play-list-icon/meta.ts +8 -0
- package/dist/icons/voice-playing-icon/VoicePlayingIcon.stories.tsx +1416 -0
- package/dist/icons/voice-playing-icon/index.tsx +24 -0
- package/dist/icons/voice-playing-icon/meta.ts +8 -0
- package/dist/icons/volume-full-icon/VolumeFullIcon.stories.tsx +1230 -0
- package/dist/icons/volume-full-icon/index.tsx +25 -0
- package/dist/icons/volume-full-icon/meta.ts +8 -0
- package/dist/icons/volume-half-icon/VolumeHalfIcon.stories.tsx +1153 -0
- package/dist/icons/volume-half-icon/index.tsx +25 -0
- package/dist/icons/volume-half-icon/meta.ts +8 -0
- package/dist/icons/volume-off-icon/VolumeOffIcon.stories.tsx +1144 -0
- package/dist/icons/volume-off-icon/index.tsx +26 -0
- package/dist/icons/volume-off-icon/meta.ts +8 -0
- package/dist/icons/warning-icon/WarningIcon.stories.tsx +1106 -0
- package/dist/icons/warning-icon/index.tsx +27 -0
- package/dist/icons/warning-icon/meta.ts +8 -0
- package/dist/icons/youtube-icon/YoutubeIcon.stories.tsx +996 -0
- package/dist/icons/youtube-icon/index.tsx +24 -0
- package/dist/icons/youtube-icon/meta.ts +8 -0
- package/dist/index.js +1 -1
- package/dist/styles/aural-theme.css +9 -0
- package/package.json +1 -1
|
@@ -0,0 +1,1008 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { ArrowLeftIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof ArrowLeftIcon> = {
|
|
7
|
+
title: "Icons/ArrowLeftIcon",
|
|
8
|
+
component: ArrowLeftIcon,
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: "fullscreen",
|
|
11
|
+
backgrounds: {
|
|
12
|
+
default: "dark",
|
|
13
|
+
values: [
|
|
14
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
15
|
+
{ name: "darker", value: "#000000" },
|
|
16
|
+
{ name: "light", value: "#ffffff" },
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
docs: {
|
|
20
|
+
page: () => (
|
|
21
|
+
<>
|
|
22
|
+
{/* Override default docs styling */}
|
|
23
|
+
<style>
|
|
24
|
+
{`
|
|
25
|
+
.sbdocs-wrapper {
|
|
26
|
+
padding: 0 !important;
|
|
27
|
+
max-width: none !important;
|
|
28
|
+
background: transparent !important;
|
|
29
|
+
}
|
|
30
|
+
.sbdocs-content {
|
|
31
|
+
max-width: none !important;
|
|
32
|
+
padding: 0 !important;
|
|
33
|
+
margin: 0 !important;
|
|
34
|
+
background: transparent !important;
|
|
35
|
+
}
|
|
36
|
+
.docs-story {
|
|
37
|
+
background: transparent !important;
|
|
38
|
+
}
|
|
39
|
+
.sbdocs {
|
|
40
|
+
background: transparent !important;
|
|
41
|
+
}
|
|
42
|
+
body {
|
|
43
|
+
background: #0a0a0a !important;
|
|
44
|
+
}
|
|
45
|
+
#storybook-docs {
|
|
46
|
+
background: #0a0a0a !important;
|
|
47
|
+
}
|
|
48
|
+
.sbdocs-preview {
|
|
49
|
+
background: transparent !important;
|
|
50
|
+
border: none !important;
|
|
51
|
+
}
|
|
52
|
+
.sbdocs-h1, .sbdocs-h2, .sbdocs-h3, .sbdocs-h4, .sbdocs-h5, .sbdocs-h6 {
|
|
53
|
+
color: white !important;
|
|
54
|
+
}
|
|
55
|
+
.sbdocs-p, .sbdocs-li {
|
|
56
|
+
color: rgba(255, 255, 255, 0.7) !important;
|
|
57
|
+
}
|
|
58
|
+
.sbdocs-code {
|
|
59
|
+
background: rgba(255, 255, 255, 0.1) !important;
|
|
60
|
+
color: rgba(168, 85, 247, 1) !important;
|
|
61
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
62
|
+
}
|
|
63
|
+
.sbdocs-pre {
|
|
64
|
+
background: rgba(0, 0, 0, 0.4) !important;
|
|
65
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
66
|
+
}
|
|
67
|
+
.sbdocs-table {
|
|
68
|
+
background: rgba(255, 255, 255, 0.05) !important;
|
|
69
|
+
border: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
70
|
+
}
|
|
71
|
+
.sbdocs-table th {
|
|
72
|
+
background: rgba(255, 255, 255, 0.05) !important;
|
|
73
|
+
color: white !important;
|
|
74
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
|
|
75
|
+
}
|
|
76
|
+
.sbdocs-table td {
|
|
77
|
+
color: rgba(255, 255, 255, 0.7) !important;
|
|
78
|
+
border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
|
|
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-purple-500/10 to-blue-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-purple-500/20">
|
|
90
|
+
<ArrowLeftIcon className="h-12 w-12 text-blue-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
+
ArrowLeftIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A directional arrow icon pointing left for navigation, back
|
|
97
|
+
buttons, and directional indicators. Built with
|
|
98
|
+
accessibility in mind using Radix UI's AccessibleIcon
|
|
99
|
+
wrapper for seamless screen reader support.
|
|
100
|
+
</p>
|
|
101
|
+
|
|
102
|
+
{/* Stats */}
|
|
103
|
+
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
|
+
<div className="text-center">
|
|
105
|
+
<div className="text-3xl font-bold text-blue-300">
|
|
106
|
+
Accessible
|
|
107
|
+
</div>
|
|
108
|
+
<div className="text-sm text-white/60">
|
|
109
|
+
Screen reader friendly
|
|
110
|
+
</div>
|
|
111
|
+
</div>
|
|
112
|
+
<div className="h-8 w-px bg-white/20" />
|
|
113
|
+
<div className="text-center">
|
|
114
|
+
<div className="text-3xl font-bold text-purple-300">
|
|
115
|
+
Scalable
|
|
116
|
+
</div>
|
|
117
|
+
<div className="text-sm text-white/60">
|
|
118
|
+
Any size needed
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div className="h-8 w-px bg-white/20" />
|
|
122
|
+
<div className="text-center">
|
|
123
|
+
<div className="text-3xl font-bold text-cyan-300">
|
|
124
|
+
Flexible
|
|
125
|
+
</div>
|
|
126
|
+
<div className="text-sm text-white/60">
|
|
127
|
+
Customizable styling
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
|
|
135
|
+
{/* Content */}
|
|
136
|
+
<div className="!mx-auto max-w-7xl !space-y-16 px-6 py-12">
|
|
137
|
+
{/* Quick Usage */}
|
|
138
|
+
<div className="!space-y-8">
|
|
139
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
140
|
+
Quick Start
|
|
141
|
+
</h2>
|
|
142
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
143
|
+
<div className="!space-y-4">
|
|
144
|
+
<h3 className="text-xl font-semibold !text-blue-300">
|
|
145
|
+
Basic Usage
|
|
146
|
+
</h3>
|
|
147
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
148
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
149
|
+
{`import { ArrowLeftIcon } from "@icons/arrow-left-icon"
|
|
150
|
+
|
|
151
|
+
function BackButton() {
|
|
152
|
+
return (
|
|
153
|
+
<button className="flex items-center gap-2">
|
|
154
|
+
<ArrowLeftIcon className="h-4 w-4 text-gray-500" />
|
|
155
|
+
<span>Back</span>
|
|
156
|
+
</button>
|
|
157
|
+
)
|
|
158
|
+
}`}
|
|
159
|
+
</pre>
|
|
160
|
+
</div>
|
|
161
|
+
</div>
|
|
162
|
+
|
|
163
|
+
<div className="!space-y-4">
|
|
164
|
+
<h3 className="text-xl font-semibold !text-blue-300">
|
|
165
|
+
Live Preview
|
|
166
|
+
</h3>
|
|
167
|
+
<div className="flex h-32 items-center justify-center rounded-lg border border-white/10 bg-white/5">
|
|
168
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2 transition-colors hover:bg-blue-500/20">
|
|
169
|
+
<ArrowLeftIcon className="h-4 w-4 text-blue-400" />
|
|
170
|
+
<span className="text-white">Back</span>
|
|
171
|
+
</button>
|
|
172
|
+
</div>
|
|
173
|
+
</div>
|
|
174
|
+
</div>
|
|
175
|
+
</div>
|
|
176
|
+
|
|
177
|
+
{/* Props Documentation */}
|
|
178
|
+
<div className="!space-y-8">
|
|
179
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
180
|
+
Props & Configuration
|
|
181
|
+
</h2>
|
|
182
|
+
|
|
183
|
+
<div className="overflow-hidden rounded-lg border border-white/10 bg-white/5">
|
|
184
|
+
<div className="bg-white/5 p-4">
|
|
185
|
+
<h3 className="text-xl font-semibold !text-white">Props</h3>
|
|
186
|
+
</div>
|
|
187
|
+
<table className="!my-0 w-full">
|
|
188
|
+
<thead className="bg-white/5">
|
|
189
|
+
<tr className="border-b border-white/10">
|
|
190
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
191
|
+
Prop
|
|
192
|
+
</th>
|
|
193
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
194
|
+
Type
|
|
195
|
+
</th>
|
|
196
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
197
|
+
Default
|
|
198
|
+
</th>
|
|
199
|
+
<th className="px-6 py-4 text-left text-sm font-semibold !text-white">
|
|
200
|
+
Description
|
|
201
|
+
</th>
|
|
202
|
+
</tr>
|
|
203
|
+
</thead>
|
|
204
|
+
<tbody>
|
|
205
|
+
<tr className="border-b border-white/5">
|
|
206
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
207
|
+
width
|
|
208
|
+
</td>
|
|
209
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
210
|
+
number | string
|
|
211
|
+
</td>
|
|
212
|
+
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
213
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
214
|
+
Width of the icon in pixels
|
|
215
|
+
</td>
|
|
216
|
+
</tr>
|
|
217
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
218
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
219
|
+
height
|
|
220
|
+
</td>
|
|
221
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
222
|
+
number | string
|
|
223
|
+
</td>
|
|
224
|
+
<td className="px-6 py-4 text-sm !text-white/50">20</td>
|
|
225
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
226
|
+
Height of the icon in pixels
|
|
227
|
+
</td>
|
|
228
|
+
</tr>
|
|
229
|
+
<tr className="border-b border-white/5">
|
|
230
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
231
|
+
stroke
|
|
232
|
+
</td>
|
|
233
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
234
|
+
string
|
|
235
|
+
</td>
|
|
236
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
237
|
+
currentColor
|
|
238
|
+
</td>
|
|
239
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
240
|
+
Stroke color of the icon
|
|
241
|
+
</td>
|
|
242
|
+
</tr>
|
|
243
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
244
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
245
|
+
strokeWidth
|
|
246
|
+
</td>
|
|
247
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
248
|
+
number | string
|
|
249
|
+
</td>
|
|
250
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
251
|
+
1.5
|
|
252
|
+
</td>
|
|
253
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
254
|
+
Width of the stroke
|
|
255
|
+
</td>
|
|
256
|
+
</tr>
|
|
257
|
+
<tr className="border-b border-white/5">
|
|
258
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
259
|
+
className
|
|
260
|
+
</td>
|
|
261
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
262
|
+
string
|
|
263
|
+
</td>
|
|
264
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
265
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
266
|
+
CSS classes for styling
|
|
267
|
+
</td>
|
|
268
|
+
</tr>
|
|
269
|
+
<tr className="!bg-black/10">
|
|
270
|
+
<td className="px-6 py-4 font-mono text-sm !text-blue-300">
|
|
271
|
+
...svgProps
|
|
272
|
+
</td>
|
|
273
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
274
|
+
SVGProps
|
|
275
|
+
</td>
|
|
276
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
277
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
278
|
+
All standard SVG element props
|
|
279
|
+
</td>
|
|
280
|
+
</tr>
|
|
281
|
+
</tbody>
|
|
282
|
+
</table>
|
|
283
|
+
</div>
|
|
284
|
+
</div>
|
|
285
|
+
|
|
286
|
+
{/* Size Variations */}
|
|
287
|
+
<div className="!space-y-8">
|
|
288
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
289
|
+
Size Variations
|
|
290
|
+
</h2>
|
|
291
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
292
|
+
<div className="!space-y-6">
|
|
293
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
294
|
+
<div className="!space-y-4">
|
|
295
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
296
|
+
Standard Sizes
|
|
297
|
+
</h3>
|
|
298
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
299
|
+
<div className="text-center">
|
|
300
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
301
|
+
<span className="text-xs text-white/60">12px</span>
|
|
302
|
+
</div>
|
|
303
|
+
<div className="text-center">
|
|
304
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
305
|
+
<span className="text-xs text-white/60">16px</span>
|
|
306
|
+
</div>
|
|
307
|
+
<div className="text-center">
|
|
308
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
309
|
+
<span className="text-xs text-white/60">20px</span>
|
|
310
|
+
</div>
|
|
311
|
+
<div className="text-center">
|
|
312
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
313
|
+
<span className="text-xs text-white/60">24px</span>
|
|
314
|
+
</div>
|
|
315
|
+
<div className="text-center">
|
|
316
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
317
|
+
<span className="text-xs text-white/60">32px</span>
|
|
318
|
+
</div>
|
|
319
|
+
<div className="text-center">
|
|
320
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
321
|
+
<span className="text-xs text-white/60">48px</span>
|
|
322
|
+
</div>
|
|
323
|
+
</div>
|
|
324
|
+
</div>
|
|
325
|
+
|
|
326
|
+
<div className="!space-y-4">
|
|
327
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
328
|
+
Code Example
|
|
329
|
+
</h3>
|
|
330
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
331
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
332
|
+
{`// Small (16px)
|
|
333
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
334
|
+
|
|
335
|
+
// Medium (24px)
|
|
336
|
+
<ArrowLeftIcon className="h-6 w-6" />
|
|
337
|
+
|
|
338
|
+
// Large (32px)
|
|
339
|
+
<ArrowLeftIcon className="h-8 w-8" />
|
|
340
|
+
|
|
341
|
+
// Custom size and stroke
|
|
342
|
+
<ArrowLeftIcon
|
|
343
|
+
width={40}
|
|
344
|
+
height={40}
|
|
345
|
+
strokeWidth={2}
|
|
346
|
+
/>`}
|
|
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
|
+
<ArrowLeftIcon 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
|
+
<ArrowLeftIcon className="h-6 w-6 text-gray-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-gray-400
|
|
385
|
+
</div>
|
|
386
|
+
</div>
|
|
387
|
+
</div>
|
|
388
|
+
<div className="flex items-center gap-4">
|
|
389
|
+
<ArrowLeftIcon className="h-6 w-6 text-white" />
|
|
390
|
+
<div>
|
|
391
|
+
<div className="text-sm font-medium text-white">
|
|
392
|
+
Contrast
|
|
393
|
+
</div>
|
|
394
|
+
<div className="text-xs text-white/60">
|
|
395
|
+
text-white
|
|
396
|
+
</div>
|
|
397
|
+
</div>
|
|
398
|
+
</div>
|
|
399
|
+
<div className="flex items-center gap-4">
|
|
400
|
+
<ArrowLeftIcon className="h-6 w-6 text-white/40" />
|
|
401
|
+
<div>
|
|
402
|
+
<div className="text-sm font-medium text-white">
|
|
403
|
+
Disabled
|
|
404
|
+
</div>
|
|
405
|
+
<div className="text-xs text-white/60">
|
|
406
|
+
text-white/40
|
|
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
|
+
<ArrowLeftIcon className="h-6 w-6 text-blue-400" />
|
|
421
|
+
<ArrowLeftIcon className="h-6 w-6 text-gray-500" />
|
|
422
|
+
|
|
423
|
+
// Using CSS custom properties
|
|
424
|
+
<ArrowLeftIcon
|
|
425
|
+
className="h-6 w-6"
|
|
426
|
+
style={{ color: 'var(--color-primary)' }}
|
|
427
|
+
/>
|
|
428
|
+
|
|
429
|
+
// Direct stroke prop
|
|
430
|
+
<ArrowLeftIcon
|
|
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
|
+
{/* Back Navigation */}
|
|
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 gap-4">
|
|
455
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
456
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
457
|
+
Back
|
|
458
|
+
</button>
|
|
459
|
+
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
|
|
460
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
461
|
+
Previous
|
|
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
|
+
{`// Primary back button
|
|
467
|
+
<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-4 py-2 rounded-lg">
|
|
468
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
469
|
+
Back
|
|
470
|
+
</button>
|
|
471
|
+
|
|
472
|
+
// Secondary previous button
|
|
473
|
+
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
474
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
475
|
+
Previous
|
|
476
|
+
</button>`}
|
|
477
|
+
</pre>
|
|
478
|
+
</div>
|
|
479
|
+
</div>
|
|
480
|
+
</div>
|
|
481
|
+
|
|
482
|
+
{/* Breadcrumb Navigation */}
|
|
483
|
+
<div className="!space-y-4">
|
|
484
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
485
|
+
Breadcrumb Navigation
|
|
486
|
+
</h3>
|
|
487
|
+
<div className="!space-y-4">
|
|
488
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
489
|
+
<div className="flex items-center gap-2 text-sm">
|
|
490
|
+
<button className="flex items-center gap-1 rounded px-2 py-1 text-blue-400 transition-colors hover:bg-blue-500/20">
|
|
491
|
+
<ArrowLeftIcon className="h-3 w-3" />
|
|
492
|
+
<span>Home</span>
|
|
493
|
+
</button>
|
|
494
|
+
<span className="text-white/40">/</span>
|
|
495
|
+
<span className="text-white/60">Products</span>
|
|
496
|
+
<span className="text-white/40">/</span>
|
|
497
|
+
<span className="text-white">Laptops</span>
|
|
498
|
+
</div>
|
|
499
|
+
</div>
|
|
500
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
501
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
502
|
+
{`<div className="flex items-center gap-2 text-sm">
|
|
503
|
+
<button className="flex items-center gap-1 rounded px-2 py-1 text-blue-400 hover:bg-blue-500/20">
|
|
504
|
+
<ArrowLeftIcon className="h-3 w-3" />
|
|
505
|
+
<span>Home</span>
|
|
506
|
+
</button>
|
|
507
|
+
<span className="text-white/40">/</span>
|
|
508
|
+
<span className="text-white/60">Products</span>
|
|
509
|
+
<span className="text-white/40">/</span>
|
|
510
|
+
<span className="text-white">Laptops</span>
|
|
511
|
+
</div>`}
|
|
512
|
+
</pre>
|
|
513
|
+
</div>
|
|
514
|
+
</div>
|
|
515
|
+
</div>
|
|
516
|
+
|
|
517
|
+
{/* Pagination */}
|
|
518
|
+
<div className="!space-y-4">
|
|
519
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
520
|
+
Pagination Controls
|
|
521
|
+
</h3>
|
|
522
|
+
<div className="!space-y-4">
|
|
523
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
524
|
+
<div className="flex items-center justify-between">
|
|
525
|
+
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
|
|
526
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
527
|
+
Previous
|
|
528
|
+
</button>
|
|
529
|
+
<div className="flex items-center gap-2">
|
|
530
|
+
<span className="text-sm text-white/60">Page</span>
|
|
531
|
+
<span className="text-white">2</span>
|
|
532
|
+
<span className="text-sm text-white/60">of 10</span>
|
|
533
|
+
</div>
|
|
534
|
+
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
|
|
535
|
+
Next
|
|
536
|
+
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
537
|
+
</button>
|
|
538
|
+
</div>
|
|
539
|
+
</div>
|
|
540
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
541
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
542
|
+
{`<div className="flex items-center justify-between">
|
|
543
|
+
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
544
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
545
|
+
Previous
|
|
546
|
+
</button>
|
|
547
|
+
<div className="flex items-center gap-2">
|
|
548
|
+
<span className="text-sm text-white/60">Page</span>
|
|
549
|
+
<span className="text-white">2</span>
|
|
550
|
+
<span className="text-sm text-white/60">of 10</span>
|
|
551
|
+
</div>
|
|
552
|
+
<button className="flex items-center gap-2 bg-white/5 border border-white/20 px-3 py-2 rounded-lg">
|
|
553
|
+
Next
|
|
554
|
+
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
555
|
+
</button>
|
|
556
|
+
</div>`}
|
|
557
|
+
</pre>
|
|
558
|
+
</div>
|
|
559
|
+
</div>
|
|
560
|
+
</div>
|
|
561
|
+
|
|
562
|
+
{/* Sidebar Toggle */}
|
|
563
|
+
<div className="!space-y-4">
|
|
564
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
565
|
+
Sidebar Toggle
|
|
566
|
+
</h3>
|
|
567
|
+
<div className="!space-y-4">
|
|
568
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
569
|
+
<div className="flex items-center gap-4">
|
|
570
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white transition-colors hover:bg-white/10">
|
|
571
|
+
<ArrowLeftIcon className="h-5 w-5" />
|
|
572
|
+
</button>
|
|
573
|
+
<div>
|
|
574
|
+
<div className="font-medium text-white">
|
|
575
|
+
Collapse Sidebar
|
|
576
|
+
</div>
|
|
577
|
+
<div className="text-sm text-white/60">
|
|
578
|
+
Hide navigation panel
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
</div>
|
|
582
|
+
</div>
|
|
583
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
584
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
585
|
+
{`// Sidebar collapse button
|
|
586
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
587
|
+
<ArrowLeftIcon className="h-5 w-5" />
|
|
588
|
+
</button>
|
|
589
|
+
|
|
590
|
+
// With rotation for expand state
|
|
591
|
+
<button className="rounded-lg border border-white/20 bg-white/5 p-2 text-white hover:bg-white/10">
|
|
592
|
+
<ArrowLeftIcon className="h-5 w-5 rotate-180" />
|
|
593
|
+
</button>`}
|
|
594
|
+
</pre>
|
|
595
|
+
</div>
|
|
596
|
+
</div>
|
|
597
|
+
</div>
|
|
598
|
+
</div>
|
|
599
|
+
</div>
|
|
600
|
+
|
|
601
|
+
{/* Accessibility */}
|
|
602
|
+
<div className="!space-y-8">
|
|
603
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
604
|
+
Accessibility Features
|
|
605
|
+
</h2>
|
|
606
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
607
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
608
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
609
|
+
✅ Built-in Features
|
|
610
|
+
</h3>
|
|
611
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
612
|
+
<li className="!text-white/70">
|
|
613
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
614
|
+
</li>
|
|
615
|
+
<li className="!text-white/70">
|
|
616
|
+
Provides screen reader label "Arrow left icon"
|
|
617
|
+
</li>
|
|
618
|
+
<li className="!text-white/70">
|
|
619
|
+
Supports keyboard navigation when interactive
|
|
620
|
+
</li>
|
|
621
|
+
<li className="!text-white/70">
|
|
622
|
+
Maintains proper color contrast ratios
|
|
623
|
+
</li>
|
|
624
|
+
<li className="!text-white/70">
|
|
625
|
+
Scales with user's font size preferences
|
|
626
|
+
</li>
|
|
627
|
+
</ul>
|
|
628
|
+
</div>
|
|
629
|
+
|
|
630
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
631
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
632
|
+
💡 Best Practices
|
|
633
|
+
</h3>
|
|
634
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
635
|
+
<li className="!text-white/70">
|
|
636
|
+
Always pair with descriptive text for navigation
|
|
637
|
+
</li>
|
|
638
|
+
<li className="!text-white/70">
|
|
639
|
+
Use consistent direction conventions
|
|
640
|
+
</li>
|
|
641
|
+
<li className="!text-white/70">
|
|
642
|
+
Ensure sufficient color contrast on backgrounds
|
|
643
|
+
</li>
|
|
644
|
+
<li className="!text-white/70">
|
|
645
|
+
Add focus states for interactive elements
|
|
646
|
+
</li>
|
|
647
|
+
<li className="!text-white/70">
|
|
648
|
+
Consider cultural reading directions
|
|
649
|
+
</li>
|
|
650
|
+
</ul>
|
|
651
|
+
</div>
|
|
652
|
+
</div>
|
|
653
|
+
|
|
654
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
655
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
656
|
+
Custom Accessibility Label
|
|
657
|
+
</h3>
|
|
658
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
659
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
660
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
661
|
+
{`// Custom implementation with specific label
|
|
662
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
663
|
+
|
|
664
|
+
function CustomArrowLeftIcon({ label = "Go back", ...props }) {
|
|
665
|
+
return (
|
|
666
|
+
<AccessibleIcon label={label}>
|
|
667
|
+
<ArrowLeftIcon {...props} />
|
|
668
|
+
</AccessibleIcon>
|
|
669
|
+
)
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
// Usage with specific context
|
|
673
|
+
<CustomArrowLeftIcon
|
|
674
|
+
label="Return to previous page"
|
|
675
|
+
className="h-4 w-4 text-blue-400"
|
|
676
|
+
/>`}
|
|
677
|
+
</pre>
|
|
678
|
+
</div>
|
|
679
|
+
<div className="!space-y-4">
|
|
680
|
+
<p className="text-sm !text-white/70">
|
|
681
|
+
For specific contexts, you can wrap the ArrowLeftIcon
|
|
682
|
+
with a custom AccessibleIcon component that provides
|
|
683
|
+
more descriptive labels for navigation actions and
|
|
684
|
+
directional guidance.
|
|
685
|
+
</p>
|
|
686
|
+
<div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
|
|
687
|
+
<div className="flex items-center gap-2 text-sm text-blue-200">
|
|
688
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
689
|
+
<span>
|
|
690
|
+
This approach gives screen readers more context
|
|
691
|
+
</span>
|
|
692
|
+
</div>
|
|
693
|
+
</div>
|
|
694
|
+
</div>
|
|
695
|
+
</div>
|
|
696
|
+
</div>
|
|
697
|
+
</div>
|
|
698
|
+
|
|
699
|
+
{/* Related Icons */}
|
|
700
|
+
<div className="!space-y-8">
|
|
701
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
702
|
+
Related Icons
|
|
703
|
+
</h2>
|
|
704
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
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-blue-500/20">
|
|
707
|
+
<ArrowLeftIcon className="h-6 w-6 rotate-180 text-blue-400" />
|
|
708
|
+
</div>
|
|
709
|
+
<div>
|
|
710
|
+
<div className="font-medium text-white">
|
|
711
|
+
ArrowRightIcon
|
|
712
|
+
</div>
|
|
713
|
+
<div className="text-xs text-white/60">
|
|
714
|
+
Forward 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-green-500/20">
|
|
720
|
+
<ArrowLeftIcon className="h-6 w-6 -rotate-90 text-green-400" />
|
|
721
|
+
</div>
|
|
722
|
+
<div>
|
|
723
|
+
<div className="font-medium text-white">ArrowUpIcon</div>
|
|
724
|
+
<div className="text-xs text-white/60">
|
|
725
|
+
Upward direction
|
|
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-purple-500/20">
|
|
731
|
+
<ArrowLeftIcon className="h-6 w-6 rotate-90 text-purple-400" />
|
|
732
|
+
</div>
|
|
733
|
+
<div>
|
|
734
|
+
<div className="font-medium text-white">
|
|
735
|
+
ArrowDownIcon
|
|
736
|
+
</div>
|
|
737
|
+
<div className="text-xs text-white/60">
|
|
738
|
+
Downward direction
|
|
739
|
+
</div>
|
|
740
|
+
</div>
|
|
741
|
+
</div>
|
|
742
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
743
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
744
|
+
<span className="text-2xl">🔙</span>
|
|
745
|
+
</div>
|
|
746
|
+
<div>
|
|
747
|
+
<div className="font-medium text-white">BackIcon</div>
|
|
748
|
+
<div className="text-xs text-white/60">
|
|
749
|
+
Navigation back
|
|
750
|
+
</div>
|
|
751
|
+
</div>
|
|
752
|
+
</div>
|
|
753
|
+
</div>
|
|
754
|
+
</div>
|
|
755
|
+
</div>
|
|
756
|
+
|
|
757
|
+
{/* Footer */}
|
|
758
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
759
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
760
|
+
<div className="!space-y-4 text-center">
|
|
761
|
+
<p className="!text-white/60">
|
|
762
|
+
ArrowLeftIcon is part of the Aural UI icon library, built
|
|
763
|
+
with accessibility and navigation clarity in mind.
|
|
764
|
+
</p>
|
|
765
|
+
<p className="text-sm !text-white/40">
|
|
766
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
767
|
+
compatibility and follow WCAG guidelines.
|
|
768
|
+
</p>
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
</div>
|
|
772
|
+
</div>
|
|
773
|
+
</>
|
|
774
|
+
),
|
|
775
|
+
},
|
|
776
|
+
},
|
|
777
|
+
tags: ["autodocs"],
|
|
778
|
+
argTypes: {
|
|
779
|
+
width: {
|
|
780
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
781
|
+
description: "Width of the icon in pixels",
|
|
782
|
+
},
|
|
783
|
+
height: {
|
|
784
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
785
|
+
description: "Height of the icon in pixels",
|
|
786
|
+
},
|
|
787
|
+
stroke: {
|
|
788
|
+
control: "color",
|
|
789
|
+
description: "Stroke color of the icon",
|
|
790
|
+
},
|
|
791
|
+
strokeWidth: {
|
|
792
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.1 },
|
|
793
|
+
description: "Width of the stroke",
|
|
794
|
+
},
|
|
795
|
+
className: {
|
|
796
|
+
control: "text",
|
|
797
|
+
description: "CSS classes for styling",
|
|
798
|
+
},
|
|
799
|
+
},
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
export default meta
|
|
803
|
+
type Story = StoryObj<typeof ArrowLeftIcon>
|
|
804
|
+
|
|
805
|
+
// Story parameters for consistent dark theme
|
|
806
|
+
const storyParameters = {
|
|
807
|
+
backgrounds: {
|
|
808
|
+
default: "dark",
|
|
809
|
+
values: [
|
|
810
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
811
|
+
{ name: "darker", value: "#000000" },
|
|
812
|
+
],
|
|
813
|
+
},
|
|
814
|
+
}
|
|
815
|
+
|
|
816
|
+
export const Default: Story = {
|
|
817
|
+
args: {
|
|
818
|
+
width: 20,
|
|
819
|
+
height: 20,
|
|
820
|
+
className: "text-blue-400",
|
|
821
|
+
},
|
|
822
|
+
parameters: storyParameters,
|
|
823
|
+
render: (args) => (
|
|
824
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
825
|
+
<ArrowLeftIcon {...args} />
|
|
826
|
+
</div>
|
|
827
|
+
),
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
export const SizeVariations: Story = {
|
|
831
|
+
parameters: {
|
|
832
|
+
...storyParameters,
|
|
833
|
+
docs: {
|
|
834
|
+
description: {
|
|
835
|
+
story:
|
|
836
|
+
"ArrowLeftIcon in different sizes, from small UI elements to large navigation displays.",
|
|
837
|
+
},
|
|
838
|
+
},
|
|
839
|
+
},
|
|
840
|
+
render: () => (
|
|
841
|
+
<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">
|
|
842
|
+
<div className="text-center">
|
|
843
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
844
|
+
<span className="text-xs text-white/60">12px</span>
|
|
845
|
+
</div>
|
|
846
|
+
<div className="text-center">
|
|
847
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
848
|
+
<span className="text-xs text-white/60">16px</span>
|
|
849
|
+
</div>
|
|
850
|
+
<div className="text-center">
|
|
851
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
852
|
+
<span className="text-xs text-white/60">20px</span>
|
|
853
|
+
</div>
|
|
854
|
+
<div className="text-center">
|
|
855
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
856
|
+
<span className="text-xs text-white/60">24px</span>
|
|
857
|
+
</div>
|
|
858
|
+
<div className="text-center">
|
|
859
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
860
|
+
<span className="text-xs text-white/60">32px</span>
|
|
861
|
+
</div>
|
|
862
|
+
<div className="text-center">
|
|
863
|
+
<ArrowLeftIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
864
|
+
<span className="text-xs text-white/60">48px</span>
|
|
865
|
+
</div>
|
|
866
|
+
</div>
|
|
867
|
+
),
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export const ColorVariations: Story = {
|
|
871
|
+
parameters: {
|
|
872
|
+
...storyParameters,
|
|
873
|
+
docs: {
|
|
874
|
+
description: {
|
|
875
|
+
story:
|
|
876
|
+
"ArrowLeftIcon in different semantic colors for various navigation contexts.",
|
|
877
|
+
},
|
|
878
|
+
},
|
|
879
|
+
},
|
|
880
|
+
render: () => (
|
|
881
|
+
<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">
|
|
882
|
+
<div className="text-center">
|
|
883
|
+
<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">
|
|
884
|
+
<ArrowLeftIcon className="h-8 w-8 text-blue-400" />
|
|
885
|
+
</div>
|
|
886
|
+
<div className="text-sm font-medium text-white">Primary</div>
|
|
887
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
888
|
+
</div>
|
|
889
|
+
<div className="text-center">
|
|
890
|
+
<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">
|
|
891
|
+
<ArrowLeftIcon className="h-8 w-8 text-gray-400" />
|
|
892
|
+
</div>
|
|
893
|
+
<div className="text-sm font-medium text-white">Secondary</div>
|
|
894
|
+
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
895
|
+
</div>
|
|
896
|
+
<div className="text-center">
|
|
897
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/30 bg-white/20">
|
|
898
|
+
<ArrowLeftIcon className="h-8 w-8 text-white" />
|
|
899
|
+
</div>
|
|
900
|
+
<div className="text-sm font-medium text-white">Contrast</div>
|
|
901
|
+
<div className="text-xs text-white/60">text-white</div>
|
|
902
|
+
</div>
|
|
903
|
+
<div className="text-center">
|
|
904
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-white/20 bg-white/5">
|
|
905
|
+
<ArrowLeftIcon className="h-8 w-8 text-white/40" />
|
|
906
|
+
</div>
|
|
907
|
+
<div className="text-sm font-medium text-white">Disabled</div>
|
|
908
|
+
<div className="text-xs text-white/40">text-white/40</div>
|
|
909
|
+
</div>
|
|
910
|
+
</div>
|
|
911
|
+
),
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
export const UsageExamples: Story = {
|
|
915
|
+
parameters: {
|
|
916
|
+
...storyParameters,
|
|
917
|
+
docs: {
|
|
918
|
+
description: {
|
|
919
|
+
story:
|
|
920
|
+
"Real-world usage examples showing ArrowLeftIcon in different navigation contexts.",
|
|
921
|
+
},
|
|
922
|
+
},
|
|
923
|
+
},
|
|
924
|
+
render: () => (
|
|
925
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
926
|
+
{/* Back Navigation */}
|
|
927
|
+
<div className="!space-y-2">
|
|
928
|
+
<h3 className="text-sm font-medium text-white">Back Navigation</h3>
|
|
929
|
+
<div className="flex gap-4">
|
|
930
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-4 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
931
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
932
|
+
Back
|
|
933
|
+
</button>
|
|
934
|
+
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
|
|
935
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
936
|
+
Previous
|
|
937
|
+
</button>
|
|
938
|
+
</div>
|
|
939
|
+
</div>
|
|
940
|
+
|
|
941
|
+
{/* Breadcrumb Navigation */}
|
|
942
|
+
<div className="!space-y-2">
|
|
943
|
+
<h3 className="text-sm font-medium text-white">
|
|
944
|
+
Breadcrumb Navigation
|
|
945
|
+
</h3>
|
|
946
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
947
|
+
<div className="flex items-center gap-2 text-sm">
|
|
948
|
+
<button className="flex items-center gap-1 rounded px-2 py-1 text-blue-400 transition-colors hover:bg-blue-500/20">
|
|
949
|
+
<ArrowLeftIcon className="h-3 w-3" />
|
|
950
|
+
<span>Home</span>
|
|
951
|
+
</button>
|
|
952
|
+
<span className="text-white/40">/</span>
|
|
953
|
+
<span className="text-white/60">Products</span>
|
|
954
|
+
<span className="text-white/40">/</span>
|
|
955
|
+
<span className="text-white">Laptops</span>
|
|
956
|
+
</div>
|
|
957
|
+
</div>
|
|
958
|
+
</div>
|
|
959
|
+
|
|
960
|
+
{/* Pagination */}
|
|
961
|
+
<div className="!space-y-2">
|
|
962
|
+
<h3 className="text-sm font-medium text-white">Pagination Controls</h3>
|
|
963
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
964
|
+
<div className="flex items-center justify-between">
|
|
965
|
+
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
|
|
966
|
+
<ArrowLeftIcon className="h-4 w-4" />
|
|
967
|
+
Previous
|
|
968
|
+
</button>
|
|
969
|
+
<div className="flex items-center gap-2">
|
|
970
|
+
<span className="text-sm text-white/60">Page</span>
|
|
971
|
+
<span className="text-white">2</span>
|
|
972
|
+
<span className="text-sm text-white/60">of 10</span>
|
|
973
|
+
</div>
|
|
974
|
+
<button className="flex items-center gap-2 rounded-lg border border-white/20 bg-white/5 px-3 py-2 text-white transition-colors hover:bg-white/10">
|
|
975
|
+
Next
|
|
976
|
+
<ArrowLeftIcon className="h-4 w-4 rotate-180" />
|
|
977
|
+
</button>
|
|
978
|
+
</div>
|
|
979
|
+
</div>
|
|
980
|
+
</div>
|
|
981
|
+
</div>
|
|
982
|
+
),
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
export const Playground: Story = {
|
|
986
|
+
parameters: {
|
|
987
|
+
...storyParameters,
|
|
988
|
+
docs: {
|
|
989
|
+
description: {
|
|
990
|
+
story:
|
|
991
|
+
"Interactive playground to experiment with different ArrowLeftIcon configurations.",
|
|
992
|
+
},
|
|
993
|
+
},
|
|
994
|
+
},
|
|
995
|
+
args: {
|
|
996
|
+
width: 32,
|
|
997
|
+
height: 32,
|
|
998
|
+
strokeWidth: 1.5,
|
|
999
|
+
className: "text-blue-400",
|
|
1000
|
+
},
|
|
1001
|
+
render: (args) => (
|
|
1002
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1003
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1004
|
+
<ArrowLeftIcon {...args} />
|
|
1005
|
+
</div>
|
|
1006
|
+
</div>
|
|
1007
|
+
),
|
|
1008
|
+
}
|