@mond-design-system/react 4.12.0 → 5.0.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/README.md +1 -1
- package/dist/index.cjs +36 -61
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +51 -69
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +46 -25
- package/dist/index.d.ts +46 -25
- package/dist/index.js +37 -61
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.css
CHANGED
|
@@ -1073,6 +1073,15 @@ button.mds-Link__link {
|
|
|
1073
1073
|
}
|
|
1074
1074
|
|
|
1075
1075
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Input/Input.module.css?mds-scoped */
|
|
1076
|
+
.mds-hit-area__hitArea::before {
|
|
1077
|
+
content: "";
|
|
1078
|
+
position: absolute;
|
|
1079
|
+
top: 50%;
|
|
1080
|
+
left: 50%;
|
|
1081
|
+
translate: -50% -50%;
|
|
1082
|
+
width: max(100%, var(--mds-tap-min));
|
|
1083
|
+
height: max(100%, var(--mds-tap-min));
|
|
1084
|
+
}
|
|
1076
1085
|
.mds-Input__input {
|
|
1077
1086
|
width: 100%;
|
|
1078
1087
|
border: var(--mds-border-width) solid var(--mds-control-border);
|
|
@@ -1085,6 +1094,9 @@ button.mds-Link__link {
|
|
|
1085
1094
|
.mds-Input__input::placeholder {
|
|
1086
1095
|
color: var(--mds-text-muted);
|
|
1087
1096
|
}
|
|
1097
|
+
.mds-Input__own-clear::-webkit-search-cancel-button {
|
|
1098
|
+
display: none;
|
|
1099
|
+
}
|
|
1088
1100
|
.mds-Input__input:disabled {
|
|
1089
1101
|
background: var(--mds-action-disabled-bg);
|
|
1090
1102
|
color: var(--mds-action-disabled-fg);
|
|
@@ -1114,7 +1126,6 @@ button.mds-Link__link {
|
|
|
1114
1126
|
width: 100%;
|
|
1115
1127
|
}
|
|
1116
1128
|
.mds-Input__icon {
|
|
1117
|
-
--mds-icon-slot: var(--mds-icon-md);
|
|
1118
1129
|
position: absolute;
|
|
1119
1130
|
top: 50%;
|
|
1120
1131
|
transform: translateY(-50%);
|
|
@@ -1131,17 +1142,52 @@ button.mds-Link__link {
|
|
|
1131
1142
|
width: 100%;
|
|
1132
1143
|
height: 100%;
|
|
1133
1144
|
}
|
|
1145
|
+
.mds-Input__slot-sm {
|
|
1146
|
+
--mds-icon-slot: var(--mds-icon-sm);
|
|
1147
|
+
--mds-control-gutter: var(--mds-pad-control-sm);
|
|
1148
|
+
}
|
|
1149
|
+
.mds-Input__slot-md {
|
|
1150
|
+
--mds-icon-slot: var(--mds-icon-md);
|
|
1151
|
+
--mds-control-gutter: var(--mds-pad-control-md);
|
|
1152
|
+
}
|
|
1153
|
+
.mds-Input__slot-lg {
|
|
1154
|
+
--mds-icon-slot: var(--mds-icon-lg);
|
|
1155
|
+
--mds-control-gutter: var(--mds-pad-control-lg);
|
|
1156
|
+
}
|
|
1134
1157
|
.mds-Input__iconLeft {
|
|
1135
|
-
left: var(--mds-
|
|
1158
|
+
left: var(--mds-control-gutter);
|
|
1136
1159
|
}
|
|
1137
1160
|
.mds-Input__iconRight {
|
|
1138
|
-
right: var(--mds-
|
|
1161
|
+
right: var(--mds-control-gutter);
|
|
1139
1162
|
}
|
|
1140
1163
|
.mds-Input__with-icon-left {
|
|
1141
|
-
padding-left: calc(var(--mds-
|
|
1164
|
+
padding-left: calc(var(--mds-control-gutter) + var(--mds-icon-slot) + var(--mds-gap-tight));
|
|
1142
1165
|
}
|
|
1143
1166
|
.mds-Input__with-icon-right {
|
|
1144
|
-
padding-right: calc(var(--mds-
|
|
1167
|
+
padding-right: calc(var(--mds-control-gutter) + var(--mds-icon-slot) + var(--mds-gap-tight));
|
|
1168
|
+
}
|
|
1169
|
+
.mds-Input__clear {
|
|
1170
|
+
position: absolute;
|
|
1171
|
+
top: 50%;
|
|
1172
|
+
right: var(--mds-control-gutter);
|
|
1173
|
+
transform: translateY(-50%);
|
|
1174
|
+
display: inline-flex;
|
|
1175
|
+
align-items: center;
|
|
1176
|
+
justify-content: center;
|
|
1177
|
+
width: calc(var(--mds-icon-slot) + var(--mds-gap-tight));
|
|
1178
|
+
height: calc(var(--mds-icon-slot) + var(--mds-gap-tight));
|
|
1179
|
+
border: none;
|
|
1180
|
+
border-radius: var(--mds-radius-pill);
|
|
1181
|
+
background: transparent;
|
|
1182
|
+
color: var(--mds-text-secondary);
|
|
1183
|
+
cursor: pointer;
|
|
1184
|
+
}
|
|
1185
|
+
.mds-Input__clear:hover {
|
|
1186
|
+
background: var(--mds-surface-sunken);
|
|
1187
|
+
}
|
|
1188
|
+
.mds-Input__clearGlyph {
|
|
1189
|
+
width: 100%;
|
|
1190
|
+
height: 100%;
|
|
1145
1191
|
}
|
|
1146
1192
|
|
|
1147
1193
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/PasswordInput/PasswordInput.module.css?mds-scoped */
|
|
@@ -1504,70 +1550,6 @@ button.mds-Link__link {
|
|
|
1504
1550
|
outline-offset: var(--mds-focus-offset);
|
|
1505
1551
|
}
|
|
1506
1552
|
|
|
1507
|
-
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/SearchField/SearchField.module.css?mds-scoped */
|
|
1508
|
-
.mds-hit-area__hitArea::before {
|
|
1509
|
-
content: "";
|
|
1510
|
-
position: absolute;
|
|
1511
|
-
top: 50%;
|
|
1512
|
-
left: 50%;
|
|
1513
|
-
translate: -50% -50%;
|
|
1514
|
-
width: max(100%, var(--mds-tap-min));
|
|
1515
|
-
height: max(100%, var(--mds-tap-min));
|
|
1516
|
-
}
|
|
1517
|
-
.mds-SearchField__wrap {
|
|
1518
|
-
position: relative;
|
|
1519
|
-
display: inline-flex;
|
|
1520
|
-
align-items: center;
|
|
1521
|
-
width: 100%;
|
|
1522
|
-
}
|
|
1523
|
-
.mds-SearchField__glass {
|
|
1524
|
-
position: absolute;
|
|
1525
|
-
left: var(--mds-pad-control-md);
|
|
1526
|
-
width: var(--mds-icon-sm);
|
|
1527
|
-
height: var(--mds-icon-sm);
|
|
1528
|
-
color: var(--mds-text-muted);
|
|
1529
|
-
pointer-events: none;
|
|
1530
|
-
}
|
|
1531
|
-
.mds-SearchField__input {
|
|
1532
|
-
width: 100%;
|
|
1533
|
-
height: var(--mds-control-h-md);
|
|
1534
|
-
padding: 0 calc(var(--mds-pad-tight) + var(--mds-icon-lg) + var(--mds-gap-tight)) 0 calc(var(--mds-pad-control-md) + var(--mds-icon-sm) + var(--mds-gap-hairline));
|
|
1535
|
-
border: var(--mds-border-width) solid var(--mds-control-border);
|
|
1536
|
-
border-radius: var(--mds-radius-pill);
|
|
1537
|
-
background: var(--mds-surface-card);
|
|
1538
|
-
color: var(--mds-text-primary);
|
|
1539
|
-
font-family: var(--mds-font-body);
|
|
1540
|
-
font-size: var(--mds-text-control);
|
|
1541
|
-
transition: border-color var(--mds-transition-control);
|
|
1542
|
-
}
|
|
1543
|
-
.mds-SearchField__input::placeholder {
|
|
1544
|
-
color: var(--mds-text-muted);
|
|
1545
|
-
}
|
|
1546
|
-
.mds-SearchField__input::-webkit-search-cancel-button {
|
|
1547
|
-
display: none;
|
|
1548
|
-
}
|
|
1549
|
-
.mds-SearchField__clear {
|
|
1550
|
-
position: absolute;
|
|
1551
|
-
right: var(--mds-pad-tight);
|
|
1552
|
-
display: inline-flex;
|
|
1553
|
-
align-items: center;
|
|
1554
|
-
justify-content: center;
|
|
1555
|
-
width: var(--mds-icon-lg);
|
|
1556
|
-
height: var(--mds-icon-lg);
|
|
1557
|
-
border: none;
|
|
1558
|
-
border-radius: var(--mds-radius-pill);
|
|
1559
|
-
background: transparent;
|
|
1560
|
-
color: var(--mds-text-secondary);
|
|
1561
|
-
cursor: pointer;
|
|
1562
|
-
}
|
|
1563
|
-
.mds-SearchField__clear:hover {
|
|
1564
|
-
background: var(--mds-surface-sunken);
|
|
1565
|
-
}
|
|
1566
|
-
.mds-SearchField__clearGlyph {
|
|
1567
|
-
width: var(--mds-icon-sm);
|
|
1568
|
-
height: var(--mds-icon-sm);
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
1553
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Scroller/Scroller.module.css?mds-scoped */
|
|
1572
1554
|
.mds-Scroller__scroller {
|
|
1573
1555
|
display: flex;
|