@mond-design-system/react 5.0.0 → 6.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.cjs +354 -65
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +204 -103
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +156 -10
- package/dist/index.d.ts +156 -10
- package/dist/index.js +348 -66
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
package/dist/index.css
CHANGED
|
@@ -1703,54 +1703,54 @@ button.mds-Link__link {
|
|
|
1703
1703
|
flex-direction: column;
|
|
1704
1704
|
gap: var(--mds-gap-tight);
|
|
1705
1705
|
}
|
|
1706
|
+
.mds-DataTable__scroll {
|
|
1707
|
+
overflow-x: auto;
|
|
1708
|
+
background: var(--mds-surface-card);
|
|
1709
|
+
border: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
1710
|
+
border-radius: var(--mds-radius-card);
|
|
1711
|
+
}
|
|
1712
|
+
.mds-DataTable__scroll:focus-visible {
|
|
1713
|
+
outline: var(--mds-focus-width) solid var(--mds-focus-ring-color);
|
|
1714
|
+
outline-offset: var(--mds-focus-offset);
|
|
1715
|
+
}
|
|
1706
1716
|
.mds-DataTable__table {
|
|
1707
1717
|
width: 100%;
|
|
1708
|
-
|
|
1718
|
+
border-collapse: collapse;
|
|
1709
1719
|
}
|
|
1710
|
-
.mds-
|
|
1711
|
-
|
|
1720
|
+
.mds-DataTable__row {
|
|
1721
|
+
border-bottom: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
1712
1722
|
}
|
|
1713
|
-
.mds-DataTable__body {
|
|
1714
|
-
|
|
1715
|
-
flex-direction: column;
|
|
1716
|
-
gap: var(--mds-gap-tight);
|
|
1723
|
+
.mds-DataTable__body .mds-DataTable__row:last-child {
|
|
1724
|
+
border-bottom: none;
|
|
1717
1725
|
}
|
|
1718
|
-
.mds-DataTable__row {
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
background: var(--mds-surface-card);
|
|
1724
|
-
border: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
1725
|
-
border-radius: var(--mds-radius-card);
|
|
1726
|
+
.mds-DataTable__body .mds-DataTable__row:hover {
|
|
1727
|
+
background: var(--mds-surface-sunken);
|
|
1728
|
+
}
|
|
1729
|
+
.mds-DataTable__body .mds-DataTable__selected {
|
|
1730
|
+
background: var(--mds-surface-selected);
|
|
1726
1731
|
}
|
|
1727
1732
|
.mds-DataTable__cell,
|
|
1728
1733
|
.mds-DataTable__select,
|
|
1729
1734
|
.mds-DataTable__actions {
|
|
1730
|
-
|
|
1731
|
-
padding: 0;
|
|
1735
|
+
padding: var(--mds-pad-tight) var(--mds-pad-control);
|
|
1732
1736
|
font: var(--mds-type-body);
|
|
1733
1737
|
text-align: start;
|
|
1738
|
+
vertical-align: middle;
|
|
1734
1739
|
}
|
|
1735
|
-
.mds-
|
|
1736
|
-
|
|
1740
|
+
th.mds-DataTable__cell,
|
|
1741
|
+
th.mds-DataTable__select,
|
|
1742
|
+
th.mds-DataTable__actions {
|
|
1737
1743
|
color: var(--mds-text-secondary);
|
|
1738
1744
|
font: var(--mds-type-label);
|
|
1739
|
-
|
|
1740
|
-
.mds-DataTable__lead {
|
|
1741
|
-
font: var(--mds-type-subtitle);
|
|
1745
|
+
white-space: nowrap;
|
|
1742
1746
|
}
|
|
1743
1747
|
.mds-DataTable__select {
|
|
1744
|
-
|
|
1748
|
+
width: var(--mds-tap-min);
|
|
1745
1749
|
}
|
|
1746
1750
|
.mds-DataTable__actions {
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
margin-block-start: var(--mds-gap-hairline);
|
|
1751
|
-
}
|
|
1752
|
-
.mds-DataTable__selected {
|
|
1753
|
-
background: var(--mds-surface-selected);
|
|
1751
|
+
width: 0;
|
|
1752
|
+
white-space: nowrap;
|
|
1753
|
+
text-align: end;
|
|
1754
1754
|
}
|
|
1755
1755
|
.mds-DataTable__muted {
|
|
1756
1756
|
color: var(--mds-text-secondary);
|
|
@@ -1786,79 +1786,6 @@ button.mds-Link__link {
|
|
|
1786
1786
|
flex: initial;
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
|
-
@media (min-width: 1024px) {
|
|
1790
|
-
.mds-DataTable__table {
|
|
1791
|
-
display: table;
|
|
1792
|
-
border-collapse: collapse;
|
|
1793
|
-
background: var(--mds-surface-card);
|
|
1794
|
-
border: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
1795
|
-
border-radius: var(--mds-radius-card);
|
|
1796
|
-
overflow: hidden;
|
|
1797
|
-
}
|
|
1798
|
-
.mds-DataTable__table colgroup {
|
|
1799
|
-
display: table-column-group;
|
|
1800
|
-
}
|
|
1801
|
-
.mds-DataTable__root .mds-DataTable__head {
|
|
1802
|
-
display: table-header-group;
|
|
1803
|
-
position: static;
|
|
1804
|
-
width: auto;
|
|
1805
|
-
height: auto;
|
|
1806
|
-
margin: 0;
|
|
1807
|
-
overflow: visible;
|
|
1808
|
-
clip-path: none;
|
|
1809
|
-
white-space: normal;
|
|
1810
|
-
}
|
|
1811
|
-
.mds-DataTable__body {
|
|
1812
|
-
display: table-row-group;
|
|
1813
|
-
}
|
|
1814
|
-
.mds-DataTable__row {
|
|
1815
|
-
display: table-row;
|
|
1816
|
-
padding: 0;
|
|
1817
|
-
background: none;
|
|
1818
|
-
border: none;
|
|
1819
|
-
border-radius: 0;
|
|
1820
|
-
border-bottom: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
1821
|
-
}
|
|
1822
|
-
.mds-DataTable__body .mds-DataTable__row:last-child {
|
|
1823
|
-
border-bottom: none;
|
|
1824
|
-
}
|
|
1825
|
-
.mds-DataTable__body .mds-DataTable__row:hover {
|
|
1826
|
-
background: var(--mds-surface-sunken);
|
|
1827
|
-
}
|
|
1828
|
-
.mds-DataTable__body .mds-DataTable__selected {
|
|
1829
|
-
background: var(--mds-surface-selected);
|
|
1830
|
-
}
|
|
1831
|
-
.mds-DataTable__cell,
|
|
1832
|
-
.mds-DataTable__select,
|
|
1833
|
-
.mds-DataTable__actions {
|
|
1834
|
-
display: table-cell;
|
|
1835
|
-
padding: var(--mds-pad-tight) var(--mds-pad-control);
|
|
1836
|
-
vertical-align: middle;
|
|
1837
|
-
}
|
|
1838
|
-
.mds-DataTable__key {
|
|
1839
|
-
display: none;
|
|
1840
|
-
}
|
|
1841
|
-
.mds-DataTable__lead {
|
|
1842
|
-
font: var(--mds-type-body);
|
|
1843
|
-
}
|
|
1844
|
-
th.mds-DataTable__cell,
|
|
1845
|
-
th.mds-DataTable__select,
|
|
1846
|
-
th.mds-DataTable__actions {
|
|
1847
|
-
color: var(--mds-text-secondary);
|
|
1848
|
-
font: var(--mds-type-label);
|
|
1849
|
-
white-space: nowrap;
|
|
1850
|
-
}
|
|
1851
|
-
.mds-DataTable__select {
|
|
1852
|
-
order: 0;
|
|
1853
|
-
width: var(--mds-tap-min);
|
|
1854
|
-
}
|
|
1855
|
-
.mds-DataTable__actions {
|
|
1856
|
-
width: 0;
|
|
1857
|
-
margin-block-start: 0;
|
|
1858
|
-
white-space: nowrap;
|
|
1859
|
-
text-align: end;
|
|
1860
|
-
}
|
|
1861
|
-
}
|
|
1862
1789
|
|
|
1863
1790
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/EmptyState/EmptyState.module.css?mds-scoped */
|
|
1864
1791
|
.mds-EmptyState__root {
|
|
@@ -2218,6 +2145,180 @@ button.mds-Link__link {
|
|
|
2218
2145
|
padding: 0 var(--mds-pad-card) var(--mds-pad-card);
|
|
2219
2146
|
}
|
|
2220
2147
|
|
|
2148
|
+
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Popover/Popover.module.css?mds-scoped */
|
|
2149
|
+
.mds-Popover__panel {
|
|
2150
|
+
position: fixed;
|
|
2151
|
+
top: 0;
|
|
2152
|
+
left: 0;
|
|
2153
|
+
z-index: var(--mds-z-popover);
|
|
2154
|
+
display: flex;
|
|
2155
|
+
flex-direction: column;
|
|
2156
|
+
width: max-content;
|
|
2157
|
+
max-width: min(var(--mds-popover-w), calc(100vw - 2 * var(--mds-pad-page-x)));
|
|
2158
|
+
overflow: hidden;
|
|
2159
|
+
background: var(--mds-surface-raised);
|
|
2160
|
+
border: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
2161
|
+
border-radius: var(--mds-radius-card);
|
|
2162
|
+
box-shadow: var(--mds-elevation-floating);
|
|
2163
|
+
opacity: 0;
|
|
2164
|
+
transform: scale(0.96);
|
|
2165
|
+
transition: opacity var(--mds-dur-fast) var(--mds-ease-standard), transform var(--mds-dur-fast) var(--mds-ease-standard);
|
|
2166
|
+
}
|
|
2167
|
+
.mds-Popover__panel[data-placement^=bottom] {
|
|
2168
|
+
transform-origin: top center;
|
|
2169
|
+
}
|
|
2170
|
+
.mds-Popover__panel[data-placement^=top] {
|
|
2171
|
+
transform-origin: bottom center;
|
|
2172
|
+
}
|
|
2173
|
+
.mds-Popover__panel[data-placement^=left] {
|
|
2174
|
+
transform-origin: center right;
|
|
2175
|
+
}
|
|
2176
|
+
.mds-Popover__panel[data-placement^=right] {
|
|
2177
|
+
transform-origin: center left;
|
|
2178
|
+
}
|
|
2179
|
+
.mds-Popover__panel[data-open] {
|
|
2180
|
+
opacity: 1;
|
|
2181
|
+
transform: none;
|
|
2182
|
+
}
|
|
2183
|
+
.mds-Popover__header {
|
|
2184
|
+
display: flex;
|
|
2185
|
+
align-items: center;
|
|
2186
|
+
gap: var(--mds-gap);
|
|
2187
|
+
padding: var(--mds-pad-card) var(--mds-pad-card) 0;
|
|
2188
|
+
font: var(--mds-type-panel-title);
|
|
2189
|
+
color: var(--mds-text-primary);
|
|
2190
|
+
}
|
|
2191
|
+
.mds-Popover__headerTitle {
|
|
2192
|
+
flex: 1;
|
|
2193
|
+
min-width: 0;
|
|
2194
|
+
margin: 0;
|
|
2195
|
+
font: inherit;
|
|
2196
|
+
color: inherit;
|
|
2197
|
+
}
|
|
2198
|
+
.mds-Popover__close {
|
|
2199
|
+
display: inline-flex;
|
|
2200
|
+
align-items: center;
|
|
2201
|
+
justify-content: center;
|
|
2202
|
+
flex: none;
|
|
2203
|
+
width: var(--mds-tap-min);
|
|
2204
|
+
height: var(--mds-tap-min);
|
|
2205
|
+
margin: calc((var(--mds-tap-min) - var(--mds-icon-lg)) / -2);
|
|
2206
|
+
margin-left: 0;
|
|
2207
|
+
border: none;
|
|
2208
|
+
border-radius: var(--mds-radius-pill);
|
|
2209
|
+
background: transparent;
|
|
2210
|
+
color: var(--mds-text-secondary);
|
|
2211
|
+
cursor: pointer;
|
|
2212
|
+
}
|
|
2213
|
+
.mds-Popover__closeGlyph {
|
|
2214
|
+
width: var(--mds-icon-sm);
|
|
2215
|
+
height: var(--mds-icon-sm);
|
|
2216
|
+
}
|
|
2217
|
+
.mds-Popover__body {
|
|
2218
|
+
flex: 1;
|
|
2219
|
+
min-height: 0;
|
|
2220
|
+
overflow-y: auto;
|
|
2221
|
+
overscroll-behavior-y: contain;
|
|
2222
|
+
padding: var(--mds-pad-card);
|
|
2223
|
+
font: var(--mds-type-body);
|
|
2224
|
+
color: var(--mds-text-primary);
|
|
2225
|
+
}
|
|
2226
|
+
.mds-Popover__footer {
|
|
2227
|
+
display: flex;
|
|
2228
|
+
align-items: center;
|
|
2229
|
+
justify-content: flex-end;
|
|
2230
|
+
gap: var(--mds-gap);
|
|
2231
|
+
padding: 0 var(--mds-pad-card) var(--mds-pad-card);
|
|
2232
|
+
}
|
|
2233
|
+
|
|
2234
|
+
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Menu/Menu.module.css?mds-scoped */
|
|
2235
|
+
.mds-Menu__panel {
|
|
2236
|
+
position: fixed;
|
|
2237
|
+
top: 0;
|
|
2238
|
+
left: 0;
|
|
2239
|
+
z-index: var(--mds-z-popover);
|
|
2240
|
+
display: flex;
|
|
2241
|
+
flex-direction: column;
|
|
2242
|
+
width: max-content;
|
|
2243
|
+
min-width: var(--mds-control-h-lg);
|
|
2244
|
+
max-width: min(var(--mds-popover-w), calc(100vw - 2 * var(--mds-pad-page-x)));
|
|
2245
|
+
overflow-y: auto;
|
|
2246
|
+
overscroll-behavior-y: contain;
|
|
2247
|
+
padding: var(--mds-pad-tight) 0;
|
|
2248
|
+
background: var(--mds-surface-raised);
|
|
2249
|
+
border: var(--mds-border-width) solid var(--mds-border-subtle);
|
|
2250
|
+
border-radius: var(--mds-radius-card);
|
|
2251
|
+
box-shadow: var(--mds-elevation-floating);
|
|
2252
|
+
opacity: 0;
|
|
2253
|
+
transform: scale(0.96);
|
|
2254
|
+
transition: opacity var(--mds-dur-fast) var(--mds-ease-standard), transform var(--mds-dur-fast) var(--mds-ease-standard);
|
|
2255
|
+
}
|
|
2256
|
+
.mds-Menu__panel[data-placement^=bottom] {
|
|
2257
|
+
transform-origin: top center;
|
|
2258
|
+
}
|
|
2259
|
+
.mds-Menu__panel[data-placement^=top] {
|
|
2260
|
+
transform-origin: bottom center;
|
|
2261
|
+
}
|
|
2262
|
+
.mds-Menu__panel[data-placement^=left] {
|
|
2263
|
+
transform-origin: center right;
|
|
2264
|
+
}
|
|
2265
|
+
.mds-Menu__panel[data-placement^=right] {
|
|
2266
|
+
transform-origin: center left;
|
|
2267
|
+
}
|
|
2268
|
+
.mds-Menu__panel[data-open] {
|
|
2269
|
+
opacity: 1;
|
|
2270
|
+
transform: none;
|
|
2271
|
+
}
|
|
2272
|
+
.mds-Menu__item {
|
|
2273
|
+
display: flex;
|
|
2274
|
+
align-items: center;
|
|
2275
|
+
gap: var(--mds-gap-tight);
|
|
2276
|
+
min-height: var(--mds-tap-min);
|
|
2277
|
+
padding: var(--mds-pad-item-y) var(--mds-pad-card);
|
|
2278
|
+
border: none;
|
|
2279
|
+
background: transparent;
|
|
2280
|
+
font: var(--mds-type-item-title);
|
|
2281
|
+
color: var(--mds-text-primary);
|
|
2282
|
+
text-align: start;
|
|
2283
|
+
cursor: pointer;
|
|
2284
|
+
}
|
|
2285
|
+
.mds-Menu__item:hover:not(:disabled),
|
|
2286
|
+
.mds-Menu__item:focus-visible {
|
|
2287
|
+
background: var(--mds-surface-selected);
|
|
2288
|
+
}
|
|
2289
|
+
.mds-Menu__item:focus-visible {
|
|
2290
|
+
outline: var(--mds-focus-width) solid var(--mds-focus-ring-color);
|
|
2291
|
+
outline-offset: calc(var(--mds-focus-offset) * -1);
|
|
2292
|
+
}
|
|
2293
|
+
.mds-Menu__item:disabled {
|
|
2294
|
+
color: var(--mds-text-muted);
|
|
2295
|
+
cursor: default;
|
|
2296
|
+
}
|
|
2297
|
+
.mds-Menu__tone-danger {
|
|
2298
|
+
color: var(--mds-status-danger);
|
|
2299
|
+
}
|
|
2300
|
+
.mds-Menu__tone-danger:hover:not(:disabled),
|
|
2301
|
+
.mds-Menu__tone-danger:focus-visible {
|
|
2302
|
+
background: var(--mds-status-danger-soft);
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/Tooltip/Tooltip.module.css?mds-scoped */
|
|
2306
|
+
.mds-Tooltip__surface {
|
|
2307
|
+
position: fixed;
|
|
2308
|
+
top: 0;
|
|
2309
|
+
left: 0;
|
|
2310
|
+
z-index: var(--mds-z-tooltip);
|
|
2311
|
+
width: max-content;
|
|
2312
|
+
max-width: min(var(--mds-tooltip-w), calc(100vw - 2 * var(--mds-pad-page-x)));
|
|
2313
|
+
padding: var(--mds-pad-tag-y) var(--mds-pad-tag-x);
|
|
2314
|
+
background: var(--mds-surface-inverse);
|
|
2315
|
+
color: var(--mds-text-inverse);
|
|
2316
|
+
border-radius: var(--mds-radius-tag);
|
|
2317
|
+
box-shadow: var(--mds-elevation-floating);
|
|
2318
|
+
font: var(--mds-type-note);
|
|
2319
|
+
pointer-events: none;
|
|
2320
|
+
}
|
|
2321
|
+
|
|
2221
2322
|
/* mds-css:/home/runner/work/mond-design-system/mond-design-system/packages/react/src/components/ConfirmDialog/ConfirmDialog.module.css?mds-scoped */
|
|
2222
2323
|
.mds-ConfirmDialog__description {
|
|
2223
2324
|
margin: 0;
|