ywana-core8 0.1.103 → 0.2.1
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/index.css +4941 -324
- package/dist/index.js +42338 -0
- package/dist/index.js.map +1 -0
- package/dist/index.modern.js +37458 -31678
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +39634 -34010
- package/dist/index.umd.js.map +1 -1
- package/package.json +26 -29
- package/src/Test.stories.jsx +28 -0
- package/src/desktop/Desktop.stories.jsx +110 -0
- package/src/desktop/WindowContext.js +135 -0
- package/src/desktop/WindowManager.js +355 -0
- package/src/desktop/desktop.css +55 -4
- package/src/desktop/desktop.js +312 -6
- package/src/desktop/index.js +7 -0
- package/src/desktop/window.css +229 -36
- package/src/desktop/window.js +254 -20
- package/src/desktop.backup/desktop.css +6 -0
- package/src/desktop.backup/desktop.js +13 -0
- package/src/desktop.backup/window.css +58 -0
- package/src/desktop.backup/window.js +27 -0
- package/src/html/Accordion.stories.jsx +178 -0
- package/src/html/Button.stories.jsx +175 -0
- package/src/html/Checkbox.stories.jsx +131 -0
- package/src/html/Chip.stories.jsx +189 -0
- package/src/html/Color.stories.jsx +234 -0
- package/src/html/Form.stories.jsx +271 -0
- package/src/html/Icon.stories.jsx +233 -0
- package/src/html/Progress.stories.jsx +247 -0
- package/src/html/Radio.stories.jsx +289 -0
- package/src/html/StyleTest.stories.jsx +81 -0
- package/src/html/Switch.stories.jsx +329 -0
- package/src/html/Tab.stories.jsx +239 -0
- package/src/html/Table.stories.jsx +188 -0
- package/src/html/Table2.stories.jsx +238 -0
- package/src/html/TextField2.stories.jsx +337 -0
- package/src/html/Tree.stories.jsx +285 -0
- package/src/html/accordion.example.js +0 -74
- package/src/html/accordion.js +1 -6
- package/src/html/button.js +2 -13
- package/src/html/checkbox.js +1 -9
- package/src/html/chip.js +2 -19
- package/src/html/color.js +1 -14
- package/src/html/form.js +4 -15
- package/src/html/header2.js +1 -12
- package/src/html/icon.js +1 -7
- package/src/html/index.js +1 -1
- package/src/html/list.js +1 -19
- package/src/html/menu.js +9 -5
- package/src/html/progress.js +5 -53
- package/src/html/property.js +9 -25
- package/src/html/radio.js +2 -16
- package/src/html/section.js +1 -6
- package/src/html/selector.js +2 -19
- package/src/html/switch.css +134 -100
- package/src/html/switch.example.js +46 -36
- package/src/html/switch.js +43 -192
- package/src/html/tab.js +3 -24
- package/src/html/text.js +1 -12
- package/src/html/textfield2.js +5 -42
- package/src/html/thumbnail.js +1 -12
- package/src/html/tokenfield.js +2 -21
- package/src/html/tree.js +3 -35
- package/src/index.js +1 -0
- package/__previewjs__/Wrapper.tsx +0 -14
- package/build-doc.sh +0 -10
- package/db/db.json +0 -89
- package/db/routes.json +0 -0
- package/dist/index.cjs +0 -36722
- package/dist/index.cjs.map +0 -1
- package/dist/index.css.map +0 -1
- package/doc/README.md +0 -196
- package/doc/evalulations/ACCORDION_EVALUATION.md +0 -583
- package/doc/evalulations/CHECKBOX_EVALUATION.md +0 -273
- package/doc/evalulations/CHIP_EVALUATION.md +0 -542
- package/doc/evalulations/COLOR_EVALUATION.md +0 -524
- package/doc/evalulations/COMPONENTS_EVALUATION.md +0 -477
- package/doc/evalulations/FORM_EVALUATION.md +0 -459
- package/doc/evalulations/HEADER_EVALUATION.md +0 -436
- package/doc/evalulations/ICON_EVALUATION.md +0 -254
- package/doc/evalulations/LIST_EVALUATION.md +0 -574
- package/doc/evalulations/PROGRESS_EVALUATION.md +0 -450
- package/doc/evalulations/RADIO_EVALUATION.md +0 -439
- package/doc/evalulations/RADIO_VISUAL_FIX.md +0 -183
- package/doc/evalulations/SECTION_IMPROVEMENTS.md +0 -153
- package/doc/evalulations/SWITCH_EVALUATION.md +0 -335
- package/doc/evalulations/SWITCH_VISUAL_FIX.md +0 -232
- package/doc/evalulations/TAB_EVALUATION.md +0 -626
- package/doc/evalulations/TEXTFIELD_EVALUATION.md +0 -747
- package/doc/evalulations/TOOLTIP_FIX.md +0 -157
- package/doc/evalulations/TREE_EVALUATION.md +0 -708
- package/doc/index.html +0 -0
- package/doc/package-lock.json +0 -17298
- package/doc/package.json +0 -34
- package/doc/public/index.html +0 -24
- package/doc/scripts/generate-examples.js +0 -129
- package/doc/src/App.css +0 -171
- package/doc/src/App.js +0 -114
- package/doc/src/components/ExamplePage.js +0 -129
- package/doc/src/components/WelcomePage.js +0 -84
- package/doc/src/index.css +0 -246
- package/doc/src/index.js +0 -17
- package/doc/src/theme.css +0 -256
- package/jest.config.js +0 -24
- package/preview.config.js +0 -38
- package/publish.sh +0 -6
- package/src/desktop/dektop.test.js +0 -11
- package/src/domain/CollectionAPI.test.js +0 -19
- package/src/domain/ContentEditor.test.js +0 -52
- package/src/domain2/CollectionAPI.test.js +0 -19
- package/src/domain2/CollectionContext.test.js +0 -71
- package/src/domain2/CollectionPage.test.js +0 -112
- package/src/domain2/DynamicForm.test.js +0 -47
- package/src/html/accordion.test.js +0 -37
- package/src/html/accordion.unit.test.js +0 -334
- package/src/html/button.example.new.js +0 -416
- package/src/html/button.test.js +0 -422
- package/src/html/checkbox.test.js +0 -285
- package/src/html/chip.test.js +0 -425
- package/src/html/color.example.js.backup +0 -527
- package/src/html/color.test.js +0 -377
- package/src/html/components.example.js.backup +0 -492
- package/src/html/components_enhanced.test.js +0 -581
- package/src/html/form.example.js.backup +0 -385
- package/src/html/form.test.js +0 -369
- package/src/html/header2.example.js.backup +0 -411
- package/src/html/header2.test.js +0 -377
- package/src/html/icon.example.js.backup +0 -268
- package/src/html/icon.test.js +0 -231
- package/src/html/label.test.js +0 -0
- package/src/html/list.example.js.backup +0 -404
- package/src/html/list.test.js +0 -383
- package/src/html/progress.example.js.backup +0 -424
- package/src/html/progress.test.js +0 -313
- package/src/html/property.example.js.backup +0 -553
- package/src/html/property.test.js +0 -371
- package/src/html/radio.example.js.backup +0 -389
- package/src/html/radio.test.js +0 -318
- package/src/html/section.example.js.backup +0 -99
- package/src/html/section.test.js +0 -131
- package/src/html/selector.test.js +0 -20
- package/src/html/switch.example.js.backup +0 -461
- package/src/html/switch.test.js +0 -355
- package/src/html/tab.example.js.backup +0 -446
- package/src/html/tab.test.js +0 -25
- package/src/html/tab_enhanced.test.js +0 -504
- package/src/html/table.test.js +0 -70
- package/src/html/table2.test.js +0 -582
- package/src/html/text.test.js +0 -15
- package/src/html/textfield.test.js +0 -51
- package/src/html/textfield2.example.js.backup +0 -1370
- package/src/html/textfield2.test.js +0 -950
- package/src/html/tokenfield.example.js.backup +0 -503
- package/src/html/tokenfield.test.js +0 -423
- package/src/html/tree.example.js.backup +0 -475
- package/src/html/tree.test.js +0 -43
- package/src/html/tree_enhanced.test.js +0 -495
- package/src/http/token.test.js +0 -50
- package/src/incubator/pdfViewer.js +0 -33
- package/src/incubator/wizard.test.js +0 -127
- package/src/site/site.test.js +0 -230
- package/src/site/view.test.js +0 -41
- package/src/widgets/calendar/Calendar.test.js +0 -28
- package/src/widgets/explorer/Explorer.test.js +0 -121
- package/src/widgets/ide/editor.test.js +0 -33
- package/src/widgets/kanban/Kanban.test.js +0 -78
- package/src/widgets/login/LoginBox.test.js +0 -12
- package/src/widgets/login/ResetPasswordBox.test.js +0 -34
- package/src/widgets/login/validations.test.js +0 -51
- package/src/widgets/planner/Planner.test.js +0 -60
- package/src/widgets/upload/Upload.test.js +0 -32
- package/table2.test.js +0 -454
package/doc/src/index.css
DELETED
@@ -1,246 +0,0 @@
|
|
1
|
-
/* Reset y estilos base */
|
2
|
-
* {
|
3
|
-
margin: 0;
|
4
|
-
padding: 0;
|
5
|
-
box-sizing: border-box;
|
6
|
-
}
|
7
|
-
|
8
|
-
body {
|
9
|
-
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
|
10
|
-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
|
11
|
-
sans-serif;
|
12
|
-
-webkit-font-smoothing: antialiased;
|
13
|
-
-moz-osx-font-smoothing: grayscale;
|
14
|
-
background-color: #f8fafc;
|
15
|
-
color: #1e293b;
|
16
|
-
line-height: 1.6;
|
17
|
-
}
|
18
|
-
|
19
|
-
code {
|
20
|
-
font-family: 'Fira Code', 'Monaco', 'Cascadia Code', 'Roboto Mono', monospace;
|
21
|
-
}
|
22
|
-
|
23
|
-
/* Variables CSS para el tema */
|
24
|
-
:root {
|
25
|
-
--primary-color: #3b82f6;
|
26
|
-
--primary-hover: #2563eb;
|
27
|
-
--secondary-color: #64748b;
|
28
|
-
--success-color: #10b981;
|
29
|
-
--warning-color: #f59e0b;
|
30
|
-
--error-color: #ef4444;
|
31
|
-
--background-color: #f8fafc;
|
32
|
-
--surface-color: #ffffff;
|
33
|
-
--border-color: #e2e8f0;
|
34
|
-
--text-primary: #1e293b;
|
35
|
-
--text-secondary: #64748b;
|
36
|
-
--text-muted: #94a3b8;
|
37
|
-
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
38
|
-
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
39
|
-
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
40
|
-
--radius-sm: 0.375rem;
|
41
|
-
--radius-md: 0.5rem;
|
42
|
-
--radius-lg: 0.75rem;
|
43
|
-
}
|
44
|
-
|
45
|
-
/* Utilidades globales */
|
46
|
-
.loading-spinner {
|
47
|
-
width: 2rem;
|
48
|
-
height: 2rem;
|
49
|
-
border: 2px solid var(--border-color);
|
50
|
-
border-top: 2px solid var(--primary-color);
|
51
|
-
border-radius: 50%;
|
52
|
-
animation: spin 1s linear infinite;
|
53
|
-
margin: 0 auto;
|
54
|
-
}
|
55
|
-
|
56
|
-
@keyframes spin {
|
57
|
-
0% { transform: rotate(0deg); }
|
58
|
-
100% { transform: rotate(360deg); }
|
59
|
-
}
|
60
|
-
|
61
|
-
.material-icons {
|
62
|
-
font-family: 'Material Icons';
|
63
|
-
font-weight: normal;
|
64
|
-
font-style: normal;
|
65
|
-
font-size: 24px;
|
66
|
-
line-height: 1;
|
67
|
-
letter-spacing: normal;
|
68
|
-
text-transform: none;
|
69
|
-
display: inline-block;
|
70
|
-
white-space: nowrap;
|
71
|
-
word-wrap: normal;
|
72
|
-
direction: ltr;
|
73
|
-
-webkit-font-feature-settings: 'liga';
|
74
|
-
-webkit-font-smoothing: antialiased;
|
75
|
-
}
|
76
|
-
|
77
|
-
/* Estilos para componentes de ejemplo */
|
78
|
-
.example-container {
|
79
|
-
background: var(--surface-color);
|
80
|
-
border: 1px solid var(--border-color);
|
81
|
-
border-radius: var(--radius-lg);
|
82
|
-
padding: 2rem;
|
83
|
-
margin: 1rem 0;
|
84
|
-
box-shadow: var(--shadow-sm);
|
85
|
-
}
|
86
|
-
|
87
|
-
.example-loading {
|
88
|
-
display: flex;
|
89
|
-
flex-direction: column;
|
90
|
-
align-items: center;
|
91
|
-
justify-content: center;
|
92
|
-
padding: 3rem;
|
93
|
-
gap: 1rem;
|
94
|
-
color: var(--text-secondary);
|
95
|
-
}
|
96
|
-
|
97
|
-
.example-error {
|
98
|
-
display: flex;
|
99
|
-
flex-direction: column;
|
100
|
-
align-items: center;
|
101
|
-
justify-content: center;
|
102
|
-
padding: 3rem;
|
103
|
-
gap: 1rem;
|
104
|
-
color: var(--error-color);
|
105
|
-
background: #fef2f2;
|
106
|
-
border: 1px solid #fecaca;
|
107
|
-
border-radius: var(--radius-lg);
|
108
|
-
}
|
109
|
-
|
110
|
-
.content-header {
|
111
|
-
margin-bottom: 2rem;
|
112
|
-
}
|
113
|
-
|
114
|
-
.breadcrumb {
|
115
|
-
display: flex;
|
116
|
-
align-items: center;
|
117
|
-
gap: 0.5rem;
|
118
|
-
color: var(--text-secondary);
|
119
|
-
font-size: 0.875rem;
|
120
|
-
margin-bottom: 1rem;
|
121
|
-
}
|
122
|
-
|
123
|
-
.breadcrumb .material-icons {
|
124
|
-
font-size: 1rem;
|
125
|
-
}
|
126
|
-
|
127
|
-
/* Estilos para placeholder de ejemplos */
|
128
|
-
.example-placeholder {
|
129
|
-
display: flex;
|
130
|
-
flex-direction: column;
|
131
|
-
align-items: center;
|
132
|
-
justify-content: center;
|
133
|
-
padding: 4rem 2rem;
|
134
|
-
text-align: center;
|
135
|
-
background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
|
136
|
-
border: 2px dashed var(--border-color);
|
137
|
-
border-radius: var(--radius-lg);
|
138
|
-
color: var(--text-secondary);
|
139
|
-
}
|
140
|
-
|
141
|
-
.placeholder-icon {
|
142
|
-
width: 4rem;
|
143
|
-
height: 4rem;
|
144
|
-
background: var(--primary-color);
|
145
|
-
border-radius: 50%;
|
146
|
-
display: flex;
|
147
|
-
align-items: center;
|
148
|
-
justify-content: center;
|
149
|
-
margin-bottom: 1.5rem;
|
150
|
-
color: white;
|
151
|
-
}
|
152
|
-
|
153
|
-
.placeholder-icon .material-icons {
|
154
|
-
font-size: 2rem;
|
155
|
-
}
|
156
|
-
|
157
|
-
.example-placeholder h3 {
|
158
|
-
font-size: 1.5rem;
|
159
|
-
font-weight: 600;
|
160
|
-
color: var(--text-primary);
|
161
|
-
margin-bottom: 0.5rem;
|
162
|
-
}
|
163
|
-
|
164
|
-
.example-placeholder p {
|
165
|
-
font-size: 1rem;
|
166
|
-
margin-bottom: 2rem;
|
167
|
-
max-width: 400px;
|
168
|
-
}
|
169
|
-
|
170
|
-
.placeholder-note {
|
171
|
-
display: flex;
|
172
|
-
align-items: center;
|
173
|
-
gap: 0.5rem;
|
174
|
-
padding: 0.75rem 1rem;
|
175
|
-
background: var(--surface-color);
|
176
|
-
border: 1px solid var(--border-color);
|
177
|
-
border-radius: var(--radius-md);
|
178
|
-
font-size: 0.875rem;
|
179
|
-
color: var(--text-muted);
|
180
|
-
}
|
181
|
-
|
182
|
-
.placeholder-note .material-icons {
|
183
|
-
font-size: 1rem;
|
184
|
-
}
|
185
|
-
|
186
|
-
/* Estilos para grids de ejemplos */
|
187
|
-
.examples-grid {
|
188
|
-
display: flex;
|
189
|
-
flex-direction: column;
|
190
|
-
gap: 3rem;
|
191
|
-
}
|
192
|
-
|
193
|
-
.example-section {
|
194
|
-
background: var(--surface-color);
|
195
|
-
border: 1px solid var(--border-color);
|
196
|
-
border-radius: var(--radius-lg);
|
197
|
-
padding: 2rem;
|
198
|
-
box-shadow: var(--shadow-sm);
|
199
|
-
}
|
200
|
-
|
201
|
-
.example-section h3 {
|
202
|
-
font-size: 1.25rem;
|
203
|
-
font-weight: 600;
|
204
|
-
color: var(--text-primary);
|
205
|
-
margin-bottom: 1.5rem;
|
206
|
-
padding-bottom: 0.5rem;
|
207
|
-
border-bottom: 1px solid var(--border-color);
|
208
|
-
}
|
209
|
-
|
210
|
-
.example-row {
|
211
|
-
display: flex;
|
212
|
-
flex-wrap: wrap;
|
213
|
-
gap: 1rem;
|
214
|
-
align-items: center;
|
215
|
-
}
|
216
|
-
|
217
|
-
.example-column {
|
218
|
-
display: flex;
|
219
|
-
flex-direction: column;
|
220
|
-
gap: 1rem;
|
221
|
-
}
|
222
|
-
|
223
|
-
/* Corrección para el sidebar de ejemplos */
|
224
|
-
.example-sidebar {
|
225
|
-
position: relative !important;
|
226
|
-
|
227
|
-
}
|
228
|
-
.example-content {
|
229
|
-
margin-left: 0 !important;
|
230
|
-
}
|
231
|
-
|
232
|
-
/* Responsive para ejemplos */
|
233
|
-
@media (max-width: 768px) {
|
234
|
-
.example-row {
|
235
|
-
flex-direction: column;
|
236
|
-
align-items: stretch;
|
237
|
-
}
|
238
|
-
|
239
|
-
.examples-grid {
|
240
|
-
gap: 2rem;
|
241
|
-
}
|
242
|
-
|
243
|
-
.example-section {
|
244
|
-
padding: 1.5rem;
|
245
|
-
}
|
246
|
-
}
|
package/doc/src/index.js
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
import React, { Fragment } from 'react';
|
2
|
-
import ReactDOM from 'react-dom/client';
|
3
|
-
import 'ywana-core8/dist/index.css'
|
4
|
-
import 'ywana-core8/src/css/theme_light.css'
|
5
|
-
import './index.css';
|
6
|
-
import App from './App';
|
7
|
-
|
8
|
-
// Hacer React y Fragment disponibles globalmente para ywana-core8
|
9
|
-
window.React = React;
|
10
|
-
window.Fragment = Fragment;
|
11
|
-
|
12
|
-
const root = ReactDOM.createRoot(document.getElementById('root'));
|
13
|
-
root.render(
|
14
|
-
<React.StrictMode>
|
15
|
-
<App />
|
16
|
-
</React.StrictMode>
|
17
|
-
);
|
package/doc/src/theme.css
DELETED
@@ -1,256 +0,0 @@
|
|
1
|
-
/* Theme personalizado para Ywana Core8 Documentation */
|
2
|
-
|
3
|
-
/* Variables de color mejoradas */
|
4
|
-
:root {
|
5
|
-
/* Colores primarios */
|
6
|
-
--primary-50: #eff6ff;
|
7
|
-
--primary-100: #dbeafe;
|
8
|
-
--primary-200: #bfdbfe;
|
9
|
-
--primary-300: #93c5fd;
|
10
|
-
--primary-400: #60a5fa;
|
11
|
-
--primary-500: #3b82f6;
|
12
|
-
--primary-600: #2563eb;
|
13
|
-
--primary-700: #1d4ed8;
|
14
|
-
--primary-800: #1e40af;
|
15
|
-
--primary-900: #1e3a8a;
|
16
|
-
|
17
|
-
/* Colores de superficie */
|
18
|
-
--surface-primary: #ffffff;
|
19
|
-
--surface-secondary: #f8fafc;
|
20
|
-
--surface-tertiary: #f1f5f9;
|
21
|
-
--surface-elevated: #ffffff;
|
22
|
-
|
23
|
-
/* Colores de texto */
|
24
|
-
--text-primary: #0f172a;
|
25
|
-
--text-secondary: #475569;
|
26
|
-
--text-tertiary: #64748b;
|
27
|
-
--text-disabled: #94a3b8;
|
28
|
-
--text-inverse: #ffffff;
|
29
|
-
|
30
|
-
/* Colores de borde */
|
31
|
-
--border-light: #e2e8f0;
|
32
|
-
--border-medium: #cbd5e1;
|
33
|
-
--border-strong: #94a3b8;
|
34
|
-
|
35
|
-
/* Sombras mejoradas */
|
36
|
-
--shadow-xs: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
37
|
-
--shadow-sm: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
|
38
|
-
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
39
|
-
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
40
|
-
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
41
|
-
|
42
|
-
/* Espaciado */
|
43
|
-
--spacing-xs: 0.25rem;
|
44
|
-
--spacing-sm: 0.5rem;
|
45
|
-
--spacing-md: 1rem;
|
46
|
-
--spacing-lg: 1.5rem;
|
47
|
-
--spacing-xl: 2rem;
|
48
|
-
--spacing-2xl: 3rem;
|
49
|
-
|
50
|
-
/* Bordes redondeados */
|
51
|
-
--radius-sm: 0.375rem;
|
52
|
-
--radius-md: 0.5rem;
|
53
|
-
--radius-lg: 0.75rem;
|
54
|
-
--radius-xl: 1rem;
|
55
|
-
}
|
56
|
-
|
57
|
-
/* Estilos globales mejorados */
|
58
|
-
body {
|
59
|
-
background: linear-gradient(135deg, var(--surface-secondary) 0%, var(--surface-tertiary) 100%);
|
60
|
-
color: var(--text-primary);
|
61
|
-
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
|
62
|
-
line-height: 1.6;
|
63
|
-
-webkit-font-smoothing: antialiased;
|
64
|
-
-moz-osx-font-smoothing: grayscale;
|
65
|
-
}
|
66
|
-
|
67
|
-
/* Sobrescribir estilos del Site */
|
68
|
-
.site {
|
69
|
-
background: transparent !important;
|
70
|
-
}
|
71
|
-
|
72
|
-
.site__header {
|
73
|
-
background: var(--surface-elevated) !important;
|
74
|
-
border-bottom: 1px solid var(--border-light) !important;
|
75
|
-
box-shadow: var(--shadow-sm) !important;
|
76
|
-
backdrop-filter: blur(10px);
|
77
|
-
}
|
78
|
-
|
79
|
-
.site__title {
|
80
|
-
color: var(--text-primary) !important;
|
81
|
-
font-weight: 700 !important;
|
82
|
-
font-size: 1.25rem !important;
|
83
|
-
}
|
84
|
-
|
85
|
-
.site__icon {
|
86
|
-
color: var(--primary-600) !important;
|
87
|
-
}
|
88
|
-
|
89
|
-
/* Sidebar mejorado */
|
90
|
-
.site__sidebar {
|
91
|
-
background: var(--surface-elevated) !important;
|
92
|
-
border-right: 1px solid var(--border-light) !important;
|
93
|
-
box-shadow: var(--shadow-sm) !important;
|
94
|
-
}
|
95
|
-
|
96
|
-
.site__sidebar-section {
|
97
|
-
margin-bottom: var(--spacing-lg) !important;
|
98
|
-
}
|
99
|
-
|
100
|
-
.site__sidebar-section-title {
|
101
|
-
color: var(--text-secondary) !important;
|
102
|
-
font-weight: 600 !important;
|
103
|
-
font-size: 0.875rem !important;
|
104
|
-
text-transform: uppercase !important;
|
105
|
-
letter-spacing: 0.05em !important;
|
106
|
-
padding: var(--spacing-sm) var(--spacing-md) !important;
|
107
|
-
margin-bottom: var(--spacing-sm) !important;
|
108
|
-
border-bottom: 1px solid var(--border-light) !important;
|
109
|
-
}
|
110
|
-
|
111
|
-
.site__sidebar-item {
|
112
|
-
margin: 2px var(--spacing-sm) !important;
|
113
|
-
border-radius: var(--radius-md) !important;
|
114
|
-
transition: all 0.2s ease !important;
|
115
|
-
}
|
116
|
-
|
117
|
-
.site__sidebar-item:hover {
|
118
|
-
background: var(--primary-50) !important;
|
119
|
-
transform: translateX(2px) !important;
|
120
|
-
}
|
121
|
-
|
122
|
-
.site__sidebar-item.active {
|
123
|
-
background: var(--primary-100) !important;
|
124
|
-
border-left: 3px solid var(--primary-600) !important;
|
125
|
-
box-shadow: var(--shadow-sm) !important;
|
126
|
-
}
|
127
|
-
|
128
|
-
.site__sidebar-item-icon {
|
129
|
-
color: var(--primary-600) !important;
|
130
|
-
margin-right: var(--spacing-sm) !important;
|
131
|
-
}
|
132
|
-
|
133
|
-
.site__sidebar-item-title {
|
134
|
-
color: var(--text-primary) !important;
|
135
|
-
font-weight: 500 !important;
|
136
|
-
}
|
137
|
-
|
138
|
-
.site__sidebar-item.active .site__sidebar-item-title {
|
139
|
-
color: var(--primary-700) !important;
|
140
|
-
font-weight: 600 !important;
|
141
|
-
}
|
142
|
-
|
143
|
-
/* Contenido principal */
|
144
|
-
.site__content {
|
145
|
-
background: transparent !important;
|
146
|
-
padding: var(--spacing-xl) !important;
|
147
|
-
}
|
148
|
-
|
149
|
-
.page {
|
150
|
-
background: var(--surface-elevated) !important;
|
151
|
-
border-radius: var(--radius-xl) !important;
|
152
|
-
box-shadow: var(--shadow-lg) !important;
|
153
|
-
padding: var(--spacing-2xl) !important;
|
154
|
-
margin: 0 auto !important;
|
155
|
-
max-width: 1200px !important;
|
156
|
-
border: 1px solid var(--border-light) !important;
|
157
|
-
}
|
158
|
-
|
159
|
-
/* Títulos mejorados */
|
160
|
-
h1, h2, h3, h4, h5, h6 {
|
161
|
-
color: var(--text-primary) !important;
|
162
|
-
font-weight: 700 !important;
|
163
|
-
line-height: 1.2 !important;
|
164
|
-
margin-bottom: var(--spacing-md) !important;
|
165
|
-
}
|
166
|
-
|
167
|
-
h1 {
|
168
|
-
font-size: 2.5rem !important;
|
169
|
-
background: linear-gradient(135deg, var(--primary-600), var(--primary-800)) !important;
|
170
|
-
-webkit-background-clip: text !important;
|
171
|
-
-webkit-text-fill-color: transparent !important;
|
172
|
-
background-clip: text !important;
|
173
|
-
}
|
174
|
-
|
175
|
-
h2 {
|
176
|
-
font-size: 2rem !important;
|
177
|
-
color: var(--text-primary) !important;
|
178
|
-
border-bottom: 2px solid var(--primary-200) !important;
|
179
|
-
padding-bottom: var(--spacing-sm) !important;
|
180
|
-
}
|
181
|
-
|
182
|
-
h3 {
|
183
|
-
font-size: 1.5rem !important;
|
184
|
-
color: var(--primary-700) !important;
|
185
|
-
}
|
186
|
-
|
187
|
-
/* Párrafos y texto */
|
188
|
-
p {
|
189
|
-
color: var(--text-secondary) !important;
|
190
|
-
line-height: 1.7 !important;
|
191
|
-
margin-bottom: var(--spacing-md) !important;
|
192
|
-
}
|
193
|
-
|
194
|
-
/* Enlaces */
|
195
|
-
a {
|
196
|
-
color: var(--primary-600) !important;
|
197
|
-
text-decoration: none !important;
|
198
|
-
transition: color 0.2s ease !important;
|
199
|
-
}
|
200
|
-
|
201
|
-
a:hover {
|
202
|
-
color: var(--primary-700) !important;
|
203
|
-
text-decoration: underline !important;
|
204
|
-
}
|
205
|
-
|
206
|
-
/* Botones mejorados */
|
207
|
-
.button, button {
|
208
|
-
background: var(--primary-600) !important;
|
209
|
-
color: var(--text-inverse) !important;
|
210
|
-
border: none !important;
|
211
|
-
border-radius: var(--radius-md) !important;
|
212
|
-
padding: var(--spacing-sm) var(--spacing-md) !important;
|
213
|
-
font-weight: 500 !important;
|
214
|
-
transition: all 0.2s ease !important;
|
215
|
-
box-shadow: var(--shadow-sm) !important;
|
216
|
-
}
|
217
|
-
|
218
|
-
.button:hover, button:hover {
|
219
|
-
background: var(--primary-700) !important;
|
220
|
-
box-shadow: var(--shadow-md) !important;
|
221
|
-
transform: translateY(-1px) !important;
|
222
|
-
}
|
223
|
-
|
224
|
-
/* Cards y contenedores */
|
225
|
-
.card, .example-container {
|
226
|
-
background: var(--surface-elevated) !important;
|
227
|
-
border: 1px solid var(--border-light) !important;
|
228
|
-
border-radius: var(--radius-lg) !important;
|
229
|
-
padding: var(--spacing-xl) !important;
|
230
|
-
box-shadow: var(--shadow-sm) !important;
|
231
|
-
transition: box-shadow 0.2s ease !important;
|
232
|
-
}
|
233
|
-
|
234
|
-
.card:hover, .example-container:hover {
|
235
|
-
box-shadow: var(--shadow-md) !important;
|
236
|
-
}
|
237
|
-
|
238
|
-
/* Responsive */
|
239
|
-
@media (max-width: 768px) {
|
240
|
-
.site__content {
|
241
|
-
padding: var(--spacing-md) !important;
|
242
|
-
}
|
243
|
-
|
244
|
-
.page {
|
245
|
-
padding: var(--spacing-xl) !important;
|
246
|
-
border-radius: var(--radius-lg) !important;
|
247
|
-
}
|
248
|
-
|
249
|
-
h1 {
|
250
|
-
font-size: 2rem !important;
|
251
|
-
}
|
252
|
-
|
253
|
-
h2 {
|
254
|
-
font-size: 1.5rem !important;
|
255
|
-
}
|
256
|
-
}
|
package/jest.config.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
export default {
|
2
|
-
testEnvironment: 'node',
|
3
|
-
moduleNameMapper: {
|
4
|
-
'\\.(css|less|scss|sass)$': 'identity-obj-proxy',
|
5
|
-
},
|
6
|
-
transform: {
|
7
|
-
'^.+\\.(js|jsx)$': ['babel-jest', {
|
8
|
-
presets: [
|
9
|
-
['@babel/preset-env', { targets: { node: 'current' } }],
|
10
|
-
['@babel/preset-react', { runtime: 'classic' }]
|
11
|
-
]
|
12
|
-
}]
|
13
|
-
},
|
14
|
-
moduleFileExtensions: ['js', 'jsx', 'json'],
|
15
|
-
testMatch: [
|
16
|
-
'<rootDir>/src/**/__tests__/**/*.(js|jsx)',
|
17
|
-
'<rootDir>/src/**/?(*.)(spec|test).(js|jsx)'
|
18
|
-
],
|
19
|
-
collectCoverageFrom: [
|
20
|
-
'src/**/*.(js|jsx)',
|
21
|
-
'!src/index.js',
|
22
|
-
'!src/setupTests.js'
|
23
|
-
]
|
24
|
-
};
|
package/preview.config.js
DELETED
@@ -1,38 +0,0 @@
|
|
1
|
-
/** @type {import("@previewjs/config").PreviewConfig} */
|
2
|
-
export default {
|
3
|
-
/**
|
4
|
-
* Configure custom aliases (auto-detected if you use TypeScript).
|
5
|
-
*/
|
6
|
-
alias: {
|
7
|
-
// Add any path aliases your project uses
|
8
|
-
},
|
9
|
-
|
10
|
-
/**
|
11
|
-
* Configure a public assets directory.
|
12
|
-
*/
|
13
|
-
publicDir: "public",
|
14
|
-
|
15
|
-
/**
|
16
|
-
* Set up a custom component to wrap around previewed components.
|
17
|
-
*
|
18
|
-
* Useful to set up context providers and global CSS.
|
19
|
-
*/
|
20
|
-
wrapper: {
|
21
|
-
path: "__previewjs__/Wrapper.tsx",
|
22
|
-
componentName: "Wrapper"
|
23
|
-
},
|
24
|
-
|
25
|
-
/**
|
26
|
-
* Specify a custom Vite configuration.
|
27
|
-
*
|
28
|
-
* See https://vitejs.dev/config.
|
29
|
-
*/
|
30
|
-
vite: {
|
31
|
-
// Add any custom Vite configuration here
|
32
|
-
resolve: {
|
33
|
-
alias: {
|
34
|
-
// Add path aliases if needed
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
};
|
package/publish.sh
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
import React, { Fragment, useContext, useEffect, useState } from 'react'
|
2
|
-
import { Desktop } from './desktop'
|
3
|
-
import { Window } from './window'
|
4
|
-
|
5
|
-
const DesktopTest = (prop) => {
|
6
|
-
return (
|
7
|
-
<Desktop>
|
8
|
-
<Window id="w1" icon="folder" title="Window 1" />
|
9
|
-
</Desktop>
|
10
|
-
)
|
11
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import { Button } from '../html'
|
3
|
-
|
4
|
-
import { CollectionAPI } from './CollectionAPI'
|
5
|
-
|
6
|
-
const CollectionAPITest = (prop) => {
|
7
|
-
|
8
|
-
const API = CollectionAPI('/references', 'http://localhost:3000')
|
9
|
-
|
10
|
-
function all() {
|
11
|
-
API.all({ name: "2223"}, ["name"]).then(res => console.log(res))
|
12
|
-
}
|
13
|
-
|
14
|
-
return (
|
15
|
-
<>
|
16
|
-
<Button label="ALL" action={all} />
|
17
|
-
</>
|
18
|
-
)
|
19
|
-
}
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import { ContentEditor } from './ContentEditor'
|
3
|
-
import { Content, FORMATS, TYPES } from './ContentType'
|
4
|
-
import './ContentEditor.test.css'
|
5
|
-
|
6
|
-
function buildTokenOptions() {
|
7
|
-
return [
|
8
|
-
{label: "One", value: 1 },
|
9
|
-
{label: "Two", value: 2 },
|
10
|
-
{label: "Thressse", value: 3 },
|
11
|
-
]
|
12
|
-
}
|
13
|
-
export const OPTION = {
|
14
|
-
label : { id: "label" , required: true , type: TYPES.STRING, column: true, label: "Label" },
|
15
|
-
value : { id: "value" , required: true , type: TYPES.STRING, column: true, label: "Value", editable: true },
|
16
|
-
}
|
17
|
-
|
18
|
-
const schema = {
|
19
|
-
name : { id: "name" , type: TYPES.STRING, format: FORMATS.NONE , required: true, editable: false, label: "Name" , defValue: "John" },
|
20
|
-
field1: { id: "field1", type: TYPES.STRING, format: FORMATS.NONE , required: true, editable: true , label: "field1" , multivalue: true },
|
21
|
-
field2: { id: "field2", type: TYPES.STRING, format: FORMATS.NONE , required: true, editable: true , label: "field2" },
|
22
|
-
field3: { id: "field3", type: TYPES.STRING, format: FORMATS.TOKENS, required: true, editable: true , label: "field3" , options: buildTokenOptions },
|
23
|
-
field4: { id: "field4", type: TYPES.STRING, format: FORMATS.COLOR , required: true, editable: true , label: "Color" },
|
24
|
-
field5: { id: "field5", type: TYPES.STRING, format: FORMATS.TOKENS, required: true, editable: true , label: "field5" , multivalue: true },
|
25
|
-
field6: { id: "field6", type: TYPES.STRING, format: FORMATS.PASSWORD, required: true, editable: true , label: "Password" },
|
26
|
-
options : { id: "options" , editable: false, type: TYPES.ARRAY , item: OPTION , label: "Options" },
|
27
|
-
|
28
|
-
}
|
29
|
-
|
30
|
-
const value = {
|
31
|
-
options: [
|
32
|
-
{ label: "One", value: 1 },
|
33
|
-
{ label: "Two", value: 2 },
|
34
|
-
{ label: "Thressse", value: 3 },
|
35
|
-
],
|
36
|
-
}
|
37
|
-
|
38
|
-
const ContentEditorTest = (prop) => {
|
39
|
-
|
40
|
-
const [form, setForm] = useState(value)
|
41
|
-
|
42
|
-
function change(form) {
|
43
|
-
setForm(form)
|
44
|
-
}
|
45
|
-
|
46
|
-
const content = new Content(schema, form)
|
47
|
-
return (
|
48
|
-
<>
|
49
|
-
<ContentEditor content={content} outlined={false} onChange={change} className="grid1"/>
|
50
|
-
</>
|
51
|
-
)
|
52
|
-
}
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import React, { useState } from 'react'
|
2
|
-
import { Button } from '../html'
|
3
|
-
|
4
|
-
import { CollectionAPI } from './CollectionAPI'
|
5
|
-
|
6
|
-
const CollectionAPITest = (prop) => {
|
7
|
-
|
8
|
-
const API = CollectionAPI('/references', 'http://localhost:3000')
|
9
|
-
|
10
|
-
function all() {
|
11
|
-
API.all({ name: "2223"}, ["name"]).then(res => console.log(res))
|
12
|
-
}
|
13
|
-
|
14
|
-
return (
|
15
|
-
<>
|
16
|
-
<Button label="ALL" action={all} />
|
17
|
-
</>
|
18
|
-
)
|
19
|
-
}
|