nextia 4.0.7 → 4.0.11

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "nextia",
3
3
  "description": "Create fast web applications",
4
- "version": "4.0.7",
4
+ "version": "4.0.11",
5
5
  "engines": {
6
6
  "node": ">22"
7
7
  },
@@ -32,11 +32,11 @@
32
32
  "clean": "rm -fr node_modules package-lock.json my-app",
33
33
  "make": "npm run clean && npm install",
34
34
  "lint": "standard 'src/**/*.{js,jsx}' 'test/**/*.{js,jsx}' --verbose",
35
- "test:my-app": "node src/bin.js -- my-app"
35
+ "test:my-app": "node src/bin.js my-app"
36
36
  },
37
37
  "peerDependencies": {
38
- "react": "^19.2.0",
39
- "react-dom": "^19.2.0"
38
+ "react": "^19.2.3",
39
+ "react-dom": "^19.2.3"
40
40
  },
41
41
  "devDependencies": {
42
42
  "standard": "^17.1.2"
package/src/bin.js CHANGED
@@ -177,27 +177,27 @@ async function createProject (name) {
177
177
  * main
178
178
  */
179
179
 
180
- const CMD = process.argv[2]
181
- const FILE_NAME = process.argv[3]
180
+ const ARG1 = process.argv[2]
181
+ const ARG2 = process.argv[3]
182
182
 
183
- switch (CMD) {
183
+ switch (ARG1) {
184
184
  case 'page':
185
- if (FILE_NAME) createPage(FILE_NAME)
185
+ if (ARG2) createPage(ARG2)
186
186
  else console.warn('npm run page <page-name>')
187
187
  break
188
188
 
189
189
  case 'component':
190
- if (FILE_NAME) createComponent(FILE_NAME)
190
+ if (ARG2) createComponent(ARG2)
191
191
  else console.warn('npm run component <ComponentName>')
192
192
  break
193
193
 
194
194
  case 'container':
195
- if (FILE_NAME) createContainer(FILE_NAME)
195
+ if (ARG2) createContainer(ARG2)
196
196
  else console.warn('npm run container <ContainerName>')
197
197
  break
198
198
 
199
199
  default:
200
- if (FILE_NAME) createProject(FILE_NAME)
200
+ if (ARG1) createProject(ARG1)
201
201
  else console.warn('npm nextia@latest <ProjectName>')
202
202
  break
203
203
  }
@@ -14,26 +14,26 @@
14
14
  "build": "vite build --mode",
15
15
  "preview": "vite preview",
16
16
  "lint": "standard 'src/**/*.{js,jsx}' 'test/**/*.{js,jsx}' --verbose",
17
- "page": "npm nextia page",
18
- "component": "npm nextia component",
19
- "container": "npm nextia container",
17
+ "page": "nextia page",
18
+ "component": "nextia component",
19
+ "container": "nextia container",
20
20
  "test": "vitest",
21
21
  "test:name": "vitest --testNamePattern",
22
22
  "test:silent": "vitest --silent",
23
23
  "test:coverage": "vitest --silent --coverage"
24
24
  },
25
25
  "devDependencies": {
26
- "@vitejs/plugin-react": "^5.0.0",
26
+ "@vitejs/plugin-react": "^5.1.2",
27
27
  "@vitest/coverage-v8": "^3.2.4",
28
- "autoprefixer": "^10.4.21",
28
+ "autoprefixer": "^10.4.23",
29
29
  "jsdom": "^26.1.0",
30
- "vite": "^7.1.1",
31
- "vitest": "^3.0.4",
32
- "standard": "^17.1.2"
30
+ "standard": "^17.1.2",
31
+ "vite": "^7.3.1",
32
+ "vitest": "^3.0.4"
33
33
  },
34
34
  "dependencies": {
35
- "nextia": "^4.0.6",
36
- "react": "^19.1.1",
37
- "react-dom": "^19.1.1"
35
+ "nextia": "^4.0.8",
36
+ "react": "^19.2.3",
37
+ "react-dom": "^19.2.3"
38
38
  }
39
- }
39
+ }
@@ -4,6 +4,7 @@
4
4
  height="256"
