@moderneinc/design-system-components 7.7.0-next.f97145 → 8.0.0-alpha.9524d1

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.js CHANGED
@@ -10,6 +10,7 @@ var SvgIcon = require('@mui/material/SvgIcon');
10
10
  var Alert = require('@mui/material/Alert');
11
11
  var ButtonBase = require('@mui/material/ButtonBase');
12
12
  var lucideReact = require('lucide-react');
13
+ var useMediaQuery = require('@mui/material/useMediaQuery');
13
14
  var IconButton = require('@mui/material/IconButton');
14
15
  var react = require('react');
15
16
  var Breadcrumbs = require('@mui/material/Breadcrumbs');
@@ -59,6 +60,7 @@ var Fab = require('@mui/material/Fab');
59
60
  var Fade$1 = require('@mui/material/Fade');
60
61
  var Radio = require('@mui/material/Radio');
61
62
  var material = require('@mui/material');
63
+ var Drawer = require('@mui/material/Drawer');
62
64
  var Skeleton = require('@mui/material/Skeleton');
63
65
  var MuiTable = require('@mui/material/Table');
64
66
  var TableBody = require('@mui/material/TableBody');
@@ -214,16 +216,24 @@ const ModGeneralAvatar = ({
214
216
  };
215
217
  ModGeneralAvatar.displayName = "ModGeneralAvatar";
216
218
 
217
- const CellContentContainer = styles.styled("div")({
219
+ const CellContentContainer = styles.styled("div")(({ theme }) => ({
218
220
  display: "flex",
219
221
  alignItems: "center",
220
222
  gap: designSystemTokens.spacing.spacing_2,
221
223
  minWidth: 0,
222
224
  // Allow flex item to shrink below content size
223
225
  width: "100%",
224
- overflow: "hidden"
226
+ overflow: "hidden",
225
227
  // Prevent content from overflowing cell boundaries
226
- });
228
+ // Still clips sideways, but lets controls' 44px hit areas reach into the row's height and,
229
+ // through a padding the margin cancels, past the content's edge into the cell's padding.
230
+ [theme.breakpoints.down("md")]: {
231
+ overflowX: "clip",
232
+ overflowY: "visible",
233
+ paddingInline: `${designSystemTokens.spacing.spacing_1}px`,
234
+ marginInline: `-${designSystemTokens.spacing.spacing_1}px`
235
+ }
236
+ }));
227
237
  const ModDataGridCellContent = ({ children, ...props }) => {
228
238
  return /* @__PURE__ */ jsxRuntime.jsx(CellContentContainer, { ...props, children });
229
239
  };
@@ -379,6 +389,45 @@ const ModActivityIndicatorCell = ({
379
389
  };
380
390
  ModActivityIndicatorCell.displayName = "ModActivityIndicatorCell";
381
391
 
392
+ const TOUCH_TARGET = designSystemTokens.spacing.spacing_5_1_2;
393
+ const FILL_AVAILABLE = ["-moz-available", "-webkit-fill-available", "stretch"];
394
+ function useIsCompact() {
395
+ const theme = styles.useTheme();
396
+ return useMediaQuery(theme.breakpoints.down("md"));
397
+ }
398
+ function touchTarget(theme, { pseudo = "after" } = {}) {
399
+ return {
400
+ [`&::${pseudo}`]: {
401
+ [theme.breakpoints.down("md")]: {
402
+ content: '""',
403
+ position: "absolute",
404
+ top: "50%",
405
+ left: "50%",
406
+ transform: "translate(-50%, -50%)",
407
+ width: "100%",
408
+ height: "100%",
409
+ minWidth: TOUCH_TARGET,
410
+ minHeight: TOUCH_TARGET
411
+ }
412
+ }
413
+ };
414
+ }
415
+ function inputTouchTarget(theme, { heightOnly = false } = {}) {
416
+ return {
417
+ [theme.breakpoints.down("md")]: {
418
+ top: "50%",
419
+ height: "100%",
420
+ minHeight: TOUCH_TARGET,
421
+ ...heightOnly ? { transform: "translateY(-50%)" } : {
422
+ left: "50%",
423
+ transform: "translate(-50%, -50%)",
424
+ width: "100%",
425
+ minWidth: TOUCH_TARGET
426
+ }
427
+ }
428
+ };
429
+ }
430
+
382
431
  const neutralSmallShadow = `${designSystemTokens.shadows.neutral.small.x}px ${designSystemTokens.shadows.neutral.small.y}px ${designSystemTokens.shadows.neutral.small.blur}px ${designSystemTokens.shadows.neutral.small.spread}px ${designSystemTokens.shadows.neutral.small.shadow}`;
383
432
  const intentColors$1 = {
384
433
  success: designSystemTokens.semanticColors.color.status.success,
@@ -450,6 +499,17 @@ const StyledAlert$2 = styles.styled(Alert, {
450
499
  color: designSystemTokens.semanticColors.color.text.tooltip,
451
500
  [`& .${ButtonBase.buttonBaseClasses.root}`]: { color: "inherit" }
452
501
  }
502
+ },
503
+ [theme.breakpoints.down("md")]: {
504
+ width: FILL_AVAILABLE,
505
+ // A wrapped default alert grows instead of scrolling inside its fixed 64px.
506
+ ...!isCompact && !hasChildren && {
507
+ height: "auto",
508
+ minHeight: designSystemTokens.spacing.spacing_8 - designSystemTokens.spacing.spacing_1_1_2 * 2,
509
+ paddingTop: designSystemTokens.spacing.spacing_1_1_2,
510
+ paddingBottom: designSystemTokens.spacing.spacing_1_1_2
511
+ },
512
+ [`& .${Alert.alertClasses.message}`]: { overflowWrap: "anywhere" }
453
513
  }
454
514
  };
455
515
  }
@@ -554,26 +614,51 @@ const StyledAlert$1 = styles.styled(Alert, {
554
614
  }
555
615
  };
556
616
  });
