ywana-core8 0.1.79 → 0.1.80

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 (63) hide show
  1. package/dist/index.cjs +3244 -2215
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.css +2095 -1125
  4. package/dist/index.css.map +1 -1
  5. package/dist/index.modern.js +3244 -2215
  6. package/dist/index.modern.js.map +1 -1
  7. package/dist/index.umd.js +3244 -2215
  8. package/dist/index.umd.js.map +1 -1
  9. package/package.json +1 -1
  10. package/src/html/ExampleLayout.css +401 -0
  11. package/src/html/ExampleLayout.js +192 -0
  12. package/src/html/README-sidebar-navigation.md +195 -0
  13. package/src/html/accordion.example.js +123 -4
  14. package/src/html/accordion.example.js.backup +390 -0
  15. package/src/html/button.example.js +50 -3
  16. package/src/html/button.example.js.backup +374 -0
  17. package/src/html/button.example.new.js +416 -0
  18. package/src/html/checkbox.example.js +93 -4
  19. package/src/html/checkbox.example.js.backup +316 -0
  20. package/src/html/chip.example.js +108 -4
  21. package/src/html/chip.example.js.backup +355 -0
  22. package/src/html/color.example.js +108 -4
  23. package/src/html/color.example.js.backup +527 -0
  24. package/src/html/components.example.js +123 -4
  25. package/src/html/components.example.js.backup +492 -0
  26. package/src/html/convert-examples.js +183 -0
  27. package/src/html/demo-sidebar.html +410 -0
  28. package/src/html/form.example.js +93 -4
  29. package/src/html/form.example.js.backup +385 -0
  30. package/src/html/header2.example.js +108 -4
  31. package/src/html/header2.example.js.backup +411 -0
  32. package/src/html/icon.example.js +77 -3
  33. package/src/html/icon.example.js.backup +268 -0
  34. package/src/html/list.example.js +93 -4
  35. package/src/html/list.example.js.backup +404 -0
  36. package/src/html/progress.example.js +74 -4
  37. package/src/html/progress.example.js.backup +424 -0
  38. package/src/html/property.example.js +123 -4
  39. package/src/html/property.example.js.backup +553 -0
  40. package/src/html/radio.example.js +108 -4
  41. package/src/html/radio.example.js.backup +389 -0
  42. package/src/html/section.example.js +42 -3
  43. package/src/html/section.example.js.backup +99 -0
  44. package/src/html/switch.example.js +108 -4
  45. package/src/html/switch.example.js.backup +461 -0
  46. package/src/html/tab.example.js +93 -4
  47. package/src/html/tab.example.js.backup +446 -0
  48. package/src/html/table-export-utils.js +483 -0
  49. package/src/html/table-summary-functions.js +363 -0
  50. package/src/html/table2.css +1449 -479
  51. package/src/html/table2.example.js +2937 -512
  52. package/src/html/table2.example.js.broken +1226 -0
  53. package/src/html/table2.js +1426 -1000
  54. package/src/html/test-resize.html +279 -0
  55. package/src/html/test-selection.html +387 -0
  56. package/src/html/textfield2.example.js +108 -4
  57. package/src/html/textfield2.example.js.backup +1370 -0
  58. package/src/html/tokenfield.example.js +108 -4
  59. package/src/html/tokenfield.example.js.backup +503 -0
  60. package/src/html/tree.css +2 -4
  61. package/src/html/tree.example.js +93 -4
  62. package/src/html/tree.example.js.backup +475 -0
  63. package/src/html/tree.js +19 -3
@@ -1,5 +1,6 @@
1
1
  import React, { useState } from 'react'
2
- import { TextField2, TextArea2, PasswordField2, DropDown2, DateRange2 } from './textfield2'
2
+ import { TextField2, TextArea2, PasswordField2, DropDown2, DateRange2 } from '
3
+ import { ExampleLayout, ExampleSection, ExampleSubsection, CodeSnippet } from './ExampleLayout'./textfield2'
3
4
 
4
5
  /**
5
6
  * Ejemplos de uso de los componentes TextField2 mejorados
@@ -87,9 +88,111 @@ export const TextField2Examples = () => {
87
88
  { value: 'urgent', label: 'Urgent', icon: 'warning' }
88
89
  ]
89
90
 
91
+ // Definir secciones para el menú lateral
92
+
93
+
94
+ const sections =
95
+
96
+ [
97
+
98
+
99
+ {
100
+
101
+
102
+ "id": "overview",
103
+
104
+
105
+ "title": "Introducción",
106
+
107
+
108
+ "icon": "info"
109
+
110
+
111
+ },
112
+
113
+
114
+ {
115
+
116
+
117
+ "id": "basic-examples",
118
+
119
+
120
+ "title": "Ejemplos Básicos",
121
+
122
+
123
+ "icon": "widgets"
124
+
125
+
126
+ },
127
+
128
+
129
+ {
130
+
131
+
132
+ "id": "advanced-features",
133
+
134
+
135
+ "title": "Características Avanzadas",
136
+
137
+
138
+ "icon": "settings"
139
+
140
+
141
+ },
142
+
143
+
144
+ {
145
+
146
+
147
+ "id": "variants",
148
+
149
+
150
+ "title": "Variantes y Temas",
151
+
152
+
153
+ "icon": "palette"
154
+
155
+
156
+ },
157
+
158
+
159
+ {
160
+
161
+
162
+ "id": "states",
163
+
164
+
165
+ "title": "Estados",
166
+
167
+
168
+ "icon": "toggle_on"
169
+
170
+
171
+ },
172
+
173
+
174
+ {
175
+
176
+
177
+ "id": "sizes",
178
+
179
+
180
+ "title": "Tamaños",
181
+
182
+
183
+ "icon": "format_size"
184
+
185
+
186
+ }
187
+
188
+
189
+ ]
190
+
191
+
192
+
90
193
  return (
91
- <div style={{ padding: '2rem', maxWidth: '1200px', maxHeight: '100vh', overflow: 'auto' }}>
92
- <h1>Ejemplos de Componentes TextField2 Mejorados</h1>
194
+ <ExampleLayout title="Textfield2 Examples" sections={sections}>
195
+ <ExampleSection id="overview" title="Ejemplos de Componentes TextField2 Mejorados" icon="widgets">
93
196
 
94
197
  <div style={{
95
198
  background: '#f8f9fa',
@@ -1363,7 +1466,8 @@ export const TextField2Examples = () => {
1363
1466
  </div>
1364
1467
  </div>
1365
1468
  </section>
1366
- </div>
1469
+ </ExampleSection>
1470
+ </ExampleLayout>
1367
1471
  )
1368
1472
  }
1369
1473