5
5
  viewBox="0 0 48 48"
6
6
  fill="none"
7
+ color="white"
7
8
  stroke="currentColor"
8
9
  stroke-width="1"
9
10
  stroke-linecap="round"
@@ -11,13 +12,11 @@
11
12
  version="1.1"
12
13
  id="icons"
13
14
  sodipodi:docname="icons.svg"
14
- inkscape:version="1.4.2 (ebf0e940d0, 2025-05-08)"
15
+ inkscape:version="1.4.3 (0d15f75042, 2025-12-25)"
15
16
  xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
16
17
  xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
17
18
  xmlns="http://www.w3.org/2000/svg"
18
19
  xmlns:svg="http://www.w3.org/2000/svg">
19
- <defs
20
- id="defs" />
21
20
  <sodipodi:namedview
22
21
  id="namedview"
23
22
  pagecolor="#505050"
@@ -29,470 +28,95 @@
29
28
  inkscape:deskcolor="#505050"
30
29
  showgrid="false"
31
30
  showguides="true"
32
- inkscape:zoom="1.3"
33
- inkscape:cx="1.3e+02"
34
- inkscape:cy="1.1e+02"
35
- inkscape:current-layer="icons" />
31
+ inkscape:zoom="3.5672"
32
+ inkscape:cx="156.42521"
33
+ inkscape:cy="128.25185"
34
+ inkscape:current-layer="globe"
35
+ inkscape:window-width="2560"
36
+ inkscape:window-height="1080"
37
+ inkscape:window-x="2560"
38
+ inkscape:window-y="0"
39
+ inkscape:window-maximized="1" />
40
+ <defs
41
+ id="defs" />
36
42
  <g
37
43
  id="globe"
38
- style="display:none"
39
- sodipodi:insensitive="true">
44
+ style="display:none">
40
45
  <circle
41
- cx="12"
42
- cy="12"
43
- r="10"
46
+ cx="23.960287038110003"
47
+ cy="23.914597038110003"
48
+ r="18.23231994892"
44
49
  id="circle1" />
45
50
  <line
46
- x1="2"
47
- y1="12"
48
- x2="22"
49
- y2="12"
51
+ x1="6"
52
+ y1="24"
53
+ x2="42"
54
+ y2="24"
50
55
  id="line1" />
51
56
  <path
52
- d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"
57
+ d="m 23.9603,5.6822471 c 4.4192,4.9926549 6.9306,11.4718789 7.0671,18.2323589 -0.1365,6.760478 -2.6479,13.23962 -7.0671,18.232339 -4.4193,-4.992719 -6.9307,-11.471861 -7.0672,-18.232339 0.1365,-6.76048 2.6479,-13.239704 7.0672,-18.2323589 z"
53
58
  id="path1" />
54
59
  </g>
55
60
  <g
56
61
  id="camera"
57
- style="display:none"
62
+ style="display:none;"
58
63
  sodipodi:insensitive="true">
59
64
  <path
60
- d="M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z"
65
+ d="m 44.2234,35.0688 c 0,1.9822 -1.6079,3.5891 -3.5913,3.5891 h -32.32145 c -1.98338,0 -3.59123,-1.6069 -3.59125,-3.5891 v -19.7405 c 0,-1.9822 1.60786,-3.5891 3.59125,-3.5891 h 7.18255 l 3.5913,-5.38381 h 10.7738 l 3.5913,5.38381 h 7.1825 c 1.9834,0 3.5913,1.6069 3.5913,3.5891 z"
61
66
  id="path2" />
62
67
  <circle
63
- cx="12"
64
- cy="13"
65
- r="4"
68
+ cx="24.709818"
69
+ cy="23.41984"
70
+ r="5.5424304"
66
71
  id="circle2" />
67
72
  </g>
