aural-ui 2.0.0 → 2.0.2
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/components/badge/Badge.stories.tsx +7 -0
- package/dist/components/banner/Banner.stories.tsx +7 -0
- package/dist/components/button/Button.stories.tsx +7 -0
- package/dist/components/char-count/CharCount.stories.tsx +7 -0
- package/dist/components/checkbox/Checkbox.stories.tsx +7 -0
- package/dist/components/chip/Chip.stories.tsx +10 -0
- package/dist/components/collapsible/Collapsible.stories.tsx +7 -0
- package/dist/components/dropdown/index.tsx +18 -7
- package/dist/components/form/Form.stories.tsx +7 -0
- package/dist/components/helper-text/HelperText.stories.tsx +7 -0
- package/dist/components/icon-button/IconButton.stories.tsx +4 -0
- package/dist/components/if-else/if-else.stories.tsx +7 -0
- package/dist/components/input/Input.stories.tsx +7 -0
- package/dist/components/label/Label.stories.tsx +7 -0
- package/dist/components/overlay/index.tsx +1 -1
- package/dist/components/pagination/Pagination.stories.tsx +7 -0
- package/dist/components/radio/Radio.stories.tsx +7 -0
- package/dist/components/scroll-area/index.tsx +18 -5
- package/dist/components/select/Select.stories.tsx +7 -0
- package/dist/components/sheet/index.tsx +5 -2
- package/dist/components/stepper/Stepper.stories.tsx +7 -0
- package/dist/components/switch/Switch.stories.tsx +7 -0
- package/dist/components/switch-case/SwitchCase.stories.tsx +7 -0
- package/dist/components/tag/Tag.stories.tsx +7 -0
- package/dist/components/textarea/TextArea.stories.tsx +7 -0
- package/dist/components/textarea/index.tsx +2 -0
- package/dist/components/toast/Toast.stories.tsx +7 -0
- package/dist/components/typography/Typography.stories.tsx +7 -0
- package/dist/icons/ai-avatar-icon/AiAvatarIcon.stories.tsx +1101 -0
- package/dist/icons/ai-avatar-icon/index.tsx +36 -0
- package/dist/icons/ai-avatar-icon/meta.ts +8 -0
- package/dist/icons/all-icons.tsx +155 -79
- package/dist/icons/arrow-corner-up-left-icon/ArrowCornerUpLeftIcon.stories.tsx +1013 -0
- package/dist/icons/arrow-corner-up-left-icon/index.tsx +24 -0
- package/dist/icons/arrow-corner-up-left-icon/meta.ts +8 -0
- package/dist/icons/arrow-corner-up-right-icon/ArrowCornerUpRightIcon.stories.tsx +1056 -0
- package/dist/icons/arrow-corner-up-right-icon/index.tsx +24 -0
- package/dist/icons/arrow-corner-up-right-icon/meta.ts +8 -0
- package/dist/icons/capital-a-letter-icon/CapitalALetterIcon.stories.tsx +992 -0
- package/dist/icons/capital-a-letter-icon/index.tsx +32 -0
- package/dist/icons/capital-a-letter-icon/meta.ts +8 -0
- package/dist/icons/head-icon/HeadIcon.stories.tsx +981 -0
- package/dist/icons/head-icon/index.tsx +26 -0
- package/dist/icons/head-icon/meta.ts +8 -0
- package/dist/icons/index.ts +40 -25
- package/dist/icons/layout-column-icon/LayoutColumnIcon.stories.tsx +1027 -0
- package/dist/icons/layout-column-icon/index.tsx +23 -0
- package/dist/icons/layout-column-icon/meta.ts +8 -0
- package/dist/icons/layout-left-icon/LayoutLeftIcon.stories.tsx +1007 -0
- package/dist/icons/layout-left-icon/index.tsx +26 -0
- package/dist/icons/layout-left-icon/meta.ts +8 -0
- package/dist/icons/layout-right-icon/LayoutRightIcon.stories.tsx +1001 -0
- package/dist/icons/layout-right-icon/index.tsx +26 -0
- package/dist/icons/layout-right-icon/meta.ts +8 -0
- package/dist/icons/musical-note-icon/MusicalNoteIcon.stories.tsx +1032 -0
- package/dist/icons/musical-note-icon/index.tsx +25 -0
- package/dist/icons/musical-note-icon/meta.ts +8 -0
- package/dist/icons/paint-roll-icon/PaintRollIcon.stories.tsx +1010 -0
- package/dist/icons/paint-roll-icon/index.tsx +24 -0
- package/dist/icons/paint-roll-icon/meta.ts +8 -0
- package/dist/icons/setting-icon/SettingIcon.stories.tsx +1024 -0
- package/dist/icons/setting-icon/index.tsx +30 -0
- package/dist/icons/setting-icon/meta.ts +8 -0
- package/dist/icons/sparkles-soft-icon/SparklesSoftIcon.stories.tsx +1018 -0
- package/dist/icons/sparkles-soft-icon/index.tsx +29 -0
- package/dist/icons/sparkles-soft-icon/meta.ts +8 -0
- package/dist/icons/text-color-icon/TextColorIcon.stories.tsx +1006 -0
- package/dist/icons/text-color-icon/index.tsx +35 -0
- package/dist/icons/text-color-icon/meta.ts +8 -0
- package/dist/icons/text-indicator-icon/TextIndicatorIcon.stories.tsx +1039 -0
- package/dist/icons/text-indicator-icon/index.tsx +24 -0
- package/dist/icons/text-indicator-icon/meta.ts +8 -0
- package/dist/index.js +124 -99
- package/package.json +1 -1
|
@@ -0,0 +1,981 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { HeadIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof HeadIcon> = {
|
|
7
|
+
title: "Icons/HeadIcon",
|
|
8
|
+
component: HeadIcon,
|
|
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 ;
|
|
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-purple-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-purple-500/10 via-transparent 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
|
+
<HeadIcon className="h-12 w-12 text-blue-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
+
HeadIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A versatile head/profile icon for user avatars, profile
|
|
97
|
+
sections, and account-related elements. Built with
|
|
98
|
+
accessibility in mind using Radix UI's AccessibleIcon
|
|
99
|
+
wrapper.
|
|
100
|
+
</p>
|
|
101
|
+
|
|
102
|
+
{/* Stats */}
|
|
103
|
+
<div className="flex items-center justify-center gap-8 pt-8">
|
|
104
|
+
<div className="text-center">
|
|
105
|
+
<div className="text-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 { HeadIcon } from "@icons/head-icon"
|
|
150
|
+
|
|
151
|
+
function MyComponent() {
|
|
152
|
+
return (
|
|
153
|
+
<div className="flex items-center gap-2">
|
|
154
|
+
<HeadIcon className="h-5 w-5 text-blue-500" />
|
|
155
|
+
<span>User Profile</span>
|
|
156
|
+
</div>
|
|
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
|
+
<div className="flex items-center gap-3 rounded-lg border border-blue-500/20 bg-blue-500/10 px-4 py-2">
|
|
169
|
+
<HeadIcon className="h-5 w-5 text-blue-400" />
|
|
170
|
+
<span className="text-white">User Profile</span>
|
|
171
|
+
</div>
|
|
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">16</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">17</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
|
+
<HeadIcon 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
|
+
<HeadIcon 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
|
+
<HeadIcon 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
|
+
<HeadIcon 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
|
+
<HeadIcon 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
|
+
<HeadIcon 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
|
+
<HeadIcon className="h-4 w-4" />
|
|
334
|
+
|
|
335
|
+
// Medium (24px)
|
|
336
|
+
<HeadIcon className="h-6 w-6" />
|
|
337
|
+
|
|
338
|
+
// Large (32px)
|
|
339
|
+
<HeadIcon className="h-8 w-8" />
|
|
340
|
+
|
|
341
|
+
// Custom size
|
|
342
|
+
<HeadIcon width={40} height={40} />`}
|
|
343
|
+
</pre>
|
|
344
|
+
</div>
|
|
345
|
+
</div>
|
|
346
|
+
</div>
|
|
347
|
+
</div>
|
|
348
|
+
</div>
|
|
349
|
+
</div>
|
|
350
|
+
|
|
351
|
+
{/* Color Variations */}
|
|
352
|
+
<div className="!space-y-8">
|
|
353
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
354
|
+
Color Variations
|
|
355
|
+
</h2>
|
|
356
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
357
|
+
<div className="!space-y-4">
|
|
358
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
359
|
+
Profile States
|
|
360
|
+
</h3>
|
|
361
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
362
|
+
<div className="flex items-center gap-4">
|
|
363
|
+
<HeadIcon className="h-6 w-6 text-blue-400" />
|
|
364
|
+
<div>
|
|
365
|
+
<div className="text-sm font-medium text-white">
|
|
366
|
+
Default User
|
|
367
|
+
</div>
|
|
368
|
+
<div className="text-xs text-white/60">
|
|
369
|
+
text-blue-400
|
|
370
|
+
</div>
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
<div className="flex items-center gap-4">
|
|
374
|
+
<HeadIcon className="h-6 w-6 text-green-400" />
|
|
375
|
+
<div>
|
|
376
|
+
<div className="text-sm font-medium text-white">
|
|
377
|
+
Active User
|
|
378
|
+
</div>
|
|
379
|
+
<div className="text-xs text-white/60">
|
|
380
|
+
text-green-400
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
<div className="flex items-center gap-4">
|
|
385
|
+
<HeadIcon className="h-6 w-6 text-purple-400" />
|
|
386
|
+
<div>
|
|
387
|
+
<div className="text-sm font-medium text-white">
|
|
388
|
+
Premium User
|
|
389
|
+
</div>
|
|
390
|
+
<div className="text-xs text-white/60">
|
|
391
|
+
text-purple-400
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
<div className="flex items-center gap-4">
|
|
396
|
+
<HeadIcon className="h-6 w-6 text-gray-400" />
|
|
397
|
+
<div>
|
|
398
|
+
<div className="text-sm font-medium text-white">
|
|
399
|
+
Inactive User
|
|
400
|
+
</div>
|
|
401
|
+
<div className="text-xs text-white/60">
|
|
402
|
+
text-gray-400
|
|
403
|
+
</div>
|
|
404
|
+
</div>
|
|
405
|
+
</div>
|
|
406
|
+
</div>
|
|
407
|
+
</div>
|
|
408
|
+
|
|
409
|
+
<div className="!space-y-4">
|
|
410
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
411
|
+
Custom Colors
|
|
412
|
+
</h3>
|
|
413
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
414
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
415
|
+
{`// Using Tailwind classes
|
|
416
|
+
<HeadIcon className="h-6 w-6 text-blue-400" />
|
|
417
|
+
<HeadIcon className="h-6 w-6 text-purple-500" />
|
|
418
|
+
|
|
419
|
+
// Using CSS custom properties
|
|
420
|
+
<HeadIcon
|
|
421
|
+
className="h-6 w-6"
|
|
422
|
+
style={{ color: 'var(--color-user)' }}
|
|
423
|
+
/>
|
|
424
|
+
|
|
425
|
+
// Direct stroke prop
|
|
426
|
+
<HeadIcon
|
|
427
|
+
width={24}
|
|
428
|
+
height={24}
|
|
429
|
+
stroke="#6366f1"
|
|
430
|
+
/>`}
|
|
431
|
+
</pre>
|
|
432
|
+
</div>
|
|
433
|
+
</div>
|
|
434
|
+
</div>
|
|
435
|
+
</div>
|
|
436
|
+
|
|
437
|
+
{/* Usage Examples */}
|
|
438
|
+
<div className="!space-y-8">
|
|
439
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
440
|
+
Usage Examples
|
|
441
|
+
</h2>
|
|
442
|
+
|
|
443
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
444
|
+
{/* User Profile Card */}
|
|
445
|
+
<div className="!space-y-4">
|
|
446
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
447
|
+
User Profile Card
|
|
448
|
+
</h3>
|
|
449
|
+
<div className="!space-y-4">
|
|
450
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
451
|
+
<div className="flex items-center gap-3">
|
|
452
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-full border border-blue-500/30 bg-blue-500/20">
|
|
453
|
+
<HeadIcon className="h-6 w-6 text-blue-400" />
|
|
454
|
+
</div>
|
|
455
|
+
<div>
|
|
456
|
+
<h4 className="font-medium !text-white">
|
|
457
|
+
John Doe
|
|
458
|
+
</h4>
|
|
459
|
+
<p className="text-sm !text-white/60">
|
|
460
|
+
Software Engineer
|
|
461
|
+
</p>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
</div>
|
|
465
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
466
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
467
|
+
{`<div className="flex items-center gap-3">
|
|
468
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-full bg-blue-500/20 border border-blue-500/30">
|
|
469
|
+
<HeadIcon className="h-6 w-6 text-blue-400" />
|
|
470
|
+
</div>
|
|
471
|
+
<div>
|
|
472
|
+
<h4 className="font-medium text-white">John Doe</h4>
|
|
473
|
+
<p className="text-sm text-white/60">Software Engineer</p>
|
|
474
|
+
</div>
|
|
475
|
+
</div>`}
|
|
476
|
+
</pre>
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
479
|
+
</div>
|
|
480
|
+
|
|
481
|
+
{/* Navigation Menu */}
|
|
482
|
+
<div className="!space-y-4">
|
|
483
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
484
|
+
Navigation Menu
|
|
485
|
+
</h3>
|
|
486
|
+
<div className="!space-y-4">
|
|
487
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
488
|
+
<nav className="!space-y-2">
|
|
489
|
+
<a
|
|
490
|
+
href="#"
|
|
491
|
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/70 hover:bg-white/10 hover:text-white"
|
|
492
|
+
>
|
|
493
|
+
<HeadIcon className="h-5 w-5" />
|
|
494
|
+
<span>Profile</span>
|
|
495
|
+
</a>
|
|
496
|
+
<a
|
|
497
|
+
href="#"
|
|
498
|
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/70 hover:bg-white/10 hover:text-white"
|
|
499
|
+
>
|
|
500
|
+
<span className="h-5 w-5">⚙️</span>
|
|
501
|
+
<span>Settings</span>
|
|
502
|
+
</a>
|
|
503
|
+
<a
|
|
504
|
+
href="#"
|
|
505
|
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/70 hover:bg-white/10 hover:text-white"
|
|
506
|
+
>
|
|
507
|
+
<span className="h-5 w-5">📊</span>
|
|
508
|
+
<span>Analytics</span>
|
|
509
|
+
</a>
|
|
510
|
+
</nav>
|
|
511
|
+
</div>
|
|
512
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
513
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
514
|
+
{`<nav className="space-y-2">
|
|
515
|
+
<a href="#" className="flex items-center gap-3 rounded-lg px-3 py-2 hover:bg-white/10">
|
|
516
|
+
<HeadIcon className="h-5 w-5" />
|
|
517
|
+
<span>Profile</span>
|
|
518
|
+
</a>
|
|
519
|
+
{/* ... other menu items */}
|
|
520
|
+
</nav>`}
|
|
521
|
+
</pre>
|
|
522
|
+
</div>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
|
|
526
|
+
{/* Account Dropdown */}
|
|
527
|
+
<div className="!space-y-4">
|
|
528
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
529
|
+
Account Dropdown
|
|
530
|
+
</h3>
|
|
531
|
+
<div className="!space-y-4">
|
|
532
|
+
<div className="relative inline-block">
|
|
533
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-3 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
534
|
+
<HeadIcon className="h-4 w-4" />
|
|
535
|
+
<span>My Account</span>
|
|
536
|
+
<span className="text-xs">▼</span>
|
|
537
|
+
</button>
|
|
538
|
+
</div>
|
|
539
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
540
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
541
|
+
{`<button className="flex items-center gap-2 bg-blue-500/20 border border-blue-500/30 px-3 py-2 rounded-lg">
|
|
542
|
+
<HeadIcon className="h-4 w-4" />
|
|
543
|
+
<span>My Account</span>
|
|
544
|
+
<span className="text-xs">▼</span>
|
|
545
|
+
</button>`}
|
|
546
|
+
</pre>
|
|
547
|
+
</div>
|
|
548
|
+
</div>
|
|
549
|
+
</div>
|
|
550
|
+
|
|
551
|
+
{/* User Status */}
|
|
552
|
+
<div className="!space-y-4">
|
|
553
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
554
|
+
User Status Indicator
|
|
555
|
+
</h3>
|
|
556
|
+
<div className="!space-y-4">
|
|
557
|
+
<div className="flex gap-4">
|
|
558
|
+
<div className="relative">
|
|
559
|
+
<HeadIcon className="h-8 w-8 text-green-400" />
|
|
560
|
+
<div className="absolute -right-1 -bottom-1 h-3 w-3 rounded-full border-2 border-gray-900 bg-green-400"></div>
|
|
561
|
+
</div>
|
|
562
|
+
<div className="relative">
|
|
563
|
+
<HeadIcon className="h-8 w-8 text-yellow-400" />
|
|
564
|
+
<div className="absolute -right-1 -bottom-1 h-3 w-3 rounded-full border-2 border-gray-900 bg-yellow-400"></div>
|
|
565
|
+
</div>
|
|
566
|
+
<div className="relative">
|
|
567
|
+
<HeadIcon className="h-8 w-8 text-gray-400" />
|
|
568
|
+
<div className="absolute -right-1 -bottom-1 h-3 w-3 rounded-full border-2 border-gray-900 bg-gray-400"></div>
|
|
569
|
+
</div>
|
|
570
|
+
</div>
|
|
571
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
572
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
573
|
+
{`<div className="relative">
|
|
574
|
+
<HeadIcon className="h-8 w-8 text-green-400" />
|
|
575
|
+
<div className="absolute -bottom-1 -right-1 h-3 w-3 rounded-full border-2 border-gray-900 bg-green-400"></div>
|
|
576
|
+
</div>`}
|
|
577
|
+
</pre>
|
|
578
|
+
</div>
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
</div>
|
|
582
|
+
</div>
|
|
583
|
+
|
|
584
|
+
{/* Accessibility */}
|
|
585
|
+
<div className="!space-y-8">
|
|
586
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
587
|
+
Accessibility Features
|
|
588
|
+
</h2>
|
|
589
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
590
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
591
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
592
|
+
✅ Built-in Features
|
|
593
|
+
</h3>
|
|
594
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
595
|
+
<li className="!text-white/70">
|
|
596
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
597
|
+
</li>
|
|
598
|
+
<li className="!text-white/70">
|
|
599
|
+
Provides screen reader label "Head Icon"
|
|
600
|
+
</li>
|
|
601
|
+
<li className="!text-white/70">
|
|
602
|
+
Supports keyboard navigation when interactive
|
|
603
|
+
</li>
|
|
604
|
+
<li className="!text-white/70">
|
|
605
|
+
Maintains proper color contrast ratios
|
|
606
|
+
</li>
|
|
607
|
+
<li className="!text-white/70">
|
|
608
|
+
Scales with user's font size preferences
|
|
609
|
+
</li>
|
|
610
|
+
</ul>
|
|
611
|
+
</div>
|
|
612
|
+
|
|
613
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
614
|
+
<h3 className="text-lg font-semibold !text-blue-300">
|
|
615
|
+
💡 Best Practices
|
|
616
|
+
</h3>
|
|
617
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
618
|
+
<li className="!text-white/70">
|
|
619
|
+
Use for user profile and account contexts
|
|
620
|
+
</li>
|
|
621
|
+
<li className="!text-white/70">
|
|
622
|
+
Pair with user names or descriptions
|
|
623
|
+
</li>
|
|
624
|
+
<li className="!text-white/70">
|
|
625
|
+
Ensure sufficient color contrast
|
|
626
|
+
</li>
|
|
627
|
+
<li className="!text-white/70">
|
|
628
|
+
Add focus states for interactive elements
|
|
629
|
+
</li>
|
|
630
|
+
<li className="!text-white/70">
|
|
631
|
+
Consider adding status indicators when needed
|
|
632
|
+
</li>
|
|
633
|
+
</ul>
|
|
634
|
+
</div>
|
|
635
|
+
</div>
|
|
636
|
+
|
|
637
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
638
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
639
|
+
Custom Accessibility Label
|
|
640
|
+
</h3>
|
|
641
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
642
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
643
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
644
|
+
{`// Custom implementation with specific label
|
|
645
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
646
|
+
|
|
647
|
+
function CustomHeadIcon({ label = "User profile", ...props }) {
|
|
648
|
+
return (
|
|
649
|
+
<AccessibleIcon label={label}>
|
|
650
|
+
<HeadIcon {...props} />
|
|
651
|
+
</AccessibleIcon>
|
|
652
|
+
)
|
|
653
|
+
}
|
|
654
|
+
|
|
655
|
+
// Usage with specific context
|
|
656
|
+
<CustomHeadIcon
|
|
657
|
+
label="Current user avatar"
|
|
658
|
+
className="h-6 w-6 text-blue-400"
|
|
659
|
+
/>`}
|
|
660
|
+
</pre>
|
|
661
|
+
</div>
|
|
662
|
+
<div className="!space-y-4">
|
|
663
|
+
<p className="text-sm !text-white/70">
|
|
664
|
+
For specific contexts, you can wrap the HeadIcon with a
|
|
665
|
+
custom AccessibleIcon component that provides more
|
|
666
|
+
descriptive labels.
|
|
667
|
+
</p>
|
|
668
|
+
<div className="rounded-lg border border-blue-500/20 bg-blue-500/10 p-4">
|
|
669
|
+
<div className="flex items-center gap-2 text-sm text-blue-200">
|
|
670
|
+
<HeadIcon className="h-4 w-4" />
|
|
671
|
+
<span>
|
|
672
|
+
This approach gives screen readers more context
|
|
673
|
+
</span>
|
|
674
|
+
</div>
|
|
675
|
+
</div>
|
|
676
|
+
</div>
|
|
677
|
+
</div>
|
|
678
|
+
</div>
|
|
679
|
+
</div>
|
|
680
|
+
|
|
681
|
+
{/* Related Icons */}
|
|
682
|
+
<div className="!space-y-8">
|
|
683
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
684
|
+
Related Icons
|
|
685
|
+
</h2>
|
|
686
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
687
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
688
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
689
|
+
<span className="text-2xl">👥</span>
|
|
690
|
+
</div>
|
|
691
|
+
<div>
|
|
692
|
+
<div className="font-medium text-white">GroupIcon</div>
|
|
693
|
+
<div className="text-xs text-white/60">
|
|
694
|
+
Multiple users
|
|
695
|
+
</div>
|
|
696
|
+
</div>
|
|
697
|
+
</div>
|
|
698
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
699
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
700
|
+
<span className="text-2xl">⚙️</span>
|
|
701
|
+
</div>
|
|
702
|
+
<div>
|
|
703
|
+
<div className="font-medium text-white">SettingsIcon</div>
|
|
704
|
+
<div className="text-xs text-white/60">
|
|
705
|
+
Account settings
|
|
706
|
+
</div>
|
|
707
|
+
</div>
|
|
708
|
+
</div>
|
|
709
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
710
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
711
|
+
<span className="text-2xl">🔐</span>
|
|
712
|
+
</div>
|
|
713
|
+
<div>
|
|
714
|
+
<div className="font-medium text-white">SecurityIcon</div>
|
|
715
|
+
<div className="text-xs text-white/60">
|
|
716
|
+
Security & auth
|
|
717
|
+
</div>
|
|
718
|
+
</div>
|
|
719
|
+
</div>
|
|
720
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
721
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
722
|
+
<span className="text-2xl">📊</span>
|
|
723
|
+
</div>
|
|
724
|
+
<div>
|
|
725
|
+
<div className="font-medium text-white">StatsIcon</div>
|
|
726
|
+
<div className="text-xs text-white/60">
|
|
727
|
+
User analytics
|
|
728
|
+
</div>
|
|
729
|
+
</div>
|
|
730
|
+
</div>
|
|
731
|
+
</div>
|
|
732
|
+
</div>
|
|
733
|
+
</div>
|
|
734
|
+
|
|
735
|
+
{/* Footer */}
|
|
736
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
737
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
738
|
+
<div className="!space-y-4 text-center">
|
|
739
|
+
<p className="!text-white/60">
|
|
740
|
+
HeadIcon is part of the Aural UI icon library, built with
|
|
741
|
+
accessibility and consistency in mind.
|
|
742
|
+
</p>
|
|
743
|
+
<p className="text-sm !text-white/40">
|
|
744
|
+
All icons use Radix UI's AccessibleIcon for screen reader
|
|
745
|
+
compatibility and follow WCAG guidelines.
|
|
746
|
+
</p>
|
|
747
|
+
</div>
|
|
748
|
+
</div>
|
|
749
|
+
</div>
|
|
750
|
+
</div>
|
|
751
|
+
</>
|
|
752
|
+
),
|
|
753
|
+
},
|
|
754
|
+
},
|
|
755
|
+
tags: ["autodocs"],
|
|
756
|
+
argTypes: {
|
|
757
|
+
width: {
|
|
758
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
759
|
+
description: "Width of the icon in pixels",
|
|
760
|
+
},
|
|
761
|
+
height: {
|
|
762
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
763
|
+
description: "Height of the icon in pixels",
|
|
764
|
+
},
|
|
765
|
+
stroke: {
|
|
766
|
+
control: "color",
|
|
767
|
+
description: "Stroke color of the icon",
|
|
768
|
+
},
|
|
769
|
+
strokeWidth: {
|
|
770
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
771
|
+
description: "Width of the stroke",
|
|
772
|
+
},
|
|
773
|
+
className: {
|
|
774
|
+
control: "text",
|
|
775
|
+
description: "CSS classes for styling",
|
|
776
|
+
},
|
|
777
|
+
},
|
|
778
|
+
}
|
|
779
|
+
|
|
780
|
+
export default meta
|
|
781
|
+
type Story = StoryObj<typeof HeadIcon>
|
|
782
|
+
|
|
783
|
+
// Story parameters for consistent dark theme
|
|
784
|
+
const storyParameters = {
|
|
785
|
+
backgrounds: {
|
|
786
|
+
default: "dark",
|
|
787
|
+
values: [
|
|
788
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
789
|
+
{ name: "darker", value: "#000000" },
|
|
790
|
+
],
|
|
791
|
+
},
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
export const Default: Story = {
|
|
795
|
+
args: {
|
|
796
|
+
width: 24,
|
|
797
|
+
height: 24,
|
|
798
|
+
className: "text-blue-400",
|
|
799
|
+
},
|
|
800
|
+
parameters: storyParameters,
|
|
801
|
+
render: (args) => (
|
|
802
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
803
|
+
<HeadIcon {...args} />
|
|
804
|
+
</div>
|
|
805
|
+
),
|
|
806
|
+
}
|
|
807
|
+
|
|
808
|
+
export const SizeVariations: Story = {
|
|
809
|
+
parameters: {
|
|
810
|
+
...storyParameters,
|
|
811
|
+
docs: {
|
|
812
|
+
description: {
|
|
813
|
+
story:
|
|
814
|
+
"HeadIcon in different sizes, from small UI elements to large profile displays.",
|
|
815
|
+
},
|
|
816
|
+
},
|
|
817
|
+
},
|
|
818
|
+
render: () => (
|
|
819
|
+
<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">
|
|
820
|
+
<div className="text-center">
|
|
821
|
+
<HeadIcon className="!mx-auto mb-2 h-3 w-3 text-blue-400" />
|
|
822
|
+
<span className="text-xs text-white/60">12px</span>
|
|
823
|
+
</div>
|
|
824
|
+
<div className="text-center">
|
|
825
|
+
<HeadIcon className="!mx-auto mb-2 h-4 w-4 text-blue-400" />
|
|
826
|
+
<span className="text-xs text-white/60">16px</span>
|
|
827
|
+
</div>
|
|
828
|
+
<div className="text-center">
|
|
829
|
+
<HeadIcon className="!mx-auto mb-2 h-5 w-5 text-blue-400" />
|
|
830
|
+
<span className="text-xs text-white/60">20px</span>
|
|
831
|
+
</div>
|
|
832
|
+
<div className="text-center">
|
|
833
|
+
<HeadIcon className="!mx-auto mb-2 h-6 w-6 text-blue-400" />
|
|
834
|
+
<span className="text-xs text-white/60">24px</span>
|
|
835
|
+
</div>
|
|
836
|
+
<div className="text-center">
|
|
837
|
+
<HeadIcon className="!mx-auto mb-2 h-8 w-8 text-blue-400" />
|
|
838
|
+
<span className="text-xs text-white/60">32px</span>
|
|
839
|
+
</div>
|
|
840
|
+
<div className="text-center">
|
|
841
|
+
<HeadIcon className="!mx-auto mb-2 h-12 w-12 text-blue-400" />
|
|
842
|
+
<span className="text-xs text-white/60">48px</span>
|
|
843
|
+
</div>
|
|
844
|
+
</div>
|
|
845
|
+
),
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
export const ColorVariations: Story = {
|
|
849
|
+
parameters: {
|
|
850
|
+
...storyParameters,
|
|
851
|
+
docs: {
|
|
852
|
+
description: {
|
|
853
|
+
story:
|
|
854
|
+
"HeadIcon in different colors for various user states and contexts.",
|
|
855
|
+
},
|
|
856
|
+
},
|
|
857
|
+
},
|
|
858
|
+
render: () => (
|
|
859
|
+
<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">
|
|
860
|
+
<div className="text-center">
|
|
861
|
+
<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">
|
|
862
|
+
<HeadIcon className="h-8 w-8 text-blue-400" />
|
|
863
|
+
</div>
|
|
864
|
+
<div className="text-sm font-medium text-white">Default</div>
|
|
865
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
866
|
+
</div>
|
|
867
|
+
<div className="text-center">
|
|
868
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-green-500/30 bg-green-500/20">
|
|
869
|
+
<HeadIcon className="h-8 w-8 text-green-400" />
|
|
870
|
+
</div>
|
|
871
|
+
<div className="text-sm font-medium text-white">Active</div>
|
|
872
|
+
<div className="text-xs text-green-400">text-green-400</div>
|
|
873
|
+
</div>
|
|
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-purple-500/30 bg-purple-500/20">
|
|
876
|
+
<HeadIcon className="h-8 w-8 text-purple-400" />
|
|
877
|
+
</div>
|
|
878
|
+
<div className="text-sm font-medium text-white">Premium</div>
|
|
879
|
+
<div className="text-xs text-purple-400">text-purple-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-gray-500/30 bg-gray-500/20">
|
|
883
|
+
<HeadIcon className="h-8 w-8 text-gray-400" />
|
|
884
|
+
</div>
|
|
885
|
+
<div className="text-sm font-medium text-white">Inactive</div>
|
|
886
|
+
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
887
|
+
</div>
|
|
888
|
+
</div>
|
|
889
|
+
),
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
export const UsageExamples: Story = {
|
|
893
|
+
parameters: {
|
|
894
|
+
...storyParameters,
|
|
895
|
+
docs: {
|
|
896
|
+
description: {
|
|
897
|
+
story:
|
|
898
|
+
"Real-world usage examples showing HeadIcon in different UI contexts.",
|
|
899
|
+
},
|
|
900
|
+
},
|
|
901
|
+
},
|
|
902
|
+
render: () => (
|
|
903
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
904
|
+
{/* User Profile Card */}
|
|
905
|
+
<div className="!space-y-2">
|
|
906
|
+
<h3 className="text-sm font-medium text-white">User Profile Card</h3>
|
|
907
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
908
|
+
<div className="flex items-center gap-3">
|
|
909
|
+
<div className="flex h-12 w-12 items-center justify-center rounded-full border border-blue-500/30 bg-blue-500/20">
|
|
910
|
+
<HeadIcon className="h-6 w-6 text-blue-400" />
|
|
911
|
+
</div>
|
|
912
|
+
<div>
|
|
913
|
+
<h4 className="font-medium text-white">John Doe</h4>
|
|
914
|
+
<p className="text-sm text-white/60">Software Engineer</p>
|
|
915
|
+
</div>
|
|
916
|
+
</div>
|
|
917
|
+
</div>
|
|
918
|
+
</div>
|
|
919
|
+
|
|
920
|
+
{/* Navigation Menu */}
|
|
921
|
+
<div className="!space-y-2">
|
|
922
|
+
<h3 className="text-sm font-medium text-white">Navigation Menu</h3>
|
|
923
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
924
|
+
<nav className="!space-y-2">
|
|
925
|
+
<a
|
|
926
|
+
href="#"
|
|
927
|
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/70 hover:bg-white/10 hover:text-white"
|
|
928
|
+
>
|
|
929
|
+
<HeadIcon className="h-5 w-5" />
|
|
930
|
+
<span>Profile</span>
|
|
931
|
+
</a>
|
|
932
|
+
<a
|
|
933
|
+
href="#"
|
|
934
|
+
className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/70 hover:bg-white/10 hover:text-white"
|
|
935
|
+
>
|
|
936
|
+
<span className="h-5 w-5">⚙️</span>
|
|
937
|
+
<span>Settings</span>
|
|
938
|
+
</a>
|
|
939
|
+
</nav>
|
|
940
|
+
</div>
|
|
941
|
+
</div>
|
|
942
|
+
|
|
943
|
+
{/* Account Dropdown */}
|
|
944
|
+
<div className="!space-y-2">
|
|
945
|
+
<h3 className="text-sm font-medium text-white">Account Dropdown</h3>
|
|
946
|
+
<div className="flex gap-4">
|
|
947
|
+
<button className="flex items-center gap-2 rounded-lg border border-blue-500/30 bg-blue-500/20 px-3 py-2 text-blue-200 transition-colors hover:bg-blue-500/30">
|
|
948
|
+
<HeadIcon className="h-4 w-4" />
|
|
949
|
+
<span>My Account</span>
|
|
950
|
+
<span className="text-xs">▼</span>
|
|
951
|
+
</button>
|
|
952
|
+
</div>
|
|
953
|
+
</div>
|
|
954
|
+
</div>
|
|
955
|
+
),
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
export const Playground: Story = {
|
|
959
|
+
parameters: {
|
|
960
|
+
...storyParameters,
|
|
961
|
+
docs: {
|
|
962
|
+
description: {
|
|
963
|
+
story:
|
|
964
|
+
"Interactive playground to experiment with different HeadIcon configurations.",
|
|
965
|
+
},
|
|
966
|
+
},
|
|
967
|
+
},
|
|
968
|
+
args: {
|
|
969
|
+
width: 32,
|
|
970
|
+
height: 32,
|
|
971
|
+
className: "text-blue-400",
|
|
972
|
+
strokeWidth: 1.5,
|
|
973
|
+
},
|
|
974
|
+
render: (args) => (
|
|
975
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
976
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
977
|
+
<HeadIcon {...args} />
|
|
978
|
+
</div>
|
|
979
|
+
</div>
|
|
980
|
+
),
|
|
981
|
+
}
|