@mathscan/math-exercise-engine 1.0.6 → 1.0.8
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.d.ts +2985 -980
- package/dist/index.js +518 -32023
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +513 -32018
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +75 -0
- package/package.json +1 -1
package/dist/style.css
CHANGED
|
@@ -416,6 +416,47 @@ button.drag-option {
|
|
|
416
416
|
font-weight: var(--exercise-font-weight);
|
|
417
417
|
}
|
|
418
418
|
|
|
419
|
+
/* ========================================
|
|
420
|
+
RADIO OPTIONS
|
|
421
|
+
======================================== */
|
|
422
|
+
|
|
423
|
+
.radio-options {
|
|
424
|
+
display: flex;
|
|
425
|
+
justify-content: center;
|
|
426
|
+
gap: calc(var(--exercise-element-margin) * 2);
|
|
427
|
+
flex-wrap: wrap;
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
.radio-option {
|
|
431
|
+
padding: 10px 16px;
|
|
432
|
+
border: var(--exercise-border-width) solid var(--exercise-border);
|
|
433
|
+
border-radius: var(--exercise-border-radius);
|
|
434
|
+
background: var(--exercise-bg);
|
|
435
|
+
color: var(--exercise-text);
|
|
436
|
+
cursor: pointer;
|
|
437
|
+
user-select: none;
|
|
438
|
+
font-size: var(--exercise-font-size);
|
|
439
|
+
font-weight: var(--exercise-font-weight);
|
|
440
|
+
transition: all 0.2s ease;
|
|
441
|
+
min-width: var(--exercise-button-width);
|
|
442
|
+
text-align: center;
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
.radio-option:hover {
|
|
446
|
+
border-color: var(--exercise-primary);
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.radio-option:active {
|
|
450
|
+
transform: scale(0.98);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
.radio-option.selected {
|
|
454
|
+
background: var(--exercise-primary);
|
|
455
|
+
color: white;
|
|
456
|
+
border-color: var(--exercise-primary);
|
|
457
|
+
box-shadow: 0 2px 4px rgba(0, 122, 204, 0.2);
|
|
458
|
+
}
|
|
459
|
+
|
|
419
460
|
/* ========================================
|
|
420
461
|
NUMERIC KEYPAD
|
|
421
462
|
======================================== */
|
|
@@ -470,6 +511,40 @@ button.drag-option {
|
|
|
470
511
|
color: white;
|
|
471
512
|
}
|
|
472
513
|
|
|
514
|
+
/* ========================================
|
|
515
|
+
TABLE LAYOUT
|
|
516
|
+
======================================== */
|
|
517
|
+
|
|
518
|
+
.exercise-table {
|
|
519
|
+
border-spacing: 0;
|
|
520
|
+
border: 2px solid var(--exercise-table-border, #8b7ec8);
|
|
521
|
+
border-radius: 12px;
|
|
522
|
+
overflow: hidden;
|
|
523
|
+
font-size: small;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
.exercise-table-cell {
|
|
527
|
+
padding: 4px;
|
|
528
|
+
text-align: center;
|
|
529
|
+
vertical-align: middle;
|
|
530
|
+
min-height: 36px;
|
|
531
|
+
color: var(--exercise-text);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.exercise-table-container {
|
|
535
|
+
border: 2px solid #7c6cf2;
|
|
536
|
+
border-radius: 8px;
|
|
537
|
+
overflow: hidden;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
table.exercise-table {
|
|
541
|
+
border-collapse: collapse;
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
td.exercise-table-cell, th.exercise-table-cell {
|
|
545
|
+
border: 2px solid #7c6cf2;
|
|
546
|
+
}
|
|
547
|
+
|
|
473
548
|
/**
|
|
474
549
|
* Button & Action Styles
|
|
475
550
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mathscan/math-exercise-engine",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "A DSL parser and validator for math exercises - transforms text-based exercise definitions into structured AST and JSON",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|