68
- <g
69
- id="caret-down"
70
- style="display:none"
71
- sodipodi:insensitive="true">
72
- <path
73
- d="M 16.924437,11.676179 H 6.8175139 l 5.0534661,5.053479 z"
74
- fill="currentColor"
75
- id="path3" />
76
- </g>
77
- <g
78
- id="caret-up"
79
- style="display:none"
80
- sodipodi:insensitive="true">
81
- <path
82
- d="M 16.92445,16.729618 H 6.8174614 l 5.0534836,-5.053534 z"
83
- fill="currentColor"
84
- id="path4" />
85
- </g>
86
- <g
87
- id="check"
88
- style="display:none"
89
- sodipodi:insensitive="true">
90
- <path
91
- d="M 11,13 7.8,11 6.3,12 11,16 18,9.2 16,7.8 Z"
92
- fill="currentColor"
93
- id="path5" />
94
- </g>
95
- <g
96
- id="chevron-arrow-left"
97
- style="display:none"
98
- sodipodi:insensitive="true">
99
- <path
100
- d="M16.2426 6.34317L14.8284 4.92896L7.75739 12L14.8285 19.0711L16.2427 17.6569L10.5858 12L16.2426 6.34317Z"
101
- fill="currentColor"
102
- id="path6" />
103
- </g>
104
- <g
105
- id="chevron-arrow-right"
106
- style="display:none"
107
- sodipodi:insensitive="true">
108
- <path
109
- d="M10.5858 6.34317L12 4.92896L19.0711 12L12 19.0711L10.5858 17.6569L16.2427 12L10.5858 6.34317Z"
110
- fill="currentColor"
111
- id="path7" />
112
- </g>
113
- <g
114
- id="circle"
115
- style="display:none"
116
- sodipodi:insensitive="true">
117
- <circle
118
- cx="13"
119
- cy="13"
120
- r="5"
121
- id="circle7" />
122
- </g>
123
- <g
124
- id="current-location"
125
- style="display:none"
126
- sodipodi:insensitive="true">
127
- <circle
128
- cx="12.218931"
129
- cy="11.8985"
130
- r="8"
131
- id="circle8" />
132
- <circle
133
- cx="12.218931"
134
- cy="11.8985"
135
- r="3"
136
- fill="currentColor"
137
- id="circle9" />
138
- <rect
139
- fill="currentColor"
140
- width="1.2"
141
- height="0.5"
142
- x="21"
143
- y="12"
144
- id="rect9" />
145
- <rect
146
- fill="currentColor"
147
- width="1.2"
148
- height="0.5"
149
- x="2"
150
- y="12"
151
- id="rect10" />
152
- <rect
153
- fill="currentColor"
154
- width="0.5"
155
- height="1.2"
156
- x="12"
157
- y="2"
158
- id="rect11" />
159
- <rect
160
- fill="currentColor"
161
- width="0.5"
162
- height="1.2"
163
- x="12"
164
- y="20.5"
165
- id="rect12" />
166
- </g>
167
- <g
168
- id="g12"
169
- style="display:none"
170
- sodipodi:insensitive="true">
171
- <circle
172
- cx="12"
173
- cy="12"
174
- r="10"
175
- id="circle12" />
176
- <line
177
- x1="2"
178
- y1="12"
179
- x2="22"
180
- y2="12"
181
- id="line12" />
182
- <path
183
- d="M 12,2 A 15,15 0 0 1 16,12 15,15 0 0 1 12,22 15,15 0 0 1 8,12 15,15 0 0 1 12,2 Z"
184
- id="path12" />
185
- </g>
186
- <g
187
- id="help"
188
- style="display:none"
189
- sodipodi:insensitive="true">
190
- <circle
191
- cx="12"
192
- cy="12"
193
- r="10"
194
- id="circle13" />
195
- <path
196
- d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"
197
- id="path13" />
198
- <line
199
- x1="12"
200
- y1="17"
201
- x2="12.01"
202
- y2="17"
203
- id="line13" />
204
- </g>
205
- <g
206
- id="layer"
207
- style="display:none"
208
- sodipodi:insensitive="true">
209
- <polygon
210
- points="12 2 2 7 12 12 22 7 12 2"
211
- id="polygon13" />
212
- <polyline
213
- points="2 17 12 22 22 17"
214
- id="polyline13" />
215
- <polyline
216
- points="2 12 12 17 22 12"
217
- id="polyline14" />
218
- </g>
219
- <g
220
- id="log-in"
221
- style="display:none"
222
- sodipodi:insensitive="true">
223
- <path
224
- d="M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"
225
- id="path14" />
226
- <polyline
227
- points="10 17 15 12 10 7"
228
- id="polyline15" />
229
- <line
230
- x1="15"
231
- y1="12"
232
- x2="3"
233
- y2="12"
234
- id="line15" />
235
- </g>
236
- <g
237
- id="maximize"
238
- style="display:none"
239
- sodipodi:insensitive="true">
240
- <path
241
- d="M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"
242
- id="path15" />
243
- </g>
244
- <g
245
- id="menu"
246
- style="display:none"
247
- sodipodi:insensitive="true">
248
- <line
249
- x1="3"
250
- y1="12"
251
- x2="21"
252
- y2="12"
253
- id="line16" />
254
- <line
255
- x1="3"
256
- y1="6"
257
- x2="21"
258
- y2="6"
259
- id="line17" />
260
- <line
261
- x1="3"
262
- y1="18"
263
- x2="21"
264
- y2="18"
265
- id="line18" />
266
- </g>
267
- <g
268
- id="minus"
269
- style="display:none"
270
- sodipodi:insensitive="true">
271
- <line
272
- x1="5"
273
- y1="12"
274
- x2="19"
275
- y2="12"
276
- id="line19" />
277
- </g>
278
- <g
279
- id="plus-circle"
280
- style="display:none"
281
- sodipodi:insensitive="true">
282
- <circle
283
- cx="12"
284
- cy="12"
285
- r="10"
286
- id="circle19" />
287
- <line
288
- x1="12"
289
- y1="8"
290
- x2="12"
291
- y2="16"
292
- id="line20" />
293
- <line
294
- x1="8"
295
- y1="12"
296
- x2="16"
297
- y2="12"
298
- id="line21" />
299
- </g>
300
- <g
301
- id="plus-square"
302
- style="display:none"
303
- sodipodi:insensitive="true">
304
- <rect
305
- x="3"
306
- y="3"
307
- width="18"
308
- height="18"
309
- rx="2"
310
- ry="2"
311
- id="rect21" />
312
- <line
313
- x1="12"
314
- y1="8"
315
- x2="12"
316
- y2="16"
317
- id="line22" />
318
- <line
319
- x1="8"
320
- y1="12"
321
- x2="16"
322
- y2="12"
323
- id="line23" />
324
- </g>
325
- <g
326
- id="plus"
327
- style="display:none"
328
- sodipodi:insensitive="true">
329
- <line
330
- x1="12"
331
- y1="5"
332
- x2="12"
333
- y2="19"
334
- id="line24" />
335
- <line
336
- x1="5"
337
- y1="12"
338
- x2="19"
339
- y2="12"
340
- id="line25" />
341
- </g>
342
- <g
343
- id="point"
344
- style="display:none"
345
- sodipodi:insensitive="true">
346
- <circle
347
- cx="12"
348
- cy="12"
349
- r="5"
350
- fill="currentColor"
351
- id="circle25" />
352
- </g>
353
- <g
354
- id="power-off"
355
- style="display:none"
356
- sodipodi:insensitive="true">
357
- <path
358
- d="M18.36 6.64a9 9 0 1 1-12.73 0"
359
- id="path25" />
360
- <line
361
- x1="12"
362
- y1="2"
363
- x2="12"
364
- y2="12"
365
- id="line26" />
366
- </g>
367
- <g
368
- id="rotate"
369
- style="display:none"
370
- sodipodi:insensitive="true">
371
- <polyline
372
- points="23 4 23 10 17 10"
373
- id="polyline26" />
374
- <path
375
- d="M20.49 15a9 9 0 1 1-2.12-9.36L23 10"
376
- id="path26" />
377
- </g>
378
- <g
379
- id="share"
380
- style="display:none"
381
- sodipodi:insensitive="true">
382
- <circle
383
- cx="18"
384
- cy="5"
385
- r="3"
386
- id="circle26" />
387
- <circle
388
- cx="6"
389
- cy="12"
390
- r="3"
391
- id="circle27" />
392
- <circle
393
- cx="18"
394
- cy="19"
395
- r="3"
396
- id="circle28" />
397
- <line
398
- x1="8.59"
399
- y1="13.51"
400
- x2="15.42"
401
- y2="17.49"
402
- id="line28" />
403
- <line
404
- x1="15.41"
405
- y1="6.51"
406
- x2="8.59"
407
- y2="10.49"
408
- id="line29" />
409
- </g>
410
- <g
411
- id="trash"
412
- style="display:none"
413
- sodipodi:insensitive="true">
414
- <polyline
415
- points="3 6 5 6 21 6"
416
- id="polyline29" />
417
- <path
418
- d="M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"
419
- id="path29" />
420
- <line
421
- x1="10"
422
- y1="11"
423
- x2="10"
424
- y2="17"
425
- id="line30" />
426
- <line
427
- x1="14"
428
- y1="11"
429
- x2="14"
430
- y2="17"
431
- id="line31" />
432
- </g>
433
- <g
434
- id="upload"
435
- style="display:none"
436
- sodipodi:insensitive="true">
437
- <path
438
- d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"
439
- id="path31" />
440
- <polyline
441
- points="17 8 12 3 7 8"
442
- id="polyline31" />
443
- <line
444
- x1="12"
445
- y1="3"
446
- x2="12"
447
- y2="15"
448
- id="line32" />
449
- </g>
450
- <g
451
- id="user"
452
- style="display:none"
453
- sodipodi:insensitive="true">
454
- <path
455
- d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"
456
- id="path32" />
457
- <circle
458
- cx="12"
459
- cy="7"
460
- r="4"
461
- id="circle32" />
462
- </g>
463
- <g
464
- id="users"
465
- style="display:none"
466
- sodipodi:insensitive="true">
467
- <path
468
- d="M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2"
469
- id="path33" />
470
- <circle
471
- cx="9"
472
- cy="7"
473
- r="4"
474
- id="circle33" />
475
- <path
476
- d="M23 21v-2a4 4 0 0 0-3-3.87"
477
- id="path34" />
478
- <path
479
- d="M16 3.13a4 4 0 0 1 0 7.75"
480
- id="path35" />
481
- </g>
482
73
  <g
