@mond-design-system/react 6.0.0 → 6.1.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 CHANGED
@@ -145,6 +145,15 @@
145
145
  }
146
146
 
147
147
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Button/Button.module.css?mds-scoped */
148
+ .mds-hit-area__hitArea::before {
149
+ content: "";
150
+ position: absolute;
151
+ top: 50%;
152
+ left: 50%;
153
+ translate: -50% -50%;
154
+ width: max(100%, var(--mds-tap-min));
155
+ height: max(100%, var(--mds-tap-min));
156
+ }
148
157
  .mds-Button__button {
149
158
  display: inline-flex;
150
159
  align-items: center;
@@ -235,18 +244,23 @@
235
244
  .mds-Button__variant-warning:hover:not(:disabled) {
236
245
  filter: brightness(0.94);
237
246
  }
238
- .mds-Button__button:disabled {
247
+ .mds-Button__button:disabled,
248
+ .mds-Button__button[aria-disabled=true] {
239
249
  background: var(--mds-action-disabled-bg);
240
250
  color: var(--mds-action-disabled-fg);
241
251
  border-color: transparent;
242
252
  cursor: not-allowed;
243
253
  }
254
+ .mds-Button__button[aria-disabled=true] {
255
+ pointer-events: none;
256
+ }
244
257
  .mds-Button__fullWidth {
245
258
  width: 100%;
246
259
  }
247
260
  .mds-Button__icon-only {
248
261
  padding: 0;
249
262
  border-radius: var(--mds-radius-pill);
263
+ position: relative;
250
264
  }
251
265
  .mds-Button__icon-only.mds-Button__size-sm {
252
266
  width: var(--mds-control-h-sm);
@@ -342,6 +356,14 @@ button.mds-Link__link {
342
356
  .mds-Link__size-xl {
343
357
  font-size: var(--mds-text-xl);
344
358
  }
359
+ .mds-Link__hiddenNote {
360
+ position: absolute;
361
+ width: 1px;
362
+ height: 1px;
363
+ overflow: hidden;
364
+ clip-path: inset(50%);
365
+ white-space: nowrap;
366
+ }
345
367
 
346
368
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Avatar/Avatar.module.css?mds-scoped */
347
369
  .mds-Avatar__avatar {
@@ -607,7 +629,17 @@ button.mds-Link__link {
607
629
  }
608
630
 
609
631
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/CountButton/CountButton.module.css?mds-scoped */
632
+ .mds-hit-area__hitArea::before {
633
+ content: "";
634
+ position: absolute;
635
+ top: 50%;
636
+ left: 50%;
637
+ translate: -50% -50%;
638
+ width: max(100%, var(--mds-tap-min));
639
+ height: max(100%, var(--mds-tap-min));
640
+ }
610
641
  .mds-CountButton__button {
642
+ position: relative;
611
643
  display: inline-flex;
612
644
  align-items: center;
613
645
  gap: var(--mds-gap-hairline);
@@ -627,10 +659,14 @@ button.mds-Link__link {
627
659
  .mds-CountButton__button:active:not(:disabled) {
628
660
  background: var(--mds-surface-selected);
629
661
  }
630
- .mds-CountButton__button:disabled {
662
+ .mds-CountButton__button:disabled,
663
+ .mds-CountButton__button[aria-disabled=true] {
631
664
  cursor: default;
632
665
  opacity: 0.6;
633
666
  }
667
+ .mds-CountButton__button[aria-disabled=true] {
668
+ pointer-events: none;
669
+ }
634
670
  .mds-CountButton__tone-accent {
635
671
  color: var(--mds-accent);
636
672
  }
@@ -842,6 +878,9 @@ button.mds-Link__link {
842
878
  cursor: default;
843
879
  opacity: 0.5;
844
880
  }
881
+ .mds-DateTimePicker__trigger[aria-invalid=true] {
882
+ border-color: var(--mds-status-danger);
883
+ }
845
884
  .mds-DateTimePicker__hasValue {
846
885
  color: var(--mds-text-primary);
847
886
  }
@@ -898,6 +937,9 @@ button.mds-Link__link {
898
937
  min-height: calc(6 * var(--mds-tap-min));
899
938
  align-items: stretch;
900
939
  }
940
+ .mds-DateTimePicker__week {
941
+ display: contents;
942
+ }
901
943
  .mds-DateTimePicker__day {
902
944
  border: none;
903
945
  background: transparent;
@@ -1191,6 +1233,15 @@ button.mds-Link__link {
1191
1233
  }
1192
1234
 
1193
1235
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/PasswordInput/PasswordInput.module.css?mds-scoped */
1236
+ .mds-hit-area__hitArea::before {
1237
+ content: "";
1238
+ position: absolute;
1239
+ top: 50%;
1240
+ left: 50%;
1241
+ translate: -50% -50%;
1242
+ width: max(100%, var(--mds-tap-min));
1243
+ height: max(100%, var(--mds-tap-min));
1244
+ }
1194
1245
  .mds-PasswordInput__wrap {
1195
1246
  position: relative;
1196
1247
  display: block;
@@ -1333,6 +1384,33 @@ button.mds-Link__link {
1333
1384
  .mds-Checkbox__box:disabled ~ .mds-Checkbox__label {
1334
1385
  color: var(--mds-action-disabled-fg);
1335
1386
  }
1387
+ @media (forced-colors: active) {
1388
+ .mds-Checkbox__box:checked,
1389
+ .mds-Checkbox__box:indeterminate {
1390
+ background: SelectedItem;
1391
+ border-color: SelectedItem;
1392
+ }
1393
+ .mds-Checkbox__box:checked::after {
1394
+ border-color: SelectedItemText;
1395
+ }
1396
+ .mds-Checkbox__box:indeterminate::after {
1397
+ border-top-color: SelectedItemText;
1398
+ }
1399
+ .mds-Checkbox__box:disabled {
1400
+ border-color: GrayText;
1401
+ }
1402
+ .mds-Checkbox__box:disabled:checked,
1403
+ .mds-Checkbox__box:disabled:indeterminate {
1404
+ background: GrayText;
1405
+ border-color: GrayText;
1406
+ }
1407
+ .mds-Checkbox__box:disabled:checked::after {
1408
+ border-color: Canvas;
1409
+ }
1410
+ .mds-Checkbox__box:disabled:indeterminate::after {
1411
+ border-top-color: Canvas;
1412
+ }
1413
+ }
1336
1414
 
1337
1415
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Radio/Radio.module.css?mds-scoped */
1338
1416
  .mds-hit-area__hitArea::before {
@@ -1350,6 +1428,12 @@ button.mds-Link__link {
1350
1428
  gap: var(--mds-gap-tight);
1351
1429
  cursor: pointer;
1352
1430
  }
1431
+ .mds-Radio__size-sm {
1432
+ --mds-check-size: var(--mds-check-size-sm);
1433
+ }
1434
+ .mds-Radio__size-lg {
1435
+ --mds-check-size: var(--mds-check-size-lg);
1436
+ }
1353
1437
  .mds-Radio__root:has(.mds-Radio__dot:disabled) {
1354
1438
  cursor: not-allowed;
1355
1439
  }
@@ -1359,6 +1443,7 @@ button.mds-Link__link {
1359
1443
  margin: 0;
1360
1444
  width: var(--mds-check-size);
1361
1445
  height: var(--mds-check-size);
1446
+ font-size: var(--mds-check-size);
1362
1447
  border: var(--mds-border-width) solid var(--mds-control-border);
1363
1448
  border-radius: var(--mds-radius-pill);
1364
1449
  background: var(--mds-surface-card);
@@ -1373,8 +1458,8 @@ button.mds-Link__link {
1373
1458
  }
1374
1459
  .mds-Radio__dot:checked::after {
1375
1460
  content: "";
1376
- width: 50%;
1377
- height: 50%;
1461
+ width: 0.5em;
1462
+ height: 0.5em;
1378
1463
  border-radius: var(--mds-radius-pill);
1379
1464
  background: var(--mds-action-bg);
1380
1465
  }
@@ -1392,6 +1477,20 @@ button.mds-Link__link {
1392
1477
  .mds-Radio__dot:disabled ~ .mds-Radio__label {
1393
1478
  color: var(--mds-action-disabled-fg);
1394
1479
  }
1480
+ @media (forced-colors: active) {
1481
+ .mds-Radio__dot:checked {
1482
+ border-color: SelectedItem;
1483
+ }
1484
+ .mds-Radio__dot:checked::after {
1485
+ background: SelectedItem;
1486
+ }
1487
+ .mds-Radio__dot:disabled {
1488
+ border-color: GrayText;
1489
+ }
1490
+ .mds-Radio__dot:disabled:checked::after {
1491
+ background: GrayText;
1492
+ }
1493
+ }
1395
1494
 
1396
1495
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Switch/Switch.module.css?mds-scoped */
1397
1496
  .mds-hit-area__hitArea::before {
@@ -1409,7 +1508,8 @@ button.mds-Link__link {
1409
1508
  gap: var(--mds-gap-tight);
1410
1509
  cursor: pointer;
1411
1510
  }
1412
- .mds-Switch__root:has(.mds-Switch__track:disabled) {
1511
+ .mds-Switch__root:has(.mds-Switch__track:disabled),
1512
+ .mds-Switch__root:has(.mds-Switch__track[aria-disabled=true]) {
1413
1513
  cursor: not-allowed;
1414
1514
  }
1415
1515
  .mds-Switch__track {
@@ -1442,10 +1542,12 @@ button.mds-Link__link {
1442
1542
  .mds-Switch__track:checked::after {
1443
1543
  transform: translateY(-50%) translateX(calc(var(--mds-switch-w) - var(--mds-switch-knob) - 2 * var(--mds-switch-inset)));
1444
1544
  }
1445
- .mds-Switch__track:disabled {
1545
+ .mds-Switch__track:disabled,
1546
+ .mds-Switch__track[aria-disabled=true] {
1446
1547
  background: var(--mds-action-disabled-bg);
1447
1548
  }
1448
- .mds-Switch__track:disabled::after {
1549
+ .mds-Switch__track:disabled::after,
1550
+ .mds-Switch__track[aria-disabled=true]::after {
1449
1551
  background: var(--mds-action-disabled-fg);
1450
1552
  }
1451
1553
  .mds-Switch__trackWrap {
@@ -1465,9 +1567,33 @@ button.mds-Link__link {
1465
1567
  font: var(--mds-type-label);
1466
1568
  color: var(--mds-text-primary);
1467
1569
  }
1468
- .mds-Switch__root:has(.mds-Switch__track:disabled) .mds-Switch__label {
1570
+ .mds-Switch__root:has(.mds-Switch__track:disabled) .mds-Switch__label,
1571
+ .mds-Switch__root:has(.mds-Switch__track[aria-disabled=true]) .mds-Switch__label {
1469
1572
  color: var(--mds-action-disabled-fg);
1470
1573
  }
1574
+ @media (forced-colors: active) {
1575
+ .mds-Switch__track {
1576
+ border: var(--mds-border-width) solid ButtonText;
1577
+ }
1578
+ .mds-Switch__track::after {
1579
+ background: ButtonText;
1580
+ }
1581
+ .mds-Switch__track:checked {
1582
+ background: SelectedItem;
1583
+ border-color: SelectedItem;
1584
+ }
1585
+ .mds-Switch__track:checked::after {
1586
+ background: SelectedItemText;
1587
+ }
1588
+ .mds-Switch__track:disabled,
1589
+ .mds-Switch__track[aria-disabled=true] {
1590
+ border-color: GrayText;
1591
+ }
1592
+ .mds-Switch__track:disabled::after,
1593
+ .mds-Switch__track[aria-disabled=true]::after {
1594
+ background: GrayText;
1595
+ }
1596
+ }
1471
1597
 
1472
1598
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/SegmentedControl/SegmentedControl.module.css?mds-scoped */
1473
1599
  .mds-SegmentedControl__group {
@@ -1549,6 +1675,16 @@ button.mds-Link__link {
1549
1675
  outline: var(--mds-focus-width) solid var(--mds-focus-ring-color);
1550
1676
  outline-offset: var(--mds-focus-offset);
1551
1677
  }
1678
+ @media (forced-colors: active) {
1679
+ .mds-SegmentedControl__input:checked + .mds-SegmentedControl__face {
1680
+ background: SelectedItem;
1681
+ color: SelectedItemText;
1682
+ }
1683
+ .mds-SegmentedControl__input:disabled:checked + .mds-SegmentedControl__face {
1684
+ background: GrayText;
1685
+ color: Canvas;
1686
+ }
1687
+ }
1552
1688
 
1553
1689
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Scroller/Scroller.module.css?mds-scoped */
1554
1690
  .mds-Scroller__scroller {
@@ -1574,7 +1710,7 @@ button.mds-Link__link {
1574
1710
  overflow-x: auto;
1575
1711
  overscroll-behavior-x: contain;
1576
1712
  scroll-snap-type: x proximity;
1577
- scroll-behavior: smooth;
1713
+ scroll-behavior: var(--mds-scroll);
1578
1714
  scrollbar-width: none;
1579
1715
  padding: var(--mds-focus-offset);
1580
1716
  margin: calc(var(--mds-focus-offset) * -1);
@@ -2042,6 +2178,7 @@ th.mds-DataTable__actions {
2042
2178
  border: var(--mds-border-emphasis) solid var(--mds-accent);
2043
2179
  }
2044
2180
  .mds-Card__interactive {
2181
+ min-height: var(--mds-tap-min);
2045
2182
  padding: 0;
2046
2183
  margin: 0;
2047
2184
  font: inherit;
@@ -2316,7 +2453,6 @@ th.mds-DataTable__actions {
2316
2453
  border-radius: var(--mds-radius-tag);
2317
2454
  box-shadow: var(--mds-elevation-floating);
2318
2455
  font: var(--mds-type-note);
2319
- pointer-events: none;
2320
2456
  }
2321
2457
 
2322
2458
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/ConfirmDialog/ConfirmDialog.module.css?mds-scoped */
@@ -2411,6 +2547,7 @@ th.mds-DataTable__actions {
2411
2547
  border-top: var(--mds-border-width) solid var(--mds-border-subtle);
2412
2548
  }
2413
2549
  .mds-TabBar__item {
2550
+ position: relative;
2414
2551
  flex: 1;
2415
2552
  display: flex;
2416
2553
  flex-direction: column;
@@ -2434,6 +2571,17 @@ th.mds-DataTable__actions {
2434
2571
  .mds-TabBar__active:hover {
2435
2572
  color: var(--mds-text-accent);
2436
2573
  }
2574
+ .mds-TabBar__active::before {
2575
+ content: "";
2576
+ position: absolute;
2577
+ top: 0;
2578
+ left: 50%;
2579
+ translate: -50%;
2580
+ width: var(--mds-tabbar-icon);
2581
+ height: var(--mds-border-emphasis);
2582
+ border-radius: var(--mds-radius-pill);
2583
+ background: currentColor;
2584
+ }
2437
2585
  .mds-TabBar__icon {
2438
2586
  position: relative;
2439
2587
  display: inline-flex;
@@ -2482,6 +2630,11 @@ th.mds-DataTable__actions {
2482
2630
  .mds-TabBar__action:hover {
2483
2631
  background: var(--mds-accent-hover);
2484
2632
  }
2633
+ @media (forced-colors: active) {
2634
+ .mds-TabBar__active::before {
2635
+ background: SelectedItem;
2636
+ }
2637
+ }
2485
2638
 
2486
2639
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/SideNav/SideNav.module.css?mds-scoped */
2487
2640
  .mds-SideNav__nav {