@mond-design-system/react 6.1.0 → 6.2.0
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.cjs +278 -85
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +157 -8
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +42 -9
- package/dist/index.d.ts +42 -9
- package/dist/index.js +278 -85
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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 {
|
|
@@ -1399,6 +1477,20 @@ button.mds-Link__link {
|
|
|
1399
1477
|
.mds-Radio__dot:disabled ~ .mds-Radio__label {
|
|
1400
1478
|
color: var(--mds-action-disabled-fg);
|
|
1401
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
|
+
}
|
|
1402
1494
|
|
|
1403
1495
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Switch/Switch.module.css?mds-scoped */
|
|
1404
1496
|
.mds-hit-area__hitArea::before {
|
|
@@ -1416,7 +1508,8 @@ button.mds-Link__link {
|
|
|
1416
1508
|
gap: var(--mds-gap-tight);
|
|
1417
1509
|
cursor: pointer;
|
|
1418
1510
|
}
|
|
1419
|
-
.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]) {
|
|
1420
1513
|
cursor: not-allowed;
|
|
1421
1514
|
}
|
|
1422
1515
|
.mds-Switch__track {
|
|
@@ -1449,10 +1542,12 @@ button.mds-Link__link {
|
|
|
1449
1542
|
.mds-Switch__track:checked::after {
|
|
1450
1543
|
transform: translateY(-50%) translateX(calc(var(--mds-switch-w) - var(--mds-switch-knob) - 2 * var(--mds-switch-inset)));
|
|
1451
1544
|
}
|
|
1452
|
-
.mds-Switch__track:disabled
|
|
1545
|
+
.mds-Switch__track:disabled,
|
|
1546
|
+
.mds-Switch__track[aria-disabled=true] {
|
|
1453
1547
|
background: var(--mds-action-disabled-bg);
|
|
1454
1548
|
}
|
|
1455
|
-
.mds-Switch__track:disabled::after
|
|
1549
|
+
.mds-Switch__track:disabled::after,
|
|
1550
|
+
.mds-Switch__track[aria-disabled=true]::after {
|
|
1456
1551
|
background: var(--mds-action-disabled-fg);
|
|
1457
1552
|
}
|
|
1458
1553
|
.mds-Switch__trackWrap {
|
|
@@ -1472,9 +1567,33 @@ button.mds-Link__link {
|
|
|
1472
1567
|
font: var(--mds-type-label);
|
|
1473
1568
|
color: var(--mds-text-primary);
|
|
1474
1569
|
}
|
|
1475
|
-
.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 {
|
|
1476
1572
|
color: var(--mds-action-disabled-fg);
|
|
1477
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
|
+
}
|
|
1478
1597
|
|
|
1479
1598
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/SegmentedControl/SegmentedControl.module.css?mds-scoped */
|
|
1480
1599
|
.mds-SegmentedControl__group {
|
|
@@ -1556,6 +1675,16 @@ button.mds-Link__link {
|
|
|
1556
1675
|
outline: var(--mds-focus-width) solid var(--mds-focus-ring-color);
|
|
1557
1676
|
outline-offset: var(--mds-focus-offset);
|
|
1558
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
|
+
}
|
|
1559
1688
|
|
|
1560
1689
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Scroller/Scroller.module.css?mds-scoped */
|
|
1561
1690
|
.mds-Scroller__scroller {
|
|
@@ -1581,7 +1710,7 @@ button.mds-Link__link {
|
|
|
1581
1710
|
overflow-x: auto;
|
|
1582
1711
|
overscroll-behavior-x: contain;
|
|
1583
1712
|
scroll-snap-type: x proximity;
|
|
1584
|
-
scroll-behavior:
|
|
1713
|
+
scroll-behavior: var(--mds-scroll);
|
|
1585
1714
|
scrollbar-width: none;
|
|
1586
1715
|
padding: var(--mds-focus-offset);
|
|
1587
1716
|
margin: calc(var(--mds-focus-offset) * -1);
|
|
@@ -2049,6 +2178,7 @@ th.mds-DataTable__actions {
|
|
|
2049
2178
|
border: var(--mds-border-emphasis) solid var(--mds-accent);
|
|
2050
2179
|
}
|
|
2051
2180
|
.mds-Card__interactive {
|
|
2181
|
+
min-height: var(--mds-tap-min);
|
|
2052
2182
|
padding: 0;
|
|
2053
2183
|
margin: 0;
|
|
2054
2184
|
font: inherit;
|
|
@@ -2323,7 +2453,6 @@ th.mds-DataTable__actions {
|
|
|
2323
2453
|
border-radius: var(--mds-radius-tag);
|
|
2324
2454
|
box-shadow: var(--mds-elevation-floating);
|
|
2325
2455
|
font: var(--mds-type-note);
|
|
2326
|
-
pointer-events: none;
|
|
2327
2456
|
}
|
|
2328
2457
|
|
|
2329
2458
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/ConfirmDialog/ConfirmDialog.module.css?mds-scoped */
|
|
@@ -2370,6 +2499,9 @@ th.mds-DataTable__actions {
|
|
|
2370
2499
|
background: var(--mds-surface-page);
|
|
2371
2500
|
border-bottom: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
2372
2501
|
}
|
|
2502
|
+
.mds-AppBar__flush {
|
|
2503
|
+
padding-inline: 0;
|
|
2504
|
+
}
|
|
2373
2505
|
.mds-AppBar__title {
|
|
2374
2506
|
flex: 1;
|
|
2375
2507
|
min-width: 0;
|
|
@@ -2418,6 +2550,7 @@ th.mds-DataTable__actions {
|
|
|
2418
2550
|
border-top: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
2419
2551
|
}
|
|
2420
2552
|
.mds-TabBar__item {
|
|
2553
|
+
position: relative;
|
|
2421
2554
|
flex: 1;
|
|
2422
2555
|
display: flex;
|
|
2423
2556
|
flex-direction: column;
|
|
@@ -2441,6 +2574,17 @@ th.mds-DataTable__actions {
|
|
|
2441
2574
|
.mds-TabBar__active:hover {
|
|
2442
2575
|
color: var(--mds-text-accent);
|
|
2443
2576
|
}
|
|
2577
|
+
.mds-TabBar__active::before {
|
|
2578
|
+
content: "";
|
|
2579
|
+
position: absolute;
|
|
2580
|
+
top: 0;
|
|
2581
|
+
left: 50%;
|
|
2582
|
+
translate: -50%;
|
|
2583
|
+
width: var(--mds-tabbar-icon);
|
|
2584
|
+
height: var(--mds-border-emphasis);
|
|
2585
|
+
border-radius: var(--mds-radius-pill);
|
|
2586
|
+
background: currentColor;
|
|
2587
|
+
}
|
|
2444
2588
|
.mds-TabBar__icon {
|
|
2445
2589
|
position: relative;
|
|
2446
2590
|
display: inline-flex;
|
|
@@ -2489,6 +2633,11 @@ th.mds-DataTable__actions {
|
|
|
2489
2633
|
.mds-TabBar__action:hover {
|
|
2490
2634
|
background: var(--mds-accent-hover);
|
|
2491
2635
|
}
|
|
2636
|
+
@media (forced-colors: active) {
|
|
2637
|
+
.mds-TabBar__active::before {
|
|
2638
|
+
background: SelectedItem;
|
|
2639
|
+
}
|
|
2640
|
+
}
|
|
2492
2641
|
|
|
2493
2642
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/SideNav/SideNav.module.css?mds-scoped */
|
|
2494
2643
|
.mds-SideNav__nav {
|