ywana-core8 0.1.74 → 0.1.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/ACCORDION_EVALUATION.md +583 -0
  2. package/CHECKBOX_EVALUATION.md +273 -0
  3. package/CHIP_EVALUATION.md +542 -0
  4. package/COLOR_EVALUATION.md +524 -0
  5. package/COMPONENTS_EVALUATION.md +477 -0
  6. package/FORM_EVALUATION.md +459 -0
  7. package/HEADER_EVALUATION.md +436 -0
  8. package/ICON_EVALUATION.md +254 -0
  9. package/LIST_EVALUATION.md +574 -0
  10. package/PROGRESS_EVALUATION.md +450 -0
  11. package/RADIO_EVALUATION.md +439 -0
  12. package/RADIO_VISUAL_FIX.md +183 -0
  13. package/SECTION_IMPROVEMENTS.md +153 -0
  14. package/SWITCH_EVALUATION.md +335 -0
  15. package/SWITCH_VISUAL_FIX.md +232 -0
  16. package/TAB_EVALUATION.md +626 -0
  17. package/TEXTFIELD_EVALUATION.md +747 -0
  18. package/TOOLTIP_FIX.md +157 -0
  19. package/TREE_EVALUATION.md +708 -0
  20. package/dist/index.cjs +7900 -1615
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.css +6094 -1122
  23. package/dist/index.css.map +1 -1
  24. package/dist/index.modern.js +7929 -1645
  25. package/dist/index.modern.js.map +1 -1
  26. package/dist/index.umd.js +7900 -1615
  27. package/dist/index.umd.js.map +1 -1
  28. package/jest.config.js +24 -0
  29. package/package.json +10 -1
  30. package/src/html/accordion.css +208 -4
  31. package/src/html/accordion.example.js +390 -0
  32. package/src/html/accordion.js +284 -28
  33. package/src/html/accordion.unit.test.js +334 -0
  34. package/src/html/button.css +157 -16
  35. package/src/html/button.example.js +374 -0
  36. package/src/html/button.js +240 -60
  37. package/src/html/button.test.js +422 -0
  38. package/src/html/checkbox.css +74 -2
  39. package/src/html/checkbox.example.js +316 -0
  40. package/src/html/checkbox.js +113 -26
  41. package/src/html/checkbox.test.js +285 -0
  42. package/src/html/chip.css +230 -19
  43. package/src/html/chip.example.js +355 -0
  44. package/src/html/chip.js +321 -25
  45. package/src/html/chip.test.js +425 -0
  46. package/src/html/color.css +435 -6
  47. package/src/html/color.example.js +527 -0
  48. package/src/html/color.js +458 -9
  49. package/src/html/color.test.js +362 -4
  50. package/src/html/components.example.js +492 -0
  51. package/src/html/components_enhanced.test.js +581 -0
  52. package/src/html/form.css +70 -3
  53. package/src/html/form.example.js +385 -0
  54. package/src/html/form.js +232 -34
  55. package/src/html/form.test.js +369 -0
  56. package/src/html/header2.css +264 -0
  57. package/src/html/header2.example.js +411 -0
  58. package/src/html/header2.js +203 -0
  59. package/src/html/header2.test.js +377 -0
  60. package/src/html/icon.css +20 -2
  61. package/src/html/icon.example.js +268 -0
  62. package/src/html/icon.js +86 -16
  63. package/src/html/icon.test.js +231 -0
  64. package/src/html/index.js +1 -1
  65. package/src/html/list.css +393 -1
  66. package/src/html/list.example.js +404 -0
  67. package/src/html/list.js +583 -40
  68. package/src/html/list.test.js +383 -0
  69. package/src/html/progress.css +707 -17
  70. package/src/html/progress.example.js +424 -0
  71. package/src/html/progress.js +906 -9
  72. package/src/html/progress.test.js +313 -0
  73. package/src/html/property.css +399 -0
  74. package/src/html/property.example.js +553 -0
  75. package/src/html/property.js +393 -15
  76. package/src/html/property.test.js +351 -2
  77. package/src/html/radio-visual-test.js +289 -0
  78. package/src/html/radio.css +137 -11
  79. package/src/html/radio.example.js +389 -0
  80. package/src/html/radio.js +234 -10
  81. package/src/html/radio.test.js +318 -0
  82. package/src/html/section.example.js +99 -0
  83. package/src/html/section.js +40 -3
  84. package/src/html/section.test.js +131 -0
  85. package/src/html/selector.css +329 -3
  86. package/src/html/selector.js +369 -23
  87. package/src/html/switch-debug.js +197 -0
  88. package/src/html/switch-test-visual.js +294 -0
  89. package/src/html/switch.css +200 -0
  90. package/src/html/switch.example.js +461 -0
  91. package/src/html/switch.js +283 -23
  92. package/src/html/switch.test.js +355 -0
  93. package/src/html/tab.css +288 -0
  94. package/src/html/tab.example.js +446 -0
  95. package/src/html/tab.js +387 -22
  96. package/src/html/tab_enhanced.js +378 -0
  97. package/src/html/tab_enhanced.test.js +504 -0
  98. package/src/html/table2.css +576 -0
  99. package/src/html/table2.example.js +703 -0
  100. package/src/html/table2.js +1252 -0
  101. package/src/html/table2.migration.md +328 -0
  102. package/src/html/table2.test.js +582 -0
  103. package/src/html/text.css +375 -0
  104. package/src/html/text.js +311 -20
  105. package/src/html/textfield.js +1 -1
  106. package/src/html/textfield2.css +842 -0
  107. package/src/html/textfield2.example.js +499 -0
  108. package/src/html/textfield2.js +1130 -0
  109. package/src/html/textfield2.test.js +950 -0
  110. package/src/html/thumbnail.css +289 -2
  111. package/src/html/thumbnail.js +214 -9
  112. package/src/html/tokenfield.css +449 -1
  113. package/src/html/tokenfield.example.js +503 -0
  114. package/src/html/tokenfield.js +561 -56
  115. package/src/html/tokenfield.test.js +423 -0
  116. package/src/html/tooltip-positioning-demo.js +187 -0
  117. package/src/html/tooltip.css +25 -2
  118. package/src/html/tree.css +228 -0
  119. package/src/html/tree.example.js +475 -0
  120. package/src/html/tree.js +712 -28
  121. package/src/html/tree_enhanced.test.js +495 -0
  122. package/table2.test.js +454 -0
  123. package/src/html/button.tsx +0 -38
