@donotdev/ui 0.0.23 → 0.0.25
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/crud/components/CrudCardLink.d.ts +1 -1
- package/dist/crud/components/CrudCardLink.d.ts.map +1 -1
- package/dist/crud/components/CrudCardLink.js +5 -1
- package/dist/crud/components/EntityCardList.d.ts +1 -1
- package/dist/crud/components/EntityCardList.d.ts.map +1 -1
- package/dist/crud/components/EntityCardList.js +5 -1
- package/dist/crud/components/EntityDisplayRenderer.d.ts +1 -1
- package/dist/crud/components/EntityDisplayRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityDisplayRenderer.js +5 -1
- package/dist/crud/components/EntityFormRenderer.d.ts +1 -1
- package/dist/crud/components/EntityFormRenderer.d.ts.map +1 -1
- package/dist/crud/components/EntityFormRenderer.js +6 -1
- package/dist/crud/components/EntityList.d.ts +1 -1
- package/dist/crud/components/EntityList.d.ts.map +1 -1
- package/dist/crud/components/EntityList.js +5 -1
- package/dist/crud/components/EntityRecommendations.d.ts.map +1 -1
- package/dist/crud/components/EntityRecommendations.js +5 -1
- package/dist/crud/components/EntityWorkflow.d.ts +2 -2
- package/dist/crud/components/EntityWorkflow.d.ts.map +1 -1
- package/dist/crud/components/EntityWorkflow.js +5 -1
- package/dist/crud/crudImports.d.ts +36 -0
- package/dist/crud/crudImports.d.ts.map +1 -0
- package/dist/crud/crudImports.js +39 -0
- package/dist/dndev-next.css +100 -169
- package/dist/dndev.css +108 -183
- package/dist/index.js +4 -4
- package/dist/styles/index.css +108 -183
- package/package.json +7 -11
package/dist/styles/index.css
CHANGED
|
@@ -125,6 +125,7 @@
|
|
|
125
125
|
--border: color-mix(in oklab, var(--foreground) 15%, var(--background));
|
|
126
126
|
--input: var(--muted);
|
|
127
127
|
--ring: var(--primary);
|
|
128
|
+
--placeholder: rgb(from var(--muted-foreground) r g b / 0.6);
|
|
128
129
|
|
|
129
130
|
/* Containers (Flat design by default) */
|
|
130
131
|
--card: var(--background);
|
|
@@ -282,11 +283,6 @@
|
|
|
282
283
|
--opacity-muted: 0.6;
|
|
283
284
|
--opacity-strong: 0.9;
|
|
284
285
|
|
|
285
|
-
/* ===========================
|
|
286
|
-
SURFACE SYSTEM - SIMPLIFIED
|
|
287
|
-
=========================== */
|
|
288
|
-
/* --surface-1 deprecated: use --card */
|
|
289
|
-
|
|
290
286
|
/* ===========================
|
|
291
287
|
PANEL/POPOVER WIDTHS
|
|
292
288
|
Standard widths for contextual panels, popovers, and tooltips
|
|
@@ -805,11 +801,11 @@ em {
|
|
|
805
801
|
}
|
|
806
802
|
|
|
807
803
|
.dndev-input::-moz-placeholder {
|
|
808
|
-
color:
|
|
804
|
+
color: var(--placeholder);
|
|
809
805
|
}
|
|
810
806
|
|
|
811
807
|
.dndev-input::placeholder {
|
|
812
|
-
color:
|
|
808
|
+
color: var(--placeholder);
|
|
813
809
|
}
|
|
814
810
|
|
|
815
811
|
.dndev-input:hover {
|
|
@@ -819,14 +815,12 @@ em {
|
|
|
819
815
|
.dndev-input:focus {
|
|
820
816
|
border-color: var(--ring);
|
|
821
817
|
outline: none;
|
|
822
|
-
box-shadow:
|
|
818
|
+
box-shadow: var(--shadow-focus);
|
|
823
819
|
}
|
|
824
820
|
|
|
825
821
|
.dndev-input:focus-visible {
|
|
826
822
|
outline: none;
|
|
827
|
-
box-shadow:
|
|
828
|
-
0 0 0 2px var(--ring),
|
|
829
|
-
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
823
|
+
box-shadow: var(--shadow-focus), var(--shadow-interactive);
|
|
830
824
|
}
|
|
831
825
|
|
|
832
826
|
.dndev-input:disabled {
|
|
@@ -842,13 +836,14 @@ em {
|
|
|
842
836
|
|
|
843
837
|
.dndev-input[data-variant='destructive']:focus {
|
|
844
838
|
border-color: var(--destructive);
|
|
845
|
-
box-shadow: 0 0 0
|
|
839
|
+
box-shadow: 0 0 0 3px
|
|
840
|
+
color-mix(in oklab, var(--destructive) 50%, transparent);
|
|
846
841
|
}
|
|
847
842
|
|
|
848
843
|
.dndev-input[data-variant='destructive']:focus-visible {
|
|
849
844
|
box-shadow:
|
|
850
|
-
0 0 0
|
|
851
|
-
0 0 0
|
|
845
|
+
0 0 0 3px color-mix(in oklab, var(--destructive) 50%, transparent),
|
|
846
|
+
0 0 0 3px color-mix(in oklab, var(--destructive) 20%, transparent);
|
|
852
847
|
}
|
|
853
848
|
|
|
854
849
|
/* File input specific styles */
|
|
@@ -860,6 +855,12 @@ em {
|
|
|
860
855
|
font-weight: var(--font-weight-medium);
|
|
861
856
|
}
|
|
862
857
|
|
|
858
|
+
/* Radix UI and other non-native placeholders (e.g. Select, DatePicker triggers) */
|
|
859
|
+
|
|
860
|
+
[data-placeholder] {
|
|
861
|
+
color: var(--placeholder);
|
|
862
|
+
}
|
|
863
|
+
|
|
863
864
|
/* Control base class - checkbox, radio, switch, slider */
|
|
864
865
|
|
|
865
866
|
.dndev-control {
|
|
@@ -875,9 +876,7 @@ em {
|
|
|
875
876
|
|
|
876
877
|
.dndev-control:focus-visible {
|
|
877
878
|
outline: none;
|
|
878
|
-
box-shadow:
|
|
879
|
-
0 0 0 2px var(--ring),
|
|
880
|
-
0 0 0 4px rgb(from var(--ring) r g b / 0.2);
|
|
879
|
+
box-shadow: var(--shadow-focus), var(--shadow-interactive);
|
|
881
880
|
}
|
|
882
881
|
|
|
883
882
|
.dndev-control:disabled {
|
|
@@ -1029,13 +1028,13 @@ em {
|
|
|
1029
1028
|
.dndev-surface[data-hover='glow']:hover {
|
|
1030
1029
|
box-shadow:
|
|
1031
1030
|
var(--shadow-xl),
|
|
1032
|
-
0 0 40px
|
|
1031
|
+
0 0 40px color-mix(in oklab, var(--foreground) 30%, transparent);
|
|
1033
1032
|
}
|
|
1034
1033
|
|
|
1035
1034
|
.dndev-surface[data-hover='glow']:dir(rtl):hover {
|
|
1036
1035
|
box-shadow:
|
|
1037
1036
|
var(--shadow-xl-rtl),
|
|
1038
|
-
0 0 40px
|
|
1037
|
+
0 0 40px color-mix(in oklab, var(--foreground) 30%, transparent);
|
|
1039
1038
|
}
|
|
1040
1039
|
|
|
1041
1040
|
/* Role-specific defaults */
|
|
@@ -1296,13 +1295,13 @@ em {
|
|
|
1296
1295
|
.dndev-floating[data-hover='glow']:hover {
|
|
1297
1296
|
box-shadow:
|
|
1298
1297
|
var(--shadow-xl),
|
|
1299
|
-
0 0 40px
|
|
1298
|
+
0 0 40px color-mix(in oklab, var(--foreground) 30%, transparent);
|
|
1300
1299
|
}
|
|
1301
1300
|
|
|
1302
1301
|
.dndev-floating[data-hover='glow']:dir(rtl):hover {
|
|
1303
1302
|
box-shadow:
|
|
1304
1303
|
var(--shadow-xl-rtl),
|
|
1305
|
-
0 0 40px
|
|
1304
|
+
0 0 40px color-mix(in oklab, var(--foreground) 30%, transparent);
|
|
1306
1305
|
}
|
|
1307
1306
|
|
|
1308
1307
|
/* Role-specific defaults */
|
|
@@ -1420,15 +1419,21 @@ em {
|
|
|
1420
1419
|
/* Base - filled primary (industry standard) */
|
|
1421
1420
|
background: var(--primary);
|
|
1422
1421
|
color: var(--primary-foreground);
|
|
1422
|
+
|
|
1423
|
+
/* ── Shared states ── */
|
|
1423
1424
|
}
|
|
1424
1425
|
|
|
1425
1426
|
.dndev-interactive:hover {
|
|
1426
|
-
|
|
1427
|
+
background: color-mix(in oklab, var(--primary) 85%, var(--foreground));
|
|
1428
|
+
}
|
|
1429
|
+
|
|
1430
|
+
.dndev-interactive:active:not(:disabled) {
|
|
1431
|
+
scale: 0.97;
|
|
1427
1432
|
}
|
|
1428
1433
|
|
|
1429
1434
|
.dndev-interactive:focus-visible {
|
|
1430
|
-
outline:
|
|
1431
|
-
|
|
1435
|
+
outline: none;
|
|
1436
|
+
box-shadow: var(--shadow-focus), var(--shadow-interactive);
|
|
1432
1437
|
}
|
|
1433
1438
|
|
|
1434
1439
|
.dndev-interactive:disabled {
|
|
@@ -1443,129 +1448,110 @@ em {
|
|
|
1443
1448
|
flex-shrink: 0;
|
|
1444
1449
|
}
|
|
1445
1450
|
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1451
|
+
/* ═══════════════════════════
|
|
1452
|
+
FILLED VARIANTS — hover = darken/lighten the bg color
|
|
1453
|
+
═══════════════════════════ */
|
|
1449
1454
|
|
|
1450
|
-
|
|
1455
|
+
.dndev-interactive[data-variant='primary'] {
|
|
1456
|
+
background: var(--primary);
|
|
1457
|
+
color: var(--primary-foreground);
|
|
1458
|
+
}
|
|
1451
1459
|
|
|
1452
|
-
.dndev-interactive[data-variant='
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
color: var(--foreground);
|
|
1460
|
+
.dndev-interactive[data-variant='accent'] {
|
|
1461
|
+
background: var(--accent);
|
|
1462
|
+
color: var(--accent-foreground);
|
|
1456
1463
|
}
|
|
1457
1464
|
|
|
1458
|
-
.dndev-interactive[data-variant='
|
|
1459
|
-
background: var(--
|
|
1460
|
-
color: var(--primary-foreground);
|
|
1465
|
+
.dndev-interactive[data-variant='accent']:hover {
|
|
1466
|
+
background: color-mix(in oklab, var(--accent) 85%, var(--foreground));
|
|
1461
1467
|
}
|
|
1462
1468
|
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
background: transparent;
|
|
1467
|
-
color: var(--foreground);
|
|
1469
|
+
.dndev-interactive[data-variant='secondary'] {
|
|
1470
|
+
background: var(--secondary);
|
|
1471
|
+
color: var(--secondary-foreground);
|
|
1468
1472
|
}
|
|
1469
1473
|
|
|
1470
|
-
.dndev-interactive[data-variant='
|
|
1471
|
-
background: var(--
|
|
1472
|
-
color: var(--primary-foreground);
|
|
1474
|
+
.dndev-interactive[data-variant='secondary']:hover {
|
|
1475
|
+
background: color-mix(in oklab, var(--secondary) 85%, var(--foreground));
|
|
1473
1476
|
}
|
|
1474
1477
|
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
background: transparent;
|
|
1479
|
-
color: var(--destructive);
|
|
1480
|
-
border: var(--border-hairline) solid var(--destructive);
|
|
1478
|
+
.dndev-interactive[data-variant='success'] {
|
|
1479
|
+
background: var(--success);
|
|
1480
|
+
color: var(--success-foreground);
|
|
1481
1481
|
}
|
|
1482
1482
|
|
|
1483
|
-
.dndev-interactive[data-variant='
|
|
1484
|
-
background: var(--
|
|
1485
|
-
color: var(--destructive-foreground);
|
|
1483
|
+
.dndev-interactive[data-variant='success']:hover {
|
|
1484
|
+
background: color-mix(in oklab, var(--success) 85%, var(--foreground));
|
|
1486
1485
|
}
|
|
1487
1486
|
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
background: transparent;
|
|
1492
|
-
color: var(--muted-foreground);
|
|
1493
|
-
padding: 0;
|
|
1494
|
-
min-height: auto;
|
|
1495
|
-
font-size: var(--font-size-base);
|
|
1496
|
-
text-decoration: underline;
|
|
1497
|
-
text-underline-offset: 2px;
|
|
1498
|
-
transition: color var(--dur-fast) ease-out;
|
|
1487
|
+
.dndev-interactive[data-variant='warning'] {
|
|
1488
|
+
background: var(--warning);
|
|
1489
|
+
color: var(--warning-foreground);
|
|
1499
1490
|
}
|
|
1500
1491
|
|
|
1501
|
-
.dndev-interactive[data-variant='
|
|
1502
|
-
|
|
1492
|
+
.dndev-interactive[data-variant='warning']:hover {
|
|
1493
|
+
background: color-mix(in oklab, var(--warning) 85%, var(--foreground));
|
|
1503
1494
|
}
|
|
1504
1495
|
|
|
1505
|
-
/* Muted variant - subtle background */
|
|
1506
|
-
|
|
1507
1496
|
.dndev-interactive[data-variant='muted'] {
|
|
1508
1497
|
background: var(--muted);
|
|
1509
1498
|
color: var(--muted-foreground);
|
|
1510
1499
|
}
|
|
1511
1500
|
|
|
1512
1501
|
.dndev-interactive[data-variant='muted']:hover {
|
|
1513
|
-
background: color-mix(in oklab, var(--muted) 80%,
|
|
1502
|
+
background: color-mix(in oklab, var(--muted) 80%, var(--foreground) 20%);
|
|
1514
1503
|
}
|
|
1515
1504
|
|
|
1516
|
-
/*
|
|
1505
|
+
/* ═══════════════════════════
|
|
1506
|
+
GHOST VARIANTS — hover = subtle tint + text color shift
|
|
1507
|
+
═══════════════════════════ */
|
|
1517
1508
|
|
|
1518
|
-
|
|
1519
|
-
background: var(--accent);
|
|
1520
|
-
color: var(--accent-foreground);
|
|
1521
|
-
}
|
|
1522
|
-
|
|
1523
|
-
.dndev-interactive[data-variant='accent']:hover {
|
|
1524
|
-
opacity: var(--opacity-strong);
|
|
1525
|
-
}
|
|
1509
|
+
/* Shared ghost hover — one rule for all transparent interactive elements */
|
|
1526
1510
|
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
background: var(--primary);
|
|
1531
|
-
color: var(--primary-foreground);
|
|
1511
|
+
.dndev-interactive[data-variant='outline'],.dndev-interactive[data-variant='ghost'],.dndev-interactive[data-role='nav-trigger'],.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'] {
|
|
1512
|
+
background: transparent;
|
|
1513
|
+
color: var(--foreground);
|
|
1532
1514
|
}
|
|
1533
1515
|
|
|
1534
|
-
.dndev-interactive[data-variant='
|
|
1535
|
-
|
|
1516
|
+
:is(.dndev-interactive[data-variant='outline'],.dndev-interactive[data-variant='ghost'],.dndev-interactive[data-role='nav-trigger'],.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item']):hover {
|
|
1517
|
+
background: rgb(from var(--primary) r g b / 0.1);
|
|
1518
|
+
color: var(--primary);
|
|
1536
1519
|
}
|
|
1537
1520
|
|
|
1538
|
-
/*
|
|
1521
|
+
/* Outline adds border on top of ghost base */
|
|
1539
1522
|
|
|
1540
|
-
.dndev-interactive[data-variant='
|
|
1541
|
-
|
|
1542
|
-
color: var(--secondary-foreground);
|
|
1523
|
+
.dndev-interactive[data-variant='outline'] {
|
|
1524
|
+
border: var(--border-hairline) solid var(--border);
|
|
1543
1525
|
}
|
|
1544
1526
|
|
|
1545
|
-
|
|
1546
|
-
opacity: var(--opacity-strong);
|
|
1547
|
-
}
|
|
1548
|
-
|
|
1549
|
-
/* Success variant - success state */
|
|
1527
|
+
/* Destructive ghost — same paradigm, different color */
|
|
1550
1528
|
|
|
1551
|
-
.dndev-interactive[data-variant='
|
|
1552
|
-
background:
|
|
1553
|
-
color: var(--
|
|
1529
|
+
.dndev-interactive[data-variant='destructive'] {
|
|
1530
|
+
background: transparent;
|
|
1531
|
+
color: var(--destructive);
|
|
1532
|
+
border: var(--border-hairline) solid var(--destructive);
|
|
1554
1533
|
}
|
|
1555
1534
|
|
|
1556
|
-
.dndev-interactive[data-variant='
|
|
1557
|
-
|
|
1535
|
+
.dndev-interactive[data-variant='destructive']:hover {
|
|
1536
|
+
background: rgb(from var(--destructive) r g b / 0.1);
|
|
1537
|
+
color: var(--destructive);
|
|
1558
1538
|
}
|
|
1559
1539
|
|
|
1560
|
-
/*
|
|
1540
|
+
/* Link variant — text-only, no background shift */
|
|
1561
1541
|
|
|
1562
|
-
.dndev-interactive[data-variant='
|
|
1563
|
-
background:
|
|
1564
|
-
color: var(--
|
|
1542
|
+
.dndev-interactive[data-variant='link'] {
|
|
1543
|
+
background: transparent;
|
|
1544
|
+
color: var(--muted-foreground);
|
|
1545
|
+
padding: 0;
|
|
1546
|
+
min-height: auto;
|
|
1547
|
+
font-size: var(--font-size-base);
|
|
1548
|
+
text-decoration: underline;
|
|
1549
|
+
text-underline-offset: 2px;
|
|
1550
|
+
transition: color var(--dur-fast) ease-out;
|
|
1565
1551
|
}
|
|
1566
1552
|
|
|
1567
|
-
.dndev-interactive[data-variant='
|
|
1568
|
-
|
|
1553
|
+
.dndev-interactive[data-variant='link']:hover {
|
|
1554
|
+
color: var(--primary);
|
|
1569
1555
|
}
|
|
1570
1556
|
|
|
1571
1557
|
/* Context-aware: ONLY inside accent surfaces */
|
|
@@ -1584,11 +1570,11 @@ em {
|
|
|
1584
1570
|
}
|
|
1585
1571
|
|
|
1586
1572
|
:is([data-variant='outline']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive),[data-variant='ghost']:is(.dndev-surface[data-variant='accent'] .dndev-interactive,.dndev-floating[data-variant='accent'] .dndev-interactive)):hover {
|
|
1587
|
-
background: var(--surface-text);
|
|
1588
|
-
color: var(--surface-
|
|
1573
|
+
background: rgb(from var(--surface-text) r g b / 0.1);
|
|
1574
|
+
color: var(--surface-text);
|
|
1589
1575
|
}
|
|
1590
1576
|
|
|
1591
|
-
/* Unified menu/command/nav item base */
|
|
1577
|
+
/* Unified menu/command/nav item base — ghost hover inherited from shared rule above */
|
|
1592
1578
|
|
|
1593
1579
|
.dndev-interactive[data-role='menu-item'],.dndev-interactive[data-role='command-item'],.dndev-interactive[data-role='nav-trigger'] {
|
|
1594
1580
|
min-height: auto;
|
|
@@ -1602,10 +1588,6 @@ em {
|
|
|
1602
1588
|
position: relative;
|
|
1603
1589
|
text-decoration: none;
|
|
1604
1590
|
|
|
1605
|
-
/* Override base .dndev-interactive filled primary - make ghost */
|
|
1606
|
-
background: transparent;
|
|
1607
|
-
color: inherit;
|
|
1608
|
-
|
|
1609
1591
|
/* Remove gap when compact (no label to space from) */
|
|
1610
1592
|
}
|
|
1611
1593
|
|
|
@@ -1613,11 +1595,9 @@ em {
|
|
|
1613
1595
|
gap: 0 !important;
|
|
1614
1596
|
}
|
|
1615
1597
|
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
background-color: var(--accent);
|
|
1620
|
-
color: var(--accent-foreground);
|
|
1598
|
+
.dndev-interactive[data-role='menu-item']:focus-visible,.dndev-interactive[data-role='menu-item'][data-highlighted] {
|
|
1599
|
+
background: rgb(from var(--primary) r g b / 0.1);
|
|
1600
|
+
color: var(--primary);
|
|
1621
1601
|
outline: 2px solid var(--ring);
|
|
1622
1602
|
outline-offset: 0;
|
|
1623
1603
|
}
|
|
@@ -1643,14 +1623,9 @@ em {
|
|
|
1643
1623
|
width: 100%;
|
|
1644
1624
|
}
|
|
1645
1625
|
|
|
1646
|
-
.dndev-interactive[data-role='command-item']:hover:not([data-selected='true']) {
|
|
1647
|
-
background-color: var(--accent);
|
|
1648
|
-
color: var(--accent-foreground);
|
|
1649
|
-
}
|
|
1650
|
-
|
|
1651
1626
|
.dndev-interactive[data-role='command-item'][data-selected='true'] {
|
|
1652
|
-
background
|
|
1653
|
-
color: var(--
|
|
1627
|
+
background: rgb(from var(--primary) r g b / 0.1);
|
|
1628
|
+
color: var(--primary);
|
|
1654
1629
|
}
|
|
1655
1630
|
|
|
1656
1631
|
.dndev-interactive[data-role='command-item'][data-disabled='true'] {
|
|
@@ -1659,8 +1634,8 @@ em {
|
|
|
1659
1634
|
}
|
|
1660
1635
|
|
|
1661
1636
|
.dndev-interactive[data-role='command-item']:focus-visible {
|
|
1662
|
-
outline:
|
|
1663
|
-
|
|
1637
|
+
outline: none;
|
|
1638
|
+
box-shadow: var(--shadow-focus), var(--shadow-interactive);
|
|
1664
1639
|
}
|
|
1665
1640
|
|
|
1666
1641
|
/* Specific containers that need start-align (not general stacks/grids) */
|
|
@@ -1755,8 +1730,8 @@ em {
|
|
|
1755
1730
|
/* Focus state */
|
|
1756
1731
|
|
|
1757
1732
|
.dndev-control:focus-visible {
|
|
1758
|
-
outline:
|
|
1759
|
-
|
|
1733
|
+
outline: none;
|
|
1734
|
+
box-shadow: var(--shadow-focus), var(--shadow-interactive);
|
|
1760
1735
|
}
|
|
1761
1736
|
|
|
1762
1737
|
/* Disabled state */
|
|
@@ -1770,8 +1745,8 @@ em {
|
|
|
1770
1745
|
|
|
1771
1746
|
.dndev-control[data-state='checked'],.dndev-control[data-state='on'],.dndev-control[data-pressed='true'] {
|
|
1772
1747
|
background-color: var(--control-border);
|
|
1773
|
-
/* --card
|
|
1774
|
-
color: var(--card);
|
|
1748
|
+
/* --card-base: root snapshot, not overridden by variant blocks (safe inside any surface) */
|
|
1749
|
+
color: var(--card-base);
|
|
1775
1750
|
}
|
|
1776
1751
|
|
|
1777
1752
|
/* CONTROL GROUP - Shared pattern for grouped controls (RadioGroup, Checkbox groups) */
|
|
@@ -1912,8 +1887,7 @@ em {
|
|
|
1912
1887
|
margin-top: var(--gap-sm);
|
|
1913
1888
|
margin-bottom: var(--gap-sm);
|
|
1914
1889
|
height: 1px;
|
|
1915
|
-
background-color: var(--
|
|
1916
|
-
opacity: var(--opacity-strong);
|
|
1890
|
+
background-color: var(--border);
|
|
1917
1891
|
}
|
|
1918
1892
|
|
|
1919
1893
|
/* Menu shortcut */
|
|
@@ -1949,26 +1923,13 @@ em {
|
|
|
1949
1923
|
--notification-shadow-base: var(--shadow-xl-rtl);
|
|
1950
1924
|
}
|
|
1951
1925
|
|
|
1952
|
-
/* Notification variants -
|
|
1926
|
+
/* Notification variants - only override border + glow, bg/color inherited from base */
|
|
1953
1927
|
|
|
1954
1928
|
.dndev-notification[data-variant='default'] {
|
|
1955
|
-
background: color-mix(
|
|
1956
|
-
in oklab,
|
|
1957
|
-
var(--popover-foreground) 95%,
|
|
1958
|
-
transparent
|
|
1959
|
-
) !important;
|
|
1960
|
-
color: var(--popover) !important;
|
|
1961
1929
|
border: var(--border-hairline) solid var(--border);
|
|
1962
|
-
/* Uses base shadow from .dndev-notification */
|
|
1963
1930
|
}
|
|
1964
1931
|
|
|
1965
1932
|
.dndev-notification[data-variant='info'] {
|
|
1966
|
-
background: color-mix(
|
|
1967
|
-
in oklab,
|
|
1968
|
-
var(--popover-foreground) 95%,
|
|
1969
|
-
transparent
|
|
1970
|
-
) !important;
|
|
1971
|
-
color: var(--popover) !important;
|
|
1972
1933
|
border: var(--border-width) solid var(--accent);
|
|
1973
1934
|
box-shadow:
|
|
1974
1935
|
var(--notification-shadow-base),
|
|
@@ -1976,12 +1937,6 @@ em {
|
|
|
1976
1937
|
}
|
|
1977
1938
|
|
|
1978
1939
|
.dndev-notification[data-variant='success'] {
|
|
1979
|
-
background: color-mix(
|
|
1980
|
-
in oklab,
|
|
1981
|
-
var(--popover-foreground) 95%,
|
|
1982
|
-
transparent
|
|
1983
|
-
) !important;
|
|
1984
|
-
color: var(--popover) !important;
|
|
1985
1940
|
border: var(--border-width) solid var(--success);
|
|
1986
1941
|
box-shadow:
|
|
1987
1942
|
var(--notification-shadow-base),
|
|
@@ -1989,12 +1944,6 @@ em {
|
|
|
1989
1944
|
}
|
|
1990
1945
|
|
|
1991
1946
|
.dndev-notification[data-variant='warning'] {
|
|
1992
|
-
background: color-mix(
|
|
1993
|
-
in oklab,
|
|
1994
|
-
var(--popover-foreground) 95%,
|
|
1995
|
-
transparent
|
|
1996
|
-
) !important;
|
|
1997
|
-
color: var(--popover) !important;
|
|
1998
1947
|
border: var(--border-width) solid var(--warning);
|
|
1999
1948
|
box-shadow:
|
|
2000
1949
|
var(--notification-shadow-base),
|
|
@@ -2002,12 +1951,6 @@ em {
|
|
|
2002
1951
|
}
|
|
2003
1952
|
|
|
2004
1953
|
.dndev-notification[data-variant='error'],.dndev-notification[data-variant='destructive'] {
|
|
2005
|
-
background: color-mix(
|
|
2006
|
-
in oklab,
|
|
2007
|
-
var(--popover-foreground) 95%,
|
|
2008
|
-
transparent
|
|
2009
|
-
) !important;
|
|
2010
|
-
color: var(--popover) !important;
|
|
2011
1954
|
border: var(--border-width) solid var(--destructive);
|
|
2012
1955
|
box-shadow:
|
|
2013
1956
|
var(--notification-shadow-base),
|
|
@@ -2015,12 +1958,6 @@ em {
|
|
|
2015
1958
|
}
|
|
2016
1959
|
|
|
2017
1960
|
.dndev-notification[data-variant='primary'] {
|
|
2018
|
-
background: color-mix(
|
|
2019
|
-
in oklab,
|
|
2020
|
-
var(--popover-foreground) 95%,
|
|
2021
|
-
transparent
|
|
2022
|
-
) !important;
|
|
2023
|
-
color: var(--popover) !important;
|
|
2024
1961
|
border: var(--border-width) solid var(--primary);
|
|
2025
1962
|
box-shadow:
|
|
2026
1963
|
var(--notification-shadow-base),
|
|
@@ -2028,12 +1965,6 @@ em {
|
|
|
2028
1965
|
}
|
|
2029
1966
|
|
|
2030
1967
|
.dndev-notification[data-variant='secondary'] {
|
|
2031
|
-
background: color-mix(
|
|
2032
|
-
in oklab,
|
|
2033
|
-
var(--popover-foreground) 95%,
|
|
2034
|
-
transparent
|
|
2035
|
-
) !important;
|
|
2036
|
-
color: var(--popover) !important;
|
|
2037
1968
|
border: var(--border-width) solid var(--secondary);
|
|
2038
1969
|
box-shadow:
|
|
2039
1970
|
var(--notification-shadow-base),
|
|
@@ -2041,12 +1972,6 @@ em {
|
|
|
2041
1972
|
}
|
|
2042
1973
|
|
|
2043
1974
|
.dndev-notification[data-variant='accent'] {
|
|
2044
|
-
background: color-mix(
|
|
2045
|
-
in oklab,
|
|
2046
|
-
var(--popover-foreground) 95%,
|
|
2047
|
-
transparent
|
|
2048
|
-
) !important;
|
|
2049
|
-
color: var(--popover) !important;
|
|
2050
1975
|
border: var(--border-width) solid var(--accent);
|
|
2051
1976
|
box-shadow:
|
|
2052
1977
|
var(--notification-shadow-base),
|
|
@@ -2060,7 +1985,7 @@ em {
|
|
|
2060
1985
|
.dndev-overlay {
|
|
2061
1986
|
position: fixed;
|
|
2062
1987
|
inset: 0;
|
|
2063
|
-
background:
|
|
1988
|
+
background: color-mix(in oklab, var(--foreground) 40%, transparent);
|
|
2064
1989
|
backdrop-filter: blur(8px);
|
|
2065
1990
|
will-change: opacity;
|
|
2066
1991
|
z-index: var(--z-overlay);
|
|
@@ -2131,7 +2056,7 @@ em {
|
|
|
2131
2056
|
|
|
2132
2057
|
.dndev-modal-content {
|
|
2133
2058
|
position: fixed;
|
|
2134
|
-
|
|
2059
|
+
inset-inline-start: 50%;
|
|
2135
2060
|
top: 50%;
|
|
2136
2061
|
z-index: calc(var(--z-modal) + 1);
|
|
2137
2062
|
transform: translate(-50%, -50%);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@donotdev/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
@@ -58,13 +58,12 @@
|
|
|
58
58
|
"react-hook-form": "^7.71.2"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
|
-
"@donotdev/auth": "^0.0.
|
|
62
|
-
"@donotdev/billing": "^0.0.
|
|
63
|
-
"@donotdev/components": "^0.0.
|
|
64
|
-
"@donotdev/core": "^0.0.
|
|
65
|
-
"@donotdev/crud": "^0.0.
|
|
66
|
-
"@donotdev/
|
|
67
|
-
"@donotdev/oauth": "^0.0.15",
|
|
61
|
+
"@donotdev/auth": "^0.0.20",
|
|
62
|
+
"@donotdev/billing": "^0.0.17",
|
|
63
|
+
"@donotdev/components": "^0.0.28",
|
|
64
|
+
"@donotdev/core": "^0.0.38",
|
|
65
|
+
"@donotdev/crud": "^0.0.26",
|
|
66
|
+
"@donotdev/oauth": "^0.0.17",
|
|
68
67
|
"lucide-react": "^0.575.0",
|
|
69
68
|
"react": "^19.2.4",
|
|
70
69
|
"react-dom": "^19.2.4",
|
|
@@ -81,9 +80,6 @@
|
|
|
81
80
|
"@donotdev/crud": {
|
|
82
81
|
"optional": true
|
|
83
82
|
},
|
|
84
|
-
"@donotdev/firebase": {
|
|
85
|
-
"optional": true
|
|
86
|
-
},
|
|
87
83
|
"@donotdev/oauth": {
|
|
88
84
|
"optional": true
|
|
89
85
|
},
|