ywana-core8 0.1.103 → 0.2.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.
Files changed (172) hide show
  1. package/dist/index.css +4941 -324
  2. package/dist/index.js +42339 -0
  3. package/dist/index.js.map +1 -0
  4. package/dist/index.modern.js +37459 -31678
  5. package/dist/index.modern.js.map +1 -1
  6. package/dist/index.umd.js +39635 -34010
  7. package/dist/index.umd.js.map +1 -1
  8. package/package.json +26 -29
  9. package/src/Test.stories.jsx +28 -0
  10. package/src/desktop/Desktop.stories.jsx +110 -0
  11. package/src/desktop/WindowContext.js +135 -0
  12. package/src/desktop/WindowManager.js +355 -0
  13. package/src/desktop/desktop.css +55 -4
  14. package/src/desktop/desktop.js +312 -6
  15. package/src/desktop/index.js +7 -0
  16. package/src/desktop/window.css +229 -36
  17. package/src/desktop/window.js +255 -20
  18. package/src/desktop.backup/desktop.css +6 -0
  19. package/src/desktop.backup/desktop.js +13 -0
  20. package/src/desktop.backup/window.css +58 -0
  21. package/src/desktop.backup/window.js +27 -0
  22. package/src/html/Accordion.stories.jsx +178 -0
  23. package/src/html/Button.stories.jsx +175 -0
  24. package/src/html/Checkbox.stories.jsx +131 -0
  25. package/src/html/Chip.stories.jsx +189 -0
  26. package/src/html/Color.stories.jsx +234 -0
  27. package/src/html/Form.stories.jsx +271 -0
  28. package/src/html/Icon.stories.jsx +233 -0
  29. package/src/html/Progress.stories.jsx +247 -0
  30. package/src/html/Radio.stories.jsx +289 -0
  31. package/src/html/StyleTest.stories.jsx +81 -0
  32. package/src/html/Switch.stories.jsx +329 -0
  33. package/src/html/Tab.stories.jsx +239 -0
  34. package/src/html/Table.stories.jsx +188 -0
  35. package/src/html/Table2.stories.jsx +238 -0
  36. package/src/html/TextField2.stories.jsx +337 -0
  37. package/src/html/Tree.stories.jsx +285 -0
  38. package/src/html/accordion.example.js +0 -74
  39. package/src/html/accordion.js +1 -6
  40. package/src/html/button.js +2 -13
  41. package/src/html/checkbox.js +1 -9
  42. package/src/html/chip.js +2 -19
  43. package/src/html/color.js +1 -14
  44. package/src/html/form.js +4 -15
  45. package/src/html/header2.js +1 -12
  46. package/src/html/icon.js +1 -7
  47. package/src/html/index.js +1 -1
  48. package/src/html/list.js +1 -19
  49. package/src/html/menu.js +9 -5
  50. package/src/html/progress.js +5 -53
  51. package/src/html/property.js +9 -25
  52. package/src/html/radio.js +2 -16
  53. package/src/html/section.js +1 -6
  54. package/src/html/selector.js +2 -19
  55. package/src/html/switch.css +134 -100
  56. package/src/html/switch.example.js +46 -36
  57. package/src/html/switch.js +43 -192
  58. package/src/html/tab.js +3 -24
  59. package/src/html/text.js +1 -12
  60. package/src/html/textfield2.js +5 -42
  61. package/src/html/thumbnail.js +1 -12
  62. package/src/html/tokenfield.js +2 -21
  63. package/src/html/tree.js +3 -35
  64. package/src/index.js +1 -0
  65. package/__previewjs__/Wrapper.tsx +0 -14
  66. package/build-doc.sh +0 -10
  67. package/db/db.json +0 -89
  68. package/db/routes.json +0 -0
  69. package/dist/index.cjs +0 -36722
  70. package/dist/index.cjs.map +0 -1
  71. package/dist/index.css.map +0 -1
  72. package/doc/README.md +0 -196
  73. package/doc/evalulations/ACCORDION_EVALUATION.md +0 -583
  74. package/doc/evalulations/CHECKBOX_EVALUATION.md +0 -273
  75. package/doc/evalulations/CHIP_EVALUATION.md +0 -542
  76. package/doc/evalulations/COLOR_EVALUATION.md +0 -524
  77. package/doc/evalulations/COMPONENTS_EVALUATION.md +0 -477
  78. package/doc/evalulations/FORM_EVALUATION.md +0 -459
  79. package/doc/evalulations/HEADER_EVALUATION.md +0 -436
  80. package/doc/evalulations/ICON_EVALUATION.md +0 -254
  81. package/doc/evalulations/LIST_EVALUATION.md +0 -574
  82. package/doc/evalulations/PROGRESS_EVALUATION.md +0 -450
  83. package/doc/evalulations/RADIO_EVALUATION.md +0 -439
  84. package/doc/evalulations/RADIO_VISUAL_FIX.md +0 -183
  85. package/doc/evalulations/SECTION_IMPROVEMENTS.md +0 -153
  86. package/doc/evalulations/SWITCH_EVALUATION.md +0 -335
  87. package/doc/evalulations/SWITCH_VISUAL_FIX.md +0 -232
  88. package/doc/evalulations/TAB_EVALUATION.md +0 -626
  89. package/doc/evalulations/TEXTFIELD_EVALUATION.md +0 -747
  90. package/doc/evalulations/TOOLTIP_FIX.md +0 -157
  91. package/doc/evalulations/TREE_EVALUATION.md +0 -708
  92. package/doc/index.html +0 -0
  93. package/doc/package-lock.json +0 -17298
  94. package/doc/package.json +0 -34
  95. package/doc/public/index.html +0 -24
  96. package/doc/scripts/generate-examples.js +0 -129
  97. package/doc/src/App.css +0 -171
  98. package/doc/src/App.js +0 -114
  99. package/doc/src/components/ExamplePage.js +0 -129
  100. package/doc/src/components/WelcomePage.js +0 -84
  101. package/doc/src/index.css +0 -246
  102. package/doc/src/index.js +0 -17
  103. package/doc/src/theme.css +0 -256
  104. package/jest.config.js +0 -24
  105. package/preview.config.js +0 -38
  106. package/publish.sh +0 -6
  107. package/src/desktop/dektop.test.js +0 -11
  108. package/src/domain/CollectionAPI.test.js +0 -19
  109. package/src/domain/ContentEditor.test.js +0 -52
  110. package/src/domain2/CollectionAPI.test.js +0 -19
  111. package/src/domain2/CollectionContext.test.js +0 -71
  112. package/src/domain2/CollectionPage.test.js +0 -112
  113. package/src/domain2/DynamicForm.test.js +0 -47
  114. package/src/html/accordion.test.js +0 -37
  115. package/src/html/accordion.unit.test.js +0 -334
  116. package/src/html/button.example.new.js +0 -416
  117. package/src/html/button.test.js +0 -422
  118. package/src/html/checkbox.test.js +0 -285
  119. package/src/html/chip.test.js +0 -425
  120. package/src/html/color.example.js.backup +0 -527
  121. package/src/html/color.test.js +0 -377
  122. package/src/html/components.example.js.backup +0 -492
  123. package/src/html/components_enhanced.test.js +0 -581
  124. package/src/html/form.example.js.backup +0 -385
  125. package/src/html/form.test.js +0 -369
  126. package/src/html/header2.example.js.backup +0 -411
  127. package/src/html/header2.test.js +0 -377
  128. package/src/html/icon.example.js.backup +0 -268
  129. package/src/html/icon.test.js +0 -231
  130. package/src/html/label.test.js +0 -0
  131. package/src/html/list.example.js.backup +0 -404
  132. package/src/html/list.test.js +0 -383
  133. package/src/html/progress.example.js.backup +0 -424
  134. package/src/html/progress.test.js +0 -313
  135. package/src/html/property.example.js.backup +0 -553
  136. package/src/html/property.test.js +0 -371
  137. package/src/html/radio.example.js.backup +0 -389
  138. package/src/html/radio.test.js +0 -318
  139. package/src/html/section.example.js.backup +0 -99
  140. package/src/html/section.test.js +0 -131
  141. package/src/html/selector.test.js +0 -20
  142. package/src/html/switch.example.js.backup +0 -461
  143. package/src/html/switch.test.js +0 -355
  144. package/src/html/tab.example.js.backup +0 -446
  145. package/src/html/tab.test.js +0 -25
  146. package/src/html/tab_enhanced.test.js +0 -504
  147. package/src/html/table.test.js +0 -70
  148. package/src/html/table2.test.js +0 -582
  149. package/src/html/text.test.js +0 -15
  150. package/src/html/textfield.test.js +0 -51
  151. package/src/html/textfield2.example.js.backup +0 -1370
  152. package/src/html/textfield2.test.js +0 -950
  153. package/src/html/tokenfield.example.js.backup +0 -503
  154. package/src/html/tokenfield.test.js +0 -423
  155. package/src/html/tree.example.js.backup +0 -475
  156. package/src/html/tree.test.js +0 -43
  157. package/src/html/tree_enhanced.test.js +0 -495
  158. package/src/http/token.test.js +0 -50
  159. package/src/incubator/pdfViewer.js +0 -33
  160. package/src/incubator/wizard.test.js +0 -127
  161. package/src/site/site.test.js +0 -230
  162. package/src/site/view.test.js +0 -41
  163. package/src/widgets/calendar/Calendar.test.js +0 -28
  164. package/src/widgets/explorer/Explorer.test.js +0 -121
  165. package/src/widgets/ide/editor.test.js +0 -33
  166. package/src/widgets/kanban/Kanban.test.js +0 -78
  167. package/src/widgets/login/LoginBox.test.js +0 -12
  168. package/src/widgets/login/ResetPasswordBox.test.js +0 -34
  169. package/src/widgets/login/validations.test.js +0 -51
  170. package/src/widgets/planner/Planner.test.js +0 -60
  171. package/src/widgets/upload/Upload.test.js +0 -32
  172. package/table2.test.js +0 -454
