aural-ui 2.0.0 → 2.0.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/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 +16 -0
- 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/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/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/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/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/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,1001 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { LayoutRightIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof LayoutRightIcon> = {
|
|
7
|
+
title: "Icons/LayoutRightIcon",
|
|
8
|
+
component: LayoutRightIcon,
|
|
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-emerald-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-emerald-500/10 via-transparent to-teal-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-emerald-500/30 bg-gradient-to-br from-emerald-500/20 to-teal-500/20">
|
|
90
|
+
<LayoutRightIcon className="h-12 w-12 text-emerald-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
+
LayoutRightIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A specialized right sidebar layout icon for representing
|
|
97
|
+
right-aligned navigation, detail panels, and secondary
|
|
98
|
+
content areas. Perfect for layout controls, responsive
|
|
99
|
+
sidebars, and content organization. Built with accessibility
|
|
100
|
+
in mind using Radix UI's AccessibleIcon 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-emerald-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-teal-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-green-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-emerald-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 { LayoutRightIcon } from "@icons/layout-right-icon"
|
|
151
|
+
|
|
152
|
+
function MyComponent() {
|
|
153
|
+
return (
|
|
154
|
+
<button className="flex items-center gap-2">
|
|
155
|
+
<span>Show Details</span>
|
|
156
|
+
<LayoutRightIcon className="h-5 w-5 text-emerald-500" />
|
|
157
|
+
</button>
|
|
158
|
+
)
|
|
159
|
+
}`}
|
|
160
|
+
</pre>
|
|
161
|
+
</div>
|
|
162
|
+
</div>
|
|
163
|
+
|
|
164
|
+
<div className="!space-y-4">
|
|
165
|
+
<h3 className="text-xl font-semibold !text-emerald-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-emerald-500/20 bg-emerald-500/10 px-4 py-2 transition-colors hover:bg-emerald-500/20">
|
|
170
|
+
<span className="text-white">Show Details</span>
|
|
171
|
+
<LayoutRightIcon className="h-5 w-5 text-emerald-400" />
|
|
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
|
+
<tr className="border-b border-white/5">
|
|
207
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
208
|
+
width
|
|
209
|
+
</td>
|
|
210
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
211
|
+
number | string
|
|
212
|
+
</td>
|
|
213
|
+
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
214
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
215
|
+
Width of the icon in pixels
|
|
216
|
+
</td>
|
|
217
|
+
</tr>
|
|
218
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
219
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
220
|
+
height
|
|
221
|
+
</td>
|
|
222
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
223
|
+
number | string
|
|
224
|
+
</td>
|
|
225
|
+
<td className="px-6 py-4 text-sm !text-white/50">16</td>
|
|
226
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
227
|
+
Height of the icon in pixels
|
|
228
|
+
</td>
|
|
229
|
+
</tr>
|
|
230
|
+
<tr className="border-b border-white/5">
|
|
231
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
232
|
+
fill
|
|
233
|
+
</td>
|
|
234
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
235
|
+
string
|
|
236
|
+
</td>
|
|
237
|
+
<td className="px-6 py-4 text-sm !text-white/50">
|
|
238
|
+
currentColor
|
|
239
|
+
</td>
|
|
240
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
241
|
+
Fill color of the icon
|
|
242
|
+
</td>
|
|
243
|
+
</tr>
|
|
244
|
+
<tr className="border-b border-white/5 !bg-black/10">
|
|
245
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
246
|
+
className
|
|
247
|
+
</td>
|
|
248
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
249
|
+
string
|
|
250
|
+
</td>
|
|
251
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
252
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
253
|
+
CSS classes for styling
|
|
254
|
+
</td>
|
|
255
|
+
</tr>
|
|
256
|
+
<tr className="!bg-black/10">
|
|
257
|
+
<td className="px-6 py-4 font-mono text-sm !text-emerald-300">
|
|
258
|
+
...svgProps
|
|
259
|
+
</td>
|
|
260
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
261
|
+
SVGProps
|
|
262
|
+
</td>
|
|
263
|
+
<td className="px-6 py-4 text-sm !text-white/50">-</td>
|
|
264
|
+
<td className="px-6 py-4 text-sm !text-white/70">
|
|
265
|
+
All standard SVG element props
|
|
266
|
+
</td>
|
|
267
|
+
</tr>
|
|
268
|
+
</tbody>
|
|
269
|
+
</table>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
|
|
273
|
+
{/* Size Variations */}
|
|
274
|
+
<div className="!space-y-8">
|
|
275
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
276
|
+
Size Variations
|
|
277
|
+
</h2>
|
|
278
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
279
|
+
<div className="!space-y-6">
|
|
280
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
281
|
+
<div className="!space-y-4">
|
|
282
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
283
|
+
Standard Sizes
|
|
284
|
+
</h3>
|
|
285
|
+
<div className="flex items-end gap-6 rounded-lg bg-black/20 p-6">
|
|
286
|
+
<div className="text-center">
|
|
287
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-3 w-3 text-emerald-400" />
|
|
288
|
+
<span className="text-xs text-white/60">12px</span>
|
|
289
|
+
</div>
|
|
290
|
+
<div className="text-center">
|
|
291
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-4 w-4 text-emerald-400" />
|
|
292
|
+
<span className="text-xs text-white/60">16px</span>
|
|
293
|
+
</div>
|
|
294
|
+
<div className="text-center">
|
|
295
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-5 w-5 text-emerald-400" />
|
|
296
|
+
<span className="text-xs text-white/60">20px</span>
|
|
297
|
+
</div>
|
|
298
|
+
<div className="text-center">
|
|
299
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-6 w-6 text-emerald-400" />
|
|
300
|
+
<span className="text-xs text-white/60">24px</span>
|
|
301
|
+
</div>
|
|
302
|
+
<div className="text-center">
|
|
303
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-8 w-8 text-emerald-400" />
|
|
304
|
+
<span className="text-xs text-white/60">32px</span>
|
|
305
|
+
</div>
|
|
306
|
+
<div className="text-center">
|
|
307
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-12 w-12 text-emerald-400" />
|
|
308
|
+
<span className="text-xs text-white/60">48px</span>
|
|
309
|
+
</div>
|
|
310
|
+
</div>
|
|
311
|
+
</div>
|
|
312
|
+
|
|
313
|
+
<div className="!space-y-4">
|
|
314
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
315
|
+
Code Example
|
|
316
|
+
</h3>
|
|
317
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
318
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
319
|
+
{`// Small (16px)
|
|
320
|
+
<LayoutRightIcon className="h-4 w-4" />
|
|
321
|
+
|
|
322
|
+
// Medium (24px)
|
|
323
|
+
<LayoutRightIcon className="h-6 w-6" />
|
|
324
|
+
|
|
325
|
+
// Large (32px)
|
|
326
|
+
<LayoutRightIcon className="h-8 w-8" />
|
|
327
|
+
|
|
328
|
+
// Custom size
|
|
329
|
+
<LayoutRightIcon width={40} height={40} />`}
|
|
330
|
+
</pre>
|
|
331
|
+
</div>
|
|
332
|
+
</div>
|
|
333
|
+
</div>
|
|
334
|
+
</div>
|
|
335
|
+
</div>
|
|
336
|
+
</div>
|
|
337
|
+
|
|
338
|
+
{/* Color Variations */}
|
|
339
|
+
<div className="!space-y-8">
|
|
340
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
341
|
+
Color Variations
|
|
342
|
+
</h2>
|
|
343
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
344
|
+
<div className="!space-y-4">
|
|
345
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
346
|
+
Layout Theme Colors
|
|
347
|
+
</h3>
|
|
348
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
349
|
+
<div className="flex items-center gap-4">
|
|
350
|
+
<LayoutRightIcon className="h-6 w-6 text-emerald-400" />
|
|
351
|
+
<div>
|
|
352
|
+
<div className="text-sm font-medium text-white">
|
|
353
|
+
Primary
|
|
354
|
+
</div>
|
|
355
|
+
<div className="text-xs text-white/60">
|
|
356
|
+
text-emerald-400
|
|
357
|
+
</div>
|
|
358
|
+
</div>
|
|
359
|
+
</div>
|
|
360
|
+
<div className="flex items-center gap-4">
|
|
361
|
+
<LayoutRightIcon className="h-6 w-6 text-teal-400" />
|
|
362
|
+
<div>
|
|
363
|
+
<div className="text-sm font-medium text-white">
|
|
364
|
+
Secondary
|
|
365
|
+
</div>
|
|
366
|
+
<div className="text-xs text-white/60">
|
|
367
|
+
text-teal-400
|
|
368
|
+
</div>
|
|
369
|
+
</div>
|
|
370
|
+
</div>
|
|
371
|
+
<div className="flex items-center gap-4">
|
|
372
|
+
<LayoutRightIcon className="h-6 w-6 text-green-400" />
|
|
373
|
+
<div>
|
|
374
|
+
<div className="text-sm font-medium text-white">
|
|
375
|
+
Accent
|
|
376
|
+
</div>
|
|
377
|
+
<div className="text-xs text-white/60">
|
|
378
|
+
text-green-400
|
|
379
|
+
</div>
|
|
380
|
+
</div>
|
|
381
|
+
</div>
|
|
382
|
+
<div className="flex items-center gap-4">
|
|
383
|
+
<LayoutRightIcon className="h-6 w-6 text-gray-400" />
|
|
384
|
+
<div>
|
|
385
|
+
<div className="text-sm font-medium text-white">
|
|
386
|
+
Muted
|
|
387
|
+
</div>
|
|
388
|
+
<div className="text-xs text-white/60">
|
|
389
|
+
text-gray-400
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
|
|
396
|
+
<div className="!space-y-4">
|
|
397
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
398
|
+
Custom Colors
|
|
399
|
+
</h3>
|
|
400
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
401
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
402
|
+
{`// Using Tailwind classes
|
|
403
|
+
<LayoutRightIcon className="h-6 w-6 text-emerald-400" />
|
|
404
|
+
<LayoutRightIcon className="h-6 w-6 text-teal-500" />
|
|
405
|
+
|
|
406
|
+
// Using CSS custom properties
|
|
407
|
+
<LayoutRightIcon
|
|
408
|
+
className="h-6 w-6"
|
|
409
|
+
style={{ color: 'var(--color-primary)' }}
|
|
410
|
+
/>
|
|
411
|
+
|
|
412
|
+
// Direct fill prop
|
|
413
|
+
<LayoutRightIcon
|
|
414
|
+
width={24}
|
|
415
|
+
height={24}
|
|
416
|
+
fill="#10b981"
|
|
417
|
+
/>`}
|
|
418
|
+
</pre>
|
|
419
|
+
</div>
|
|
420
|
+
</div>
|
|
421
|
+
</div>
|
|
422
|
+
</div>
|
|
423
|
+
|
|
424
|
+
{/* Usage Examples */}
|
|
425
|
+
<div className="!space-y-8">
|
|
426
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
427
|
+
Usage Examples
|
|
428
|
+
</h2>
|
|
429
|
+
|
|
430
|
+
<div className="grid grid-cols-1 gap-8 lg:grid-cols-2">
|
|
431
|
+
{/* Detail Panel Toggle */}
|
|
432
|
+
<div className="!space-y-4">
|
|
433
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
434
|
+
Detail Panel Toggle
|
|
435
|
+
</h3>
|
|
436
|
+
<div className="!space-y-4">
|
|
437
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
438
|
+
<div className="flex items-center justify-between">
|
|
439
|
+
<h4 className="font-medium !text-white">
|
|
440
|
+
Document View
|
|
441
|
+
</h4>
|
|
442
|
+
<button className="flex items-center gap-2 rounded border border-emerald-500/30 bg-emerald-500/20 px-3 py-1.5 text-emerald-200 transition-colors hover:bg-emerald-500/30">
|
|
443
|
+
<span className="text-sm">Show Properties</span>
|
|
444
|
+
<LayoutRightIcon className="h-4 w-4" />
|
|
445
|
+
</button>
|
|
446
|
+
</div>
|
|
447
|
+
</div>
|
|
448
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
449
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
450
|
+
{`// Detail panel toggle button
|
|
451
|
+
<button className="flex items-center gap-2 bg-emerald-500/20 border border-emerald-500/30 px-3 py-1.5 rounded text-emerald-200">
|
|
452
|
+
<span className="text-sm">Show Properties</span>
|
|
453
|
+
<LayoutRightIcon className="h-4 w-4" />
|
|
454
|
+
</button>`}
|
|
455
|
+
</pre>
|
|
456
|
+
</div>
|
|
457
|
+
</div>
|
|
458
|
+
</div>
|
|
459
|
+
|
|
460
|
+
{/* Navigation Menu */}
|
|
461
|
+
<div className="!space-y-4">
|
|
462
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
463
|
+
Navigation Menu
|
|
464
|
+
</h3>
|
|
465
|
+
<div className="!space-y-4">
|
|
466
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
467
|
+
<div className="!space-y-2">
|
|
468
|
+
<div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
|
|
469
|
+
<div className="h-5 w-5 rounded bg-gray-600"></div>
|
|
470
|
+
<span className="text-sm">Main Content</span>
|
|
471
|
+
</div>
|
|
472
|
+
<div className="flex items-center gap-3 rounded-lg bg-emerald-500/20 px-3 py-2 text-emerald-200">
|
|
473
|
+
<span className="text-sm font-medium">
|
|
474
|
+
Right Panel
|
|
475
|
+
</span>
|
|
476
|
+
<LayoutRightIcon className="h-5 w-5" />
|
|
477
|
+
</div>
|
|
478
|
+
</div>
|
|
479
|
+
</div>
|
|
480
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
481
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
482
|
+
{`// Active navigation item
|
|
483
|
+
<div className="flex items-center gap-3 bg-emerald-500/20 px-3 py-2 rounded-lg text-emerald-200">
|
|
484
|
+
<span className="text-sm font-medium">Right Panel</span>
|
|
485
|
+
<LayoutRightIcon className="h-5 w-5" />
|
|
486
|
+
</div>`}
|
|
487
|
+
</pre>
|
|
488
|
+
</div>
|
|
489
|
+
</div>
|
|
490
|
+
</div>
|
|
491
|
+
|
|
492
|
+
{/* Layout Picker */}
|
|
493
|
+
<div className="!space-y-4">
|
|
494
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
495
|
+
Layout Selection Tool
|
|
496
|
+
</h3>
|
|
497
|
+
<div className="!space-y-4">
|
|
498
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
499
|
+
<div className="!space-y-3">
|
|
500
|
+
<h4 className="text-sm font-medium !text-white">
|
|
501
|
+
Choose Layout
|
|
502
|
+
</h4>
|
|
503
|
+
<div className="grid grid-cols-3 gap-2">
|
|
504
|
+
<button className="flex flex-col items-center gap-2 rounded-lg border border-white/20 bg-white/5 p-3 text-white/60 hover:bg-white/10">
|
|
505
|
+
<div className="flex h-6 w-6 gap-1">
|
|
506
|
+
<div className="w-2 rounded bg-current"></div>
|
|
507
|
+
<div className="flex-1 rounded bg-current"></div>
|
|
508
|
+
</div>
|
|
509
|
+
<span className="text-xs">Left Sidebar</span>
|
|
510
|
+
</button>
|
|
511
|
+
<button className="flex flex-col items-center gap-2 rounded-lg border border-white/20 bg-white/5 p-3 text-white/60 hover:bg-white/10">
|
|
512
|
+
<div className="grid h-6 w-6 grid-cols-2 gap-1">
|
|
513
|
+
<div className="rounded bg-current"></div>
|
|
514
|
+
<div className="rounded bg-current"></div>
|
|
515
|
+
</div>
|
|
516
|
+
<span className="text-xs">Split View</span>
|
|
517
|
+
</button>
|
|
518
|
+
<button className="flex flex-col items-center gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/20 p-3 text-emerald-200">
|
|
519
|
+
<LayoutRightIcon className="h-6 w-6" />
|
|
520
|
+
<span className="text-xs">Right Sidebar</span>
|
|
521
|
+
</button>
|
|
522
|
+
</div>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
526
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
527
|
+
{`// Layout selection grid
|
|
528
|
+
<div className="grid grid-cols-3 gap-2">
|
|
529
|
+
<button className="flex flex-col items-center gap-2 bg-emerald-500/20 border border-emerald-500/30 p-3 rounded-lg text-emerald-200">
|
|
530
|
+
<LayoutRightIcon className="h-6 w-6" />
|
|
531
|
+
<span className="text-xs">Right Sidebar</span>
|
|
532
|
+
</button>
|
|
533
|
+
{/* Other layout options */}
|
|
534
|
+
</div>`}
|
|
535
|
+
</pre>
|
|
536
|
+
</div>
|
|
537
|
+
</div>
|
|
538
|
+
</div>
|
|
539
|
+
|
|
540
|
+
{/* Master-Detail Interface */}
|
|
541
|
+
<div className="!space-y-4">
|
|
542
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
543
|
+
Master-Detail Interface
|
|
544
|
+
</h3>
|
|
545
|
+
<div className="!space-y-4">
|
|
546
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
547
|
+
<div className="flex items-center justify-between">
|
|
548
|
+
<div className="flex items-center gap-2">
|
|
549
|
+
<span className="text-sm text-white">
|
|
550
|
+
Email List
|
|
551
|
+
</span>
|
|
552
|
+
<div className="h-2 w-2 rounded-full bg-blue-400"></div>
|
|
553
|
+
</div>
|
|
554
|
+
<div className="flex items-center gap-1">
|
|
555
|
+
<button className="rounded p-2 text-white/60 hover:bg-white/10">
|
|
556
|
+
<div className="h-4 w-4 rounded border border-current"></div>
|
|
557
|
+
</button>
|
|
558
|
+
<button className="rounded bg-emerald-500/20 p-2 text-emerald-400">
|
|
559
|
+
<LayoutRightIcon className="h-4 w-4" />
|
|
560
|
+
</button>
|
|
561
|
+
</div>
|
|
562
|
+
</div>
|
|
563
|
+
</div>
|
|
564
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
565
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
566
|
+
{`// Master-detail layout controls
|
|
567
|
+
<div className="flex items-center gap-1">
|
|
568
|
+
<button className="p-2 rounded text-white/60 hover:bg-white/10">
|
|
569
|
+
<FullWidthIcon className="h-4 w-4" />
|
|
570
|
+
</button>
|
|
571
|
+
<button className="p-2 rounded bg-emerald-500/20 text-emerald-400">
|
|
572
|
+
<LayoutRightIcon className="h-4 w-4" />
|
|
573
|
+
</button>
|
|
574
|
+
</div>`}
|
|
575
|
+
</pre>
|
|
576
|
+
</div>
|
|
577
|
+
</div>
|
|
578
|
+
</div>
|
|
579
|
+
</div>
|
|
580
|
+
</div>
|
|
581
|
+
|
|
582
|
+
{/* Accessibility */}
|
|
583
|
+
<div className="!space-y-8">
|
|
584
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
585
|
+
Accessibility Features
|
|
586
|
+
</h2>
|
|
587
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
588
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
589
|
+
<h3 className="text-lg font-semibold !text-green-300">
|
|
590
|
+
✅ Built-in Features
|
|
591
|
+
</h3>
|
|
592
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
593
|
+
<li className="!text-white/70">
|
|
594
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
595
|
+
</li>
|
|
596
|
+
<li className="!text-white/70">
|
|
597
|
+
Provides screen reader label "Layout Right Icon"
|
|
598
|
+
</li>
|
|
599
|
+
<li className="!text-white/70">
|
|
600
|
+
Supports keyboard navigation when interactive
|
|
601
|
+
</li>
|
|
602
|
+
<li className="!text-white/70">
|
|
603
|
+
Maintains proper color contrast ratios
|
|
604
|
+
</li>
|
|
605
|
+
<li className="!text-white/70">
|
|
606
|
+
Scales with user's font size preferences
|
|
607
|
+
</li>
|
|
608
|
+
</ul>
|
|
609
|
+
</div>
|
|
610
|
+
|
|
611
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
612
|
+
<h3 className="text-lg font-semibold !text-emerald-300">
|
|
613
|
+
💡 Best Practices
|
|
614
|
+
</h3>
|
|
615
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
616
|
+
<li className="!text-white/70">
|
|
617
|
+
Always pair with descriptive text or tooltips
|
|
618
|
+
</li>
|
|
619
|
+
<li className="!text-white/70">
|
|
620
|
+
Use consistent colors for layout controls
|
|
621
|
+
</li>
|
|
622
|
+
<li className="!text-white/70">
|
|
623
|
+
Ensure sufficient color contrast
|
|
624
|
+
</li>
|
|
625
|
+
<li className="!text-white/70">
|
|
626
|
+
Add focus states for interactive elements
|
|
627
|
+
</li>
|
|
628
|
+
<li className="!text-white/70">
|
|
629
|
+
Provide keyboard shortcuts for layout switching
|
|
630
|
+
</li>
|
|
631
|
+
</ul>
|
|
632
|
+
</div>
|
|
633
|
+
</div>
|
|
634
|
+
|
|
635
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
636
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
637
|
+
Custom Accessibility Label
|
|
638
|
+
</h3>
|
|
639
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
640
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
641
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
642
|
+
{`// Custom implementation with specific label
|
|
643
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
644
|
+
|
|
645
|
+
function CustomLayoutRightIcon({ label = "Toggle right sidebar", ...props }) {
|
|
646
|
+
return (
|
|
647
|
+
<AccessibleIcon label={label}>
|
|
648
|
+
<LayoutRightIcon {...props} />
|
|
649
|
+
</AccessibleIcon>
|
|
650
|
+
)
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
// Usage with specific context
|
|
654
|
+
<CustomLayoutRightIcon
|
|
655
|
+
label="Show document properties"
|
|
656
|
+
className="h-4 w-4 text-emerald-400"
|
|
657
|
+
/>`}
|
|
658
|
+
</pre>
|
|
659
|
+
</div>
|
|
660
|
+
<div className="!space-y-4">
|
|
661
|
+
<p className="text-sm !text-white/70">
|
|
662
|
+
For specific contexts, you can wrap the LayoutRightIcon
|
|
663
|
+
with a custom AccessibleIcon component that provides
|
|
664
|
+
more descriptive labels for different right panel
|
|
665
|
+
actions.
|
|
666
|
+
</p>
|
|
667
|
+
<div className="rounded-lg border border-emerald-500/20 bg-emerald-500/10 p-4">
|
|
668
|
+
<div className="flex items-center gap-2 text-sm text-emerald-200">
|
|
669
|
+
<LayoutRightIcon className="h-4 w-4" />
|
|
670
|
+
<span>
|
|
671
|
+
This approach gives screen readers more context
|
|
672
|
+
about right panel functionality
|
|
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-cyan-500/20">
|
|
689
|
+
<div className="flex h-6 w-6 gap-1">
|
|
690
|
+
<div className="w-2 rounded bg-cyan-400"></div>
|
|
691
|
+
<div className="flex-1 rounded bg-cyan-400"></div>
|
|
692
|
+
</div>
|
|
693
|
+
</div>
|
|
694
|
+
<div>
|
|
695
|
+
<div className="font-medium text-white">
|
|
696
|
+
LayoutLeftIcon
|
|
697
|
+
</div>
|
|
698
|
+
<div className="text-xs text-white/60">Left sidebar</div>
|
|
699
|
+
</div>
|
|
700
|
+
</div>
|
|
701
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
702
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
703
|
+
<div className="flex h-6 w-6 gap-1">
|
|
704
|
+
<div className="flex-1 rounded bg-blue-400"></div>
|
|
705
|
+
<div className="flex-1 rounded bg-blue-400"></div>
|
|
706
|
+
</div>
|
|
707
|
+
</div>
|
|
708
|
+
<div>
|
|
709
|
+
<div className="font-medium text-white">
|
|
710
|
+
LayoutColumnIcon
|
|
711
|
+
</div>
|
|
712
|
+
<div className="text-xs text-white/60">Two columns</div>
|
|
713
|
+
</div>
|
|
714
|
+
</div>
|
|
715
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
716
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-orange-500/20">
|
|
717
|
+
<div className="grid h-6 w-6 grid-cols-3 gap-1">
|
|
718
|
+
<div className="rounded bg-orange-400"></div>
|
|
719
|
+
<div className="rounded bg-orange-400"></div>
|
|
720
|
+
<div className="rounded bg-orange-400"></div>
|
|
721
|
+
<div className="rounded bg-orange-400"></div>
|
|
722
|
+
<div className="rounded bg-orange-400"></div>
|
|
723
|
+
<div className="rounded bg-orange-400"></div>
|
|
724
|
+
</div>
|
|
725
|
+
</div>
|
|
726
|
+
<div>
|
|
727
|
+
<div className="font-medium text-white">GridIcon</div>
|
|
728
|
+
<div className="text-xs text-white/60">Grid layouts</div>
|
|
729
|
+
</div>
|
|
730
|
+
</div>
|
|
731
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
732
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
733
|
+
<div className="h-6 w-6 rounded border-2 border-purple-400"></div>
|
|
734
|
+
</div>
|
|
735
|
+
<div>
|
|
736
|
+
<div className="font-medium text-white">
|
|
737
|
+
FullWidthIcon
|
|
738
|
+
</div>
|
|
739
|
+
<div className="text-xs text-white/60">Full width</div>
|
|
740
|
+
</div>
|
|
741
|
+
</div>
|
|
742
|
+
</div>
|
|
743
|
+
</div>
|
|
744
|
+
</div>
|
|
745
|
+
|
|
746
|
+
{/* Footer */}
|
|
747
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
748
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
749
|
+
<div className="!space-y-4 text-center">
|
|
750
|
+
<p className="!text-white/60">
|
|
751
|
+
LayoutRightIcon is part of the Aural UI icon library,
|
|
752
|
+
designed specifically for right sidebar layouts and detail
|
|
753
|
+
panels with accessibility in mind.
|
|
754
|
+
</p>
|
|
755
|
+
<p className="text-sm !text-white/40">
|
|
756
|
+
Perfect for master-detail interfaces, property panels, and
|
|
757
|
+
applications that require flexible right-side content areas.
|
|
758
|
+
Follows WCAG guidelines for accessibility.
|
|
759
|
+
</p>
|
|
760
|
+
</div>
|
|
761
|
+
</div>
|
|
762
|
+
</div>
|
|
763
|
+
</div>
|
|
764
|
+
</>
|
|
765
|
+
),
|
|
766
|
+
},
|
|
767
|
+
},
|
|
768
|
+
tags: ["autodocs"],
|
|
769
|
+
argTypes: {
|
|
770
|
+
width: {
|
|
771
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
772
|
+
description: "Width of the icon in pixels",
|
|
773
|
+
},
|
|
774
|
+
height: {
|
|
775
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
776
|
+
description: "Height of the icon in pixels",
|
|
777
|
+
},
|
|
778
|
+
fill: {
|
|
779
|
+
control: "color",
|
|
780
|
+
description: "Fill color of the icon",
|
|
781
|
+
},
|
|
782
|
+
className: {
|
|
783
|
+
control: "text",
|
|
784
|
+
description: "CSS classes for styling",
|
|
785
|
+
},
|
|
786
|
+
},
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export default meta
|
|
790
|
+
type Story = StoryObj<typeof LayoutRightIcon>
|
|
791
|
+
|
|
792
|
+
// Story parameters for consistent dark theme
|
|
793
|
+
const storyParameters = {
|
|
794
|
+
backgrounds: {
|
|
795
|
+
default: "dark",
|
|
796
|
+
values: [
|
|
797
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
798
|
+
{ name: "darker", value: "#000000" },
|
|
799
|
+
],
|
|
800
|
+
},
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export const Default: Story = {
|
|
804
|
+
args: {
|
|
805
|
+
width: 24,
|
|
806
|
+
height: 24,
|
|
807
|
+
className: "text-emerald-400",
|
|
808
|
+
},
|
|
809
|
+
parameters: storyParameters,
|
|
810
|
+
render: (args) => (
|
|
811
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
812
|
+
<LayoutRightIcon {...args} />
|
|
813
|
+
</div>
|
|
814
|
+
),
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
export const SizeVariations: Story = {
|
|
818
|
+
parameters: {
|
|
819
|
+
...storyParameters,
|
|
820
|
+
docs: {
|
|
821
|
+
description: {
|
|
822
|
+
story:
|
|
823
|
+
"LayoutRightIcon in different sizes, from small toolbar buttons to large layout controls.",
|
|
824
|
+
},
|
|
825
|
+
},
|
|
826
|
+
},
|
|
827
|
+
render: () => (
|
|
828
|
+
<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">
|
|
829
|
+
<div className="text-center">
|
|
830
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-3 w-3 text-emerald-400" />
|
|
831
|
+
<span className="text-xs text-white/60">12px</span>
|
|
832
|
+
</div>
|
|
833
|
+
<div className="text-center">
|
|
834
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-4 w-4 text-emerald-400" />
|
|
835
|
+
<span className="text-xs text-white/60">16px</span>
|
|
836
|
+
</div>
|
|
837
|
+
<div className="text-center">
|
|
838
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-5 w-5 text-emerald-400" />
|
|
839
|
+
<span className="text-xs text-white/60">20px</span>
|
|
840
|
+
</div>
|
|
841
|
+
<div className="text-center">
|
|
842
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-6 w-6 text-emerald-400" />
|
|
843
|
+
<span className="text-xs text-white/60">24px</span>
|
|
844
|
+
</div>
|
|
845
|
+
<div className="text-center">
|
|
846
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-8 w-8 text-emerald-400" />
|
|
847
|
+
<span className="text-xs text-white/60">32px</span>
|
|
848
|
+
</div>
|
|
849
|
+
<div className="text-center">
|
|
850
|
+
<LayoutRightIcon className="!mx-auto mb-2 h-12 w-12 text-emerald-400" />
|
|
851
|
+
<span className="text-xs text-white/60">48px</span>
|
|
852
|
+
</div>
|
|
853
|
+
</div>
|
|
854
|
+
),
|
|
855
|
+
}
|
|
856
|
+
|
|
857
|
+
export const ColorVariations: Story = {
|
|
858
|
+
parameters: {
|
|
859
|
+
...storyParameters,
|
|
860
|
+
docs: {
|
|
861
|
+
description: {
|
|
862
|
+
story:
|
|
863
|
+
"LayoutRightIcon in different theme colors for various right panel contexts.",
|
|
864
|
+
},
|
|
865
|
+
},
|
|
866
|
+
},
|
|
867
|
+
render: () => (
|
|
868
|
+
<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">
|
|
869
|
+
<div className="text-center">
|
|
870
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-emerald-500/30 bg-emerald-500/20">
|
|
871
|
+
<LayoutRightIcon className="h-8 w-8 text-emerald-400" />
|
|
872
|
+
</div>
|
|
873
|
+
<div className="text-sm font-medium text-white">Primary</div>
|
|
874
|
+
<div className="text-xs text-emerald-400">text-emerald-400</div>
|
|
875
|
+
</div>
|
|
876
|
+
<div className="text-center">
|
|
877
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-teal-500/30 bg-teal-500/20">
|
|
878
|
+
<LayoutRightIcon className="h-8 w-8 text-teal-400" />
|
|
879
|
+
</div>
|
|
880
|
+
<div className="text-sm font-medium text-white">Secondary</div>
|
|
881
|
+
<div className="text-xs text-teal-400">text-teal-400</div>
|
|
882
|
+
</div>
|
|
883
|
+
<div className="text-center">
|
|
884
|
+
<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">
|
|
885
|
+
<LayoutRightIcon className="h-8 w-8 text-green-400" />
|
|
886
|
+
</div>
|
|
887
|
+
<div className="text-sm font-medium text-white">Accent</div>
|
|
888
|
+
<div className="text-xs text-green-400">text-green-400</div>
|
|
889
|
+
</div>
|
|
890
|
+
<div className="text-center">
|
|
891
|
+
<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">
|
|
892
|
+
<LayoutRightIcon className="h-8 w-8 text-gray-400" />
|
|
893
|
+
</div>
|
|
894
|
+
<div className="text-sm font-medium text-white">Muted</div>
|
|
895
|
+
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
896
|
+
</div>
|
|
897
|
+
</div>
|
|
898
|
+
),
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
export const UsageExamples: Story = {
|
|
902
|
+
parameters: {
|
|
903
|
+
...storyParameters,
|
|
904
|
+
docs: {
|
|
905
|
+
description: {
|
|
906
|
+
story:
|
|
907
|
+
"Real-world usage examples showing LayoutRightIcon in different right panel and detail view contexts.",
|
|
908
|
+
},
|
|
909
|
+
},
|
|
910
|
+
},
|
|
911
|
+
render: () => (
|
|
912
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
913
|
+
{/* Detail Panel Toggle */}
|
|
914
|
+
<div className="!space-y-2">
|
|
915
|
+
<h3 className="text-sm font-medium text-white">Detail Panel Toggle</h3>
|
|
916
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
917
|
+
<div className="flex items-center justify-between">
|
|
918
|
+
<h4 className="font-medium text-white">Document View</h4>
|
|
919
|
+
<button className="flex items-center gap-2 rounded border border-emerald-500/30 bg-emerald-500/20 px-3 py-1.5 text-emerald-200 transition-colors hover:bg-emerald-500/30">
|
|
920
|
+
<span className="text-sm">Show Properties</span>
|
|
921
|
+
<LayoutRightIcon className="h-4 w-4" />
|
|
922
|
+
</button>
|
|
923
|
+
</div>
|
|
924
|
+
</div>
|
|
925
|
+
</div>
|
|
926
|
+
|
|
927
|
+
{/* Navigation Menu */}
|
|
928
|
+
<div className="!space-y-2">
|
|
929
|
+
<h3 className="text-sm font-medium text-white">Navigation Menu</h3>
|
|
930
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
931
|
+
<div className="!space-y-2">
|
|
932
|
+
<div className="flex items-center gap-3 rounded-lg px-3 py-2 text-white/60 hover:bg-white/5">
|
|
933
|
+
<div className="h-5 w-5 rounded bg-gray-600"></div>
|
|
934
|
+
<span className="text-sm">Main Content</span>
|
|
935
|
+
</div>
|
|
936
|
+
<div className="flex items-center gap-3 rounded-lg bg-emerald-500/20 px-3 py-2 text-emerald-200">
|
|
937
|
+
<span className="text-sm font-medium">Right Panel</span>
|
|
938
|
+
<LayoutRightIcon className="h-5 w-5" />
|
|
939
|
+
</div>
|
|
940
|
+
</div>
|
|
941
|
+
</div>
|
|
942
|
+
</div>
|
|
943
|
+
|
|
944
|
+
{/* Layout Picker */}
|
|
945
|
+
<div className="!space-y-2">
|
|
946
|
+
<h3 className="text-sm font-medium text-white">
|
|
947
|
+
Layout Selection Tool
|
|
948
|
+
</h3>
|
|
949
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
950
|
+
<div className="!space-y-3">
|
|
951
|
+
<h4 className="text-sm font-medium text-white">Choose Layout</h4>
|
|
952
|
+
<div className="grid grid-cols-3 gap-2">
|
|
953
|
+
<button className="flex flex-col items-center gap-2 rounded-lg border border-white/20 bg-white/5 p-3 text-white/60 hover:bg-white/10">
|
|
954
|
+
<div className="flex h-6 w-6 gap-1">
|
|
955
|
+
<div className="w-2 rounded bg-current"></div>
|
|
956
|
+
<div className="flex-1 rounded bg-current"></div>
|
|
957
|
+
</div>
|
|
958
|
+
<span className="text-xs">Left Sidebar</span>
|
|
959
|
+
</button>
|
|
960
|
+
<button className="flex flex-col items-center gap-2 rounded-lg border border-white/20 bg-white/5 p-3 text-white/60 hover:bg-white/10">
|
|
961
|
+
<div className="grid h-6 w-6 grid-cols-2 gap-1">
|
|
962
|
+
<div className="rounded bg-current"></div>
|
|
963
|
+
<div className="rounded bg-current"></div>
|
|
964
|
+
</div>
|
|
965
|
+
<span className="text-xs">Split View</span>
|
|
966
|
+
</button>
|
|
967
|
+
<button className="flex flex-col items-center gap-2 rounded-lg border border-emerald-500/30 bg-emerald-500/20 p-3 text-emerald-200">
|
|
968
|
+
<LayoutRightIcon className="h-6 w-6" />
|
|
969
|
+
<span className="text-xs">Right Sidebar</span>
|
|
970
|
+
</button>
|
|
971
|
+
</div>
|
|
972
|
+
</div>
|
|
973
|
+
</div>
|
|
974
|
+
</div>
|
|
975
|
+
</div>
|
|
976
|
+
),
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
export const Playground: Story = {
|
|
980
|
+
parameters: {
|
|
981
|
+
...storyParameters,
|
|
982
|
+
docs: {
|
|
983
|
+
description: {
|
|
984
|
+
story:
|
|
985
|
+
"Interactive playground to experiment with different LayoutRightIcon configurations.",
|
|
986
|
+
},
|
|
987
|
+
},
|
|
988
|
+
},
|
|
989
|
+
args: {
|
|
990
|
+
width: 32,
|
|
991
|
+
height: 32,
|
|
992
|
+
className: "text-emerald-400",
|
|
993
|
+
},
|
|
994
|
+
render: (args) => (
|
|
995
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
996
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
997
|
+
<LayoutRightIcon {...args} />
|
|
998
|
+
</div>
|
|
999
|
+
</div>
|
|
1000
|
+
),
|
|
1001
|
+
}
|