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