@nice2dev/ui-erp 1.0.12 → 1.0.14

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/style.css CHANGED
@@ -8,18 +8,18 @@
8
8
  ============================================================================= */
9
9
 
10
10
  :root {
11
- --erp-primary: var(--nice-info, #6366f1);
12
- --erp-primary-dark: var(--nice-accent, #4f46e5);
13
- --erp-primary-light: var(--nice-accent, #818cf8);
11
+ --erp-primary: var(--nice-primary, #6366f1);
12
+ --erp-primary-dark: var(--nice-primary-dark, #4f46e5);
13
+ --erp-primary-light: var(--nice-primary-light, #818cf8);
14
14
  --erp-success: var(--nice-success, #22c55e);
15
15
  --erp-warning: var(--nice-warning, #f59e0b);
16
16
  --erp-error: var(--nice-danger, #ef4444);
17
- --erp-info: var(--nice-primary, #3b82f6);
18
- --erp-bg: var(--nice-text, #0f172a);
19
- --erp-surface: var(--nice-text, #1e293b);
20
- --erp-surface-alt: var(--nice-text, #334155);
21
- --erp-border: var(--nice-text-secondary, #475569);
22
- --erp-text: var(--nice-bg-secondary, #f1f5f9);
17
+ --erp-info: var(--nice-info, #3b82f6);
18
+ --erp-bg: var(--nice-bg, #0f172a);
19
+ --erp-surface: var(--nice-bg-secondary, #1e293b);
20
+ --erp-surface-alt: var(--nice-bg-tertiary, #334155);
21
+ --erp-border: var(--nice-border, #475569);
22
+ --erp-text: var(--nice-text, #f1f5f9);
23
23
  --erp-text-muted: var(--nice-text-muted, #94a3b8);
24
24
  --erp-radius: 8px;
25
25
  --erp-radius-sm: 4px;
@@ -1402,3 +1402,110 @@
1402
1402
  justify-content: center;
1403
1403
  }
1404
1404
  }
1405
+
1406
+ /* =============================================================================
1407
+ WAREHOUSE VIEW (NiceWarehouseView)
1408
+ ============================================================================= */
1409
+ .nice-warehouse-view {
1410
+ display: flex;
1411
+ flex-direction: column;
1412
+ gap: var(--nice-space-4, 16px);
1413
+ padding: var(--nice-space-4, 16px);
1414
+ background: var(--erp-bg);
1415
+ color: var(--erp-text);
1416
+ border-radius: var(--erp-radius);
1417
+ border: 1px solid var(--erp-border);
1418
+ }
1419
+
1420
+ .nice-warehouse-view__header {
1421
+ display: flex;
1422
+ align-items: center;
1423
+ justify-content: space-between;
1424
+ flex-wrap: wrap;
1425
+ gap: var(--nice-space-3, 12px);
1426
+ }
1427
+
1428
+ .nice-warehouse-view__header h3 {
1429
+ margin: 0;
1430
+ font-size: 1.125rem;
1431
+ font-weight: 600;
1432
+ }
1433
+
1434
+ .nice-warehouse-view__legend {
1435
+ display: inline-flex;
1436
+ align-items: center;
1437
+ gap: var(--nice-space-2, 8px);
1438
+ font-size: 0.85rem;
1439
+ color: var(--erp-text-muted);
1440
+ }
1441
+
1442
+ .nice-warehouse-view__legend > span {
1443
+ display: inline-block;
1444
+ width: 14px;
1445
+ height: 14px;
1446
+ border-radius: var(--erp-radius-sm);
1447
+ border: 1px solid var(--erp-border);
1448
+ margin-left: var(--nice-space-2, 8px);
1449
+ margin-right: var(--nice-space-1, 4px);
1450
+ }
1451
+
1452
+ .nice-warehouse-view__legend > span:first-of-type { margin-left: 0; }
1453
+
1454
+ .nice-warehouse-view__grid {
1455
+ display: flex;
1456
+ flex-direction: column;
1457
+ gap: var(--nice-space-1, 4px);
1458
+ }
1459
+
1460
+ .nice-warehouse-view__row {
1461
+ display: flex;
1462
+ gap: var(--nice-space-1, 4px);
1463
+ }
1464
+
1465
+ .nice-warehouse-view__aisle {
1466
+ width: var(--nice-space-3, 12px);
1467
+ align-self: stretch;
1468
+ border-left: 1px dashed var(--erp-border);
1469
+ margin: 0 var(--nice-space-1, 4px);
1470
+ }
1471
+
1472
+ .nice-warehouse-view__cell {
1473
+ position: relative;
1474
+ border: 1px solid var(--erp-border);
1475
+ border-radius: var(--erp-radius-sm);
1476
+ cursor: pointer;
1477
+ display: flex;
1478
+ align-items: center;
1479
+ justify-content: center;
1480
+ font-size: 0.7rem;
1481
+ color: rgba(0, 0, 0, 0.7);
1482
+ transition: transform var(--erp-transition);
1483
+ }
1484
+
1485
+ .nice-warehouse-view__cell:hover {
1486
+ transform: scale(1.08);
1487
+ z-index: 1;
1488
+ }
1489
+
1490
+ .nice-warehouse-view__cell:focus-visible {
1491
+ outline: 2px solid var(--erp-primary);
1492
+ outline-offset: 1px;
1493
+ }
1494
+
1495
+ .nice-warehouse-view__bin {
1496
+ pointer-events: none;
1497
+ }
1498
+
1499
+ .nice-warehouse-view__details {
1500
+ margin-top: var(--nice-space-2, 8px);
1501
+ padding: var(--nice-space-3, 12px);
1502
+ background: var(--erp-surface);
1503
+ border: 1px solid var(--erp-border);
1504
+ border-radius: var(--erp-radius);
1505
+ font-size: 0.85rem;
1506
+ }
1507
+
1508
+ .nice-warehouse-view__details ul {
1509
+ margin: var(--nice-space-2, 8px) 0 0;
1510
+ padding-left: var(--nice-space-4, 16px);
1511
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nice2dev/ui-erp",
3
- "version": "1.0.12",
3
+ "version": "1.0.14",
4
4
  "description": "Enterprise Resource Planning components for Nice2Dev",
5
5
  "author": "Nice2Dev Team",
6
6
  "license": "MIT",
@@ -45,12 +45,12 @@
45
45
  "typecheck": "tsc --noEmit"
46
46
  },
47
47
  "peerDependencies": {
48
- "@nice2dev/ui-core": "^1.0.12",
48
+ "@nice2dev/ui-core": "^1.0.14",
49
49
  "react": ">=17.0.0",
50
50
  "react-dom": ">=17.0.0"
51
51
  },
52
52
  "devDependencies": {
53
- "@nice2dev/ui-core": "^1.0.12",
53
+ "@nice2dev/ui-core": "^1.0.14",
54
54
  "@testing-library/react": "^14.1.0",
55
55
  "@types/react": "^18.2.45",
56
56
  "@types/react-dom": "^18.2.18",