@@ -1,461 +0,0 @@
1
- import React, { useState } from 'react'
2
- import { Switch, Switch2 } from './switch'
3
-
4
- /**
5
- * Ejemplos de uso de los componentes Switch mejorados
6
- */
7
- export const SwitchExamples = () => {
8
- const [settings, setSettings] = useState({
9
- notifications: true,
10
- darkMode: false,
11
- autoSave: true,
12
- analytics: false,
13
- marketing: false,
14
- location: true,
15
- bluetooth: false,
16
- wifi: true
17
- })
18
-
19
- const [validationErrors, setValidationErrors] = useState({})
20
-
21
- const handleChange = (id, value) => {
22
- setSettings(prev => ({ ...prev, [id]: value }))
23
-
24
- // Limpiar errores cuando el usuario interactúa
25
- if (validationErrors[id]) {
26
- setValidationErrors(prev => ({ ...prev, [id]: null }))
27
- }
28
- }
29
-
30
- const validateSettings = () => {
31
- const errors = {}
32
-
33
- if (!settings.notifications && !settings.analytics) {
34
- errors.notifications = 'Al menos una opción de comunicación debe estar activa'
35
- errors.analytics = 'Al menos una opción de comunicación debe estar activa'
36
- }
37
-
38
- setValidationErrors(errors)
39
- return Object.keys(errors).length === 0
40
- }
41
-
42
- const handleSave = () => {
43
- if (validateSettings()) {
44
- alert('Configuración guardada: ' + JSON.stringify(settings, null, 2))
45
- }
46
- }
47
-
48
- return (
49
- <div style={{ padding: '2rem', maxWidth: '800px' }}>
50
- <h1>Ejemplos de Componentes Switch Mejorados</h1>
51
-
52
- {/* Prueba visual rápida */}
53
- <section style={{ marginBottom: '2rem' }}>
54
- <h3>🔍 Prueba Visual Rápida</h3>
55
- <div style={{
56
- background: '#fff',
57
- padding: '1.5rem',
58
- borderRadius: '8px',
59
- border: '2px solid #007bff',
60
- marginBottom: '1rem'
61
- }}>
62
- <p><strong>Verifica que estos switches se vean correctamente:</strong></p>
63
- <div style={{ display: 'flex', alignItems: 'center', gap: '2rem', flexWrap: 'wrap' }}>
64
- <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
65
- <span>OFF:</span>
66
- <Switch checked={false} onChange={() => {}} />
67
- </div>
68
- <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
69
- <span>ON:</span>
70
- <Switch checked={true} onChange={() => {}} />
71
- </div>
72
- <div style={{ display: 'flex', alignItems: 'center', gap: '0.5rem' }}>
73
- <span>Disabled:</span>
74
- <Switch checked={true} disabled={true} onChange={() => {}} />
75
- </div>
76
- </div>
77
- <p style={{ marginTop: '1rem', fontSize: '0.9rem', color: '#666' }}>
78
- ✅ Deberías ver switches con fondo azul cuando están ON, gris cuando están OFF, y con handle blanco que se desliza.
79
- </p>
80
- </div>
81
- </section>
82
-
83
- <div style={{
84
- background: '#f8f9fa',
85
- padding: '1rem',
86
- borderRadius: '8px',
87
- marginBottom: '2rem',
88
- border: '1px solid #e9ecef'
89
- }}>
90
- <h3>✅ Mejoras Implementadas:</h3>
91
- <ul>
92
- <li>🛡️ <strong>Validación de props</strong> - Advertencias para props incorrectas</li>
93
- <li>♿ <strong>Accesibilidad completa</strong> - ARIA, soporte de teclado, focus</li>
94
- <li>📝 <strong>PropTypes y documentación</strong> - Validación y documentación completa</li>
95
- <li>🎯 <strong>Estados avanzados</strong> - disabled, readOnly, error</li>
96
- <li>🎨 <strong>CSS mejorado</strong> - Estados visuales consistentes y responsivos</li>
97
- <li>⌨️ <strong>Soporte de teclado</strong> - Enter y Espacio para alternar</li>
98
- <li>🔧 <strong>Manejo de errores</strong> - Mensajes de error integrados</li>
99
- <li>📏 <strong>Tamaños múltiples</strong> - small, normal, large</li>
100
- <li>🎨 <strong>Colores personalizables</strong> - Integración con sistema de temas</li>
101
- <li>🧪 <strong>Pruebas unitarias</strong> - 17 pruebas que cubren toda la funcionalidad</li>
102
- </ul>
103
- </div>
104
-
105
- {/* Switch básicos */}
106
- <section style={{ marginBottom: '2rem' }}>
107
- <h3>Switch Básicos (react-switch)</h3>
108
- <div style={{
109
- background: '#fff',
110
- padding: '1.5rem',
111
- borderRadius: '8px',
112
- border: '1px solid #ddd'
113
- }}>
114
- <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
115
- <Switch
116
- id="notifications"
117
- label="Notificaciones push"
118
- checked={settings.notifications}
119
- onChange={handleChange}
120
- />
121
- <Switch
122
- id="darkMode"
123
- label="Modo oscuro"
124
- checked={settings.darkMode}
125
- onChange={handleChange}
126
- />
127
- <Switch
128
- id="autoSave"
129
- label="Guardado automático"
130
- checked={settings.autoSave}
131
- onChange={handleChange}
132
- />
133
-
134
- {/* Switches con colores personalizados */}
135
- <div style={{ marginTop: '1rem', paddingTop: '1rem', borderTop: '1px solid #eee' }}>
136
- <h4 style={{ margin: '0 0 1rem 0', fontSize: '1rem', color: '#666' }}>Con colores personalizados:</h4>
137
- <Switch
138
- id="custom1"
139
- label="Switch verde"
140
- checked={true}
141
- onColor="#28a745"
142
- onChange={() => {}}
143
- />
144
- <br />
145
- <Switch
146
- id="custom2"
147
- label="Switch naranja"
148
- checked={true}
149
- onColor="#fd7e14"
150
- onChange={() => {}}
151
- />
152
- <br />
153
- <Switch
154
- id="custom3"
155
- label="Switch púrpura"
156
- checked={true}
157
- onColor="#6f42c1"
158
- onChange={() => {}}
159
- />
160
- </div>
161
- </div>
162
- </div>
163
- </section>
164
-
165
- {/* Switch2 básicos */}
166
- <section style={{ marginBottom: '2rem' }}>
167
- <h3>Switch2 Básicos (Material Icons)</h3>
168
- <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
169
- <Switch2
170
- id="analytics"
171
- label="Análisis de uso"
172
- checked={settings.analytics}
173
- onChange={handleChange}
174
- />
175
- <Switch2
176
- id="marketing"
177
- label="Comunicaciones de marketing"
178
- checked={settings.marketing}
179
- onChange={handleChange}
180
- />
181
- <Switch2
182
- id="location"
183
- label="Servicios de ubicación"
184
- checked={settings.location}
185
- onChange={handleChange}
186
- />
187
- </div>
188
- </section>
189
-
190
- {/* Diferentes tamaños */}
191
- <section style={{ marginBottom: '2rem' }}>
192
- <h3>Diferentes Tamaños</h3>
193
- <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
194
- <div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
195
- <span style={{ minWidth: '100px' }}>Small:</span>
196
- <Switch
197
- id="size-small"
198
- size="small"
199
- checked={true}
200
- onChange={() => {}}
201
- />
202
- <Switch2
203
- id="size2-small"
204
- size="small"
205
- checked={true}
206
- onChange={() => {}}
207
- />
208
- </div>
209
- <div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
210
- <span style={{ minWidth: '100px' }}>Normal:</span>
211
- <Switch
212
- id="size-normal"
213
- size="normal"
214
- checked={true}
215
- onChange={() => {}}
216
- />
217
- <Switch2
218
- id="size2-normal"
219
- size="normal"
220
- checked={true}
221
- onChange={() => {}}
222
- />
223
- </div>
224
- <div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
225
- <span style={{ minWidth: '100px' }}>Large:</span>
226
- <Switch
227
- id="size-large"
228
- size="large"
229
- checked={true}
230
- onChange={() => {}}
231
- />
232
- <Switch2
233
- id="size2-large"
234
- size="large"
235
- checked={true}
236
- onChange={() => {}}
237
- />
238
- </div>
239
- </div>
240
- </section>
241
-
242
- {/* Estados especiales */}
243
- <section style={{ marginBottom: '2rem' }}>
244
- <h3>Estados Especiales</h3>
245
- <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
246
- <Switch
247
- id="disabled"
248
- label="Switch deshabilitado"
249
- checked={true}
250
- disabled={true}
251
- onChange={handleChange}
252
- />
253
- <Switch2
254
- id="readonly"
255
- label="Switch2 solo lectura"
256
- checked={true}
257
- readOnly={true}
258
- onChange={handleChange}
259
- />
260
- <Switch
261
- id="error-switch"
262
- label="Switch con error"
263
- checked={settings.notifications}
264
- error={validationErrors.notifications}
265
- onChange={handleChange}
266
- />
267
- <Switch2
268
- id="error-switch2"
269
- label="Switch2 con error"
270
- checked={settings.analytics}
271
- error={validationErrors.analytics}
272
- onChange={handleChange}
273
- />
274
- </div>
275
- </section>
276
-
277
- {/* Panel de configuración */}
278
- <section style={{ marginBottom: '2rem' }}>
279
- <h3>Panel de Configuración</h3>
280
- <div style={{
281
- background: '#fff',
282
- padding: '1.5rem',
283
- borderRadius: '8px',
284
- border: '1px solid #ddd'
285
- }}>
286
- <h4>Conectividad</h4>
287
- <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem', marginBottom: '1.5rem' }}>
288
- <Switch2
289
- id="wifi"
290
- label="Wi-Fi"
291
- checked={settings.wifi}
292
- onChange={handleChange}
293
- ariaLabel="Activar o desactivar conexión Wi-Fi"
294
- />
295
- <Switch2
296
- id="bluetooth"
297
- label="Bluetooth"
298
- checked={settings.bluetooth}
299
- onChange={handleChange}
300
- ariaLabel="Activar o desactivar Bluetooth"
301
- />
302
- </div>
303
-
304
- <h4>Privacidad</h4>
305
- <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem', marginBottom: '1.5rem' }}>
306
- <Switch
307
- id="notifications"
308
- label="Notificaciones"
309
- checked={settings.notifications}
310
- error={validationErrors.notifications}
311
- required={true}
312
- onChange={handleChange}
313
- />
314
- <Switch
315
- id="analytics"
316
- label="Análisis de uso"
317
- checked={settings.analytics}
318
- error={validationErrors.analytics}
319
- onChange={handleChange}
320
- />
321
- </div>
322
-
323
- <div style={{ display: 'flex', gap: '1rem' }}>
324
- <button
325
- onClick={handleSave}
326
- style={{
327
- padding: '0.5rem 1rem',
328
- backgroundColor: '#007bff',
329
- color: 'white',
330
- border: 'none',
331
- borderRadius: '4px',
332
- cursor: 'pointer'
333
- }}
334
- >
335
- Guardar Configuración
336
- </button>
337
- <button
338
- onClick={() => {
339
- setSettings({
340
- notifications: true,
341
- darkMode: false,
342
- autoSave: true,
343
- analytics: false,
344
- marketing: false,
345
- location: true,
346
- bluetooth: false,
347
- wifi: true
348
- })
349
- setValidationErrors({})
350
- }}
351
- style={{
352
- padding: '0.5rem 1rem',
353
- backgroundColor: '#6c757d',
354
- color: 'white',
355
- border: 'none',
356
- borderRadius: '4px',
357
- cursor: 'pointer'
358
- }}
359
- >
360
- Resetear
361
- </button>
362
- </div>
363
- </div>
364
- </section>
365
-
366
- {/* Demostración de accesibilidad */}
367
- <section style={{ marginBottom: '2rem' }}>
368
- <h3>Demostración de Accesibilidad</h3>
369
- <div style={{
370
- background: '#e8f5e8',
371
- padding: '1rem',
372
- borderRadius: '4px',
373
- border: '1px solid #c8e6c9'
374
- }}>
375
- <p><strong>Prueba la accesibilidad:</strong></p>
376
- <ol>
377
- <li>Usa <kbd>Tab</kbd> para navegar entre switches</li>
378
- <li>Usa <kbd>Espacio</kbd> o <kbd>Enter</kbd> para alternar el estado</li>
379
- <li>Observa los indicadores de focus</li>
380
- <li>Los lectores de pantalla anunciarán el estado y etiquetas</li>
381
- </ol>
382
-
383
- <div style={{ marginTop: '1rem', display: 'flex', flexDirection: 'column', gap: '0.5rem' }}>
384
- <Switch
385
- id="a11y1"
386
- label="Switch accesible 1"
387
- onChange={handleChange}
388
- />
389
- <Switch2
390
- id="a11y2"
391
- label="Switch2 accesible 2"
392
- onChange={handleChange}
393
- />
394
- <Switch
395
- id="a11y3"
396
- label="Switch accesible 3"
397
- onChange={handleChange}
398
- />
399
- </div>
400
- </div>
401
- </section>
402
-
403
- {/* Comparación antes/después */}
404
- <section>
405
- <h3>Comparación: Antes vs Después</h3>
406
- <div style={{ display: 'grid', gridTemplateColumns: '1fr 1fr', gap: '1rem' }}>
407
- <div style={{
408
- background: '#ffebee',
409
- padding: '1rem',
410
- borderRadius: '4px',
411
- border: '1px solid #ffcdd2'
412
- }}>
413
- <h4>❌ Antes</h4>
414
- <ul>
415
- <li>Sin validación de props</li>
416
- <li>Sin accesibilidad</li>
417
- <li>Colores hardcodeados</li>
418
- <li>Sin estados avanzados</li>
419
- <li>Sin manejo de errores</li>
420
- <li>Sin soporte de teclado</li>
421
- <li>Sin documentación</li>
422
- </ul>
423
- </div>
424
- <div style={{
425
- background: '#e8f5e8',
426
- padding: '1rem',
427
- borderRadius: '4px',
428
- border: '1px solid #c8e6c9'
429
- }}>
430
- <h4>✅ Después</h4>
431
- <ul>
432
- <li>PropTypes completos</li>
433
- <li>Accesibilidad total</li>
434
- <li>Colores personalizables</li>
435
- <li>Estados avanzados</li>
436
- <li>Manejo integrado de errores</li>
437
- <li>Soporte completo de teclado</li>
438
- <li>Documentación y ejemplos</li>
439
- </ul>
440
- </div>
441
- </div>
442
- </section>
443
-
444
- {/* Estado actual */}
445
- <section style={{ marginTop: '2rem' }}>
446
- <h3>Estado Actual de la Configuración</h3>
447
- <pre style={{
448
- background: '#f8f9fa',
449
- padding: '1rem',
450
- borderRadius: '4px',
451
- fontSize: '0.9rem',
452
- overflow: 'auto'
453
- }}>
454
- {JSON.stringify(settings, null, 2)}
455
- </pre>
456
- </section>
457
- </div>
458
- )
459
- }
460
-
461
- export default SwitchExamples