557
- const LinkText = styles.styled("span")(({ bannerType = "outlined" }) => ({
558
- marginLeft: "auto",
559
- fontWeight: designSystemTokens.typography.fontWeight.semiBold,
560
- color: bannerType === "filled" ? designSystemTokens.semanticColors.color.text.linkOnBrand : designSystemTokens.semanticColors.color.text.link,
561
- cursor: "pointer",
562
- whiteSpace: "nowrap",
563
- "&:hover": {
564
- textDecoration: "underline"
617
+ const ResponsiveAlert = styles.styled(StyledAlert$1, {
618
+ shouldForwardProp: (prop) => prop !== "hasControls"
619
+ })(
620
+ ({ theme, messagePosition = "left", hasControls = false }) => hasControls && {
621
+ [theme.breakpoints.down("md")]: {
622
+ minHeight: designSystemTokens.height.button.large,
623
+ ...messagePosition === "center" && { justifyContent: "flex-start" },
624
+ [`& .${Alert.alertClasses.message}`]: {
625
+ // MUI's message scrolls (overflow: auto), which would clip the link's hit area.
626
+ overflow: "visible",
627
+ overflowWrap: "anywhere",
628
+ ...messagePosition === "center" && { flex: 1, "& > svg": { flexShrink: 0 } }
629
+ },
630
+ [`& .${Alert.alertClasses.action}`]: {
631
+ paddingLeft: designSystemTokens.spacing.spacing_1_2,
632
+ ...messagePosition === "center" && { position: "static" }
633
+ }
634
+ }
565
635
  }
566
- }));
636
+ );
637
+ const LinkText = styles.styled("span")(
638
+ ({ theme, bannerType = "outlined" }) => ({
639
+ marginLeft: "auto",
640
+ fontWeight: designSystemTokens.typography.fontWeight.semiBold,
641
+ color: bannerType === "filled" ? designSystemTokens.semanticColors.color.text.linkOnBrand : designSystemTokens.semanticColors.color.text.link,
642
+ cursor: "pointer",
643
+ whiteSpace: "nowrap",
644
+ "&:hover": {
645
+ textDecoration: "underline"
646
+ },
647
+ ...touchTarget(theme),
648
+ [theme.breakpoints.down("md")]: { position: "relative" }
649
+ })
650
+ );
567
651
  const StyledIconButton = styles.styled(IconButton, {
568
652
  shouldForwardProp: (prop) => prop !== "closeIconColor"
569
- })(({ closeIconColor }) => ({
653
+ })(({ theme, closeIconColor }) => ({
570
654
  minWidth: 24,
571
655
  minHeight: 24,
572
656
  padding: 0,
573
657
  color: closeIconColor,
574
658
  "&:hover": {
575
659
  backgroundColor: "transparent"
576
- }
660
+ },
661
+ ...touchTarget(theme)
577
662
  }));
578
663
  const ModBanner = ({
579
664
  intent = "info",
@@ -597,12 +682,13 @@ const ModBanner = ({
597
682
  }
598
683
  const closeIconColor = type === "filled" ? designSystemTokens.semanticColors.color.surface.raised : intentColors[intent].solid;
599
684
  return /* @__PURE__ */ jsxRuntime.jsx(
600
- StyledAlert$1,
685
+ ResponsiveAlert,
601
686
  {
602
687
  ...props,
603
688
  intent,
604
689
  bannerType: type,
605
690
  messagePosition,
691
+ hasControls: showClose || Boolean(linkText),
606
692
  icon: messagePosition === "left" ? icon || false : false,
607
693
  action: showClose ? /* @__PURE__ */ jsxRuntime.jsx(StyledIconButton, { size: "small", onClick: handleClose, closeIconColor, children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 16 }) }) : void 0,
608
694
  children: messagePosition === "center" ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
@@ -618,18 +704,22 @@ const ModBanner = ({
618
704
  };
619
705
  ModBanner.displayName = "ModBanner";
620
706
 
621
- const StyledBreadcrumbs = styles.styled(Breadcrumbs)(() => ({
707
+ const StyledBreadcrumbs = styles.styled(Breadcrumbs)(({ theme }) => ({
622
708
  [`& .${Breadcrumbs.breadcrumbsClasses.separator}`]: {
623
709
  margin: 0,
624
710
  color: designSystemTokens.semanticColors.color.icon.utility
625
711
  },
626
712
  [`& .${Breadcrumbs.breadcrumbsClasses.ol}`]: {
627
- gap: designSystemTokens.spacing.spacing_1
628
- }
713
+ gap: designSystemTokens.spacing.spacing_1,
714
+ // An expanded trail that wraps keeps its lines' hit areas apart.
715
+ [theme.breakpoints.down("md")]: { rowGap: designSystemTokens.spacing.spacing_4 }
716
+ },
717
+ // The "…" that expands a collapsed trail.
718
+ [`& .${Breadcrumbs.breadcrumbsClasses.ol} > li > .${ButtonBase.buttonBaseClasses.root}`]: touchTarget(theme)
629
719
  }));
630
720
  const StyledBreadcrumbLink = styles.styled(Link, {
631
721
  shouldForwardProp: (prop) => prop !== "current"
632
- })(({ current = false }) => ({
722
+ })(({ theme, current = false }) => ({
633
723
  fontSize: designSystemTokens.typography.fontSize.sm,
634
724
  fontWeight: designSystemTokens.typography.fontWeight.medium,
635
725
  lineHeight: 1,
@@ -644,7 +734,9 @@ const StyledBreadcrumbLink = styles.styled(Link, {
644
734
  "&:focus-visible": {
645
735
  outline: `2px solid ${designSystemTokens.semanticColors.color.border.focus}`,
646
736
  outlineOffset: 2
647
- }
737
+ },
738
+ ...touchTarget(theme),
739
+ [theme.breakpoints.down("md")]: { position: "relative" }
648
740
  }));
649
741
  function ModBreadcrumbLink({
650
742
  current = false,
@@ -665,14 +757,17 @@ function ModBreadcrumbLink({
665
757
  );
666
758
  }
667
759
  function ModBreadcrumbs({ children, className }) {
760
+ const compact = useIsCompact();
668
761
  return /* @__PURE__ */ jsxRuntime.jsx(
669
762
  StyledBreadcrumbs,
670
763
  {
764
+ ...compact && { maxItems: 2, itemsBeforeCollapse: 0, itemsAfterCollapse: 2 },
671
765
  separator: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { size: 10.67, color: designSystemTokens.semanticColors.color.icon.utility }),
672
766
  className,
673
767
  "aria-label": "breadcrumb",
674
768
  children
675
- }
769
+ },
770
+ compact ? "compact" : "full"
676
771
  );
677
772
  }
678
773
 
@@ -711,6 +806,7 @@ const StyledButton = styles.styled(Button, {
711
806
  position: "relative",
712
807
  minWidth: "fit-content",
713
808
  gap: designSystemTokens.spacing.spacing_1,
809
+ ...touchTarget(theme),
714
810
  // `gap` spaces the icons; MUI's slot margins would add to it
715
811
  [`& .${Button.buttonClasses.startIcon}, & .${Button.buttonClasses.endIcon}`]: {
716
812
  margin: 0
@@ -897,6 +993,7 @@ function ModButton({
897
993
  ModButton.displayName = "ModButton";
898
994
 
899
995
  const StyledButtonTab = styles.styled(MuiToggleButton)(({ theme }) => ({
996
+ ...touchTarget(theme),
900
997
  fontFamily: designSystemTokens.typography.fontFamily.body,
901
998
  fontSize: theme.typography.pxToRem(designSystemTokens.typography.fontSize.sm),
902
999
  lineHeight: 1,
@@ -965,8 +1062,11 @@ const StyledButtonTabGroup = styles.styled(MuiToggleButtonGroup)(({ theme, size
965
1062
  borderRadius: designSystemTokens.borderRadius.button,
966
1063
  border: `1px solid ${designSystemTokens.semanticColors.color.border.primary}`,
967
1064
  overflow: "hidden",
1065
+ // The clip would cut the buttons' touch targets; round the end buttons to the inner (minus 1px border) radius.
1066
+ [theme.breakpoints.down("md")]: { overflow: "visible" },
968
1067
  // Style all grouped children
969
1068
  [`& .${MuiToggleButtonGroup.toggleButtonGroupClasses.grouped}`]: {
1069
+ ...touchTarget(theme),
970
1070
  flex: 1,
971
1071
  minWidth: "auto",
972
1072
  height: sizeStyles[size].height,
@@ -1002,12 +1102,20 @@ const StyledButtonTabGroup = styles.styled(MuiToggleButtonGroup)(({ theme, size
1002
1102
  // First button: rounded left edge
1003
1103
  [`&.${MuiToggleButtonGroup.toggleButtonGroupClasses.firstButton}`]: {
1004
1104
  borderTopLeftRadius: designSystemTokens.borderRadius.button,
1005
- borderBottomLeftRadius: designSystemTokens.borderRadius.button
1105
+ borderBottomLeftRadius: designSystemTokens.borderRadius.button,
1106
+ [theme.breakpoints.down("md")]: {
1107
+ borderTopLeftRadius: designSystemTokens.borderRadius.button - 1,
1108
+ borderBottomLeftRadius: designSystemTokens.borderRadius.button - 1
1109
+ }
1006
1110
  },
1007
1111
  // Last button: rounded right edge, no right border
1008
1112
  [`&.${MuiToggleButtonGroup.toggleButtonGroupClasses.lastButton}`]: {
1009
1113
  borderTopRightRadius: designSystemTokens.borderRadius.button,
1010
1114
  borderBottomRightRadius: designSystemTokens.borderRadius.button,
1115
+ [theme.breakpoints.down("md")]: {
1116
+ borderTopRightRadius: designSystemTokens.borderRadius.button - 1,
1117
+ borderBottomRightRadius: designSystemTokens.borderRadius.button - 1
1118
+ },
1011
1119
  borderRight: "none"
1012
1120
  },
1013
1121
  // Disabled state
@@ -1129,7 +1237,7 @@ const SmallDescription = styles.styled("p")(({ theme }) => ({
1129
1237
  }));
1130
1238
  const LargeStyledCard = styles.styled(MuiCard, {
1131
1239
  shouldForwardProp: (prop) => prop !== "disabled" && prop !== "cardTheme"
1132
- })(({ disabled = false, cardTheme = "light" }) => {
1240
+ })(({ theme, disabled = false, cardTheme = "light" }) => {
1133
1241
  const isLight = cardTheme === "light";
1134
1242
  const activeBorderColor = isLight ? designSystemTokens.semanticColors.button.primary.bg : designSystemTokens.colors.digitalGreen[300];
1135
1243
  const defaultBorderColor = isLight ? designSystemTokens.semanticColors.color.border.primary : designSystemTokens.semanticColorsDark.color.border.primary;
@@ -1164,6 +1272,12 @@ const LargeStyledCard = styles.styled(MuiCard, {
1164
1272
  opacity: 0.5,
1165
1273
  pointerEvents: "none",
1166
1274
  cursor: "not-allowed"
1275
+ },
1276
+ [theme.breakpoints.down("md")]: {
1277
+ maxWidth: FILL_AVAILABLE,
1278
+ // Grows instead of clipping when the narrower card wraps its description or actions.
1279
+ height: "auto",
1280
+ minHeight: 162
1167
1281
  }
1168
1282
  };
1169
1283
  });
@@ -1212,12 +1326,17 @@ const LargeDescription = styles.styled("p", {
1212
1326
  minWidth: "100%",
1213
1327
  wordWrap: "break-word"
1214
1328
  }));
1215
- const LargeButtonsRow = styles.styled("div")({
1329
+ const LargeButtonsRow = styles.styled("div")(({ theme }) => ({
1216
1330
  display: "flex",
1217
1331
  gap: designSystemTokens.spacing.spacing_3,
1218
1332
  alignItems: "flex-start",
1219
- flexShrink: 0
1220
- });
1333
+ flexShrink: 0,
1334
+ [theme.breakpoints.down("md")]: {
1335
+ flexWrap: "wrap",
1336
+ // 32px small buttons + 12px = a 44px pitch, so wrapped rows' hit areas meet without overlapping.
1337
+ rowGap: designSystemTokens.spacing.spacing_1_1_2
1338
+ }
1339
+ }));
1221
1340
  const SmallCardImpl = ({
1222
1341
  logo,
1223
1342
  recipeCount,
@@ -1330,7 +1449,7 @@ const HelperText$2 = styles.styled("span")(({ theme, size = "medium" }) => ({
1330
1449
  const XS_FOCUS_RING_RADIUS = 1;
1331
1450
  const StyledCheckbox = styles.styled(Checkbox, {
1332
1451
  shouldForwardProp: (prop) => prop !== "size"
1333
- })(({ size = "medium" }) => {
1452
+ })(({ theme, size = "medium" }) => {
1334
1453
  const sizeConfig = {
1335
1454
  xs: {
1336
1455
  size: 12,
@@ -1391,7 +1510,8 @@ const StyledCheckbox = styles.styled(Checkbox, {
1391
1510
  "& svg": {
1392
1511
  width: config.size,
1393
1512
  height: config.size
1394
- }
1513
+ },
1514
+ "& input": inputTouchTarget(theme)
1395
1515
  };
1396
1516
  });
1397
1517
  const ModCheckbox = ({
@@ -1449,6 +1569,18 @@ const ModCheckboxWithText = ({ size = "small", ...props }) => {
1449
1569
  };
1450
1570
  ModCheckboxWithText.displayName = "ModCheckboxWithText";
1451
1571
 
1572
+ const compactStyles = (theme, size, isMultiline) => {
1573
+ if (isMultiline) {
1574
+ return {
1575
+ [theme.breakpoints.down("md")]: {
1576
+ minWidth: 0,
1577
+ whiteSpace: "pre-wrap",
1578
+ overflowWrap: "anywhere"
1579
+ }
1580
+ };
1581
+ }
1582
+ return size === "inline" ? {} : touchTarget(theme);
1583
+ };
1452
1584
  const StyledButtonBase = styles.styled(ButtonBase, {
1453
1585
  shouldForwardProp: (prop) => prop !== "isMultiline" && prop !== "variant" && prop !== "size"
1454
1586
  })(({ theme, variant = "outlined", size = "small", isMultiline = false }) => {
@@ -1534,7 +1666,8 @@ const StyledButtonBase = styles.styled(ButtonBase, {
1534
1666
  };
1535
1667
  return {
1536
1668
  ...baseStyles,
1537
- ...variantStyles[variant]
1669
+ ...variantStyles[variant],
1670
+ ...compactStyles(theme, size, isMultiline)
1538
1671
  };
1539
1672
  });
1540
1673
  const IconWrapper$2 = styles.styled("span")(({ isMultiline }) => ({
@@ -1874,6 +2007,9 @@ const StyledMenuItem = styles.styled(MenuItem)(({ theme }) => ({
1874
2007
  paddingLeft: designSystemTokens.spacing.spacing_2,
1875
2008
  paddingRight: designSystemTokens.spacing.spacing_2,
1876
2009
  minHeight: designSystemTokens.spacing.spacing_5,
2010
+ [theme.breakpoints.down("md")]: {
2011
+ minHeight: TOUCH_TARGET
2012
+ },
1877
2013
  gap: designSystemTokens.spacing.spacing_2,
1878
2014
  borderRadius: 0,
1879
2015
  color: designSystemTokens.semanticColors.color.icon.default,
@@ -1980,7 +2116,7 @@ const ChevronDownIcon = (props) => /* @__PURE__ */ jsxRuntime.jsx(
1980
2116
  style: { ...props.style }
1981
2117
  }
1982
2118
  );
1983
- const StyledSelect = styles.styled(MuiSelect)({
2119
+ const StyledSelect = styles.styled(MuiSelect)(({ theme }) => ({
1984
2120
  minHeight: designSystemTokens.spacing.spacing_5,
1985
2121
  backgroundColor: designSystemTokens.semanticColors.input.bg,
1986
2122
  border: `1px solid ${designSystemTokens.semanticColors.color.border.primary}`,
@@ -2008,10 +2144,18 @@ const StyledSelect = styles.styled(MuiSelect)({
2008
2144
  fontWeight: designSystemTokens.typography.fontWeight.regular,
2009
2145
  color: designSystemTokens.semanticColors.color.text.input
2010
2146
  },
2147
+ // Doubled `&` outranks MUI's own `.MuiSelect-select` rules, which are inserted after these.
2148
+ [`&& .${MuiSelect.selectClasses.select}`]: {
2149
+ [theme.breakpoints.down("md")]: {
2150
+ lineHeight: `${TOUCH_TARGET - 2 * designSystemTokens.spacing.spacing_1_2}px`,
2151
+ // Covers the root's 1px border, so all 44px of the control hit-test as the combobox.
2152
+ marginBlock: -1
2153
+ }
2154
+ },
2011
2155
  [`& .${MuiSelect.selectClasses.icon}`]: {
2012
2156
  right: designSystemTokens.spacing.spacing_1_1_2
2013
2157
  }
2014
- });
2158
+ }));
2015
2159
  const ModSelect = (props) => /* @__PURE__ */ jsxRuntime.jsx(
2016
2160
  StyledSelect,
2017
2161
  {
@@ -2045,7 +2189,7 @@ const ModDataGridFilterPanelDeleteIcon = () => /* @__PURE__ */ jsxRuntime.jsx(lu
2045
2189
  ModDataGridFilterPanelDeleteIcon.displayName = "ModDataGridFilterPanelDeleteIcon";
2046
2190
  const ModDataGridFilterPanelRemoveAllIcon = () => /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Trash2, { size: designSystemTokens.spacing.spacing_2, color: designSystemTokens.semanticColors.button.tertiary.fg });
2047
2191
  ModDataGridFilterPanelRemoveAllIcon.displayName = "ModDataGridFilterPanelRemoveAllIcon";
2048
- const StyledGridFilterPanel = styles.styled(xDataGrid.GridFilterPanel)({
2192
+ const StyledGridFilterPanel = styles.styled(xDataGrid.GridFilterPanel)(({ theme }) => ({
2049
2193
  ...panelSurfaceStyles,
2050
2194
  // Panel padding (12px top, 16px right/bottom/left)
2051
2195
  paddingTop: designSystemTokens.spacing.spacing_2,
@@ -2169,6 +2313,7 @@ const StyledGridFilterPanel = styles.styled(xDataGrid.GridFilterPanel)({
2169
2313
  // Buttons - design system styling
2170
2314
  // Add filter button (first button)
2171
2315
  [`& .${xDataGrid.gridClasses.panelFooter} .${Button.buttonClasses.root}:first-child`]: {
2316
+ ...touchTarget(theme),
2172
2317
  textTransform: "none",
2173
2318
  fontSize: designSystemTokens.typography.fontSize.sm,
2174
2319
  fontWeight: designSystemTokens.typography.fontWeight.medium,
@@ -2191,6 +2336,7 @@ const StyledGridFilterPanel = styles.styled(xDataGrid.GridFilterPanel)({
2191
2336
  },
2192
2337
  // Clear all button (second button) - styled to match ModButton link variant
2193
2338
  [`& .${xDataGrid.gridClasses.panelFooter} .${Button.buttonClasses.root}:nth-child(2)`]: {
2339
+ ...touchTarget(theme),
2194
2340
  height: 32,
2195
2341
  // ModButton small size
2196
2342
  padding: `0 ${designSystemTokens.spacing.spacing_1}px`,
@@ -2220,8 +2366,41 @@ const StyledGridFilterPanel = styles.styled(xDataGrid.GridFilterPanel)({
2220
2366
  },
2221
2367
  [`& .${xDataGrid.gridClasses.filterForm} .${IconButton.iconButtonClasses.root}:hover`]: {
2222
2368
  backgroundColor: designSystemTokens.semanticColors.input.bgHover
2369
+ },
2370
+ // In the sheet the fields share its full width; MUI X fixes each input at 150–220px.
2371
+ [theme.breakpoints.down("md")]: {
2372
+ [`& .${xDataGrid.gridClasses.filterForm}`]: {
2373
+ width: "100%"
2374
+ },
2375
+ [`& .MuiFormControl-root:has(.${xDataGrid.gridClasses.filterFormColumnInput}), & .MuiFormControl-root:has(.${xDataGrid.gridClasses.filterFormOperatorInput}), & .${xDataGrid.gridClasses.filterFormValueInput}`]: {
2376
+ flex: "1 1 0",
2377
+ minWidth: 0
2378
+ },
2379
+ [`& .${xDataGrid.gridClasses.filterForm} .${InputBase.inputBaseClasses.root}, & .${xDataGrid.gridClasses.filterFormValueInput} .MuiFormControl-root`]: {
2380
+ width: "100%"
2381
+ }
2382
+ },
2383
+ // On phones each filter opens with a row holding its And/Or select and its remove X, then column,
2384
+ // operator and value each take a full row.
2385
+ [theme.breakpoints.down("sm")]: {
2386
+ [`& .${xDataGrid.gridClasses.filterForm}`]: {
2387
+ flexWrap: "wrap",
2388
+ rowGap: designSystemTokens.spacing.spacing_1_1_2
2389
+ },
2390
+ [`& .MuiFormControl-root:has(.${xDataGrid.gridClasses.filterFormLogicOperatorInput})`]: {
2391
+ order: -1
2392
+ },
2393
+ [`& .${xDataGrid.gridClasses.filterFormDeleteIcon}`]: {
2394
+ marginLeft: "auto",
2395
+ marginRight: 0
2396
+ },
2397
+ [`& .MuiFormControl-root:has(.${xDataGrid.gridClasses.filterFormColumnInput}), & .MuiFormControl-root:has(.${xDataGrid.gridClasses.filterFormOperatorInput}), & .${xDataGrid.gridClasses.filterFormValueInput}`]: {
2398
+ flex: "1 1 100%",
2399
+ width: "100%",
2400
+ marginLeft: 0
2401
+ }
2223
2402
  }
2224
- });
2403
+ }));
2225
2404
  StyledGridFilterPanel.displayName = "StyledGridFilterPanel";
2226
2405
  const ModDataGridSelect = react.forwardRef(function ModDataGridSelect2({
2227
2406
  id,
@@ -2290,11 +2469,38 @@ function UnsortedIcon() {
2290
2469
  return /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronsUpDown, { size: 16, color: designSystemTokens.semanticColors.color.icon.utility });
2291
2470
  }
2292
2471
 
2293
- const ModGridPanel = styles.styled(xDataGrid.GridPanel)({
2472
+ const COMPACT_MIN_COLUMN_WIDTH = 120;
2473
+ const ModGridPanel = styles.styled(xDataGrid.GridPanel)(({ theme }) => ({
2294
2474
  [`& .${xDataGrid.gridPanelClasses.paper}`]: {
2295
2475
  backgroundColor: designSystemTokens.semanticColors.color.surface.raised
2476
+ },
2477
+ // Below md the panel is a bottom sheet; Popper writes inset/transform inline, hence !important.
2478
+ [theme.breakpoints.down("md")]: {
2479
+ position: "fixed !important",
2480
+ inset: "auto 0 0 0 !important",
2481
+ transform: "none !important",
2482
+ [`& .${xDataGrid.gridPanelClasses.paper}`]: {
2483
+ width: "100%",
2484
+ maxWidth: "100%",
2485
+ maxHeight: "80vh",
2486
+ flexDirection: "column",
2487
+ overflowY: "auto",
2488
+ borderRadius: `${designSystemTokens.borderRadius.m}px ${designSystemTokens.borderRadius.m}px 0 0`,
2489
+ // The drawer shadow, flipped to cast upward from the bottom edge.
2490
+ boxShadow: `0 -${designSystemTokens.shadows.drawer.y}px ${designSystemTokens.shadows.drawer.blur}px ${designSystemTokens.shadows.drawer.spread}px ${designSystemTokens.shadows.drawer.shadow}`,
2491
+ "&::before": {
2492
+ content: '""',
2493
+ display: "block",
2494
+ flexShrink: 0,
2495
+ width: designSystemTokens.spacing.spacing_4,
2496
+ height: designSystemTokens.spacing.spacing_1_2,
2497
+ margin: `${designSystemTokens.spacing.spacing_1}px auto 0`,
2498
+ borderRadius: designSystemTokens.borderRadius.full,
2499
+ backgroundColor: designSystemTokens.semanticColors.color.border.strong
2500
+ }
2501
+ }
2296
2502
  }
2297
- });
2503
+ }));
2298
2504
  const DataGridCheckbox = ({
2299
2505
  slotProps,
2300
2506
  ...props
@@ -2311,10 +2517,33 @@ function ModDataGrid({
2311
2517
  toolbar,
2312
2518
  slots,
2313
2519
  sx,
2314
- density = "standard",
2520
+ density: densityProp,
2315
2521
  slotProps: userSlotProps,
2522
+ columns: columnsProp,
2316
2523
  ...props
2317
2524
  }) {
2525
+ const theme = styles.useTheme();
2526
+ const compact = useIsCompact();
2527
+ const density = densityProp ?? (compact ? "comfortable" : "standard");
2528
+ const columns = react.useMemo(
2529
+ () => compact ? columnsProp.map((column) => {
2530
+ const hasMenu = !(props.disableColumnMenu || column.disableColumnMenu);
2531
+ const hasSort = !props.disableColumnSorting && column.sortable !== false;
2532
+ if (column.type === "actions" || !(hasMenu || hasSort)) {
2533
+ return column;
2534
+ }
2535
+ const min = Math.min(
2536
+ COMPACT_MIN_COLUMN_WIDTH,
2537
+ column.maxWidth ?? Number.POSITIVE_INFINITY
2538
+ );
2539
+ return {
2540
+ ...column,
2541
+ minWidth: Math.max(column.minWidth ?? 0, min),
2542
+ ...column.width !== void 0 && { width: Math.max(column.width, min) }
2543
+ };
2544
+ }) : columnsProp,
2545
+ [compact, columnsProp, props.disableColumnMenu, props.disableColumnSorting]
2546
+ );
2318
2547
  const defaultApiRef = xDataGridPro.useGridApiRef();
2319
2548
  const apiRef = props?.apiRef ? props.apiRef : defaultApiRef;
2320
2549
  const mergedSlots = {
@@ -2332,6 +2561,9 @@ function ModDataGrid({
2332
2561
  // Add toolbar slot if toolbar prop is provided (overrides slots.toolbar if both exist)
2333
2562
  ...toolbar ? { toolbar: () => toolbar } : {}
2334
2563
  };
2564
+ const compactQuery = theme.breakpoints.down("md");
2565
+ const plainSx = sx && typeof sx === "object" && !Array.isArray(sx);
2566
+ const { [compactQuery]: consumerCompact, ...restSx } = plainSx ? sx : {};
2335
2567
  const baseSx = {
2336
2568
  // Fix for MUI X 8.15.0+ scroll shadow issue - backgroundColor must be on main, not root
2337
2569
  // See: https://github.com/mui/mui-x/issues/20107
@@ -2356,6 +2588,61 @@ function ModDataGrid({
2356
2588
  backgroundColor: designSystemTokens.semanticColors.color.surface.dataGrid.default
2357
2589
  },
2358
2590
  ...getDataGridHeaderStyles({ resizable: !props.disableColumnResize }),
2591
+ [`& .${xDataGrid.gridClasses.menuIconButton}`]: touchTarget(theme),
2592
+ // Covers `type: 'actions'` columns built with getActions, which bypass ModActionsCell.
2593
+ [`& .${xDataGrid.gridClasses.actionsCell} .${IconButton.iconButtonClasses.root}`]: touchTarget(theme),
2594
+ // On touch the filter icon is an indicator too and filters open from the column menu; a mouse in a
2595
+ // narrow window keeps clicking it. MUI gives the filter button no class of its own.
2596
+ [`${theme.breakpoints.down("md")} and (pointer: coarse)`]: {
2597
+ [`& button:has(> .${xDataGrid.gridClasses.filterIcon})`]: { pointerEvents: "none" }
2598
+ },
2599
+ [compactQuery]: {
2600
+ maxWidth: "100%",
2601
+ // Spaces adjacent row actions so their 44px hit areas don't overlap.
2602
+ [`& .${xDataGrid.gridClasses.actionsCell}`]: { columnGap: `${designSystemTokens.spacing.spacing_2}px` },
2603
+ // A tap on the header sorts; the sort icon only shows the direction, leaving the room to the column menu.
2604
+ [`& .${xDataGrid.gridClasses.sortButton}`]: {
2605
+ pointerEvents: "none"
2606
+ },
2607
+ // The header is tall enough below md for the select-all checkbox's hit area; stop clipping it.
2608
+ [`& .${xDataGrid.gridClasses.columnHeaderCheckbox} .${xDataGrid.gridClasses.columnHeaderTitleContainerContent}`]: {
2609
+ overflow: "visible"
2610
+ },
2611
+ // The checkbox column doesn't resize, so its separator is decoration; let taps pass through.
2612
+ [`& .${xDataGrid.gridClasses.columnHeaderCheckbox} .${xDataGrid.gridClasses.columnSeparator}`]: {
2613
+ pointerEvents: "none"
2614
+ },
2615
+ // Narrow columns keep room for their label: a tighter gutter on the title's side (cells below
2616
+ // match), while the menu side keeps its gutter so the menu's hit area clears the separator; a
2617
+ // header without a menu matches its cells on both sides. `:where` keeps this at the gutter rule's
2618
+ // specificity, so a consumer's own padding for that column still wins.
2619
+ // The sort slot takes no width while its icon is hidden, as in MUI's own default.
2620
+ [`& .${xDataGrid.gridClasses.columnHeader}:not(.${xDataGrid.gridClasses.columnHeaderCheckbox})`]: {
2621
+ paddingLeft: `${designSystemTokens.spacing.spacing_2}px`
2622
+ },
2623
+ [`& .${xDataGrid.gridClasses.columnHeader}:not(.${xDataGrid.gridClasses.columnHeaderCheckbox}):where(:not(:has(.${xDataGrid.gridClasses.menuIcon})))`]: {
2624
+ paddingRight: `${designSystemTokens.spacing.spacing_2}px`
2625
+ },
2626
+ [`& .${xDataGrid.gridClasses.columnHeader}.${xDataGrid.gridClasses["columnHeader--alignRight"]}`]: {
2627
+ paddingLeft: `${designSystemTokens.spacing.spacing_3}px`,
2628
+ paddingRight: `${designSystemTokens.spacing.spacing_2}px`
2629
+ },
2630
+ [`& .${xDataGrid.gridClasses.columnHeader}:not(.${xDataGrid.gridClasses["columnHeader--sorted"]}):not(:hover) .${xDataGrid.gridClasses.iconButtonContainer}:has(.${xDataGrid.gridClasses.sortButton})`]: {
2631
+ width: 0,
2632
+ marginLeft: 0
2633
+ },
2634
+ // Carry the header band across the filler past the last column, over the body-coloured filler rule.
2635
+ [`&& .${xDataGrid.gridClasses.columnHeaders} .${xDataGrid.gridClasses.filler}, && .${xDataGrid.gridClasses.columnHeaders} .${xDataGrid.gridClasses.scrollbarFiller}`]: {
2636
+ backgroundColor: designSystemTokens.semanticColors.color.surface.dataGrid.header,
2637
+ borderBottomColor: designSystemTokens.semanticColors.color.border.primary
2638
+ },
2639
+ // Two classes so this outranks the base cell padding declared further down.
2640
+ [`& .${xDataGrid.gridClasses.row} .${xDataGrid.gridClasses.cell}`]: {
2641
+ paddingLeft: `${designSystemTokens.spacing.spacing_2}px`,
2642
+ paddingRight: `${designSystemTokens.spacing.spacing_2}px`
2643
+ },
2644
+ ...typeof consumerCompact === "function" ? consumerCompact(theme) : consumerCompact
2645
+ },
2359
2646
  ...getDataGridRowStyles(),
2360
2647
  border: `1px solid ${designSystemTokens.semanticColors.color.border.primary}`,
2361
2648
  // Target `& svg` (not `.MuiSvgIcon-root`) to match the lucide icons
@@ -2386,13 +2673,14 @@ function ModDataGrid({
2386
2673
  wordBreak: "break-word",
2387
2674
  hyphens: "auto"
2388
2675
  },
2389
- ...sx
2676
+ ...plainSx ? restSx : sx
2390
2677
  };
2391
2678
  return /* @__PURE__ */ jsxRuntime.jsx(
2392
2679
  xDataGridPro.DataGridPro,
2393
2680
  {
2394
2681
  apiRef,
2395
- columnHeaderHeight: designSystemTokens.height.table.header,
2682
+ columns,
2683
+ columnHeaderHeight: compact ? designSystemTokens.height.button.large : designSystemTokens.height.table.header,
2396
2684
  autoHeight,
2397
2685
  autoPageSize: !autoHeight,
2398
2686
  getRowHeight: () => "auto",
@@ -2666,6 +2954,7 @@ const StyledNavButton = styles.styled(IconButton, {
2666
2954
  color: designSystemTokens.semanticColors.button.primary.bgPressed
2667
2955
  };
2668
2956
  return {
2957
+ ...touchTarget(theme),
2669
2958
  width: sizeStyles.width,
2670
2959
  height: sizeStyles.height,
2671
2960
  padding: sizeStyles.padding,
@@ -2911,10 +3200,12 @@ const ModDatePicker = ({
2911
3200
  size: "small"
2912
3201
  },
2913
3202
  openPickerButton: {
2914
- size: "small"
3203
+ size: "small",
3204
+ sx: (theme) => touchTarget(theme)
2915
3205
  },
2916
3206
  clearButton: {
2917
- size: "small"
3207
+ size: "small",
3208
+ sx: (theme) => touchTarget(theme)
2918
3209
  }
2919
3210
  };
2920
3211
  if (type === "range") {
@@ -3090,15 +3381,16 @@ const StyledLinearProgress$1 = styles.styled(LinearProgress)({
3090
3381
  borderRadius: `${designSystemTokens.borderRadius.xS}px 0 0 ${designSystemTokens.borderRadius.xS}px`
3091
3382
  }
3092
3383
  });
3093
- const ActionButton = styles.styled(IconButton)({
3384
+ const ActionButton = styles.styled(IconButton)(({ theme }) => ({
3094
3385
  padding: 0,
3095
3386
  width: designSystemTokens.spacing.spacing_2,
3096
3387
  height: designSystemTokens.spacing.spacing_2,
3097
3388
  color: designSystemTokens.semanticColors.color.icon.utility,
3098
3389
  "&:hover": {
3099
3390
  backgroundColor: "transparent"
3100
- }
3101
- });
3391
+ },
3392
+ ...touchTarget(theme)
3393
+ }));
3102
3394
  const ModDownloadToast = ({
3103
3395
  title,
3104
3396
  fileName,
@@ -3118,10 +3410,22 @@ const ModDownloadToast = ({
3118
3410
  if (!hasActions) {
3119
3411
  return null;
3120
3412
  }
3121
- return /* @__PURE__ */ jsxRuntime.jsxs(Stack, { direction: "row", sx: { alignItems: "center", gap: `${designSystemTokens.spacing.spacing_2}px` }, children: [
3122
- showPause && /* @__PURE__ */ jsxRuntime.jsx(ActionButton, { size: "small", onClick: onPause, "aria-label": "Pause download", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { size: designSystemTokens.spacing.spacing_2 }) }),
3123
- showClose && /* @__PURE__ */ jsxRuntime.jsx(ActionButton, { size: "small", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: designSystemTokens.spacing.spacing_2 }) })
3124
- ] });
3413
+ return /* @__PURE__ */ jsxRuntime.jsxs(
3414
+ Stack,
3415
+ {
3416
+ direction: "row",
3417
+ sx: (theme) => ({
3418
+ alignItems: "center",
3419
+ gap: `${designSystemTokens.spacing.spacing_2}px`,
3420
+ // Keeps the two buttons' 44px hit areas from overlapping.
3421
+ [theme.breakpoints.down("md")]: { gap: `${designSystemTokens.spacing.spacing_4}px` }
3422
+ }),
3423
+ children: [
3424
+ showPause && /* @__PURE__ */ jsxRuntime.jsx(ActionButton, { size: "small", onClick: onPause, "aria-label": "Pause download", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.Minus, { size: designSystemTokens.spacing.spacing_2 }) }),
3425
+ showClose && /* @__PURE__ */ jsxRuntime.jsx(ActionButton, { size: "small", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: designSystemTokens.spacing.spacing_2 }) })
3426
+ ]
3427
+ }
3428
+ );
3125
3429
  };
3126
3430
  return /* @__PURE__ */ jsxRuntime.jsxs(StyledRoot$1, { elevation: 0, role: "status", ...props, children: [
3127
3431
  /* @__PURE__ */ jsxRuntime.jsxs(
@@ -3276,6 +3580,12 @@ const StyledChip$1 = styles.styled(Chip, {
3276
3580
  [`&.${Chip.chipClasses.focusVisible}`]: {
3277
3581
  ...focusRingStyles,
3278
3582
  backgroundColor: selected ? designSystemTokens.semanticColors.button.secondary.bgPressed : designSystemTokens.semanticColors.color.surface.raised
3583
+ },
3584
+ ...touchTarget(theme),
3585
+ [theme.breakpoints.down("md")]: {
3586
+ position: "relative",
3587
+ // Keeps the clear icon above the chip's hit area so a tap on it clears rather than opens.
3588
+ [`& .${Chip.chipClasses.deleteIcon}`]: { position: "relative", zIndex: 1 }
3279
3589
  }
3280
3590
  }));
3281
3591
  const LabelContent = styles.styled("span")({
@@ -3394,6 +3704,13 @@ const ModLoadingSpinner = ({
3394
3704
  };
3395
3705
  ModLoadingSpinner.displayName = "ModLoadingSpinner";
3396
3706
 
3707
+ const formatCount = (value, locales) => new Intl.NumberFormat(locales).format(value);
3708
+ const paginationRangeLabel = (page, pageSize, rowCount, locales) => {
3709
+ const start = page * pageSize + 1;
3710
+ const end = Math.min((page + 1) * pageSize, rowCount);
3711
+ return `${formatCount(start, locales)}-${formatCount(end, locales)} of ${formatCount(rowCount, locales)}`;
3712
+ };
3713
+
3397
3714
  const StyledFooter = styles.styled(Box, {
3398
3715
  shouldForwardProp: (prop) => prop !== "showShadow"
3399
3716
  })(({ theme, showShadow = false }) => ({
@@ -3451,7 +3768,9 @@ const LoadMoreButton = styles.styled("button")(({ theme }) => ({
3451
3768
  "&:disabled": {
3452
3769
  color: designSystemTokens.semanticColors.button.fgDisabled,
3453
3770
  cursor: "not-allowed"
3454
- }
3771
+ },
3772
+ ...touchTarget(theme),
3773
+ [theme.breakpoints.down("md")]: { position: "relative" }
3455
3774
  }));
3456
3775
  const SelectedText = styles.styled("p")(({ theme }) => ({
3457
3776
  fontFamily: designSystemTokens.typography.fontFamily.body,
@@ -3517,10 +3836,7 @@ const ModFooter = ({
3517
3836
  return paginationInfo;
3518
3837
  }
3519
3838
  if (paginationModel && rowCount > 0) {
3520
- const { page, pageSize } = paginationModel;
3521
- const start = page * pageSize + 1;
3522
- const end = Math.min((page + 1) * pageSize, rowCount);
3523
- return `${start}-${end} of ${rowCount}`;
3839
+ return paginationRangeLabel(paginationModel.page, paginationModel.pageSize, rowCount);
3524
3840
  }
3525
3841
  return "0-0 of 0";
3526
3842
  };
@@ -3600,7 +3916,7 @@ const ModFooter = ({
3600
3916
  }
3601
3917
  return /* @__PURE__ */ jsxRuntime.jsxs(StyledFooter, { showShadow, sx: { justifyContent: "space-between" }, children: [
3602
3918
  showSelected ? /* @__PURE__ */ jsxRuntime.jsxs(SelectedText, { children: [
3603
- selectedCount,
3919
+ formatCount(selectedCount),
3604
3920
  " selected"
3605
3921
  ] }) : /* @__PURE__ */ jsxRuntime.jsx(Box, {}),
3606
3922
  /* @__PURE__ */ jsxRuntime.jsxs(PaginationContainer, { children: [
@@ -3805,6 +4121,11 @@ const StyledInputBase = styles.styled(InputBase, {
3805
4121
  transition: theme.transitions.create(["border-color", "background-color"], {
3806
4122
  duration: theme.transitions.duration.short
3807
4123
  }),
4124
+ // A tap on the hit area focuses the input; positioning keeps the input above it for caret taps.
4125
+ ...touchTarget(theme, { pseudo: "before" }),
4126
+ [theme.breakpoints.down("md")]: {
4127
+ [`& .${InputBase.inputBaseClasses.input}`]: { position: "relative" }
4128
+ },
3808
4129
  [`& .${InputBase.inputBaseClasses.input}`]: {
3809
4130
  padding: sizeStyles.padding,
3810
4131
  color: designSystemTokens.semanticColors.color.text.input,
@@ -3994,13 +4315,27 @@ const sizeConfig = {
3994
4315
  lineHeight: 1.5
3995
4316
  }
3996
4317
  };
4318
+ function compactRowHeight(theme, rowHeight, hasSecondaryText) {
4319
+ if (rowHeight >= TOUCH_TARGET) {
4320
+ return {};
4321
+ }
4322
+ return {
4323
+ [theme.breakpoints.down("md")]: {
4324
+ minHeight: TOUCH_TARGET,
4325
+ height: hasSecondaryText ? "auto" : TOUCH_TARGET
4326
+ }
4327
+ };
4328
+ }
3997
4329
  const StyledListItemButton$1 = styles.styled(ListItemButton, {
3998
4330
  shouldForwardProp: (prop) => prop !== "size" && prop !== "primaryText" && prop !== "secondaryText" && prop !== "badge" && prop !== "icon" && prop !== "isLink" && prop !== "hasSecondaryText" && prop !== "trailingElement"
3999
4331
  })(({ theme, size = "medium", isLink, hasSecondaryText }) => {
4000
4332
  const config = sizeConfig[size];
4333
+ const isCard = size === "xxlarge" || size === "xxxlarge";
4001
4334
  return {
4002
4335
  minHeight: config.height,
4003
4336
  height: hasSecondaryText ? "auto" : config.height,
4337
+ ...compactRowHeight(theme, config.height, hasSecondaryText),
4338
+ ...isCard && { [theme.breakpoints.down("md")]: { height: "auto" } },
4004
4339
  paddingTop: config.paddingTop,
4005
4340
  paddingRight: config.paddingRight,
4006
4341
  paddingBottom: config.paddingBottom,
@@ -4037,7 +4372,11 @@ const StyledListItemButton$1 = styles.styled(ListItemButton, {
4037
4372
  overflow: "hidden",
4038
4373
  textOverflow: "ellipsis",
4039
4374
  whiteSpace: "nowrap",
4040
- ...isLink && (size === "xxlarge" || size === "xxxlarge") && { textDecoration: "none" }
4375
+ ...isLink && isCard && { textDecoration: "none" },
4376
+ // On a phone one line clips a trailing badge mid-chip; card rows wrap instead.
4377
+ ...isCard && {
4378
+ [theme.breakpoints.down("md")]: { whiteSpace: "normal", overflowWrap: "anywhere" }
4379
+ }
4041
4380
  },
4042
4381
  // Link hover styling (underline on hover for xxlarge/xxxlarge)
4043
4382
  ...isLink && (size === "xxlarge" || size === "xxxlarge") && {
@@ -4184,6 +4523,9 @@ function navVariantStyles(theme) {
4184
4523
  paddingBottom: designSystemTokens.spacing.spacing_1,
4185
4524
  paddingLeft: designSystemTokens.spacing.spacing_2,
4186
4525
  paddingRight: designSystemTokens.spacing.spacing_2,
4526
+ [theme.breakpoints.down("md")]: {
4527
+ minHeight: TOUCH_TARGET
4528
+ },
4187
4529
  border: "none",
4188
4530
  color: designSystemTokens.semanticColors.color.text.secondary,
4189
4531
  backgroundColor: "transparent",
@@ -4321,13 +4663,27 @@ const ModMenu = ({ children, ...props }) => {
4321
4663
  };
4322
4664
  ModMenu.displayName = "ModMenu";
4323
4665
 
4324
- const StyledActionsCell = styles.styled(xDataGrid.GridActionsCell)({
4666
+ const StyledActionsCell = styles.styled(xDataGrid.GridActionsCell)(({ theme }) => ({
4325
4667
  gap: designSystemTokens.spacing.spacing_1,
4326
4668
  paddingLeft: designSystemTokens.spacing.spacing_1_1_2,
4327
- paddingRight: designSystemTokens.spacing.spacing_1_1_2
4669
+ paddingRight: designSystemTokens.spacing.spacing_1_1_2,
4670
+ // Below md a cell holds one button (a lone action or the menu trigger), so hit areas can't overlap.
4671
+ [`& .${IconButton.iconButtonClasses.root}`]: touchTarget(theme)
4672
+ }));
4673
+ const actionsOf = (children, prefix = "") => react.Children.toArray(children).flatMap((child) => {
4674
+ if (!react.isValidElement(child)) {
4675
+ return [];
4676
+ }
4677
+ const key = `${prefix}${child.key}`;
4678
+ return child.type === react.Fragment ? actionsOf(child.props.children, key) : [react.cloneElement(child, { key })];
4328
4679
  });
4329
- function ModActionsCell(props) {
4330
- return /* @__PURE__ */ jsxRuntime.jsx(StyledActionsCell, { ...props });
4680
+ function ModActionsCell({ children, ...props }) {
4681
+ const compact = useIsCompact();
4682
+ const actions = actionsOf(children);
4683
+ if (compact && actions.length > 1) {
4684
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledActionsCell, { ...props, children: actions.map((action) => react.cloneElement(action, { showInMenu: true })) }, "compact");
4685
+ }
4686
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledActionsCell, { ...props, children });
4331
4687
  }
4332
4688
 
4333
4689
  const StyledCell$1 = styles.styled("div", {
@@ -4377,7 +4733,7 @@ const ModAvatarCell = ({
4377
4733
  };
4378
4734
  ModAvatarCell.displayName = "ModAvatarCell";
4379
4735
 
4380
- const StyledDialog = styles.styled(Dialog)({
4736
+ const StyledDialog = styles.styled(Dialog)(({ theme }) => ({
4381
4737
  [`& .${Dialog.dialogClasses.paper}`]: {
4382
4738
  backgroundColor: designSystemTokens.semanticColors.color.surface.raised,
4383
4739
  borderRadius: designSystemTokens.borderRadius.card,
@@ -4387,16 +4743,33 @@ const StyledDialog = styles.styled(Dialog)({
4387
4743
  [`& .${Dialog.dialogClasses.container}`]: {
4388
4744
  alignItems: "center",
4389
4745
  justifyContent: "center"
4746
+ },
4747
+ [theme.breakpoints.down("sm")]: {
4748
+ [`& .${Dialog.dialogClasses.paper}`]: {
4749
+ margin: 0,
4750
+ width: "100%",
4751
+ maxWidth: "100%",
4752
+ height: "100%",
4753
+ maxHeight: "100%",
4754
+ borderRadius: 0,
4755
+ border: "none"
4756
+ }
4390
4757
  }
4391
- });
4758
+ }));
4392
4759
  const ModModal = ({ children, ...props }) => {
4393
4760
  return /* @__PURE__ */ jsxRuntime.jsx(StyledDialog, { ...props, children });
4394
4761
  };
4395
4762
  ModModal.displayName = "ModModal";
4396
- const ModalHeaderRoot = styles.styled("div")({
4763
+ const ModalHeaderRoot = styles.styled("div")(({ theme }) => ({
4397
4764
  display: "flex",
4398
- flexDirection: "column"
4399
- });
4765
+ flexDirection: "column",
4766
+ // Header extras such as tabs otherwise end flush on the body text.
4767
+ [theme.breakpoints.down("md")]: {
4768
+ "&:has(> :nth-child(2))": {
4769
+ paddingBottom: designSystemTokens.spacing.spacing_2
4770
+ }
4771
+ }
4772
+ }));
4400
4773
  const ModalHeaderTitleRow = styles.styled("div")({
4401
4774
  display: "flex",
4402
4775
  alignItems: "flex-start",
@@ -4441,7 +4814,8 @@ const ModalHeaderSubtitle = styles.styled("p")(({ theme }) => ({
4441
4814
  lineHeight: 1.4,
4442
4815
  color: designSystemTokens.semanticColors.color.text.secondary
4443
4816
  }));
4444
- const StyledCloseButton = styles.styled(IconButton)({
4817
+ const StyledCloseButton = styles.styled(IconButton)(({ theme }) => ({
4818
+ ...touchTarget(theme),
4445
4819
  color: designSystemTokens.semanticColors.color.icon.utility,
4446
4820
  paddingTop: 0,
4447
4821
  paddingRight: 0,
@@ -4454,7 +4828,7 @@ const StyledCloseButton = styles.styled(IconButton)({
4454
4828
  backgroundColor: "transparent",
4455
4829
  color: designSystemTokens.semanticColors.color.icon.utility
4456
4830
  }
4457
- });
4831
+ }));
4458
4832
  const ModModalHeader = ({
4459
4833
  title,
4460
4834
  subtitle,
@@ -4509,7 +4883,7 @@ const ModModalContent = ({ children }) => {
4509
4883
  return /* @__PURE__ */ jsxRuntime.jsx(StyledDialogContent, { dividers: false, children });
4510
4884
  };
4511
4885
  ModModalContent.displayName = "ModModalContent";
4512
- const StyledDialogActions = styles.styled(DialogActions)({
4886
+ const StyledDialogActions = styles.styled(DialogActions)(({ theme }) => ({
4513
4887
  paddingTop: 0,
4514
4888
  paddingRight: designSystemTokens.spacing.spacing_4,
4515
4889
  paddingBottom: designSystemTokens.spacing.spacing_4,
@@ -4521,15 +4895,38 @@ const StyledDialogActions = styles.styled(DialogActions)({
4521
4895
  paddingTop: 0,
4522
4896
  paddingRight: designSystemTokens.spacing.spacing_4,
4523
4897
  paddingBottom: designSystemTokens.spacing.spacing_4,
4524
- paddingLeft: designSystemTokens.spacing.spacing_4
4898
+ paddingLeft: designSystemTokens.spacing.spacing_4,
4899
+ // A full-screen body scrolls; the border marks where it ends and the actions begin.
4900
+ [theme.breakpoints.down("sm")]: {
4901
+ paddingTop: designSystemTokens.spacing.spacing_2,
4902
+ borderTop: `1px solid ${designSystemTokens.semanticColors.color.border.primary}`
4903
+ }
4904
+ },
4905
+ [theme.breakpoints.down("sm")]: {
4906
+ flexWrap: "wrap",
4907
+ columnGap: designSystemTokens.spacing.spacing_2,
4908
+ rowGap: designSystemTokens.spacing.spacing_2,
4909
+ // MUI's sibling margin would inset the actions past the header's edge.
4910
+ [`&.${DialogActions.dialogActionsClasses.spacing} > :not(style) ~ :not(style)`]: {
4911
+ marginLeft: 0
4912
+ }
4525
4913
  }
4526
- });
4527
- const FooterActionsGroup = styles.styled("div")({
4914
+ }));
4915
+ const FooterActionsGroup = styles.styled("div")(({ theme }) => ({
4528
4916
  display: "flex",
4529
4917
  gap: designSystemTokens.spacing.spacing_2,
4530
4918
  alignItems: "center",
4531
- marginLeft: "auto"
4532
- });
4919
+ marginLeft: "auto",
4920
+ // Full-width stack with the primary action last, nearest the thumb.
4921
+ // A small leading icon shares the actions' row; wider leading content pushes them to a row of their own.
4922
+ [theme.breakpoints.down("sm")]: {
4923
+ flex: "1 1 0",
4924
+ minWidth: "50%",
4925
+ flexDirection: "column",
4926
+ alignItems: "stretch",
4927
+ marginLeft: 0
4928
+ }
4929
+ }));
4533
4930
  const ModModalFooter = ({ leadingContent, children }) => {
4534
4931
  return /* @__PURE__ */ jsxRuntime.jsxs(StyledDialogActions, { children: [
4535
4932
  leadingContent,
@@ -4863,6 +5260,23 @@ const StyledTooltip = styles.styled(
4863
5260
  }
4864
5261
  };
4865
5262
  });
5263
+ const withCompactFallback = (placement, popper) => {
5264
+ const side = placement?.split("-")[0];
5265
+ if (side !== "left" && side !== "right") {
5266
+ return popper;
5267
+ }
5268
+ const flip = {
5269
+ name: "flip",
5270
+ options: { fallbackPlacements: [side === "left" ? "right" : "left", "top", "bottom"] }
5271
+ };
5272
+ return {
5273
+ ...popper,
5274
+ popperOptions: {
5275
+ ...popper?.popperOptions,
5276
+ modifiers: [flip, ...popper?.popperOptions?.modifiers ?? []]
5277
+ }
5278
+ };
5279
+ };
4866
5280
  const ModTooltip = ({
4867
5281
  variant = "light",
4868
5282
  title,
@@ -4870,8 +5284,22 @@ const ModTooltip = ({
4870
5284
  children,
4871
5285
  arrow = false,
4872
5286
  placement,
5287
+ describeChild,
5288
+ slotProps,
4873
5289
  ...props
4874
5290
  }) => {
5291
+ const accessibleName = typeof title === "string" && !description && !describeChild ? title : void 0;
5292
+ const isCompact = useIsCompact();
5293
+ const compactSlotProps = react.useMemo(() => {
5294
+ const popper = slotProps?.popper;
5295
+ if (!isCompact) {
5296
+ return slotProps;
5297
+ }
5298
+ return {
5299
+ ...slotProps,
5300
+ popper: typeof popper === "function" ? (ownerState) => withCompactFallback(placement, popper(ownerState)) : withCompactFallback(placement, popper)
5301
+ };
5302
+ }, [isCompact, placement, slotProps]);
4875
5303
  const titleContent = description ? /* @__PURE__ */ jsxRuntime.jsxs(Stack, { sx: { gap: `${designSystemTokens.spacing.spacing_1_4}px` }, children: [
4876
5304
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "inherit", sx: { fontWeight: designSystemTokens.typography.fontWeight.semiBold }, children: title }),
4877
5305
  /* @__PURE__ */ jsxRuntime.jsx(Typography, { variant: "inherit", children: description })
@@ -4883,6 +5311,9 @@ const ModTooltip = ({
4883
5311
  title: titleContent,
4884
5312
  arrow,
4885
5313
  placement,
5314
+ describeChild,
5315
+ "aria-label": accessibleName,
5316
+ slotProps: compactSlotProps,
4886
5317
  ...props,
4887
5318
  children
4888
5319
  }
@@ -4981,6 +5412,7 @@ function ModNavigationItem({
4981
5412
  selected,
4982
5413
  "aria-label": collapsed && typeof label === "string" ? label : void 0,
4983
5414
  disableRipple: true,
5415
+ "data-mod-nav-item": "",
4984
5416
  ...props,
4985
5417
  children: [
4986
5418
  /* @__PURE__ */ jsxRuntime.jsx(IconPadding, { className: "mod-nav-icon-padding", children: icon }),
@@ -5007,6 +5439,71 @@ function ModNavigationItem({
5007
5439
  }
5008
5440
  ModNavigationItem.displayName = "ModNavigationItem";
5009
5441
 
5442
+ function OverflowActions({ actions = [] }) {
5443
+ const compact = useIsCompact();
5444
+ const [anchor, setAnchor] = react.useState(null);
5445
+ const menuId = react.useId();
5446
+ react.useEffect(() => {
5447
+ if (!compact) {
5448
+ setAnchor(null);
5449
+ }
5450
+ }, [compact]);
5451
+ if (actions.length === 0) {
5452
+ return null;
5453
+ }
5454
+ const [first, ...rest] = actions;
5455
+ const inline = compact && rest.length > 0 ? [first] : actions;
5456
+ const overflow = compact ? rest : [];
5457
+ return /* @__PURE__ */ jsxRuntime.jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: `${designSystemTokens.spacing.spacing_1}px` }, children: [
5458
+ inline.map((action) => /* @__PURE__ */ jsxRuntime.jsx(
5459
+ ModButton,
5460
+ {
5461
+ variant: action.variant,
5462
+ startIcon: action.icon,
5463
+ disabled: action.disabled,
5464
+ onClick: action.onClick,
5465
+ children: action.label
5466
+ },
5467
+ action.id
5468
+ )),
5469
+ overflow.length > 0 && /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
5470
+ /* @__PURE__ */ jsxRuntime.jsx(
5471
+ ModIconButton,
5472
+ {
5473
+ "aria-label": "More actions",
5474
+ "aria-haspopup": "menu",
5475
+ "aria-expanded": anchor !== null,
5476
+ "aria-controls": anchor ? menuId : void 0,
5477
+ onClick: (event) => setAnchor(event.currentTarget),
5478
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.EllipsisVertical, {})
5479
+ }
5480
+ ),
5481
+ /* @__PURE__ */ jsxRuntime.jsx(
5482
+ ModMenu,
5483
+ {
5484
+ anchorEl: anchor,
5485
+ open: anchor !== null,
5486
+ onClose: () => setAnchor(null),
5487
+ slotProps: { list: { id: menuId } },
5488
+ children: overflow.map((action) => /* @__PURE__ */ jsxRuntime.jsx(
5489
+ ModMenuItem,
5490
+ {
5491
+ icon: action.icon,
5492
+ disabled: action.disabled,
5493
+ onClick: () => {
5494
+ setAnchor(null);
5495
+ action.onClick();
5496
+ },
5497
+ children: action.label
5498
+ },
5499
+ action.id
5500
+ ))
5501
+ }
5502
+ )
5503
+ ] })
5504
+ ] });
5505
+ }
5506
+
5010
5507
  const StickyHeader = styles.styled(Box)(({ theme }) => ({
5011
5508
  position: "sticky",
5012
5509
  top: 0,
@@ -5028,6 +5525,7 @@ function ModPageContent({
5028
5525
  subtitle,
5029
5526
  breadcrumbs,
5030
5527
  action,
5528
+ actions,
5031
5529
  sticky = false,
5032
5530
  contentMaxWidth: contentMaxWidthProp = false,
5033
5531
  centerContent = true,
@@ -5086,13 +5584,19 @@ function ModPageContent({
5086
5584
  Stack,
5087
5585
  {
5088
5586
  direction: "row",
5089
- sx: { justifyContent: "space-between", alignItems: "flex-start", gap: "1rem" },
5587
+ sx: (theme) => ({
5588
+ justifyContent: "space-between",
5589
+ alignItems: "flex-start",
5590
+ gap: "1rem",
5591
+ [theme.breakpoints.down("md")]: { flexWrap: "wrap" }
5592
+ }),
5090
5593
  children: [
5091
5594
  /* @__PURE__ */ jsxRuntime.jsxs(Stack, { sx: { gap: "0.5rem", flexGrow: 1 }, children: [
5092
5595
  typeof pageTitle === "string" ? /* @__PURE__ */ jsxRuntime.jsx(PageTitle, { component: "h1", children: pageTitle }) : pageTitle,
5093
5596
  subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ jsxRuntime.jsx(Subtitle, { variant: "caption", children: subtitle }) : subtitle)
5094
5597
  ] }),
5095
- action
5598
+ action,
5599
+ /* @__PURE__ */ jsxRuntime.jsx(OverflowActions, { actions })
5096
5600
  ]
5097
5601
  }
5098
5602
  )
@@ -5251,7 +5755,16 @@ function ModPaginatedGrid({
5251
5755
  }
5252
5756
  ModPaginatedGrid.displayName = "ModPaginatedGrid";
5253
5757
 
5758
+ const StyledQuickFilter = styles.styled(xDataGrid.QuickFilter)(({ theme }) => ({
5759
+ [theme.breakpoints.down("sm")]: {
5760
+ flex: "1 1 100%",
5761
+ minWidth: 0
5762
+ }
5763
+ }));
5254
5764
  const StyledTextField = styles.styled(TextField)(({ theme }) => ({
5765
+ [theme.breakpoints.down("sm")]: {
5766
+ width: "100%"
5767
+ },
5255
5768
  [`& .${InputBase.inputBaseClasses.root}`]: {
5256
5769
  height: designSystemTokens.spacing.spacing_5,
5257
5770
  fontSize: theme.typography.pxToRem(designSystemTokens.typography.fontSize.default),
@@ -5263,6 +5776,9 @@ const StyledTextField = styles.styled(TextField)(({ theme }) => ({
5263
5776
  paddingLeft: designSystemTokens.spacing.spacing_1_1_2,
5264
5777
  paddingRight: designSystemTokens.spacing.spacing_1_1_2,
5265
5778
  gap: designSystemTokens.spacing.spacing_1_2,
5779
+ [theme.breakpoints.down("md")]: {
5780
+ height: TOUCH_TARGET
5781
+ },
5266
5782
  "&::before, &::after": {
5267
5783
  display: "none"
5268
5784
  },
@@ -5297,6 +5813,7 @@ const StyledTextField = styles.styled(TextField)(({ theme }) => ({
5297
5813
  marginRight: 0
5298
5814
  },
5299
5815
  [`& .${IconButton.iconButtonClasses.root}`]: {
5816
+ ...touchTarget(theme),
5300
5817
  color: designSystemTokens.semanticColors.color.icon.placeholder,
5301
5818
  "&:hover": {
5302
5819
  backgroundColor: designSystemTokens.semanticColors.color.icon.bgHover,
@@ -5313,7 +5830,7 @@ const ModQuickFilter = ({
5313
5830
  onKeyDown,
5314
5831
  autoFocus = false
5315
5832
  }) => {
5316
- return /* @__PURE__ */ jsxRuntime.jsx(xDataGrid.QuickFilter, { children: /* @__PURE__ */ jsxRuntime.jsx(
5833
+ return /* @__PURE__ */ jsxRuntime.jsx(StyledQuickFilter, { children: /* @__PURE__ */ jsxRuntime.jsx(
5317
5834
  xDataGrid.QuickFilterControl,
5318
5835
  {
5319
5836
  onKeyDown,
@@ -5453,7 +5970,7 @@ const HelperText$1 = styles.styled("span")(({ theme, size = "medium" }) => ({
5453
5970
  }));
5454
5971
  const StyledRadio = styles.styled(Radio, {
5455
5972
  shouldForwardProp: (prop) => prop !== "size"
5456
- })(({ size = "medium" }) => {
5973
+ })(({ theme, size = "medium" }) => {
5457
5974
  const dimensions = size === "small" ? 16 : 20;
5458
5975
  const radius = size === "small" ? 8 : 10;
5459
5976
  return {
@@ -5474,6 +5991,7 @@ const StyledRadio = styles.styled(Radio, {
5474
5991
  width: dimensions,
5475
5992
  height: dimensions
5476
5993
  },
5994
+ "& input": inputTouchTarget(theme),
5477
5995
  // Focus state for keyboard navigation
5478
5996
  [`&.${ButtonBase.buttonBaseClasses.focusVisible}`]: {
5479
5997
  // Unchecked focus state: white background
@@ -5602,6 +6120,11 @@ const StyledSearchChip = styles.styled(InputBase, {
5602
6120
  transition: theme.transitions.create(["border-color", "background-color"], {
5603
6121
  duration: theme.transitions.duration.short
5604
6122
  }),
6123
+ // A tap on the hit area focuses the input; positioning keeps the input above it for caret taps.
6124
+ ...touchTarget(theme, { pseudo: "before" }),
6125
+ [theme.breakpoints.down("md")]: {
6126
+ [`& .${InputBase.inputBaseClasses.input}`]: { position: "relative" }
6127
+ },
5605
6128
  [`& .${InputBase.inputBaseClasses.input}`]: {
5606
6129
  padding: `0 ${designSystemTokens.spacing.spacing_1_4}px`,
5607
6130
  height: "auto",
@@ -5634,7 +6157,8 @@ const StyledSearchChip = styles.styled(InputBase, {
5634
6157
  outline: `3px solid ${designSystemTokens.semanticColors.color.action.tint}`
5635
6158
  }
5636
6159
  }));
5637
- const ClearButton = styles.styled(ButtonBase)({
6160
+ const ClearButton = styles.styled(ButtonBase)(({ theme }) => ({
6161
+ ...touchTarget(theme),
5638
6162
  display: "inline-flex",
5639
6163
  alignItems: "center",
5640
6164
  justifyContent: "center",
@@ -5650,7 +6174,7 @@ const ClearButton = styles.styled(ButtonBase)({
5650
6174
  "&:hover": {
5651
6175
  backgroundColor: designSystemTokens.semanticColors.button.secondary.bgHover
5652
6176
  }
5653
- });
6177
+ }));
5654
6178
  const ModSearchChip = ({ onClear, value, ...props }) => {
5655
6179
  const hasValue = Boolean(value && String(value).length > 0);
5656
6180
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -5763,7 +6287,7 @@ const HeaderRegion = styles.styled("div")({
5763
6287
  flexDirection: "column",
5764
6288
  alignItems: "center"
5765
6289
  });
5766
- const Scroll = styles.styled("div")({
6290
+ const Scroll = styles.styled("div")(({ theme }) => ({
5767
6291
  flex: 1,
5768
6292
  minHeight: 0,
5769
6293
  overflowY: "auto",
@@ -5777,8 +6301,12 @@ const Scroll = styles.styled("div")({
5777
6301
  // Keeps Tab from parking an item under a fade, which hides its focus ring.
5778
6302
  scrollPaddingBlock: designSystemTokens.spacing.spacing_3,
5779
6303
  paddingInline: designSystemTokens.spacing.spacing_1,
5780
- "&::-webkit-scrollbar": { display: "none" }
5781
- });
6304
+ "&::-webkit-scrollbar": { display: "none" },
6305
+ // Taller touch rows end flush on the footer's logo; the list stops short of it.
6306
+ [theme.breakpoints.down("md")]: {
6307
+ marginBottom: designSystemTokens.spacing.spacing_2
6308
+ }
6309
+ }));
5782
6310
  const FooterRegion = styles.styled("div")({
5783
6311
  position: "relative",
5784
6312
  flexShrink: 0,
@@ -5816,6 +6344,7 @@ const Fade = styles.styled("div", {
5816
6344
  }
5817
6345
  }));
5818
6346
  const Handle = styles.styled(ButtonBase)(({ theme }) => ({
6347
+ ...touchTarget(theme),
5819
6348
  position: "absolute",
5820
6349
  right: 0,
5821
6350
  bottom: designSystemTokens.spacing.spacing_1,
@@ -5836,7 +6365,7 @@ const Handle = styles.styled(ButtonBase)(({ theme }) => ({
5836
6365
  borderColor: designSystemTokens.semanticColors.color.border.primary
5837
6366
  }
5838
6367
  }));
5839
- function useScrollEdges() {
6368
+ function useScrollEdges$1() {
5840
6369
  const ref = react.useRef(null);
5841
6370
  const contentRef = react.useRef(null);
5842
6371
  const [edges, setEdges] = react.useState({
@@ -5869,6 +6398,33 @@ function useScrollEdges() {
5869
6398
  }, [measure]);
5870
6399
  return { ref, contentRef, onScroll: measure, ...edges };
5871
6400
  }
6401
+ function Rail({ collapsed, header, footer, children, className, id, ariaLabel }) {
6402
+ const { ref: scrollRef, contentRef, onScroll, canScrollUp, canScrollDown } = useScrollEdges$1();
6403
+ return /* @__PURE__ */ jsxRuntime.jsxs(Root, { collapsed, "aria-label": ariaLabel, className, id, children: [
6404
+ /* @__PURE__ */ jsxRuntime.jsxs(HeaderRegion, { children: [
6405
+ header,
6406
+ /* @__PURE__ */ jsxRuntime.jsx(Fade, { edge: "header", visible: canScrollUp })
6407
+ ] }),
6408
+ /* @__PURE__ */ jsxRuntime.jsx(Scroll, { ref: scrollRef, onScroll, "data-testid": "mod-side-nav-scroll", children: /* @__PURE__ */ jsxRuntime.jsx(
6409
+ Stack,
6410
+ {
6411
+ ref: contentRef,
6412
+ sx: {
6413
+ alignItems: "center",
6414
+ gap: `${designSystemTokens.spacing.spacing_1_2}px`,
6415
+ // Keeps `flex: 1` / `margin-block-start: auto` working on
6416
+ // children, as when Scroll was the flex container.
6417
+ minHeight: "100%"
6418
+ },
6419
+ children
6420
+ }
6421
+ ) }),
6422
+ /* @__PURE__ */ jsxRuntime.jsxs(FooterRegion, { children: [
6423
+ /* @__PURE__ */ jsxRuntime.jsx(Fade, { edge: "footer", visible: canScrollDown }),
6424
+ footer
6425
+ ] })
6426
+ ] });
6427
+ }
5872
6428
  function ModSideNav({
5873
6429
  collapsed,
5874
6430
  onCollapsedChange,
@@ -5877,36 +6433,57 @@ function ModSideNav({
5877
6433
  children,
5878
6434
  className,
5879
6435
  id,
5880
- "aria-label": ariaLabel
6436
+ "aria-label": ariaLabel,
6437
+ mobileOpen = false,
6438
+ onMobileOpenChange
5881
6439
  }) {
5882
- const contextValue = react.useMemo(() => ({ collapsed }), [collapsed]);
5883
- const { ref: scrollRef, contentRef, onScroll, canScrollUp, canScrollDown } = useScrollEdges();
6440
+ const compact = useIsCompact();
6441
+ const asDrawer = compact && onMobileOpenChange !== void 0;
6442
+ const railCollapsed = asDrawer ? false : collapsed;
6443
+ react.useEffect(() => {
6444
+ if (!compact && mobileOpen) {
6445
+ onMobileOpenChange?.(false);
6446
+ }
6447
+ }, [compact, mobileOpen, onMobileOpenChange]);
6448
+ const contextValue = react.useMemo(() => ({ collapsed: railCollapsed }), [railCollapsed]);
6449
+ const rail = /* @__PURE__ */ jsxRuntime.jsx(
6450
+ Rail,
6451
+ {
6452
+ collapsed: railCollapsed,
6453
+ header,
6454
+ footer,
6455
+ className,
6456
+ id,
6457
+ ariaLabel,
6458
+ children
6459
+ }
6460
+ );
6461
+ if (asDrawer) {
6462
+ const closeOnNavigate = (event) => {
6463
+ const target = event.target;
6464
+ const hit = target.closest("a[href], [data-mod-nav-item]");
6465
+ const popup = target.closest('[aria-haspopup]:not([aria-haspopup="false"]), [aria-expanded]');
6466
+ if (hit && !(popup && hit.contains(popup))) {
6467
+ onMobileOpenChange?.(false);
6468
+ }
6469
+ };
6470
+ return /* @__PURE__ */ jsxRuntime.jsx(ModSideNavContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
6471
+ Drawer,
6472
+ {
6473
+ variant: "temporary",
6474
+ anchor: "left",
6475
+ open: mobileOpen,
6476
+ onClose: () => onMobileOpenChange?.(false),
6477
+ slotProps: {
6478
+ paper: { sx: { backgroundColor: RAIL_BACKGROUND, backgroundImage: "none" } }
6479
+ },
6480
+ children: /* @__PURE__ */ jsxRuntime.jsx(Frame, { collapsed: false, onClickCapture: closeOnNavigate, children: rail })
6481
+ }
6482
+ ) });
6483
+ }
5884
6484
  const HandleIcon = collapsed ? lucideReact.ChevronRight : lucideReact.ChevronLeft;
5885
6485
  return /* @__PURE__ */ jsxRuntime.jsx(ModSideNavContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsxs(Frame, { collapsed, children: [
5886
- /* @__PURE__ */ jsxRuntime.jsxs(Root, { collapsed, "aria-label": ariaLabel, className, id, children: [
5887
- /* @__PURE__ */ jsxRuntime.jsxs(HeaderRegion, { children: [
5888
- header,
5889
- /* @__PURE__ */ jsxRuntime.jsx(Fade, { edge: "header", visible: canScrollUp })
5890
- ] }),
5891
- /* @__PURE__ */ jsxRuntime.jsx(Scroll, { ref: scrollRef, onScroll, "data-testid": "mod-side-nav-scroll", children: /* @__PURE__ */ jsxRuntime.jsx(
5892
- Stack,
5893
- {
5894
- ref: contentRef,
5895
- sx: {
5896
- alignItems: "center",
5897
- gap: `${designSystemTokens.spacing.spacing_1_2}px`,
5898
- // Keeps `flex: 1` / `margin-block-start: auto` working on
5899
- // children, as when Scroll was the flex container.
5900
- minHeight: "100%"
5901
- },
5902
- children
5903
- }
5904
- ) }),
5905
- /* @__PURE__ */ jsxRuntime.jsxs(FooterRegion, { children: [
5906
- /* @__PURE__ */ jsxRuntime.jsx(Fade, { edge: "footer", visible: canScrollDown }),
5907
- footer
5908
- ] })
5909
- ] }),
6486
+ rail,
5910
6487
  /* @__PURE__ */ jsxRuntime.jsx(
5911
6488
  Handle,
5912
6489
  {
@@ -5945,7 +6522,9 @@ const StyledSkeleton = styles.styled(Skeleton, {
5945
6522
  "&::after": {
5946
6523
  animationDirection: "reverse"
5947
6524
  }
5948
- }
6525
+ },
6526
+ // A fixed width sized for desktop yields to a phone-width container.
6527
+ [theme.breakpoints.down("md")]: { maxWidth: "100%" }
5949
6528
  }));
5950
6529
  const ModSkeleton = ({
5951
6530
  colorTheme = "light",
@@ -6072,20 +6651,91 @@ const ModTabPanel = ({
6072
6651
  };
6073
6652
  ModTabPanel.displayName = "ModTabPanel";
6074
6653
 
6075
- const ModTabs = styles.styled(MuiTabs)(() => ({
6654
+ const EDGE_FADE = designSystemTokens.spacing.spacing_4;
6655
+ const StyledTabs = styles.styled(MuiTabs)(({ theme }) => ({
6076
6656
  minHeight: designSystemTokens.spacing.spacing_5,
6657
+ [theme.breakpoints.down("md")]: {
6658
+ minHeight: TOUCH_TARGET
6659
+ },
6077
6660
  [`& .${MuiTabs.tabsClasses.indicator}`]: {
6078
6661
  backgroundColor: designSystemTokens.semanticColors.button.nav.borderActive,
6079
- height: 2
6662
+ height: 2,
6663
+ // The indicator overlaps the selected tab's bottom edge; let those taps reach the tab.
6664
+ [theme.breakpoints.down("md")]: {
6665
+ pointerEvents: "none"
6666
+ }
6080
6667
  },
6081
6668
  [`& .${MuiTabs.tabsClasses.list}`]: {
6082
6669
  gap: 0
6670
+ },
6671
+ // A row that scrolls fades out at each edge it can still scroll toward (set by ModTabs below md).
6672
+ [theme.breakpoints.down("md")]: {
6673
+ [`&[data-fade-end] .${MuiTabs.tabsClasses.scroller}`]: {
6674
+ maskImage: `linear-gradient(to right, black calc(100% - ${EDGE_FADE}px), transparent)`
6675
+ },
6676
+ [`&[data-fade-start] .${MuiTabs.tabsClasses.scroller}`]: {
6677
+ maskImage: `linear-gradient(to left, black calc(100% - ${EDGE_FADE}px), transparent)`
6678
+ },
6679
+ [`&[data-fade-start][data-fade-end] .${MuiTabs.tabsClasses.scroller}`]: {
6680
+ maskImage: `linear-gradient(to right, transparent, black ${EDGE_FADE}px, black calc(100% - ${EDGE_FADE}px), transparent)`
6681
+ }
6083
6682
  }
6084
6683
  }));
6684
+ function useScrollEdges(active) {
6685
+ const rootRef = react.useRef(null);
6686
+ const [edges, setEdges] = react.useState({ start: false, end: false });
6687
+ react.useEffect(() => {
6688
+ const scroller = rootRef.current?.querySelector(`.${MuiTabs.tabsClasses.scroller}`);
6689
+ if (!active || !scroller) {
6690
+ setEdges((prev) => prev.start || prev.end ? { start: false, end: false } : prev);
6691
+ return;
6692
+ }
6693
+ const measure = () => {
6694
+ const left = Math.abs(scroller.scrollLeft);
6695
+ const start = left > 0;
6696
+ const end = left + scroller.clientWidth < scroller.scrollWidth - 1;
6697
+ setEdges((prev) => prev.start === start && prev.end === end ? prev : { start, end });
6698
+ };
6699
+ measure();
6700
+ scroller.addEventListener("scroll", measure, { passive: true });
6701
+ const resize = new ResizeObserver(measure);
6702
+ resize.observe(scroller);
6703
+ for (const child of scroller.children) {
6704
+ resize.observe(child);
6705
+ }
6706
+ return () => {
6707
+ scroller.removeEventListener("scroll", measure);
6708
+ resize.disconnect();
6709
+ };
6710
+ }, [active]);
6711
+ return { rootRef, edges };
6712
+ }
6713
+ const ModTabs = react.forwardRef(function ModTabs2(props, ref) {
6714
+ const compact = useIsCompact();
6715
+ const variant = props.variant ?? "standard";
6716
+ const scrollable = compact && variant === "standard";
6717
+ const arrowless = compact && variant === "scrollable" && !props.allowScrollButtonsMobile;
6718
+ const { rootRef, edges } = useScrollEdges(compact && variant !== "fullWidth");
6719
+ const forkedRef = utils.useForkRef(ref, rootRef);
6720
+ return /* @__PURE__ */ jsxRuntime.jsx(
6721
+ StyledTabs,
6722
+ {
6723
+ ref: forkedRef,
6724
+ ...props,
6725
+ ...scrollable && { variant: "scrollable", scrollButtons: false, centered: false },
6726
+ ...arrowless && { scrollButtons: false },
6727
+ "data-fade-start": edges.start || void 0,
6728
+ "data-fade-end": edges.end || void 0
6729
+ }
6730
+ );
6731
+ });
6085
6732
  ModTabs.displayName = "ModTabs";
6086
6733
  const StyledTab = styles.styled(MuiTab)(({ theme }) => ({
6087
6734
  minHeight: designSystemTokens.spacing.spacing_5,
6088
6735
  padding: `${designSystemTokens.spacing.spacing_1}px ${designSystemTokens.spacing.spacing_2}px`,
6736
+ [theme.breakpoints.down("md")]: {
6737
+ minHeight: TOUCH_TARGET
6738
+ },
6089
6739
  textTransform: "none",
6090
6740
  fontWeight: designSystemTokens.typography.fontWeight.regular,
6091
6741
  fontSize: theme.typography.pxToRem(14),
@@ -6221,6 +6871,10 @@ const StyledAlert = styles.styled(Alert, {
6221
6871
  [`& .${Alert.alertClasses.action}`]: {
6222
6872
  padding: 0,
6223
6873
  marginRight: 0
6874
+ },
6875
+ // MUI's message scrolls (overflow: auto), which would clip the action buttons' hit areas.
6876
+ [theme.breakpoints.down("md")]: {
6877
+ [`& .${Alert.alertClasses.message}`]: { overflow: "visible" }
6224
6878
  }
6225
6879
  };
6226
6880
  });
@@ -6256,7 +6910,8 @@ const ToastButton = styles.styled(Button, {
6256
6910
  "&:hover": {
6257
6911
  backgroundColor: "transparent",
6258
6912
  textDecoration: "underline"
6259
- }
6913
+ },
6914
+ ...touchTarget(theme)
6260
6915
  }));
6261
6916
  const ModToast = ({
6262
6917
  intent = "neutral",
@@ -6278,7 +6933,7 @@ const ModToast = ({
6278
6933
  {
6279
6934
  size: "small",
6280
6935
  onClick: onClose,
6281
- sx: { color: designSystemTokens.semanticColors.color.icon.utility },
6936
+ sx: (theme) => ({ color: designSystemTokens.semanticColors.color.icon.utility, ...touchTarget(theme) }),
6282
6937
  children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.X, { size: 16 })
6283
6938
  }
6284
6939
  ) : void 0,
@@ -6402,6 +7057,9 @@ const StyledSwitch = styles.styled(Switch, {
6402
7057
  color: designSystemTokens.semanticColors.input.bgDisabled
6403
7058
  }
6404
7059
  },
7060
+ [`& .${Switch.switchClasses.switchBase} .${Switch.switchClasses.input}`]: inputTouchTarget(theme, {
7061
+ heightOnly: true
7062
+ }),
6405
7063
  // Thumb
6406
7064
  [`& .${Switch.switchClasses.thumb}`]: {
6407
7065
  width: config.thumbSize,
@@ -6464,7 +7122,12 @@ const StyledToggleButton$1 = styles.styled(MuiToggleButton, {
6464
7122
  ({ theme, toggleSize = "medium", toggleVariant = "default" }) => {
6465
7123
  const segmented = toggleVariant === "segmented";
6466
7124
  return {
7125
+ ...touchTarget(theme),
6467
7126
  height: sizeStyles[toggleSize].height,
7127
+ // Both sizes grow to a full touch row below md; the type size stays.
7128
+ [theme.breakpoints.down("md")]: {
7129
+ height: TOUCH_TARGET
7130
+ },
6468
7131
  padding: `0 ${designSystemTokens.spacing.spacing_1_1_2}px`,
6469
7132
  fontFamily: designSystemTokens.typography.fontFamily.body,
6470
7133
  fontSize: theme.typography.pxToRem(sizeStyles[toggleSize].fontSize),
@@ -6510,7 +7173,7 @@ ModToggleButton.displayName = "ModToggleButton";
6510
7173
 
6511
7174
  const StyledToggleButtonGroup$1 = styles.styled(MuiToggleButtonGroup, {
6512
7175
  shouldForwardProp: (prop) => prop !== "groupVariant"
6513
- })(({ groupVariant = "default" }) => {
7176
+ })(({ theme, groupVariant = "default" }) => {
6514
7177
  const segmented = groupVariant === "segmented";
6515
7178
  return {
6516
7179
  display: "inline-flex",
@@ -6524,7 +7187,19 @@ const StyledToggleButtonGroup$1 = styles.styled(MuiToggleButtonGroup, {
6524
7187
  } : {
6525
7188
  borderRadius: designSystemTokens.borderRadius.button,
6526
7189
  border: `1px solid ${designSystemTokens.semanticColors.color.border.primary}`,
6527
- overflow: "hidden"
7190
+ overflow: "hidden",
7191
+ // The clip would cut the buttons' touch targets; round the end buttons to the inner (minus 1px border) radius.
7192
+ [theme.breakpoints.down("md")]: {
7193
+ overflow: "visible",
7194
+ [`& .${MuiToggleButton.toggleButtonClasses.root}:first-of-type`]: {
7195
+ borderTopLeftRadius: designSystemTokens.borderRadius.button - 1,
7196
+ borderBottomLeftRadius: designSystemTokens.borderRadius.button - 1
7197
+ },
7198
+ [`& .${MuiToggleButton.toggleButtonClasses.root}:last-of-type`]: {
7199
+ borderTopRightRadius: designSystemTokens.borderRadius.button - 1,
7200
+ borderBottomRightRadius: designSystemTokens.borderRadius.button - 1
7201
+ }
7202
+ }
6528
7203
  },
6529
7204
  // Default fuses the children (square inner corners, no gap); segmented
6530
7205
  // keeps each button as its own rounded pill.
@@ -6563,10 +7238,26 @@ const StyledToolbar = styles.styled(xDataGrid.Toolbar)(({ theme }) => ({
6563
7238
  // 16px
6564
7239
  [theme.breakpoints.down("sm")]: {
6565
7240
  flexWrap: "wrap"
7241
+ },
7242
+ // Controls are documented as grouped in Boxes; let those groups wrap too.
7243
+ [theme.breakpoints.down("md")]: {
7244
+ rowGap: designSystemTokens.spacing.spacing_1,
7245
+ "& > *": { flexWrap: "wrap" }
7246
+ },
7247
+ // On tablets a group can wrap beside others; they centre on its first line, not on its middle.
7248
+ // Every group is at least one control row tall (the QuickFilter's 44px) and bare controls centre
7249
+ // in it. Phones give the QuickFilter a row of its own, so groups there never share a line.
7250
+ [theme.breakpoints.between("sm", "md")]: {
7251
+ alignItems: "flex-start",
7252
+ "& > div": { minHeight: TOUCH_TARGET },
7253
+ "& > :not(div)": { alignSelf: "center" }
6566
7254
  }
6567
7255
  }));
6568
- const ModToolbar = ({ children, ...props }) => {
6569
- return /* @__PURE__ */ jsxRuntime.jsx(StyledToolbar, { ...props, children });
7256
+ const ModToolbar = ({ children, actions, ...props }) => {
7257
+ return /* @__PURE__ */ jsxRuntime.jsxs(StyledToolbar, { ...props, children: [
7258
+ children,
7259
+ /* @__PURE__ */ jsxRuntime.jsx(OverflowActions, { actions })
7260
+ ] });
6570
7261
  };
6571
7262
  ModToolbar.displayName = "ModToolbar";
6572
7263
 
@@ -6578,9 +7269,88 @@ const ModTreeItemLabel = (props) => {
6578
7269
  (item?.statusIcon ?? item?.icon) && /* @__PURE__ */ jsxRuntime.jsx(ItemIcon, { children: item?.statusIcon ?? item?.icon }),
6579
7270
  /* @__PURE__ */ jsxRuntime.jsx(ItemLabel, { children }),
6580
7271
  item?.secondaryLabel && /* @__PURE__ */ jsxRuntime.jsx(ItemSecondaryLabel, { children: item.secondaryLabel }),
6581
- item?.endAction && /* @__PURE__ */ jsxRuntime.jsx(ItemEndAction, { children: item.endAction })
7272
+ item?.endAction && /* @__PURE__ */ jsxRuntime.jsx(ItemEndAction, { children: item.endAction }),
7273
+ item?.endActions && item.endActions.length > 0 && /* @__PURE__ */ jsxRuntime.jsx(ItemEndAction, { children: /* @__PURE__ */ jsxRuntime.jsx(TreeEndActions, { actions: item.endActions }) })
6582
7274
  ] });
6583
7275
  };
7276
+ const stop = (event) => event.stopPropagation();
7277
+ const EndActionButton = styles.styled(ButtonBase)(({ theme }) => ({
7278
+ ...touchTarget(theme),
7279
+ color: "inherit",
7280
+ "&:hover": {
7281
+ color: designSystemTokens.semanticColors.color.icon.default
7282
+ },
7283
+ [`&.${ButtonBase.buttonBaseClasses.focusVisible}`]: {
7284
+ outline: `2px solid ${designSystemTokens.semanticColors.color.border.focus}`
7285
+ }
7286
+ }));
7287
+ function TreeEndActions({ actions }) {
7288
+ const compact = useIsCompact();
7289
+ const [anchor, setAnchor] = react.useState(null);
7290
+ const menuId = react.useId();
7291
+ react.useEffect(() => {
7292
+ if (!compact) {
7293
+ setAnchor(null);
7294
+ }
7295
+ }, [compact]);
7296
+ if (!compact || actions.length === 1) {
7297
+ return actions.map((action) => /* @__PURE__ */ jsxRuntime.jsx(
7298
+ EndActionButton,
7299
+ {
7300
+ "aria-label": action.label,
7301
+ disabled: action.disabled,
7302
+ onKeyDown: stop,
7303
+ onClick: (event) => {
7304
+ stop(event);
7305
+ action.onClick();
7306
+ },
7307
+ children: action.icon
7308
+ },
7309
+ action.id
7310
+ ));
7311
+ }
7312
+ return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
7313
+ /* @__PURE__ */ jsxRuntime.jsx(
7314
+ EndActionButton,
7315
+ {
7316
+ "aria-label": "More actions",
7317
+ "aria-haspopup": "menu",
7318
+ "aria-expanded": anchor !== null,
7319
+ "aria-controls": anchor ? menuId : void 0,
7320
+ onKeyDown: stop,
7321
+ onClick: (event) => {
7322
+ stop(event);
7323
+ setAnchor(event.currentTarget);
7324
+ },
7325
+ children: /* @__PURE__ */ jsxRuntime.jsx(lucideReact.EllipsisVertical, {})
7326
+ }
7327
+ ),
7328
+ /* @__PURE__ */ jsxRuntime.jsx(
7329
+ ModMenu,
7330
+ {
7331
+ anchorEl: anchor,
7332
+ open: anchor !== null,
7333
+ onClose: () => setAnchor(null),
7334
+ onClick: stop,
7335
+ onKeyDown: stop,
7336
+ slotProps: { list: { id: menuId } },
7337
+ children: actions.map((action) => /* @__PURE__ */ jsxRuntime.jsx(
7338
+ ModMenuItem,
7339
+ {
7340
+ icon: action.icon,
7341
+ disabled: action.disabled,
7342
+ onClick: () => {
7343
+ setAnchor(null);
7344
+ action.onClick();
7345
+ },
7346
+ children: action.label
7347
+ },
7348
+ action.id
7349
+ ))
7350
+ }
7351
+ )
7352
+ ] });
7353
+ }
6584
7354
  const ModTreeItem = react.forwardRef(function ModTreeItem2({ slots, slotProps, ...props }, ref) {
6585
7355
  return /* @__PURE__ */ jsxRuntime.jsx(
6586
7356
  TreeItem.TreeItem,
@@ -6658,9 +7428,12 @@ const ModTreeView = ({ slots, ...props }) => {
6658
7428
  ModTreeView.displayName = "ModTreeView";
6659
7429
  const CollapseIcon = () => /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronDown, { size: 16 });
6660
7430
  const ExpandIcon = () => /* @__PURE__ */ jsxRuntime.jsx(lucideReact.ChevronRight, { size: 16 });
6661
- const StyledTreeView = styles.styled(RichTreeViewPro.RichTreeViewPro)({
7431
+ const StyledTreeView = styles.styled(RichTreeViewPro.RichTreeViewPro)(({ theme }) => ({
6662
7432
  [`& .${TreeItem.treeItemClasses.content}`]: {
6663
7433
  height: 28,
7434
+ [theme.breakpoints.down("md")]: {
7435
+ height: TOUCH_TARGET
7436
+ },
6664
7437
  gap: designSystemTokens.spacing.spacing_1_2,
6665
7438
  paddingLeft: designSystemTokens.spacing.spacing_1,
6666
7439
  paddingRight: designSystemTokens.spacing.spacing_1,
@@ -6699,7 +7472,7 @@ const StyledTreeView = styles.styled(RichTreeViewPro.RichTreeViewPro)({
6699
7472
  borderLeft: `1px solid ${designSystemTokens.semanticColors.color.border.primary}`,
6700
7473
  marginLeft: designSystemTokens.spacing.spacing_1_1_4
6701
7474
  }
6702
- });
7475
+ }));
6703
7476
 
6704
7477
  const TOGGLE_BUTTON_BORDER_RADIUS = 14;
6705
7478
  const StyledToggleButtonGroup = styles.styled(MuiToggleButtonGroup)(({ theme }) => ({
@@ -6718,11 +7491,22 @@ const StyledToggleButtonGroup = styles.styled(MuiToggleButtonGroup)(({ theme })
6718
7491
  "&:not(:last-of-type)": {
6719
7492
  borderRadius: TOGGLE_BUTTON_BORDER_RADIUS
6720
7493
  }
7494
+ },
7495
+ // MUI outlines disabled toggles and its vertical grouping drops each later top edge, which reads
7496
+ // as clipped borders; disabled toggles stay borderless like enabled ones.
7497
+ [theme.breakpoints.down("md")]: {
7498
+ [`& .${MuiToggleButtonGroup.toggleButtonGroupClasses.grouped}.${MuiToggleButton.toggleButtonClasses.disabled}`]: {
7499
+ border: "none"
7500
+ }
6721
7501
  }
6722
7502
  }));
6723
7503
  const StyledToggleButton = styles.styled(MuiToggleButton)(({ theme }) => ({
6724
7504
  padding: theme.spacing(0.625),
6725
7505
  minWidth: "auto",
7506
+ [theme.breakpoints.down("md")]: {
7507
+ minWidth: TOUCH_TARGET,
7508
+ minHeight: TOUCH_TARGET
7509
+ },
6726
7510
  color: designSystemTokens.semanticColors.color.icon.default,
6727
7511
  border: "none",
6728
7512
  "& svg": {
@@ -6892,5 +7676,7 @@ exports.focusRingStyles = focusRingStyles;
6892
7676
  exports.getDataGridHeaderStyles = getDataGridHeaderStyles;
6893
7677
  exports.getDataGridRowStyles = getDataGridRowStyles;
6894
7678
  exports.modRowHeights = modRowHeights;
7679
+ exports.touchTarget = touchTarget;
7680
+ exports.useIsCompact = useIsCompact;
6895
7681
  exports.version = version;
6896
7682
  //# sourceMappingURL=index.js.map