@mond-design-system/react 4.11.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/dist/index.css CHANGED
@@ -139,6 +139,10 @@
139
139
  height: var(--mds-icon-lg);
140
140
  font-size: var(--mds-icon-lg);
141
141
  }
142
+ .mds-Icon__icon > svg {
143
+ width: 100%;
144
+ height: 100%;
145
+ }
142
146
 
143
147
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Button/Button.module.css?mds-scoped */
144
148
  .mds-Button__button {
@@ -1069,6 +1073,15 @@ button.mds-Link__link {
1069
1073
  }
1070
1074
 
1071
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
+ }
1072
1085
  .mds-Input__input {
1073
1086
  width: 100%;
1074
1087
  border: var(--mds-border-width) solid var(--mds-control-border);
@@ -1081,6 +1094,9 @@ button.mds-Link__link {
1081
1094
  .mds-Input__input::placeholder {
1082
1095
  color: var(--mds-text-muted);
1083
1096
  }
1097
+ .mds-Input__own-clear::-webkit-search-cancel-button {
1098
+ display: none;
1099
+ }
1084
1100
  .mds-Input__input:disabled {
1085
1101
  background: var(--mds-action-disabled-bg);
1086
1102
  color: var(--mds-action-disabled-fg);
@@ -1110,7 +1126,6 @@ button.mds-Link__link {
1110
1126
  width: 100%;
1111
1127
  }
1112
1128
  .mds-Input__icon {
1113
- --mds-icon-slot: var(--mds-icon-md);
1114
1129
  position: absolute;
1115
1130
  top: 50%;
1116
1131
  transform: translateY(-50%);
@@ -1127,17 +1142,52 @@ button.mds-Link__link {
1127
1142
  width: 100%;
1128
1143
  height: 100%;
1129
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
+ }
1130
1157
  .mds-Input__iconLeft {
1131
- left: var(--mds-pad-control-md);
1158
+ left: var(--mds-control-gutter);
1132
1159
  }
1133
1160
  .mds-Input__iconRight {
1134
- right: var(--mds-pad-control-md);
1161
+ right: var(--mds-control-gutter);
1135
1162
  }
1136
1163
  .mds-Input__with-icon-left {
1137
- padding-left: calc(var(--mds-pad-control-md) + var(--mds-icon-md) + var(--mds-gap-tight));
1164
+ padding-left: calc(var(--mds-control-gutter) + var(--mds-icon-slot) + var(--mds-gap-tight));
1138
1165
  }
1139
1166
  .mds-Input__with-icon-right {
1140
- padding-right: calc(var(--mds-pad-control-md) + var(--mds-icon-md) + var(--mds-gap-tight));
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%;
1141
1191
  }
1142
1192
 
1143
1193
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/PasswordInput/PasswordInput.module.css?mds-scoped */
@@ -1500,70 +1550,6 @@ button.mds-Link__link {
1500
1550
  outline-offset: var(--mds-focus-offset);
1501
1551
  }
1502
1552
 
1503
- /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/SearchField/SearchField.module.css?mds-scoped */
1504
- .mds-hit-area__hitArea::before {
1505
- content: "";
1506
- position: absolute;
1507
- top: 50%;
1508
- left: 50%;
1509
- translate: -50% -50%;
1510
- width: max(100%, var(--mds-tap-min));
1511
- height: max(100%, var(--mds-tap-min));
1512
- }
1513
- .mds-SearchField__wrap {
1514
- position: relative;
1515
- display: inline-flex;
1516
- align-items: center;
1517
- width: 100%;
1518
- }
1519
- .mds-SearchField__glass {
1520
- position: absolute;
1521
- left: var(--mds-pad-control-md);
1522
- width: var(--mds-icon-sm);
1523
- height: var(--mds-icon-sm);
1524
- color: var(--mds-text-muted);
1525
- pointer-events: none;
1526
- }
1527
- .mds-SearchField__input {
1528
- width: 100%;
1529
- height: var(--mds-control-h-md);
1530
- 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));
1531
- border: var(--mds-border-width) solid var(--mds-control-border);
1532
- border-radius: var(--mds-radius-pill);
1533
- background: var(--mds-surface-card);
1534
- color: var(--mds-text-primary);
1535
- font-family: var(--mds-font-body);
1536
- font-size: var(--mds-text-control);
1537
- transition: border-color var(--mds-transition-control);
1538
- }
1539
- .mds-SearchField__input::placeholder {
1540
- color: var(--mds-text-muted);
1541
- }
1542
- .mds-SearchField__input::-webkit-search-cancel-button {
1543
- display: none;
1544
- }
1545
- .mds-SearchField__clear {
1546
- position: absolute;
1547
- right: var(--mds-pad-tight);
1548
- display: inline-flex;
1549
- align-items: center;
1550
- justify-content: center;
1551
- width: var(--mds-icon-lg);
1552
- height: var(--mds-icon-lg);
1553
- border: none;
1554
- border-radius: var(--mds-radius-pill);
1555
- background: transparent;
1556
- color: var(--mds-text-secondary);
1557
- cursor: pointer;
1558
- }
1559
- .mds-SearchField__clear:hover {
1560
- background: var(--mds-surface-sunken);
1561
- }
1562
- .mds-SearchField__clearGlyph {
1563
- width: var(--mds-icon-sm);
1564
- height: var(--mds-icon-sm);
1565
- }
1566
-
1567
1553
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Scroller/Scroller.module.css?mds-scoped */
1568
1554
  .mds-Scroller__scroller {
1569
1555
  display: flex;
@@ -2174,6 +2160,16 @@ button.mds-Link__link {
2174
2160
  .mds-Card__footer:last-child {
2175
2161
  padding-bottom: var(--mds-pad-card);
2176
2162
  }
2163
+ :is(.mds-Card__header, .mds-Card__body, .mds-Card__footer) :is(.mds-Card__header, .mds-Card__body, .mds-Card__footer) {
2164
+ padding: 0;
2165
+ }
2166
+ .mds-Card__clipped {
2167
+ display: -webkit-box;
2168
+ -webkit-box-orient: vertical;
2169
+ -webkit-line-clamp: var(--card-lines);
2170
+ line-clamp: var(--card-lines);
2171
+ overflow: hidden;
2172
+ }
2177
2173
 
2178
2174
  /* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Modal/Modal.module.css?mds-scoped */
2179
2175
  .mds-Modal__panel {