@@ -0,0 +1,553 @@
1
+ import React, { useState } from 'react'
2
+ import { Property } from './property'
3
+ import { Button } from './button'
4
+ import { Text } from './text'
5
+
6
+ /**
7
+ * Ejemplos del componente Property mejorado manteniendo 100% compatibilidad
8
+ */
9
+ export const PropertyExamples = () => {
10
+ const [userProfile, setUserProfile] = useState({
11
+ name: 'John Doe',
12
+ email: 'john@example.com',
13
+ age: '30',
14
+ bio: 'Software developer with 5+ years of experience',
15
+ status: 'active',
16
+ location: 'New York'
17
+ })
18
+ const [isLoading, setIsLoading] = useState(false)
19
+ const [showAdvanced, setShowAdvanced] = useState(false)
20
+
21
+ const statusOptions = [
22
+ { label: 'Active', value: 'active' },
23
+ { label: 'Inactive', value: 'inactive' },
24
+ { label: 'Pending', value: 'pending' },
25
+ { label: 'Suspended', value: 'suspended' }
26
+ ]
27
+
28
+ const handlePropertyChange = (id, value) => {
29
+ setUserProfile(prev => ({ ...prev, [id]: value }))
30
+ console.log(`Property changed: ${id} = ${value}`)
31
+ }
32
+
33
+ const validateEmail = (value) => {
34
+ const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/
35
+ if (!emailRegex.test(value)) {
36
+ return { isValid: false, error: 'Invalid email format' }
37
+ }
38
+ return { isValid: true }
39
+ }
40
+
41
+ const validateAge = (value) => {
42
+ const age = parseInt(value)
43
+ if (isNaN(age) || age < 0 || age > 120) {
44
+ return { isValid: false, error: 'Age must be between 0 and 120' }
45
+ }
46
+ return { isValid: true }
47
+ }
48
+
49
+ const simulateLoading = () => {
50
+ setIsLoading(true)
51
+ setTimeout(() => setIsLoading(false), 2000)
52
+ }
53
+
54
+ return (
55
+ <div style={{ padding: '2rem', maxWidth: '1200px', maxHeight: '100vh', overflow: 'auto' }}>
56
+ <h1>Componente Property Mejorado</h1>
57
+
58
+ <div style={{
59
+ background: '#f8f9fa',
60
+ padding: '1rem',
61
+ borderRadius: '8px',
62
+ marginBottom: '2rem',
63
+ border: '1px solid #e9ecef'
64
+ }}>
65
+ <h3>✅ Mejoras Implementadas (100% Compatibilidad):</h3>
66
+ <ul>
67
+ <li>🛡️ <strong>PropTypes completos</strong> - Validación y documentación detallada</li>
68
+ <li>📝 <strong>Múltiples tipos de input</strong> - text, email, number, password, etc.</li>
69
+ <li>📏 <strong>Validación avanzada</strong> - required, minLength, maxLength, pattern</li>
70
+ <li>✅ <strong>Validación personalizada</strong> - validateValue function</li>
71
+ <li>📄 <strong>Soporte multiline</strong> - textarea para textos largos</li>
72
+ <li>📐 <strong>Múltiples tamaños</strong> - small, medium, large</li>
73
+ <li>🎭 <strong>Variantes visuales</strong> - default, outlined, filled</li>
74
+ <li>📱 <strong>Layouts flexibles</strong> - horizontal, vertical</li>
75
+ <li>📋 <strong>Copy functionality</strong> - Copiar valores al clipboard</li>
76
+ <li>⚠️ <strong>Estados avanzados</strong> - disabled, error, required, loading</li>
77
+ <li>♿ <strong>Accesibilidad completa</strong> - ARIA, navegación por teclado</li>
78
+ <li>📱 <strong>Responsive total</strong> - Adaptación móvil y dark mode</li>
79
+ </ul>
80
+ </div>
81
+
82
+ {/* Controles de demostración */}
83
+ <section style={{ marginBottom: '2rem' }}>
84
+ <h3>Controles de Demostración</h3>
85
+ <div style={{
86
+ background: '#fff',
87
+ padding: '1rem',
88
+ borderRadius: '8px',
89
+ border: '1px solid #ddd',
90
+ display: 'flex',
91
+ gap: '1rem',
92
+ alignItems: 'center',
93
+ flexWrap: 'wrap'
94
+ }}>
95
+ <Button
96
+ label="Simulate Loading"
97
+ icon="refresh"
98
+ action={simulateLoading}
99
+ disabled={isLoading}
100
+ />
101
+ <Button
102
+ label={showAdvanced ? "Hide Advanced" : "Show Advanced"}
103
+ icon={showAdvanced ? "visibility_off" : "visibility"}
104
+ action={() => setShowAdvanced(!showAdvanced)}
105
+ />
106
+ <span style={{ marginLeft: 'auto', color: '#666' }}>
107
+ Profile: {userProfile.name} ({userProfile.status})
108
+ </span>
109
+ </div>
110
+ </section>
111
+
112
+ {/* Property básico (Compatible) */}
113
+ <section style={{ marginBottom: '2rem' }}>
114
+ <h3>📋 Property Básico (100% Compatible)</h3>
115
+ <div style={{
116
+ background: '#fff',
117
+ padding: '1rem',
118
+ border: '1px solid #ddd',
119
+ borderRadius: '8px',
120
+ display: 'grid',
121
+ gridTemplateColumns: '1fr 1fr',
122
+ gap: '1rem'
123
+ }}>
124
+ <Property
125
+ id="name"
126
+ label="Name"
127
+ initial="John Doe"
128
+ value={userProfile.name}
129
+ editable={true}
130
+ onChange={handlePropertyChange}
131
+ />
132
+ <Property
133
+ id="location"
134
+ label="Location"
135
+ initial="New York"
136
+ value={userProfile.location}
137
+ editable={true}
138
+ onChange={handlePropertyChange}
139
+ />
140
+ </div>
141
+ <Text size="sm" color="muted" style={{ marginTop: '0.5rem' }}>
142
+ Funcionalidad original: editable con clear button
143
+ </Text>
144
+ </section>
145
+
146
+ {/* Property con opciones */}
147
+ <section style={{ marginBottom: '2rem' }}>
148
+ <h3>🎯 Property con Opciones (Compatible)</h3>
149
+ <div style={{
150
+ background: '#fff',
151
+ padding: '1rem',
152
+ border: '1px solid #ddd',
153
+ borderRadius: '8px'
154
+ }}>
155
+ <Property
156
+ id="status"
157
+ label="Status"
158
+ value={userProfile.status}
159
+ options={statusOptions}
160
+ editable={false}
161
+ copyable={true}
162
+ />
163
+ <Text size="sm" color="muted" style={{ marginTop: '0.5rem' }}>
164
+ Valor mapeado desde opciones con funcionalidad de copia
165
+ </Text>
166
+ </div>
167
+ </section>
168
+
169
+ {/* Property mejorado */}
170
+ <section style={{ marginBottom: '2rem' }}>
171
+ <h3>🚀 Property Mejorado con Nuevas Características</h3>
172
+ <div style={{
173
+ background: '#fff',
174
+ padding: '1rem',
175
+ border: '1px solid #ddd',
176
+ borderRadius: '8px',
177
+ display: 'grid',
178
+ gridTemplateColumns: '1fr 1fr',
179
+ gap: '1rem'
180
+ }}>
181
+ <Property
182
+ id="email"
183
+ label="Email Address"
184
+ value={userProfile.email}
185
+ onChange={handlePropertyChange}
186
+ editable={true}
187
+ type="email"
188
+ required={true}
189
+ validateValue={validateEmail}
190
+ placeholder="Enter email address"
191
+ size="medium"
192
+ variant="outlined"
193
+ helperText="Valid email required"
194
+ onValidationError={(error) => console.log('Email validation error:', error)}
195
+ />
196
+ <Property
197
+ id="age"
198
+ label="Age"
199
+ value={userProfile.age}
200
+ onChange={handlePropertyChange}
201
+ editable={true}
202
+ type="number"
203
+ validateValue={validateAge}
204
+ placeholder="Enter age"
205
+ size="large"
206
+ variant="filled"
207
+ helperText="Age between 0-120"
208
+ disabled={isLoading}
209
+ />
210
+ </div>
211
+ </section>
212
+
213
+ {/* Tamaños y variantes */}
214
+ <section style={{ marginBottom: '2rem' }}>
215
+ <h3>📏 Tamaños y Variantes</h3>
216
+ <div style={{
217
+ background: '#fff',
218
+ padding: '1rem',
219
+ border: '1px solid #ddd',
220
+ borderRadius: '8px',
221
+ display: 'grid',
222
+ gridTemplateColumns: '1fr 1fr 1fr',
223
+ gap: '1rem'
224
+ }}>
225
+ <Property
226
+ id="small-prop"
227
+ label="Small Size"
228
+ value="Small property"
229
+ editable={false}
230
+ size="small"
231
+ variant="default"
232
+ copyable={true}
233
+ />
234
+ <Property
235
+ id="medium-prop"
236
+ label="Medium Size"
237
+ value="Medium property"
238
+ editable={false}
239
+ size="medium"
240
+ variant="outlined"
241
+ copyable={true}
242
+ />
243
+ <Property
244
+ id="large-prop"
245
+ label="Large Size"
246
+ value="Large property"
247
+ editable={false}
248
+ size="large"
249
+ variant="filled"
250
+ copyable={true}
251
+ />
252
+ </div>
253
+ </section>
254
+
255
+ {/* Layouts */}
256
+ <section style={{ marginBottom: '2rem' }}>
257
+ <h3>📐 Layouts y Configuraciones</h3>
258
+ <div style={{
259
+ background: '#fff',
260
+ padding: '1rem',
261
+ border: '1px solid #ddd',
262
+ borderRadius: '8px',
263
+ display: 'grid',
264
+ gridTemplateColumns: '1fr 1fr',
265
+ gap: '1rem'
266
+ }}>
267
+ <div>
268
+ <h4>Horizontal Layout</h4>
269
+ <Property
270
+ id="horizontal"
271
+ label="Property Name"
272
+ value="Property Value"
273
+ editable={false}
274
+ layout="horizontal"
275
+ nameWidth="40%"
276
+ copyable={true}
277
+ />
278
+ </div>
279
+ <div>
280
+ <h4>Vertical Layout</h4>
281
+ <Property
282
+ id="vertical"
283
+ label="Property Name"
284
+ value="Property Value"
285
+ editable={false}
286
+ layout="vertical"
287
+ copyable={true}
288
+ />
289
+ </div>
290
+ </div>
291
+ </section>
292
+
293
+ {/* Multiline y tipos especiales */}
294
+ <section style={{ marginBottom: '2rem' }}>
295
+ <h3>📄 Multiline y Tipos Especiales</h3>
296
+ <div style={{
297
+ background: '#fff',
298
+ padding: '1rem',
299
+ border: '1px solid #ddd',
300
+ borderRadius: '8px'
301
+ }}>
302
+ <Property
303
+ id="bio"
304
+ label="Biography"
305
+ value={userProfile.bio}
306
+ onChange={handlePropertyChange}
307
+ editable={true}
308
+ multiline={true}
309
+ rows={4}
310
+ placeholder="Enter biography..."
311
+ maxLength={500}
312
+ layout="vertical"
313
+ variant="outlined"
314
+ helperText="Maximum 500 characters"
315
+ />
316
+ </div>
317
+ </section>
318
+
319
+ {/* Estados especiales */}
320
+ <section style={{ marginBottom: '2rem' }}>
321
+ <h3>⚠️ Estados Especiales</h3>
322
+ <div style={{
323
+ background: '#fff',
324
+ padding: '1rem',
325
+ border: '1px solid #ddd',
326
+ borderRadius: '8px',
327
+ display: 'grid',
328
+ gridTemplateColumns: '1fr 1fr',
329
+ gap: '1rem'
330
+ }}>
331
+ <Property
332
+ id="required-prop"
333
+ label="Required Field"
334
+ value=""
335
+ onChange={() => {}}
336
+ editable={true}
337
+ required={true}
338
+ placeholder="This field is required"
339
+ helperText="This field is required"
340
+ />
341
+ <Property
342
+ id="error-prop"
343
+ label="Field with Error"
344
+ value="invalid-value"
345
+ onChange={() => {}}
346
+ editable={true}
347
+ error="This value is invalid"
348
+ />
349
+ <Property
350
+ id="disabled-prop"
351
+ label="Disabled Field"
352
+ value="Disabled value"
353
+ onChange={() => {}}
354
+ editable={true}
355
+ disabled={isLoading}
356
+ helperText="Field is disabled"
357
+ />
358
+ <Property
359
+ id="readonly-prop"
360
+ label="Read-only Field"
361
+ value="Read-only value"
362
+ onChange={() => {}}
363
+ editable={true}
364
+ readOnly={true}
365
+ helperText="Field is read-only"
366
+ />
367
+ </div>
368
+ </section>
369
+
370
+ {/* Características avanzadas */}
371
+ {showAdvanced && (
372
+ <section style={{ marginBottom: '2rem' }}>
373
+ <h3>🔬 Características Avanzadas</h3>
374
+ <div style={{
375
+ background: '#fff',
376
+ padding: '1rem',
377
+ border: '1px solid #ddd',
378
+ borderRadius: '8px',
379
+ display: 'grid',
380
+ gridTemplateColumns: '1fr 1fr',
381
+ gap: '1rem'
382
+ }}>
383
+ <Property
384
+ id="pattern-prop"
385
+ label="Pattern Validation"
386
+ value=""
387
+ onChange={() => {}}
388
+ editable={true}
389
+ pattern="^[A-Z]{2,3}[0-9]{3,4}$"
390
+ placeholder="ABC123"
391
+ helperText="Format: 2-3 letters + 3-4 numbers"
392
+ />
393
+ <Property
394
+ id="length-prop"
395
+ label="Length Validation"
396
+ value=""
397
+ onChange={() => {}}
398
+ editable={true}
399
+ minLength={5}
400
+ maxLength={20}
401
+ placeholder="5-20 characters"
402
+ helperText="Between 5 and 20 characters"
403
+ />
404
+ </div>
405
+ </section>
406
+ )}
407
+
408
+ {/* Loading y skeleton */}
409
+ {showAdvanced && (
410
+ <section style={{ marginBottom: '2rem' }}>
411
+ <h3>⏳ Loading y Skeleton States</h3>
412
+ <div style={{
413
+ background: '#fff',
414
+ padding: '1rem',
415
+ border: '1px solid #ddd',
416
+ borderRadius: '8px',
417
+ display: 'grid',
418
+ gridTemplateColumns: '1fr 1fr',
419
+ gap: '1rem'
420
+ }}>
421
+ <Property
422
+ id="loading-prop"
423
+ label="Loading Property"
424
+ value="Loading content..."
425
+ loading={isLoading}
426
+ />
427
+ <Property
428
+ id="skeleton-prop"
429
+ label="Skeleton Property"
430
+ value="Skeleton content"
431
+ skeleton={isLoading}
432
+ />
433
+ </div>
434
+ </section>
435
+ )}
436
+
437
+ {/* Comparación antes/después */}
438
+ <section style={{ marginBottom: '2rem' }}>
439
+ <h3>Comparación: Property Original vs Mejorado</h3>
440
+ <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '1rem' }}>
441
+ <div style={{
442
+ background: '#ffebee',
443
+ padding: '1rem',
444
+ borderRadius: '4px',
445
+ border: '1px solid #ffcdd2'
446
+ }}>
447
+ <h4>❌ Property Original</h4>
448
+ <ul>
449
+ <li>Visualización clave-valor básica</li>
450
+ <li>Modo editable con input text</li>
451
+ <li>Soporte para opciones</li>
452
+ <li>Clear button básico</li>
453
+ <li>Sin PropTypes ni validación</li>
454
+ <li>Sin tipos de input</li>
455
+ <li>Sin validación de datos</li>
456
+ <li>Sin estados avanzados</li>
457
+ <li>Sin accesibilidad</li>
458
+ <li>CSS básico sin responsive</li>
459
+ </ul>
460
+ </div>
461
+ <div style={{
462
+ background: '#e8f5e8',
463
+ padding: '1rem',
464
+ borderRadius: '4px',
465
+ border: '1px solid #c8e6c9'
466
+ }}>
467
+ <h4>✅ Property Mejorado</h4>
468
+ <ul>
469
+ <li>Mantiene funcionalidad original</li>
470
+ <li>PropTypes completos y validación</li>
471
+ <li>Múltiples tipos de input</li>
472
+ <li>Validación avanzada y personalizada</li>
473
+ <li>Soporte multiline (textarea)</li>
474
+ <li>Estados disabled, error, required</li>
475
+ <li>Accesibilidad total (WCAG 2.1 AA)</li>
476
+ <li>Copy functionality integrada</li>
477
+ <li>Layouts flexibles (horizontal/vertical)</li>
478
+ <li>CSS responsive con dark mode</li>
479
+ </ul>
480
+ </div>
481
+ </div>
482
+ </section>
483
+
484
+ {/* Garantía de compatibilidad */}
485
+ <section style={{ marginBottom: '2rem' }}>
486
+ <h3>🔒 Garantía de Compatibilidad</h3>
487
+ <div style={{
488
+ background: '#fff3cd',
489
+ padding: '1rem',
490
+ borderRadius: '4px',
491
+ border: '1px solid #ffeaa7'
492
+ }}>
493
+ <p><strong>100% Compatible con Código Existente:</strong></p>
494
+ <ul>
495
+ <li>✅ Props originales (id, className, label, name, initial, value, editable, onChange, options) funcionan idéntico</li>
496
+ <li>✅ Comportamiento de onChange sin cambios</li>
497
+ <li>✅ Lógica de opciones preservada</li>
498
+ <li>✅ CSS original preservado y mejorado</li>
499
+ <li>✅ Nuevas características son opcionales</li>
500
+ <li>✅ No se rompe ningún código existente</li>
501
+ <li>✅ Migración automática sin cambios</li>
502
+ </ul>
503
+ <p style={{ marginTop: '1rem', fontSize: '0.9rem', color: '#856404' }}>
504
+ <strong>Migración:</strong> Simplemente reemplaza el import y todas las
505
+ mejoras se aplican automáticamente sin cambiar una línea de código existente.
506
+ </p>
507
+ </div>
508
+ </section>
509
+
510
+ {/* Casos de uso */}
511
+ <section style={{ marginBottom: '2rem' }}>
512
+ <h3>🎯 Casos de Uso Comunes</h3>
513
+ <div style={{
514
+ background: '#fff',
515
+ padding: '1rem',
516
+ border: '1px solid #ddd',
517
+ borderRadius: '8px',
518
+ display: 'grid',
519
+ gridTemplateColumns: '1fr 1fr',
520
+ gap: '1rem'
521
+ }}>
522
+ <div>
523
+ <h4>👤 Perfil de Usuario</h4>
524
+ <Property
525
+ id="user-name"
526
+ label="Full Name"
527
+ value="John Doe"
528
+ editable={true}
529
+ onChange={() => {}}
530
+ required={true}
531
+ placeholder="Enter full name"
532
+ helperText="First and last name"
533
+ />
534
+ </div>
535
+ <div>
536
+ <h4>⚙️ Configuración</h4>
537
+ <Property
538
+ id="api-key"
539
+ label="API Key"
540
+ value="sk-1234567890abcdef"
541
+ editable={false}
542
+ copyable={true}
543
+ type="password"
544
+ helperText="Click to copy API key"
545
+ />
546
+ </div>
547
+ </div>
548
+ </section>
549
+ </div>
550
+ )
551
+ }
552
+
553
+ export default PropertyExamples