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,1039 @@
|
|
|
1
|
+
import React from "react"
|
|
2
|
+
import type { Meta, StoryObj } from "@storybook/react"
|
|
3
|
+
|
|
4
|
+
import { TextIndicatorIcon } from "."
|
|
5
|
+
|
|
6
|
+
const meta: Meta<typeof TextIndicatorIcon> = {
|
|
7
|
+
title: "Icons/TextIndicatorIcon",
|
|
8
|
+
component: TextIndicatorIcon,
|
|
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-slate-500/10 via-transparent to-gray-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-slate-500/30 bg-gradient-to-br from-slate-500/20 to-gray-600/20">
|
|
90
|
+
<TextIndicatorIcon className="h-12 w-12 text-slate-400" />
|
|
91
|
+
</div>
|
|
92
|
+
<h1 className="!text-fm-primary text-5xl font-bold">
|
|
93
|
+
TextIndicatorIcon
|
|
94
|
+
</h1>
|
|
95
|
+
<p className="!mx-auto max-w-3xl text-xl leading-relaxed !text-white/70">
|
|
96
|
+
A typography-focused icon representing text elements,
|
|
97
|
+
formatting indicators, and content markers. Perfect for text
|
|
98
|
+
editors, CMS interfaces, and document management systems
|
|
99
|
+
with clear visual hierarchy.
|
|
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-slate-300">
|
|
106
|
+
Typography
|
|
107
|
+
</div>
|
|
108
|
+
<div className="text-sm text-white/60">
|
|
109
|
+
Text-focused design
|
|
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-gray-300">
|
|
115
|
+
Accessible
|
|
116
|
+
</div>
|
|
117
|
+
<div className="text-sm text-white/60">
|
|
118
|
+
Screen reader ready
|
|
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-zinc-300">
|
|
124
|
+
Versatile
|
|
125
|
+
</div>
|
|
126
|
+
<div className="text-sm text-white/60">
|
|
127
|
+
Multiple contexts
|
|
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-slate-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 { TextIndicatorIcon } from "@icons/text-indicator-icon"
|
|
150
|
+
|
|
151
|
+
function MyEditor() {
|
|
152
|
+
return (
|
|
153
|
+
<div className="flex items-center gap-2">
|
|
154
|
+
<TextIndicatorIcon className="h-5 w-5 text-slate-500" />
|
|
155
|
+
<span>Text Content</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-slate-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-slate-500/20 bg-slate-500/10 px-4 py-2">
|
|
169
|
+
<TextIndicatorIcon className="h-5 w-5 text-slate-400" />
|
|
170
|
+
<span className="text-white">Text Content</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-slate-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">18</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-slate-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">18</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-slate-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-slate-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
|
+
Stroke width of the icon
|
|
255
|
+
</td>
|
|
256
|
+
</tr>
|
|
257
|
+
<tr className="border-b border-white/5">
|
|
258
|
+
<td className="px-6 py-4 font-mono text-sm !text-slate-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-slate-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-slate-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
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-3 w-3 text-slate-400" />
|
|
301
|
+
<span className="text-xs text-white/60">12px</span>
|
|
302
|
+
</div>
|
|
303
|
+
<div className="text-center">
|
|
304
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-4 w-4 text-slate-400" />
|
|
305
|
+
<span className="text-xs text-white/60">16px</span>
|
|
306
|
+
</div>
|
|
307
|
+
<div className="text-center">
|
|
308
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-5 w-5 text-slate-400" />
|
|
309
|
+
<span className="text-xs text-white/60">20px</span>
|
|
310
|
+
</div>
|
|
311
|
+
<div className="text-center">
|
|
312
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-6 w-6 text-slate-400" />
|
|
313
|
+
<span className="text-xs text-white/60">24px</span>
|
|
314
|
+
</div>
|
|
315
|
+
<div className="text-center">
|
|
316
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-8 w-8 text-slate-400" />
|
|
317
|
+
<span className="text-xs text-white/60">32px</span>
|
|
318
|
+
</div>
|
|
319
|
+
<div className="text-center">
|
|
320
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-12 w-12 text-slate-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-slate-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
|
+
<TextIndicatorIcon className="h-4 w-4" />
|
|
334
|
+
|
|
335
|
+
// Medium (24px)
|
|
336
|
+
<TextIndicatorIcon className="h-6 w-6" />
|
|
337
|
+
|
|
338
|
+
// Large (32px)
|
|
339
|
+
<TextIndicatorIcon className="h-8 w-8" />
|
|
340
|
+
|
|
341
|
+
// Custom size
|
|
342
|
+
<TextIndicatorIcon 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-slate-300">
|
|
359
|
+
Typography Colors
|
|
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
|
+
<TextIndicatorIcon className="h-6 w-6 text-slate-400" />
|
|
364
|
+
<div>
|
|
365
|
+
<div className="text-sm font-medium text-white">
|
|
366
|
+
Primary Text
|
|
367
|
+
</div>
|
|
368
|
+
<div className="text-xs text-white/60">
|
|
369
|
+
text-slate-400
|
|
370
|
+
</div>
|
|
371
|
+
</div>
|
|
372
|
+
</div>
|
|
373
|
+
<div className="flex items-center gap-4">
|
|
374
|
+
<TextIndicatorIcon className="h-6 w-6 text-gray-400" />
|
|
375
|
+
<div>
|
|
376
|
+
<div className="text-sm font-medium text-white">
|
|
377
|
+
Secondary Text
|
|
378
|
+
</div>
|
|
379
|
+
<div className="text-xs text-white/60">
|
|
380
|
+
text-gray-400
|
|
381
|
+
</div>
|
|
382
|
+
</div>
|
|
383
|
+
</div>
|
|
384
|
+
<div className="flex items-center gap-4">
|
|
385
|
+
<TextIndicatorIcon className="h-6 w-6 text-zinc-400" />
|
|
386
|
+
<div>
|
|
387
|
+
<div className="text-sm font-medium text-white">
|
|
388
|
+
Neutral
|
|
389
|
+
</div>
|
|
390
|
+
<div className="text-xs text-white/60">
|
|
391
|
+
text-zinc-400
|
|
392
|
+
</div>
|
|
393
|
+
</div>
|
|
394
|
+
</div>
|
|
395
|
+
<div className="flex items-center gap-4">
|
|
396
|
+
<TextIndicatorIcon className="h-6 w-6 text-blue-400" />
|
|
397
|
+
<div>
|
|
398
|
+
<div className="text-sm font-medium text-white">
|
|
399
|
+
Interactive
|
|
400
|
+
</div>
|
|
401
|
+
<div className="text-xs text-white/60">
|
|
402
|
+
text-blue-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-slate-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
|
+
<TextIndicatorIcon className="h-6 w-6 text-slate-400" />
|
|
417
|
+
<TextIndicatorIcon className="h-6 w-6 text-gray-500" />
|
|
418
|
+
|
|
419
|
+
// Using CSS custom properties
|
|
420
|
+
<TextIndicatorIcon
|
|
421
|
+
className="h-6 w-6"
|
|
422
|
+
style={{ color: 'var(--color-text)' }}
|
|
423
|
+
/>
|
|
424
|
+
|
|
425
|
+
// Direct stroke prop
|
|
426
|
+
<TextIndicatorIcon
|
|
427
|
+
width={24}
|
|
428
|
+
height={24}
|
|
429
|
+
stroke="#64748b"
|
|
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
|
+
{/* CMS Content Type */}
|
|
445
|
+
<div className="!space-y-4">
|
|
446
|
+
<h3 className="text-lg font-semibold !text-slate-300">
|
|
447
|
+
CMS Content Type
|
|
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 rounded-lg border border-slate-500/20 bg-slate-500/10 px-3 py-2">
|
|
452
|
+
<TextIndicatorIcon className="h-5 w-5 text-slate-400" />
|
|
453
|
+
<div className="flex-1">
|
|
454
|
+
<div className="text-sm font-medium text-white">
|
|
455
|
+
Article Content
|
|
456
|
+
</div>
|
|
457
|
+
<div className="text-xs text-white/60">
|
|
458
|
+
Text block • 1,245 words
|
|
459
|
+
</div>
|
|
460
|
+
</div>
|
|
461
|
+
<div className="text-xs text-white/40">Draft</div>
|
|
462
|
+
</div>
|
|
463
|
+
</div>
|
|
464
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
465
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
466
|
+
{`<div className="flex items-center gap-3 bg-slate-500/10 border border-slate-500/20 px-3 py-2 rounded-lg">
|
|
467
|
+
<TextIndicatorIcon className="h-5 w-5 text-slate-400" />
|
|
468
|
+
<div className="flex-1">
|
|
469
|
+
<div className="text-sm font-medium">Article Content</div>
|
|
470
|
+
<div className="text-xs text-white/60">Text block • 1,245 words</div>
|
|
471
|
+
</div>
|
|
472
|
+
<div className="text-xs text-white/40">Draft</div>
|
|
473
|
+
</div>`}
|
|
474
|
+
</pre>
|
|
475
|
+
</div>
|
|
476
|
+
</div>
|
|
477
|
+
</div>
|
|
478
|
+
|
|
479
|
+
{/* Text Editor Sidebar */}
|
|
480
|
+
<div className="!space-y-4">
|
|
481
|
+
<h3 className="text-lg font-semibold !text-slate-300">
|
|
482
|
+
Text Editor Sidebar
|
|
483
|
+
</h3>
|
|
484
|
+
<div className="!space-y-4">
|
|
485
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
486
|
+
<div className="!space-y-3">
|
|
487
|
+
<div className="text-xs font-medium tracking-wide text-white/60 uppercase">
|
|
488
|
+
Content Elements
|
|
489
|
+
</div>
|
|
490
|
+
<div className="!space-y-2">
|
|
491
|
+
<div className="flex items-center gap-2 rounded px-2 py-1 hover:bg-white/10">
|
|
492
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
493
|
+
<span className="text-sm text-white">
|
|
494
|
+
Paragraph
|
|
495
|
+
</span>
|
|
496
|
+
</div>
|
|
497
|
+
<div className="flex items-center gap-2 rounded px-2 py-1 hover:bg-white/10">
|
|
498
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
499
|
+
<span className="text-sm text-white">
|
|
500
|
+
Heading
|
|
501
|
+
</span>
|
|
502
|
+
</div>
|
|
503
|
+
<div className="flex items-center gap-2 rounded px-2 py-1 hover:bg-white/10">
|
|
504
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
505
|
+
<span className="text-sm text-white">Quote</span>
|
|
506
|
+
</div>
|
|
507
|
+
</div>
|
|
508
|
+
</div>
|
|
509
|
+
</div>
|
|
510
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
511
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
512
|
+
{`<div className="space-y-2">
|
|
513
|
+
<div className="flex items-center gap-2 px-2 py-1 rounded hover:bg-white/10">
|
|
514
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
515
|
+
<span className="text-sm">Paragraph</span>
|
|
516
|
+
</div>
|
|
517
|
+
<div className="flex items-center gap-2 px-2 py-1 rounded hover:bg-white/10">
|
|
518
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
519
|
+
<span className="text-sm">Heading</span>
|
|
520
|
+
</div>
|
|
521
|
+
</div>`}
|
|
522
|
+
</pre>
|
|
523
|
+
</div>
|
|
524
|
+
</div>
|
|
525
|
+
</div>
|
|
526
|
+
|
|
527
|
+
{/* Document Structure */}
|
|
528
|
+
<div className="!space-y-4">
|
|
529
|
+
<h3 className="text-lg font-semibold !text-slate-300">
|
|
530
|
+
Document Structure
|
|
531
|
+
</h3>
|
|
532
|
+
<div className="!space-y-4">
|
|
533
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
534
|
+
<div className="!space-y-2 text-sm">
|
|
535
|
+
<div className="flex items-center gap-2 text-white">
|
|
536
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
537
|
+
<span className="font-medium">1. Introduction</span>
|
|
538
|
+
<span className="text-xs text-white/60">
|
|
539
|
+
• 156 words
|
|
540
|
+
</span>
|
|
541
|
+
</div>
|
|
542
|
+
<div className="ml-6 flex items-center gap-2 text-white/80">
|
|
543
|
+
<TextIndicatorIcon className="h-3 w-3 text-slate-500" />
|
|
544
|
+
<span>1.1 Overview</span>
|
|
545
|
+
<span className="text-xs text-white/50">
|
|
546
|
+
• 89 words
|
|
547
|
+
</span>
|
|
548
|
+
</div>
|
|
549
|
+
<div className="ml-6 flex items-center gap-2 text-white/80">
|
|
550
|
+
<TextIndicatorIcon className="h-3 w-3 text-slate-500" />
|
|
551
|
+
<span>1.2 Objectives</span>
|
|
552
|
+
<span className="text-xs text-white/50">
|
|
553
|
+
• 67 words
|
|
554
|
+
</span>
|
|
555
|
+
</div>
|
|
556
|
+
</div>
|
|
557
|
+
</div>
|
|
558
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
559
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
560
|
+
{`<div className="space-y-2 text-sm">
|
|
561
|
+
<div className="flex items-center gap-2">
|
|
562
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
563
|
+
<span className="font-medium">1. Introduction</span>
|
|
564
|
+
<span className="text-xs text-white/60">• 156 words</span>
|
|
565
|
+
</div>
|
|
566
|
+
<div className="ml-6 flex items-center gap-2 text-white/80">
|
|
567
|
+
<TextIndicatorIcon className="h-3 w-3 text-slate-500" />
|
|
568
|
+
<span>1.1 Overview</span>
|
|
569
|
+
</div>
|
|
570
|
+
</div>`}
|
|
571
|
+
</pre>
|
|
572
|
+
</div>
|
|
573
|
+
</div>
|
|
574
|
+
</div>
|
|
575
|
+
|
|
576
|
+
{/* Text Statistics */}
|
|
577
|
+
<div className="!space-y-4">
|
|
578
|
+
<h3 className="text-lg font-semibold !text-slate-300">
|
|
579
|
+
Text Statistics Panel
|
|
580
|
+
</h3>
|
|
581
|
+
<div className="!space-y-4">
|
|
582
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
583
|
+
<div className="grid grid-cols-2 gap-4">
|
|
584
|
+
<div className="flex items-center gap-2">
|
|
585
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
586
|
+
<div>
|
|
587
|
+
<div className="text-lg font-bold text-white">
|
|
588
|
+
1,234
|
|
589
|
+
</div>
|
|
590
|
+
<div className="text-xs text-white/60">Words</div>
|
|
591
|
+
</div>
|
|
592
|
+
</div>
|
|
593
|
+
<div className="flex items-center gap-2">
|
|
594
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
595
|
+
<div>
|
|
596
|
+
<div className="text-lg font-bold text-white">
|
|
597
|
+
45
|
|
598
|
+
</div>
|
|
599
|
+
<div className="text-xs text-white/60">
|
|
600
|
+
Paragraphs
|
|
601
|
+
</div>
|
|
602
|
+
</div>
|
|
603
|
+
</div>
|
|
604
|
+
</div>
|
|
605
|
+
</div>
|
|
606
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
607
|
+
<pre className="overflow-x-auto text-sm !text-green-300">
|
|
608
|
+
{`<div className="grid grid-cols-2 gap-4">
|
|
609
|
+
<div className="flex items-center gap-2">
|
|
610
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
611
|
+
<div>
|
|
612
|
+
<div className="text-lg font-bold">1,234</div>
|
|
613
|
+
<div className="text-xs text-white/60">Words</div>
|
|
614
|
+
</div>
|
|
615
|
+
</div>
|
|
616
|
+
</div>`}
|
|
617
|
+
</pre>
|
|
618
|
+
</div>
|
|
619
|
+
</div>
|
|
620
|
+
</div>
|
|
621
|
+
</div>
|
|
622
|
+
</div>
|
|
623
|
+
|
|
624
|
+
{/* Accessibility */}
|
|
625
|
+
<div className="!space-y-8">
|
|
626
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
627
|
+
Accessibility Features
|
|
628
|
+
</h2>
|
|
629
|
+
<div className="grid grid-cols-1 gap-8 md:grid-cols-2">
|
|
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-green-300">
|
|
632
|
+
✅ Built-in Features
|
|
633
|
+
</h3>
|
|
634
|
+
<ul className="!space-y-2 text-sm !text-white/70">
|
|
635
|
+
<li className="!text-white/70">
|
|
636
|
+
Uses Radix UI AccessibleIcon wrapper
|
|
637
|
+
</li>
|
|
638
|
+
<li className="!text-white/70">
|
|
639
|
+
Provides screen reader label "Text Indicator Icon"
|
|
640
|
+
</li>
|
|
641
|
+
<li className="!text-white/70">
|
|
642
|
+
Supports keyboard navigation when interactive
|
|
643
|
+
</li>
|
|
644
|
+
<li className="!text-white/70">
|
|
645
|
+
Maintains proper color contrast ratios
|
|
646
|
+
</li>
|
|
647
|
+
<li className="!text-white/70">
|
|
648
|
+
Scales with user's font size preferences
|
|
649
|
+
</li>
|
|
650
|
+
</ul>
|
|
651
|
+
</div>
|
|
652
|
+
|
|
653
|
+
<div className="!space-y-4 rounded-lg border border-white/10 bg-white/5 p-6">
|
|
654
|
+
<h3 className="text-lg font-semibold !text-slate-300">
|
|
655
|
+
💡 Best Practices
|
|
656
|
+
</h3>
|
|
657
|
+
<ul className="!space-y-2 text-sm text-white/70">
|
|
658
|
+
<li className="!text-white/70">
|
|
659
|
+
Always pair with descriptive text or labels
|
|
660
|
+
</li>
|
|
661
|
+
<li className="!text-white/70">
|
|
662
|
+
Use consistent placement in text interfaces
|
|
663
|
+
</li>
|
|
664
|
+
<li className="!text-white/70">
|
|
665
|
+
Ensure sufficient color contrast for readability
|
|
666
|
+
</li>
|
|
667
|
+
<li className="!text-white/70">
|
|
668
|
+
Add tooltips for complex text operations
|
|
669
|
+
</li>
|
|
670
|
+
<li className="!text-white/70">
|
|
671
|
+
Consider text size preferences for clarity
|
|
672
|
+
</li>
|
|
673
|
+
</ul>
|
|
674
|
+
</div>
|
|
675
|
+
</div>
|
|
676
|
+
|
|
677
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-6">
|
|
678
|
+
<h3 className="mb-4 text-lg font-semibold !text-purple-300">
|
|
679
|
+
Custom Accessibility Label
|
|
680
|
+
</h3>
|
|
681
|
+
<div className="grid grid-cols-1 gap-6 lg:grid-cols-2">
|
|
682
|
+
<div className="rounded-lg bg-black/40 p-4">
|
|
683
|
+
<pre className="overflow-x-auto text-sm !text-blue-300">
|
|
684
|
+
{`// Custom implementation with specific label
|
|
685
|
+
import { AccessibleIcon } from "@radix-ui/react-accessible-icon"
|
|
686
|
+
|
|
687
|
+
function CustomTextIndicatorIcon({ label = "Text Indicator", ...props }) {
|
|
688
|
+
return (
|
|
689
|
+
<AccessibleIcon label={label}>
|
|
690
|
+
<TextIndicatorIcon {...props} />
|
|
691
|
+
</AccessibleIcon>
|
|
692
|
+
)
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// Usage with specific context
|
|
696
|
+
<CustomTextIndicatorIcon
|
|
697
|
+
label="Text content block"
|
|
698
|
+
className="h-4 w-4 text-slate-400"
|
|
699
|
+
/>`}
|
|
700
|
+
</pre>
|
|
701
|
+
</div>
|
|
702
|
+
<div className="!space-y-4">
|
|
703
|
+
<p className="text-sm !text-white/70">
|
|
704
|
+
For specific contexts like CMS interfaces or text
|
|
705
|
+
editors, you can wrap the TextIndicatorIcon with a
|
|
706
|
+
custom AccessibleIcon component that provides more
|
|
707
|
+
descriptive labels for better screen reader support.
|
|
708
|
+
</p>
|
|
709
|
+
<div className="rounded-lg border border-slate-500/20 bg-slate-500/10 p-4">
|
|
710
|
+
<div className="flex items-center gap-2 text-sm text-slate-200">
|
|
711
|
+
<TextIndicatorIcon className="h-4 w-4" />
|
|
712
|
+
<span>
|
|
713
|
+
This approach gives clear context for text content
|
|
714
|
+
</span>
|
|
715
|
+
</div>
|
|
716
|
+
</div>
|
|
717
|
+
</div>
|
|
718
|
+
</div>
|
|
719
|
+
</div>
|
|
720
|
+
</div>
|
|
721
|
+
|
|
722
|
+
{/* Related Icons */}
|
|
723
|
+
<div className="!space-y-8">
|
|
724
|
+
<h2 className="text-center text-3xl font-bold !text-white">
|
|
725
|
+
Related Icons
|
|
726
|
+
</h2>
|
|
727
|
+
<div className="grid grid-cols-2 gap-6 md:grid-cols-4">
|
|
728
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
729
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-blue-500/20">
|
|
730
|
+
<span className="text-2xl">📝</span>
|
|
731
|
+
</div>
|
|
732
|
+
<div>
|
|
733
|
+
<div className="font-medium text-white">EditIcon</div>
|
|
734
|
+
<div className="text-xs text-white/60">Text editing</div>
|
|
735
|
+
</div>
|
|
736
|
+
</div>
|
|
737
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
738
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-purple-500/20">
|
|
739
|
+
<span className="text-2xl">📄</span>
|
|
740
|
+
</div>
|
|
741
|
+
<div>
|
|
742
|
+
<div className="font-medium text-white">DocumentIcon</div>
|
|
743
|
+
<div className="text-xs text-white/60">
|
|
744
|
+
Document management
|
|
745
|
+
</div>
|
|
746
|
+
</div>
|
|
747
|
+
</div>
|
|
748
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
749
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-green-500/20">
|
|
750
|
+
<span className="text-2xl">🔤</span>
|
|
751
|
+
</div>
|
|
752
|
+
<div>
|
|
753
|
+
<div className="font-medium text-white">TypeIcon</div>
|
|
754
|
+
<div className="text-xs text-white/60">Typography</div>
|
|
755
|
+
</div>
|
|
756
|
+
</div>
|
|
757
|
+
<div className="!space-y-3 rounded-lg border border-white/10 bg-white/5 p-4 text-center">
|
|
758
|
+
<div className="!mx-auto flex h-12 w-12 items-center justify-center rounded-lg bg-indigo-500/20">
|
|
759
|
+
<span className="text-2xl">📋</span>
|
|
760
|
+
</div>
|
|
761
|
+
<div>
|
|
762
|
+
<div className="font-medium text-white">ContentIcon</div>
|
|
763
|
+
<div className="text-xs text-white/60">
|
|
764
|
+
Content blocks
|
|
765
|
+
</div>
|
|
766
|
+
</div>
|
|
767
|
+
</div>
|
|
768
|
+
</div>
|
|
769
|
+
</div>
|
|
770
|
+
</div>
|
|
771
|
+
|
|
772
|
+
{/* Footer */}
|
|
773
|
+
<div className="border-t border-white/10 bg-black/20 backdrop-blur-xl">
|
|
774
|
+
<div className="!mx-auto max-w-7xl px-6 py-8">
|
|
775
|
+
<div className="!space-y-4 text-center">
|
|
776
|
+
<p className="!text-white/60">
|
|
777
|
+
TextIndicatorIcon is part of the Aural UI icon library,
|
|
778
|
+
designed specifically for text-focused interfaces, CMS
|
|
779
|
+
systems, and document management with clarity in mind.
|
|
780
|
+
</p>
|
|
781
|
+
<p className="text-sm !text-white/40">
|
|
782
|
+
Perfect for text editors, content management systems,
|
|
783
|
+
document structures, and any interface that needs clear text
|
|
784
|
+
content identification. Follows typography best practices
|
|
785
|
+
and accessibility guidelines.
|
|
786
|
+
</p>
|
|
787
|
+
</div>
|
|
788
|
+
</div>
|
|
789
|
+
</div>
|
|
790
|
+
</div>
|
|
791
|
+
</>
|
|
792
|
+
),
|
|
793
|
+
},
|
|
794
|
+
},
|
|
795
|
+
tags: ["autodocs"],
|
|
796
|
+
argTypes: {
|
|
797
|
+
width: {
|
|
798
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
799
|
+
description: "Width of the icon in pixels",
|
|
800
|
+
},
|
|
801
|
+
height: {
|
|
802
|
+
control: { type: "range", min: 8, max: 96, step: 2 },
|
|
803
|
+
description: "Height of the icon in pixels",
|
|
804
|
+
},
|
|
805
|
+
stroke: {
|
|
806
|
+
control: "color",
|
|
807
|
+
description: "Stroke color of the icon",
|
|
808
|
+
},
|
|
809
|
+
strokeWidth: {
|
|
810
|
+
control: { type: "range", min: 0.5, max: 4, step: 0.5 },
|
|
811
|
+
description: "Stroke width of the icon",
|
|
812
|
+
},
|
|
813
|
+
className: {
|
|
814
|
+
control: "text",
|
|
815
|
+
description: "CSS classes for styling",
|
|
816
|
+
},
|
|
817
|
+
},
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
export default meta
|
|
821
|
+
type Story = StoryObj<typeof TextIndicatorIcon>
|
|
822
|
+
|
|
823
|
+
// Story parameters for consistent dark theme
|
|
824
|
+
const storyParameters = {
|
|
825
|
+
backgrounds: {
|
|
826
|
+
default: "dark",
|
|
827
|
+
values: [
|
|
828
|
+
{ name: "dark", value: "#0a0a0a" },
|
|
829
|
+
{ name: "darker", value: "#000000" },
|
|
830
|
+
],
|
|
831
|
+
},
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
export const Default: Story = {
|
|
835
|
+
args: {
|
|
836
|
+
width: 24,
|
|
837
|
+
height: 24,
|
|
838
|
+
className: "text-slate-400",
|
|
839
|
+
},
|
|
840
|
+
parameters: storyParameters,
|
|
841
|
+
render: (args) => (
|
|
842
|
+
<div className="flex h-32 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
843
|
+
<TextIndicatorIcon {...args} />
|
|
844
|
+
</div>
|
|
845
|
+
),
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
export const SizeVariations: Story = {
|
|
849
|
+
parameters: {
|
|
850
|
+
...storyParameters,
|
|
851
|
+
docs: {
|
|
852
|
+
description: {
|
|
853
|
+
story:
|
|
854
|
+
"TextIndicatorIcon in different sizes, from small inline indicators to large content blocks.",
|
|
855
|
+
},
|
|
856
|
+
},
|
|
857
|
+
},
|
|
858
|
+
render: () => (
|
|
859
|
+
<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">
|
|
860
|
+
<div className="text-center">
|
|
861
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-3 w-3 text-slate-400" />
|
|
862
|
+
<span className="text-xs text-white/60">12px</span>
|
|
863
|
+
</div>
|
|
864
|
+
<div className="text-center">
|
|
865
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-4 w-4 text-slate-400" />
|
|
866
|
+
<span className="text-xs text-white/60">16px</span>
|
|
867
|
+
</div>
|
|
868
|
+
<div className="text-center">
|
|
869
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-5 w-5 text-slate-400" />
|
|
870
|
+
<span className="text-xs text-white/60">20px</span>
|
|
871
|
+
</div>
|
|
872
|
+
<div className="text-center">
|
|
873
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-6 w-6 text-slate-400" />
|
|
874
|
+
<span className="text-xs text-white/60">24px</span>
|
|
875
|
+
</div>
|
|
876
|
+
<div className="text-center">
|
|
877
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-8 w-8 text-slate-400" />
|
|
878
|
+
<span className="text-xs text-white/60">32px</span>
|
|
879
|
+
</div>
|
|
880
|
+
<div className="text-center">
|
|
881
|
+
<TextIndicatorIcon className="!mx-auto mb-2 h-12 w-12 text-slate-400" />
|
|
882
|
+
<span className="text-xs text-white/60">48px</span>
|
|
883
|
+
</div>
|
|
884
|
+
</div>
|
|
885
|
+
),
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
export const ColorVariations: Story = {
|
|
889
|
+
parameters: {
|
|
890
|
+
...storyParameters,
|
|
891
|
+
docs: {
|
|
892
|
+
description: {
|
|
893
|
+
story:
|
|
894
|
+
"TextIndicatorIcon in different colors suitable for various text content contexts.",
|
|
895
|
+
},
|
|
896
|
+
},
|
|
897
|
+
},
|
|
898
|
+
render: () => (
|
|
899
|
+
<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">
|
|
900
|
+
<div className="text-center">
|
|
901
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-slate-500/30 bg-slate-500/20">
|
|
902
|
+
<TextIndicatorIcon className="h-8 w-8 text-slate-400" />
|
|
903
|
+
</div>
|
|
904
|
+
<div className="text-sm font-medium text-white">Primary Text</div>
|
|
905
|
+
<div className="text-xs text-slate-400">text-slate-400</div>
|
|
906
|
+
</div>
|
|
907
|
+
<div className="text-center">
|
|
908
|
+
<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">
|
|
909
|
+
<TextIndicatorIcon className="h-8 w-8 text-gray-400" />
|
|
910
|
+
</div>
|
|
911
|
+
<div className="text-sm font-medium text-white">Secondary Text</div>
|
|
912
|
+
<div className="text-xs text-gray-400">text-gray-400</div>
|
|
913
|
+
</div>
|
|
914
|
+
<div className="text-center">
|
|
915
|
+
<div className="!mx-auto mb-3 flex h-16 w-16 items-center justify-center rounded-lg border border-zinc-500/30 bg-zinc-500/20">
|
|
916
|
+
<TextIndicatorIcon className="h-8 w-8 text-zinc-400" />
|
|
917
|
+
</div>
|
|
918
|
+
<div className="text-sm font-medium text-white">Neutral</div>
|
|
919
|
+
<div className="text-xs text-zinc-400">text-zinc-400</div>
|
|
920
|
+
</div>
|
|
921
|
+
<div className="text-center">
|
|
922
|
+
<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">
|
|
923
|
+
<TextIndicatorIcon className="h-8 w-8 text-blue-400" />
|
|
924
|
+
</div>
|
|
925
|
+
<div className="text-sm font-medium text-white">Interactive</div>
|
|
926
|
+
<div className="text-xs text-blue-400">text-blue-400</div>
|
|
927
|
+
</div>
|
|
928
|
+
</div>
|
|
929
|
+
),
|
|
930
|
+
}
|
|
931
|
+
|
|
932
|
+
export const UsageExamples: Story = {
|
|
933
|
+
parameters: {
|
|
934
|
+
...storyParameters,
|
|
935
|
+
docs: {
|
|
936
|
+
description: {
|
|
937
|
+
story:
|
|
938
|
+
"Real-world usage examples showing TextIndicatorIcon in different text-focused contexts.",
|
|
939
|
+
},
|
|
940
|
+
},
|
|
941
|
+
},
|
|
942
|
+
render: () => (
|
|
943
|
+
<div className="min-h-dvh !space-y-8 rounded-lg bg-gradient-to-br from-gray-900 to-gray-800 p-8">
|
|
944
|
+
{/* CMS Content Type */}
|
|
945
|
+
<div className="!space-y-2">
|
|
946
|
+
<h3 className="text-sm font-medium text-white">CMS Content Type</h3>
|
|
947
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
948
|
+
<div className="flex items-center gap-3 rounded-lg border border-slate-500/20 bg-slate-500/10 px-3 py-2">
|
|
949
|
+
<TextIndicatorIcon className="h-5 w-5 text-slate-400" />
|
|
950
|
+
<div className="flex-1">
|
|
951
|
+
<div className="text-sm font-medium text-white">
|
|
952
|
+
Article Content
|
|
953
|
+
</div>
|
|
954
|
+
<div className="text-xs text-white/60">
|
|
955
|
+
Text block • 1,245 words
|
|
956
|
+
</div>
|
|
957
|
+
</div>
|
|
958
|
+
<div className="text-xs text-white/40">Draft</div>
|
|
959
|
+
</div>
|
|
960
|
+
</div>
|
|
961
|
+
</div>
|
|
962
|
+
|
|
963
|
+
{/* Text Editor Sidebar */}
|
|
964
|
+
<div className="!space-y-2">
|
|
965
|
+
<h3 className="text-sm font-medium text-white">Text Editor Sidebar</h3>
|
|
966
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
967
|
+
<div className="!space-y-3">
|
|
968
|
+
<div className="text-xs font-medium tracking-wide text-white/60 uppercase">
|
|
969
|
+
Content Elements
|
|
970
|
+
</div>
|
|
971
|
+
<div className="!space-y-2">
|
|
972
|
+
<div className="flex items-center gap-2 rounded px-2 py-1 hover:bg-white/10">
|
|
973
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
974
|
+
<span className="text-sm text-white">Paragraph</span>
|
|
975
|
+
</div>
|
|
976
|
+
<div className="flex items-center gap-2 rounded px-2 py-1 hover:bg-white/10">
|
|
977
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
978
|
+
<span className="text-sm text-white">Heading</span>
|
|
979
|
+
</div>
|
|
980
|
+
<div className="flex items-center gap-2 rounded px-2 py-1 hover:bg-white/10">
|
|
981
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
982
|
+
<span className="text-sm text-white">Quote</span>
|
|
983
|
+
</div>
|
|
984
|
+
</div>
|
|
985
|
+
</div>
|
|
986
|
+
</div>
|
|
987
|
+
</div>
|
|
988
|
+
|
|
989
|
+
{/* Document Structure */}
|
|
990
|
+
<div className="!space-y-2">
|
|
991
|
+
<h3 className="text-sm font-medium text-white">Document Structure</h3>
|
|
992
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-4">
|
|
993
|
+
<div className="!space-y-2 text-sm">
|
|
994
|
+
<div className="flex items-center gap-2 text-white">
|
|
995
|
+
<TextIndicatorIcon className="h-4 w-4 text-slate-400" />
|
|
996
|
+
<span className="font-medium">1. Introduction</span>
|
|
997
|
+
<span className="text-xs text-white/60">• 156 words</span>
|
|
998
|
+
</div>
|
|
999
|
+
<div className="ml-6 flex items-center gap-2 text-white/80">
|
|
1000
|
+
<TextIndicatorIcon className="h-3 w-3 text-slate-500" />
|
|
1001
|
+
<span>1.1 Overview</span>
|
|
1002
|
+
<span className="text-xs text-white/50">• 89 words</span>
|
|
1003
|
+
</div>
|
|
1004
|
+
<div className="ml-6 flex items-center gap-2 text-white/80">
|
|
1005
|
+
<TextIndicatorIcon className="h-3 w-3 text-slate-500" />
|
|
1006
|
+
<span>1.2 Objectives</span>
|
|
1007
|
+
<span className="text-xs text-white/50">• 67 words</span>
|
|
1008
|
+
</div>
|
|
1009
|
+
</div>
|
|
1010
|
+
</div>
|
|
1011
|
+
</div>
|
|
1012
|
+
</div>
|
|
1013
|
+
),
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
export const Playground: Story = {
|
|
1017
|
+
parameters: {
|
|
1018
|
+
...storyParameters,
|
|
1019
|
+
docs: {
|
|
1020
|
+
description: {
|
|
1021
|
+
story:
|
|
1022
|
+
"Interactive playground to experiment with different TextIndicatorIcon configurations.",
|
|
1023
|
+
},
|
|
1024
|
+
},
|
|
1025
|
+
},
|
|
1026
|
+
args: {
|
|
1027
|
+
width: 32,
|
|
1028
|
+
height: 32,
|
|
1029
|
+
className: "text-slate-400",
|
|
1030
|
+
strokeWidth: 1.5,
|
|
1031
|
+
},
|
|
1032
|
+
render: (args) => (
|
|
1033
|
+
<div className="flex h-64 min-h-dvh items-center justify-center rounded-lg bg-gradient-to-br from-gray-900 to-gray-800">
|
|
1034
|
+
<div className="rounded-lg border border-white/10 bg-white/5 p-8">
|
|
1035
|
+
<TextIndicatorIcon {...args} />
|
|
1036
|
+
</div>
|
|
1037
|
+
</div>
|
|
1038
|
+
),
|
|
1039
|
+
}
|