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
@@ -19,182 +19,216 @@
19
19
  color: var(--text-color);
20
20
  }
21
21
 
22
- .switch-wrapper.disabled,
23
- .switch-container.disabled {
24
- opacity: 0.6;
25
- cursor: not-allowed;
22
+ /* Switch Component */
23
+ .switch {
24
+ position: relative;
25
+ display: inline-block;
26
+ cursor: pointer;
27
+ outline: none;
28
+ border-radius: 50px;
29
+ transition: all 0.2s ease;
26
30
  }
27
31
 
28
- .switch-wrapper.disabled .switch-label,
29
- .switch-container.disabled .switch-label {
30
- cursor: not-allowed;
31
- color: var(--text-color-lighter);
32
+ .switch:focus {
33
+ outline: 2px solid var(--primary-color, #007bff);
34
+ outline-offset: 2px;
32
35
  }
33
36
 
34
- /* Error states */
35
- .switch-wrapper.error .react-switch,
36
- .switch-container.error .react-switch {
37
- border: 2px solid var(--danger-color, #dc3545);
38
- border-radius: 25px;
37
+ .switch:hover:not(.switch--disabled) {
38
+ transform: scale(1.02);
39
39
  }
40
40
 
41
- /* Switch2 Styles */
42
- .switch2-wrapper,
43
- .switch2-container {
44
- display: flex;
45
- flex-direction: column;
46
- gap: 0.5rem;
41
+ /* Switch Track */
42
+ .switch__track {
43
+ width: 48px;
44
+ height: 24px;
45
+ background-color: var(--switch-off-color, #ccc);
46
+ border-radius: 50px;
47
+ position: relative;
48
+ transition: background-color 0.25s ease;
49
+ border: 1px solid rgba(0, 0, 0, 0.1);
47
50
  }
48
51
 
49
- .switch2-container {
50
- align-items: flex-start;
52
+ .switch--checked .switch__track {
53
+ background-color: var(--switch-on-color, #007bff);
51
54
  }
52
55
 
53
- .switch2-label {
54
- display: flex;
55
- align-items: center;
56
- gap: 0.75rem;
57
- cursor: pointer;
58
- font-size: 1rem;
59
- color: var(--text-color);
56
+ /* Switch Handle */
57
+ .switch__handle {
58
+ position: absolute;
59
+ top: 2px;
60
+ left: 2px;
61
+ width: 18px;
62
+ height: 18px;
63
+ background-color: white;
64
+ border-radius: 50%;
65
+ transition: transform 0.25s ease, box-shadow 0.15s ease;
66
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
67
+ border: 1px solid rgba(255, 255, 255, 0.8);
60
68
  }
61
69
 
62
- .switch2 {
63
- display: inline-flex;
64
- align-items: center;
65
- justify-content: center;
66
- border-radius: 50%;
67
- transition: background-color 0.2s ease;
68
- cursor: pointer;
70
+ .switch--checked .switch__handle {
71
+ transform: translateX(24px);
69
72
  }
70
73
 
71
- .switch2:hover {
72
- background-color: rgba(0, 0, 0, 0.04);
74
+ .switch:active:not(.switch--disabled) .switch__handle {
75
+ box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
73
76
  }
74
77
 
75
- .switch2:focus {
76
- outline: 2px solid var(--primary-color, #2693e6);
77
- outline-offset: 2px;
78
+ /* Switch Sizes */
79
+ .switch--small .switch__track {
80
+ width: 32px;
81
+ height: 16px;
78
82
  }
79
83
 
80
- .switch2.disabled {
81
- cursor: not-allowed;
82
- opacity: 0.6;
84
+ .switch--small .switch__handle {
85
+ width: 12px;
86
+ height: 12px;
87
+ top: 1px;
88
+ left: 1px;
83
89
  }
84
90
 
85
- .switch2.disabled:hover {
86
- background-color: transparent;
91
+ .switch--small.switch--checked .switch__handle {
92
+ transform: translateX(16px);
87
93
  }
88
94
 
89
- .switch2.readonly {
90
- cursor: default;
95
+ .switch--normal .switch__track {
96
+ width: 48px;
97
+ height: 24px;
91
98
  }
92
99
 
93
- .switch2.readonly:hover {
94
- background-color: transparent;
100
+ .switch--normal .switch__handle {
101
+ width: 18px;
102
+ height: 18px;
103
+ top: 2px;
104
+ left: 2px;
95
105
  }
96
106
 
97
- .switch2.error {
98
- color: var(--danger-color, #dc3545);
107
+ .switch--normal.switch--checked .switch__handle {
108
+ transform: translateX(24px);
99
109
  }
100
110
 
101
- /* Error message styles */
102
- .error-message {
103
- color: var(--danger-color, #dc3545);
104
- font-size: 0.8rem;
105
- margin-top: 0.25rem;
106
- display: block;
111
+ .switch--large .switch__track {
112
+ width: 56px;
113
+ height: 28px;
107
114
  }
108
115
 
109
- /* React Switch customizations */
110
- .react-switch {
111
- vertical-align: middle;
112
- border: none !important;
116
+ .switch--large .switch__handle {
117
+ width: 22px;
118
+ height: 22px;
119
+ top: 2px;
120
+ left: 2px;
113
121
  }
114
122
 
115
- .react-switch > div {
116
- border: 1px solid rgba(0, 0, 0, 0.1) !important;
123
+ .switch--large.switch--checked .switch__handle {
124
+ transform: translateX(28px);
117
125
  }
118
126
 
119
- .react-switch.error {
120
- box-shadow: 0 0 0 2px var(--danger-color, #dc3545) !important;
127
+ /* Switch States */
128
+ .switch--disabled {
129
+ cursor: not-allowed;
130
+ opacity: 0.6;
121
131
  }
122
132
 
123
- .react-switch.error > div {
124
- border-color: var(--danger-color, #dc3545) !important;
133
+ .switch--disabled:hover {
134
+ transform: none;
125
135
  }
126
136
 
127
- /* Focus styles for react-switch */
128
- .react-switch:focus {
129
- outline: 2px solid var(--primary-color, #2693e6);
130
- outline-offset: 2px;
137
+ .switch--readonly {
138
+ cursor: default;
131
139
  }
132
140
 
133
- /* Ensure proper styling for react-switch background */
134
- .react-switch > div[style*="background"] {
135
- transition: background-color 0.25s ease !important;
141
+ .switch--readonly:hover {
142
+ transform: none;
136
143
  }
137
144
 
138
- /* Handle styling */
139
- .react-switch > div > div {
140
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3) !important;
141
- border: 1px solid rgba(255, 255, 255, 0.8) !important;
145
+ .switch--error .switch__track {
146
+ border-color: var(--danger-color, #dc3545);
147
+ box-shadow: 0 0 0 1px var(--danger-color, #dc3545);
142
148
  }
143
149
 
144
- /* Size variants for Switch2 */
145
- .switch2.small {
146
- padding: 0.25rem;
150
+ /* Error message styles */
151
+ .error-message {
152
+ color: var(--danger-color, #dc3545);
153
+ font-size: 0.8rem;
154
+ margin-top: 0.25rem;
155
+ display: block;
147
156
  }
148
157
 
149
- .switch2.normal {
150
- padding: 0.375rem;
158
+ /* Container States */
159
+ .switch-wrapper.disabled,
160
+ .switch-container.disabled {
161
+ opacity: 0.6;
162
+ cursor: not-allowed;
151
163
  }
152
164
 
153
- .switch2.large {
154
- padding: 0.5rem;
165
+ .switch-wrapper.disabled .switch-label,
166
+ .switch-container.disabled .switch-label {
167
+ cursor: not-allowed;
168
+ color: var(--text-color-lighter);
155
169
  }
156
170
 
157
171
  /* Responsive adjustments */
158
172
  @media (max-width: 768px) {
159
- .switch-label,
160
- .switch2-label {
173
+ .switch-label {
161
174
  font-size: 0.9rem;
162
175
  gap: 0.5rem;
163
176
  }
164
177
 
165
178
  .switch-wrapper,
166
- .switch-container,
167
- .switch2-wrapper,
168
- .switch2-container {
179
+ .switch-container {
169
180
  gap: 0.25rem;
170
181
  }
182
+
183
+ /* Slightly larger touch targets on mobile */
184
+ .switch--small .switch__track {
185
+ width: 36px;
186
+ height: 18px;
187
+ }
188
+
189
+ .switch--small .switch__handle {
190
+ width: 14px;
191
+ height: 14px;
192
+ }
171
193
  }
172
194
 
173
195
  /* High contrast mode support */
174
196
  @media (prefers-contrast: high) {
175
- .switch2:focus {
197
+ .switch:focus {
176
198
  outline-width: 3px;
177
199
  }
178
200
 
179
- .react-switch:focus {
180
- outline-width: 3px;
201
+ .switch__track {
202
+ border-width: 2px;
203
+ }
204
+
205
+ .switch__handle {
206
+ border-width: 2px;
207
+ border-color: #000;
181
208
  }
182
209
  }
183
210
 
184
211
  /* Reduced motion support */
185
212
  @media (prefers-reduced-motion: reduce) {
186
- .switch2 {
213
+ .switch,
214
+ .switch__track,
215
+ .switch__handle {
187
216
  transition: none;
188
217
  }
189
-
190
- .react-switch * {
191
- transition: none !important;
192
- }
193
218
  }
194
219
 
195
220
  /* Dark theme support */
196
221
  @media (prefers-color-scheme: dark) {
197
- .switch2:hover {
198
- background-color: rgba(255, 255, 255, 0.08);
222
+ .switch__handle {
223
+ background-color: #f8f9fa;
224
+ border-color: rgba(255, 255, 255, 0.2);
225
+ }
226
+
227
+ .switch__track {
228
+ border-color: rgba(255, 255, 255, 0.2);
229
+ }
230
+
231
+ .switch-label {
232
+ color: var(--text-color-dark, #e2e8f0);
199
233
  }
200
234
  }
@@ -1,5 +1,5 @@
1
1
  import React, { useState } from 'react'
2
- import { Switch, Switch2 } from './switch'
2
+ import { Switch } from './switch'
3
3
  import { ExampleLayout, ExampleSection, ExampleSubsection, CodeSnippet } from './ExampleLayout'
4
4
 
5
5
  /**
@@ -265,27 +265,30 @@ export const SwitchExamples = () => {
265
265
  </div>
266
266
  </section>
267
267
 
268
- {/* Switch2 básicos */}
268
+ {/* Switch con colores personalizados */}
269
269
  <section style={{ marginBottom: '2rem' }}>
270
- <h3>Switch2 Básicos (Material Icons)</h3>
270
+ <h3>Switch con Colores Personalizados</h3>
271
271
  <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem' }}>
272
- <Switch2
273
- id="analytics"
274
- label="Análisis de uso"
272
+ <Switch
273
+ id="analytics"
274
+ label="Análisis de uso"
275
275
  checked={settings.analytics}
276
276
  onChange={handleChange}
277
+ onColor="#28a745"
277
278
  />
278
- <Switch2
279
- id="marketing"
280
- label="Comunicaciones de marketing"
279
+ <Switch
280
+ id="marketing"
281
+ label="Comunicaciones de marketing"
281
282
  checked={settings.marketing}
282
283
  onChange={handleChange}
284
+ onColor="#fd7e14"
283
285
  />
284
- <Switch2
285
- id="location"
286
- label="Servicios de ubicación"
286
+ <Switch
287
+ id="location"
288
+ label="Servicios de ubicación"
287
289
  checked={settings.location}
288
290
  onChange={handleChange}
291
+ onColor="#6f42c1"
289
292
  />
290
293
  </div>
291
294
  </section>
@@ -302,11 +305,12 @@ export const SwitchExamples = () => {
302
305
  checked={true}
303
306
  onChange={() => {}}
304
307
  />
305
- <Switch2
306
- id="size2-small"
308
+ <Switch
309
+ id="size2-small"
307
310
  size="small"
308
311
  checked={true}
309
312
  onChange={() => {}}
313
+ onColor="#28a745"
310
314
  />
311
315
  </div>
312
316
  <div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
@@ -317,11 +321,12 @@ export const SwitchExamples = () => {
317
321
  checked={true}
318
322
  onChange={() => {}}
319
323
  />
320
- <Switch2
321
- id="size2-normal"
324
+ <Switch
325
+ id="size2-normal"
322
326
  size="normal"
323
327
  checked={true}
324
328
  onChange={() => {}}
329
+ onColor="#fd7e14"
325
330
  />
326
331
  </div>
327
332
  <div style={{ display: 'flex', alignItems: 'center', gap: '1rem' }}>
@@ -332,11 +337,12 @@ export const SwitchExamples = () => {
332
337
  checked={true}
333
338
  onChange={() => {}}
334
339
  />
335
- <Switch2
336
- id="size2-large"
340
+ <Switch
341
+ id="size2-large"
337
342
  size="large"
338
343
  checked={true}
339
344
  onChange={() => {}}
345
+ onColor="#6f42c1"
340
346
  />
341
347
  </div>
342
348
  </div>
@@ -353,26 +359,27 @@ export const SwitchExamples = () => {
353
359
  disabled={true}
354
360
  onChange={handleChange}
355
361
  />
356
- <Switch2
357
- id="readonly"
358
- label="Switch2 solo lectura"
362
+ <Switch
363
+ id="readonly"
364
+ label="Switch solo lectura"
359
365
  checked={true}
360
366
  readOnly={true}
361
367
  onChange={handleChange}
362
368
  />
363
- <Switch
364
- id="error-switch"
365
- label="Switch con error"
369
+ <Switch
370
+ id="error-switch"
371
+ label="Switch con error"
366
372
  checked={settings.notifications}
367
373
  error={validationErrors.notifications}
368
374
  onChange={handleChange}
369
375
  />
370
- <Switch2
371
- id="error-switch2"
372
- label="Switch2 con error"
376
+ <Switch
377
+ id="error-switch2"
378
+ label="Switch con error personalizado"
373
379
  checked={settings.analytics}
374
380
  error={validationErrors.analytics}
375
381
  onChange={handleChange}
382
+ onColor="#dc3545"
376
383
  />
377
384
  </div>
378
385
  </section>
@@ -388,19 +395,21 @@ export const SwitchExamples = () => {
388
395
  }}>
389
396
  <h4>Conectividad</h4>
390
397
  <div style={{ display: 'flex', flexDirection: 'column', gap: '1rem', marginBottom: '1.5rem' }}>
391
- <Switch2
392
- id="wifi"
393
- label="Wi-Fi"
398
+ <Switch
399
+ id="wifi"
400
+ label="Wi-Fi"
394
401
  checked={settings.wifi}
395
402
  onChange={handleChange}
396
403
  ariaLabel="Activar o desactivar conexión Wi-Fi"
404
+ onColor="#28a745"
397
405
  />
398
- <Switch2
399
- id="bluetooth"
400
- label="Bluetooth"
406
+ <Switch
407
+ id="bluetooth"
408
+ label="Bluetooth"
401
409
  checked={settings.bluetooth}
402
410
  onChange={handleChange}
403
411
  ariaLabel="Activar o desactivar Bluetooth"
412
+ onColor="#17a2b8"
404
413
  />
405
414
  </div>
406
415
 
@@ -489,10 +498,11 @@ export const SwitchExamples = () => {
489
498
  label="Switch accesible 1"
490
499
  onChange={handleChange}
491
500
  />
492
- <Switch2
493
- id="a11y2"
494
- label="Switch2 accesible 2"
501
+ <Switch
502
+ id="a11y2"
503
+ label="Switch accesible 2"
495
504
  onChange={handleChange}
505
+ onColor="#6f42c1"
496
506
  />
497
507
  <Switch
498
508
  id="a11y3"