@mond-design-system/react 4.12.0 → 5.1.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 +372 -115
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +225 -69
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +193 -27
- package/dist/index.d.ts +193 -27
- package/dist/index.js +366 -115
- package/dist/index.js.map +1 -1
- package/package.json +3 -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;
|
|
@@ -2236,6 +2218,180 @@ button.mds-Link__link {
|
|
|
2236
2218
|
padding: 0 var(--mds-pad-card) var(--mds-pad-card);
|
|
2237
2219
|
}
|
|
2238
2220
|
|
|
2221
|
+
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Popover/Popover.module.css?mds-scoped */
|
|
2222
|
+
.mds-Popover__panel {
|
|
2223
|
+
position: fixed;
|
|
2224
|
+
top: 0;
|
|
2225
|
+
left: 0;
|
|
2226
|
+
z-index: var(--mds-z-popover);
|
|
2227
|
+
display: flex;
|
|
2228
|
+
flex-direction: column;
|
|
2229
|
+
width: max-content;
|
|
2230
|
+
max-width: min(var(--mds-popover-w), calc(100vw - 2 * var(--mds-pad-page-x)));
|
|
2231
|
+
overflow: hidden;
|
|
2232
|
+
background: var(--mds-surface-raised);
|
|
2233
|
+
border: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
2234
|
+
border-radius: var(--mds-radius-card);
|
|
2235
|
+
box-shadow: var(--mds-elevation-floating);
|
|
2236
|
+
opacity: 0;
|
|
2237
|
+
transform: scale(0.96);
|
|
2238
|
+
transition: opacity var(--mds-dur-fast) var(--mds-ease-standard), transform var(--mds-dur-fast) var(--mds-ease-standard);
|
|
2239
|
+
}
|
|
2240
|
+
.mds-Popover__panel[data-placement^=bottom] {
|
|
2241
|
+
transform-origin: top center;
|
|
2242
|
+
}
|
|
2243
|
+
.mds-Popover__panel[data-placement^=top] {
|
|
2244
|
+
transform-origin: bottom center;
|
|
2245
|
+
}
|
|
2246
|
+
.mds-Popover__panel[data-placement^=left] {
|
|
2247
|
+
transform-origin: center right;
|
|
2248
|
+
}
|
|
2249
|
+
.mds-Popover__panel[data-placement^=right] {
|
|
2250
|
+
transform-origin: center left;
|
|
2251
|
+
}
|
|
2252
|
+
.mds-Popover__panel[data-open] {
|
|
2253
|
+
opacity: 1;
|
|
2254
|
+
transform: none;
|
|
2255
|
+
}
|
|
2256
|
+
.mds-Popover__header {
|
|
2257
|
+
display: flex;
|
|
2258
|
+
align-items: center;
|
|
2259
|
+
gap: var(--mds-gap);
|
|
2260
|
+
padding: var(--mds-pad-card) var(--mds-pad-card) 0;
|
|
2261
|
+
font: var(--mds-type-panel-title);
|
|
2262
|
+
color: var(--mds-text-primary);
|
|
2263
|
+
}
|
|
2264
|
+
.mds-Popover__headerTitle {
|
|
2265
|
+
flex: 1;
|
|
2266
|
+
min-width: 0;
|
|
2267
|
+
margin: 0;
|
|
2268
|
+
font: inherit;
|
|
2269
|
+
color: inherit;
|
|
2270
|
+
}
|
|
2271
|
+
.mds-Popover__close {
|
|
2272
|
+
display: inline-flex;
|
|
2273
|
+
align-items: center;
|
|
2274
|
+
justify-content: center;
|
|
2275
|
+
flex: none;
|
|
2276
|
+
width: var(--mds-tap-min);
|
|
2277
|
+
height: var(--mds-tap-min);
|
|
2278
|
+
margin: calc((var(--mds-tap-min) - var(--mds-icon-lg)) / -2);
|
|
2279
|
+
margin-left: 0;
|
|
2280
|
+
border: none;
|
|
2281
|
+
border-radius: var(--mds-radius-pill);
|
|
2282
|
+
background: transparent;
|
|
2283
|
+
color: var(--mds-text-secondary);
|
|
2284
|
+
cursor: pointer;
|
|
2285
|
+
}
|
|
2286
|
+
.mds-Popover__closeGlyph {
|
|
2287
|
+
width: var(--mds-icon-sm);
|
|
2288
|
+
height: var(--mds-icon-sm);
|
|
2289
|
+
}
|
|
2290
|
+
.mds-Popover__body {
|
|
2291
|
+
flex: 1;
|
|
2292
|
+
min-height: 0;
|
|
2293
|
+
overflow-y: auto;
|
|
2294
|
+
overscroll-behavior-y: contain;
|
|
2295
|
+
padding: var(--mds-pad-card);
|
|
2296
|
+
font: var(--mds-type-body);
|
|
2297
|
+
color: var(--mds-text-primary);
|
|
2298
|
+
}
|
|
2299
|
+
.mds-Popover__footer {
|
|
2300
|
+
display: flex;
|
|
2301
|
+
align-items: center;
|
|
2302
|
+
justify-content: flex-end;
|
|
2303
|
+
gap: var(--mds-gap);
|
|
2304
|
+
padding: 0 var(--mds-pad-card) var(--mds-pad-card);
|
|
2305
|
+
}
|
|
2306
|
+
|
|
2307
|
+
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Menu/Menu.module.css?mds-scoped */
|
|
2308
|
+
.mds-Menu__panel {
|
|
2309
|
+
position: fixed;
|
|
2310
|
+
top: 0;
|
|
2311
|
+
left: 0;
|
|
2312
|
+
z-index: var(--mds-z-popover);
|
|
2313
|
+
display: flex;
|
|
2314
|
+
flex-direction: column;
|
|
2315
|
+
width: max-content;
|
|
2316
|
+
min-width: var(--mds-control-h-lg);
|
|
2317
|
+
max-width: min(var(--mds-popover-w), calc(100vw - 2 * var(--mds-pad-page-x)));
|
|
2318
|
+
overflow-y: auto;
|
|
2319
|
+
overscroll-behavior-y: contain;
|
|
2320
|
+
padding: var(--mds-pad-tight) 0;
|
|
2321
|
+
background: var(--mds-surface-raised);
|
|
2322
|
+
border: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
2323
|
+
border-radius: var(--mds-radius-card);
|
|
2324
|
+
box-shadow: var(--mds-elevation-floating);
|
|
2325
|
+
opacity: 0;
|
|
2326
|
+
transform: scale(0.96);
|
|
2327
|
+
transition: opacity var(--mds-dur-fast) var(--mds-ease-standard), transform var(--mds-dur-fast) var(--mds-ease-standard);
|
|
2328
|
+
}
|
|
2329
|
+
.mds-Menu__panel[data-placement^=bottom] {
|
|
2330
|
+
transform-origin: top center;
|
|
2331
|
+
}
|
|
2332
|
+
.mds-Menu__panel[data-placement^=top] {
|
|
2333
|
+
transform-origin: bottom center;
|
|
2334
|
+
}
|
|
2335
|
+
.mds-Menu__panel[data-placement^=left] {
|
|
2336
|
+
transform-origin: center right;
|
|
2337
|
+
}
|
|
2338
|
+
.mds-Menu__panel[data-placement^=right] {
|
|
2339
|
+
transform-origin: center left;
|
|
2340
|
+
}
|
|
2341
|
+
.mds-Menu__panel[data-open] {
|
|
2342
|
+
opacity: 1;
|
|
2343
|
+
transform: none;
|
|
2344
|
+
}
|
|
2345
|
+
.mds-Menu__item {
|
|
2346
|
+
display: flex;
|
|
2347
|
+
align-items: center;
|
|
2348
|
+
gap: var(--mds-gap-tight);
|
|
2349
|
+
min-height: var(--mds-tap-min);
|
|
2350
|
+
padding: var(--mds-pad-item-y) var(--mds-pad-card);
|
|
2351
|
+
border: none;
|
|
2352
|
+
background: transparent;
|
|
2353
|
+
font: var(--mds-type-item-title);
|
|
2354
|
+
color: var(--mds-text-primary);
|
|
2355
|
+
text-align: start;
|
|
2356
|
+
cursor: pointer;
|
|
2357
|
+
}
|
|
2358
|
+
.mds-Menu__item:hover:not(:disabled),
|
|
2359
|
+
.mds-Menu__item:focus-visible {
|
|
2360
|
+
background: var(--mds-surface-selected);
|
|
2361
|
+
}
|
|
2362
|
+
.mds-Menu__item:focus-visible {
|
|
2363
|
+
outline: var(--mds-focus-width) solid var(--mds-focus-ring-color);
|
|
2364
|
+
outline-offset: calc(var(--mds-focus-offset) * -1);
|
|
2365
|
+
}
|
|
2366
|
+
.mds-Menu__item:disabled {
|
|
2367
|
+
color: var(--mds-text-muted);
|
|
2368
|
+
cursor: default;
|
|
2369
|
+
}
|
|
2370
|
+
.mds-Menu__tone-danger {
|
|
2371
|
+
color: var(--mds-status-danger);
|
|
2372
|
+
}
|
|
2373
|
+
.mds-Menu__tone-danger:hover:not(:disabled),
|
|
2374
|
+
.mds-Menu__tone-danger:focus-visible {
|
|
2375
|
+
background: var(--mds-status-danger-soft);
|
|
2376
|
+
}
|
|
2377
|
+
|
|
2378
|
+
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Tooltip/Tooltip.module.css?mds-scoped */
|
|
2379
|
+
.mds-Tooltip__surface {
|
|
2380
|
+
position: fixed;
|
|
2381
|
+
top: 0;
|
|
2382
|
+
left: 0;
|
|
2383
|
+
z-index: var(--mds-z-tooltip);
|
|
2384
|
+
width: max-content;
|
|
2385
|
+
max-width: min(var(--mds-tooltip-w), calc(100vw - 2 * var(--mds-pad-page-x)));
|
|
2386
|
+
padding: var(--mds-pad-tag-y) var(--mds-pad-tag-x);
|
|
2387
|
+
background: var(--mds-surface-inverse);
|
|
2388
|
+
color: var(--mds-text-inverse);
|
|
2389
|
+
border-radius: var(--mds-radius-tag);
|
|
2390
|
+
box-shadow: var(--mds-elevation-floating);
|
|
2391
|
+
font: var(--mds-type-note);
|
|
2392
|
+
pointer-events: none;
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2239
2395
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/ConfirmDialog/ConfirmDialog.module.css?mds-scoped */
|
|
2240
2396
|
.mds-ConfirmDialog__description {
|
|
2241
2397
|
margin: 0;
|