483
74
  id="video"
484
- style="display:none"
75
+ style="display:none;"
485
76
  sodipodi:insensitive="true">
486
77
  <polygon
487
- points="23 7 16 12 23 17 23 7"
78
+ points="45.444025,13.035503 31.653955,23.006053 45.444025,32.976603 "
488
79
  id="polygon35" />
489
80
  <rect
490
- x="1"
491
- y="5"
492
- width="15"
493
- height="14"
494
- rx="2"
495
- ry="2"
81
+ x="2.1038051"
82
+ y="9.0472832"
83
+ width="29.55015"
84
+ height="27.91754"
85
+ rx="1.9999979"
86
+ ry="1.9999982"
496
87
  id="rect35" />
497
88
  </g>
89
+ <g
90
+ id="exit"
91
+ x-animation="true"
92
+ style="display:none"
93
+ sodipodi:insensitive="true">
94
+ <path
95
+ id="solid"
96
+ d="M 12,3.4 C 5.8,7.2 1.8,14 1.8,22 1.8,35 12,45 24,45 36,45 46,35 46,22 46,14 42,7.2 36,3.4" />
97
+ <path
98
+ id="animation"
99
+ d="M 12,3.4 C 5.8,7.2 1.8,14 1.8,22 1.8,35 12,45 24,45 36,45 46,35 46,22 46,14 42,7.2 36,3.4" />
100
+ <g
101
+ id="arrow">
102
+ <line
103
+ id="left"
104
+ x1="24"
105
+ y1="25"
106
+ x2="10"
107
+ y2="14" />
108
+ <line
109
+ id="center"
110
+ x1="24"
111
+ y1="1.3"
112
+ x2="24"
113
+ y2="25" />
114
+ <line
115
+ id="right"
116
+ x1="24"
117
+ y1="25"
118
+ x2="35"
119
+ y2="14" />
120
+ </g>
121
+ </g>
498
122
  </svg>