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

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,57 @@ function ModDataGrid({
2354
2586
  backgroundColor: semanticColors.color.surface.dataGrid.default
2355
2587
  },
2356
2588
  ...getDataGridHeaderStyles({ resizable: !props.disableColumnResize }),
2589
+ [`& .${gridClasses.menuIconButton}`]: touchTarget(theme),
2590
+ // On touch the filter icon is an indicator too and filters open from the column menu; a mouse in a
2591
+ // narrow window keeps clicking it. MUI gives the filter button no class of its own.
2592
+ [`${theme.breakpoints.down("md")} and (pointer: coarse)`]: {
2593
+ [`& button:has(> .${gridClasses.filterIcon})`]: { pointerEvents: "none" }
2594
+ },
2595
+ [compactQuery]: {
2596
+ maxWidth: "100%",
2597
+ // A tap on the header sorts; the sort icon only shows the direction, leaving the room to the column menu.
2598
+ [`& .${gridClasses.sortButton}`]: {
2599
+ pointerEvents: "none"
2600
+ },
2601
+ // The header is tall enough below md for the select-all checkbox's hit area; stop clipping it.
2602
+ [`& .${gridClasses.columnHeaderCheckbox} .${gridClasses.columnHeaderTitleContainerContent}`]: {
2603
+ overflow: "visible"
2604
+ },
2605
+ // The checkbox column doesn't resize, so its separator is decoration; let taps pass through.
2606
+ [`& .${gridClasses.columnHeaderCheckbox} .${gridClasses.columnSeparator}`]: {
2607
+ pointerEvents: "none"
2608
+ },
2609
+ // Narrow columns keep room for their label: a tighter gutter on the title's side (cells below
2610
+ // match), while the menu side keeps its gutter so the menu's hit area clears the separator; a
2611
+ // header without a menu matches its cells on both sides. `:where` keeps this at the gutter rule's
2612
+ // specificity, so a consumer's own padding for that column still wins.
2613
+ // The sort slot takes no width while its icon is hidden, as in MUI's own default.
2614
+ [`& .${gridClasses.columnHeader}:not(.${gridClasses.columnHeaderCheckbox})`]: {
2615
+ paddingLeft: `${spacing.spacing_2}px`
2616
+ },
2617
+ [`& .${gridClasses.columnHeader}:not(.${gridClasses.columnHeaderCheckbox}):where(:not(:has(.${gridClasses.menuIcon})))`]: {
2618
+ paddingRight: `${spacing.spacing_2}px`
2619
+ },
2620
+ [`& .${gridClasses.columnHeader}.${gridClasses["columnHeader--alignRight"]}`]: {
2621
+ paddingLeft: `${spacing.spacing_3}px`,
2622
+ paddingRight: `${spacing.spacing_2}px`
2623
+ },
2624
+ [`& .${gridClasses.columnHeader}:not(.${gridClasses["columnHeader--sorted"]}):not(:hover) .${gridClasses.iconButtonContainer}:has(.${gridClasses.sortButton})`]: {
2625
+ width: 0,
2626
+ marginLeft: 0
2627
+ },
2628
+ // Carry the header band across the filler past the last column, over the body-coloured filler rule.
2629
+ [`&& .${gridClasses.columnHeaders} .${gridClasses.filler}, && .${gridClasses.columnHeaders} .${gridClasses.scrollbarFiller}`]: {
2630
+ backgroundColor: semanticColors.color.surface.dataGrid.header,
2631
+ borderBottomColor: semanticColors.color.border.primary
2632
+ },
2633
+ // Two classes so this outranks the base cell padding declared further down.
2634
+ [`& .${gridClasses.row} .${gridClasses.cell}`]: {
2635
+ paddingLeft: `${spacing.spacing_2}px`,
2636
+ paddingRight: `${spacing.spacing_2}px`
2637
+ },
2638
+ ...typeof consumerCompact === "function" ? consumerCompact(theme) : consumerCompact
2639
+ },
2357
2640
  ...getDataGridRowStyles(),
2358
2641
  border: `1px solid ${semanticColors.color.border.primary}`,
2359
2642
  // Target `& svg` (not `.MuiSvgIcon-root`) to match the lucide icons
@@ -2384,13 +2667,14 @@ function ModDataGrid({
2384
2667
  wordBreak: "break-word",
2385
2668
  hyphens: "auto"
2386
2669
  },
2387
- ...sx
2670
+ ...plainSx ? restSx : sx
2388
2671
  };
2389
2672
  return /* @__PURE__ */ jsx(
2390
2673
  DataGridPro,
2391
2674
  {
2392
2675
  apiRef,
2393
- columnHeaderHeight: height.table.header,
2676
+ columns,
2677
+ columnHeaderHeight: compact ? height.button.large : height.table.header,
2394
2678
  autoHeight,
2395
2679
  autoPageSize: !autoHeight,
2396
2680
  getRowHeight: () => "auto",
@@ -2664,6 +2948,7 @@ const StyledNavButton = styled(IconButton, {
2664
2948
  color: semanticColors.button.primary.bgPressed
2665
2949
  };
2666
2950
  return {
2951
+ ...touchTarget(theme),
2667
2952
  width: sizeStyles.width,
2668
2953
  height: sizeStyles.height,
2669
2954
  padding: sizeStyles.padding,
@@ -2909,10 +3194,12 @@ const ModDatePicker = ({
2909
3194
  size: "small"
2910
3195
  },
2911
3196
  openPickerButton: {
2912
- size: "small"
3197
+ size: "small",
3198
+ sx: (theme) => touchTarget(theme)
2913
3199
  },
2914
3200
  clearButton: {
2915
- size: "small"
3201
+ size: "small",
3202
+ sx: (theme) => touchTarget(theme)
2916
3203
  }
2917
3204
  };
2918
3205
  if (type === "range") {
@@ -3088,15 +3375,16 @@ const StyledLinearProgress$1 = styled(LinearProgress)({
3088
3375
  borderRadius: `${borderRadius.xS}px 0 0 ${borderRadius.xS}px`
3089
3376
  }
3090
3377
  });
3091
- const ActionButton = styled(IconButton)({
3378
+ const ActionButton = styled(IconButton)(({ theme }) => ({
3092
3379
  padding: 0,
3093
3380
  width: spacing.spacing_2,
3094
3381
  height: spacing.spacing_2,
3095
3382
  color: semanticColors.color.icon.utility,
3096
3383
  "&:hover": {
3097
3384
  backgroundColor: "transparent"
3098
- }
3099
- });
3385
+ },
3386
+ ...touchTarget(theme)
3387
+ }));
3100
3388
  const ModDownloadToast = ({
3101
3389
  title,
3102
3390
  fileName,
@@ -3116,10 +3404,22 @@ const ModDownloadToast = ({
3116
3404
  if (!hasActions) {
3117
3405
  return null;
3118
3406
  }
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
- ] });
3407
+ return /* @__PURE__ */ jsxs(
3408
+ Stack,
3409
+ {
3410
+ direction: "row",
3411
+ sx: (theme) => ({
3412
+ alignItems: "center",
3413
+ gap: `${spacing.spacing_2}px`,
3414
+ // Keeps the two buttons' 44px hit areas from overlapping.
3415
+ [theme.breakpoints.down("md")]: { gap: `${spacing.spacing_4}px` }
3416
+ }),
3417
+ children: [
3418
+ showPause && /* @__PURE__ */ jsx(ActionButton, { size: "small", onClick: onPause, "aria-label": "Pause download", children: /* @__PURE__ */ jsx(Minus, { size: spacing.spacing_2 }) }),
3419
+ showClose && /* @__PURE__ */ jsx(ActionButton, { size: "small", onClick: onClose, "aria-label": "Close", children: /* @__PURE__ */ jsx(X, { size: spacing.spacing_2 }) })
3420
+ ]
3421
+ }
3422
+ );
3123
3423
  };
3124
3424
  return /* @__PURE__ */ jsxs(StyledRoot$1, { elevation: 0, role: "status", ...props, children: [
3125
3425
  /* @__PURE__ */ jsxs(
@@ -3274,6 +3574,12 @@ const StyledChip$1 = styled(Chip, {
3274
3574
  [`&.${chipClasses.focusVisible}`]: {
3275
3575
  ...focusRingStyles,
3276
3576
  backgroundColor: selected ? semanticColors.button.secondary.bgPressed : semanticColors.color.surface.raised
3577
+ },
3578
+ ...touchTarget(theme),
3579
+ [theme.breakpoints.down("md")]: {
3580
+ position: "relative",
3581
+ // Keeps the clear icon above the chip's hit area so a tap on it clears rather than opens.
3582
+ [`& .${chipClasses.deleteIcon}`]: { position: "relative", zIndex: 1 }
3277
3583
  }
3278
3584
  }));
3279
3585
  const LabelContent = styled("span")({
@@ -3392,6 +3698,13 @@ const ModLoadingSpinner = ({
3392
3698
  };
3393
3699
  ModLoadingSpinner.displayName = "ModLoadingSpinner";
3394
3700
 
3701
+ const formatCount = (value, locales) => new Intl.NumberFormat(locales).format(value);
3702
+ const paginationRangeLabel = (page, pageSize, rowCount, locales) => {
3703
+ const start = page * pageSize + 1;
3704
+ const end = Math.min((page + 1) * pageSize, rowCount);
3705
+ return `${formatCount(start, locales)}-${formatCount(end, locales)} of ${formatCount(rowCount, locales)}`;
3706
+ };
3707
+
3395
3708
  const StyledFooter = styled(Box, {
3396
3709
  shouldForwardProp: (prop) => prop !== "showShadow"
3397
3710
  })(({ theme, showShadow = false }) => ({
@@ -3449,7 +3762,9 @@ const LoadMoreButton = styled("button")(({ theme }) => ({
3449
3762
  "&:disabled": {
3450
3763
  color: semanticColors.button.fgDisabled,
3451
3764
  cursor: "not-allowed"
3452
- }
3765
+ },
3766
+ ...touchTarget(theme),
3767
+ [theme.breakpoints.down("md")]: { position: "relative" }
3453
3768
  }));
3454
3769
  const SelectedText = styled("p")(({ theme }) => ({
3455
3770
  fontFamily: typography.fontFamily.body,
@@ -3515,10 +3830,7 @@ const ModFooter = ({
3515
3830
  return paginationInfo;
3516
3831
  }
3517
3832
  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}`;
3833
+ return paginationRangeLabel(paginationModel.page, paginationModel.pageSize, rowCount);
3522
3834
  }
3523
3835
  return "0-0 of 0";
3524
3836
  };
@@ -3598,7 +3910,7 @@ const ModFooter = ({
3598
3910
  }
3599
3911
  return /* @__PURE__ */ jsxs(StyledFooter, { showShadow, sx: { justifyContent: "space-between" }, children: [
3600
3912
  showSelected ? /* @__PURE__ */ jsxs(SelectedText, { children: [
3601
- selectedCount,
3913
+ formatCount(selectedCount),
3602
3914
  " selected"
3603
3915
  ] }) : /* @__PURE__ */ jsx(Box, {}),
3604
3916
  /* @__PURE__ */ jsxs(PaginationContainer, { children: [
@@ -3803,6 +4115,11 @@ const StyledInputBase = styled(InputBase, {
3803
4115
  transition: theme.transitions.create(["border-color", "background-color"], {
3804
4116
  duration: theme.transitions.duration.short
3805
4117
  }),
4118
+ // A tap on the hit area focuses the input; positioning keeps the input above it for caret taps.
4119
+ ...touchTarget(theme, { pseudo: "before" }),
4120
+ [theme.breakpoints.down("md")]: {
4121
+ [`& .${inputBaseClasses.input}`]: { position: "relative" }
4122
+ },
3806
4123
  [`& .${inputBaseClasses.input}`]: {
3807
4124
  padding: sizeStyles.padding,
3808
4125
  color: semanticColors.color.text.input,
@@ -3992,6 +4309,17 @@ const sizeConfig = {
3992
4309
  lineHeight: 1.5
3993
4310
  }
3994
4311
  };
4312
+ function compactRowHeight(theme, rowHeight, hasSecondaryText) {
4313
+ if (rowHeight >= TOUCH_TARGET) {
4314
+ return {};
4315
+ }
4316
+ return {
4317
+ [theme.breakpoints.down("md")]: {
4318
+ minHeight: TOUCH_TARGET,
4319
+ height: hasSecondaryText ? "auto" : TOUCH_TARGET
4320
+ }
4321
+ };
4322
+ }
3995
4323
  const StyledListItemButton$1 = styled(ListItemButton, {
3996
4324
  shouldForwardProp: (prop) => prop !== "size" && prop !== "primaryText" && prop !== "secondaryText" && prop !== "badge" && prop !== "icon" && prop !== "isLink" && prop !== "hasSecondaryText" && prop !== "trailingElement"
3997
4325
  })(({ theme, size = "medium", isLink, hasSecondaryText }) => {
@@ -3999,6 +4327,7 @@ const StyledListItemButton$1 = styled(ListItemButton, {
3999
4327
  return {
4000
4328
  minHeight: config.height,
4001
4329
  height: hasSecondaryText ? "auto" : config.height,
4330
+ ...compactRowHeight(theme, config.height, hasSecondaryText),
4002
4331
  paddingTop: config.paddingTop,
4003
4332
  paddingRight: config.paddingRight,
4004
4333
  paddingBottom: config.paddingBottom,
@@ -4182,6 +4511,9 @@ function navVariantStyles(theme) {
4182
4511
  paddingBottom: spacing.spacing_1,
4183
4512
  paddingLeft: spacing.spacing_2,
4184
4513
  paddingRight: spacing.spacing_2,
4514
+ [theme.breakpoints.down("md")]: {
4515
+ minHeight: TOUCH_TARGET
4516
+ },
4185
4517
  border: "none",
4186
4518
  color: semanticColors.color.text.secondary,
4187
4519
  backgroundColor: "transparent",
@@ -4319,13 +4651,27 @@ const ModMenu = ({ children, ...props }) => {
4319
4651
  };
4320
4652
  ModMenu.displayName = "ModMenu";
4321
4653
 
4322
- const StyledActionsCell = styled(GridActionsCell)({
4654
+ const StyledActionsCell = styled(GridActionsCell)(({ theme }) => ({
4323
4655
  gap: spacing.spacing_1,
4324
4656
  paddingLeft: spacing.spacing_1_1_2,
4325
- paddingRight: spacing.spacing_1_1_2
4657
+ paddingRight: spacing.spacing_1_1_2,
4658
+ // Below md a cell holds one button (a lone action or the menu trigger), so hit areas can't overlap.
4659
+ [`& .${iconButtonClasses.root}`]: touchTarget(theme)
4660
+ }));
4661
+ const actionsOf = (children, prefix = "") => Children.toArray(children).flatMap((child) => {
4662
+ if (!isValidElement(child)) {
4663
+ return [];
4664
+ }
4665
+ const key = `${prefix}${child.key}`;
4666
+ return child.type === Fragment$1 ? actionsOf(child.props.children, key) : [cloneElement(child, { key })];
4326
4667
  });
4327
- function ModActionsCell(props) {
4328
- return /* @__PURE__ */ jsx(StyledActionsCell, { ...props });
4668
+ function ModActionsCell({ children, ...props }) {
4669
+ const compact = useIsCompact();
4670
+ const actions = actionsOf(children);
4671
+ if (compact && actions.length > 1) {
4672
+ return /* @__PURE__ */ jsx(StyledActionsCell, { ...props, children: actions.map((action) => cloneElement(action, { showInMenu: true })) }, "compact");
4673
+ }
4674
+ return /* @__PURE__ */ jsx(StyledActionsCell, { ...props, children });
4329
4675
  }
4330
4676
 
4331
4677
  const StyledCell$1 = styled("div", {
@@ -4375,7 +4721,7 @@ const ModAvatarCell = ({
4375
4721
  };
4376
4722
  ModAvatarCell.displayName = "ModAvatarCell";
4377
4723
 
4378
- const StyledDialog = styled(Dialog)({
4724
+ const StyledDialog = styled(Dialog)(({ theme }) => ({
4379
4725
  [`& .${dialogClasses.paper}`]: {
4380
4726
  backgroundColor: semanticColors.color.surface.raised,
4381
4727
  borderRadius: borderRadius.card,
@@ -4385,16 +4731,33 @@ const StyledDialog = styled(Dialog)({
4385
4731
  [`& .${dialogClasses.container}`]: {
4386
4732
  alignItems: "center",
4387
4733
  justifyContent: "center"
4734
+ },
4735
+ [theme.breakpoints.down("sm")]: {
4736
+ [`& .${dialogClasses.paper}`]: {
4737
+ margin: 0,
4738
+ width: "100%",
4739
+ maxWidth: "100%",
4740
+ height: "100%",
4741
+ maxHeight: "100%",
4742
+ borderRadius: 0,
4743
+ border: "none"
4744
+ }
4388
4745
  }
4389
- });
4746
+ }));
4390
4747
  const ModModal = ({ children, ...props }) => {
4391
4748
  return /* @__PURE__ */ jsx(StyledDialog, { ...props, children });
4392
4749
  };
4393
4750
  ModModal.displayName = "ModModal";
4394
- const ModalHeaderRoot = styled("div")({
4751
+ const ModalHeaderRoot = styled("div")(({ theme }) => ({
4395
4752
  display: "flex",
4396
- flexDirection: "column"
4397
- });
4753
+ flexDirection: "column",
4754
+ // Header extras such as tabs otherwise end flush on the body text.
4755
+ [theme.breakpoints.down("md")]: {
4756
+ "&:has(> :nth-child(2))": {
4757
+ paddingBottom: spacing.spacing_2
4758
+ }
4759
+ }
4760
+ }));
4398
4761
  const ModalHeaderTitleRow = styled("div")({
4399
4762
  display: "flex",
4400
4763
  alignItems: "flex-start",
@@ -4439,7 +4802,8 @@ const ModalHeaderSubtitle = styled("p")(({ theme }) => ({
4439
4802
  lineHeight: 1.4,
4440
4803
  color: semanticColors.color.text.secondary
4441
4804
  }));
4442
- const StyledCloseButton = styled(IconButton)({
4805
+ const StyledCloseButton = styled(IconButton)(({ theme }) => ({
4806
+ ...touchTarget(theme),
4443
4807
  color: semanticColors.color.icon.utility,
4444
4808
  paddingTop: 0,
4445
4809
  paddingRight: 0,
@@ -4452,7 +4816,7 @@ const StyledCloseButton = styled(IconButton)({
4452
4816
  backgroundColor: "transparent",
4453
4817
  color: semanticColors.color.icon.utility
4454
4818
  }
4455
- });
4819
+ }));
4456
4820
  const ModModalHeader = ({
4457
4821
  title,
4458
4822
  subtitle,
@@ -4507,7 +4871,7 @@ const ModModalContent = ({ children }) => {
4507
4871
  return /* @__PURE__ */ jsx(StyledDialogContent, { dividers: false, children });
4508
4872
  };
4509
4873
  ModModalContent.displayName = "ModModalContent";
4510
- const StyledDialogActions = styled(DialogActions)({
4874
+ const StyledDialogActions = styled(DialogActions)(({ theme }) => ({
4511
4875
  paddingTop: 0,
4512
4876
  paddingRight: spacing.spacing_4,
4513
4877
  paddingBottom: spacing.spacing_4,
@@ -4519,15 +4883,38 @@ const StyledDialogActions = styled(DialogActions)({
4519
4883
  paddingTop: 0,
4520
4884
  paddingRight: spacing.spacing_4,
4521
4885
  paddingBottom: spacing.spacing_4,
4522
- paddingLeft: spacing.spacing_4
4886
+ paddingLeft: spacing.spacing_4,
4887
+ // A full-screen body scrolls; the border marks where it ends and the actions begin.
4888
+ [theme.breakpoints.down("sm")]: {
4889
+ paddingTop: spacing.spacing_2,
4890
+ borderTop: `1px solid ${semanticColors.color.border.primary}`
4891
+ }
4892
+ },
4893
+ [theme.breakpoints.down("sm")]: {
4894
+ flexWrap: "wrap",
4895
+ columnGap: spacing.spacing_2,
4896
+ rowGap: spacing.spacing_2,
4897
+ // MUI's sibling margin would inset the actions past the header's edge.
4898
+ [`&.${dialogActionsClasses.spacing} > :not(style) ~ :not(style)`]: {
4899
+ marginLeft: 0
4900
+ }
4523
4901
  }
4524
- });
4525
- const FooterActionsGroup = styled("div")({
4902
+ }));
4903
+ const FooterActionsGroup = styled("div")(({ theme }) => ({
4526
4904
  display: "flex",
4527
4905
  gap: spacing.spacing_2,
4528
4906
  alignItems: "center",
4529
- marginLeft: "auto"
4530
- });
4907
+ marginLeft: "auto",
4908
+ // Full-width stack with the primary action last, nearest the thumb.
4909
+ // A small leading icon shares the actions' row; wider leading content pushes them to a row of their own.
4910
+ [theme.breakpoints.down("sm")]: {
4911
+ flex: "1 1 0",
4912
+ minWidth: "50%",
4913
+ flexDirection: "column",
4914
+ alignItems: "stretch",
4915
+ marginLeft: 0
4916
+ }
4917
+ }));
4531
4918
  const ModModalFooter = ({ leadingContent, children }) => {
4532
4919
  return /* @__PURE__ */ jsxs(StyledDialogActions, { children: [
4533
4920
  leadingContent,
@@ -4861,6 +5248,23 @@ const StyledTooltip = styled(
4861
5248
  }
4862
5249
  };
4863
5250
  });
5251
+ const withCompactFallback = (placement, popper) => {
5252
+ const side = placement?.split("-")[0];
5253
+ if (side !== "left" && side !== "right") {
5254
+ return popper;
5255
+ }
5256
+ const flip = {
5257
+ name: "flip",
5258
+ options: { fallbackPlacements: [side === "left" ? "right" : "left", "top", "bottom"] }
5259
+ };
5260
+ return {
5261
+ ...popper,
5262
+ popperOptions: {
5263
+ ...popper?.popperOptions,
5264
+ modifiers: [flip, ...popper?.popperOptions?.modifiers ?? []]
5265
+ }
5266
+ };
5267
+ };
4864
5268
  const ModTooltip = ({
4865
5269
  variant = "light",
4866
5270
  title,
@@ -4868,8 +5272,22 @@ const ModTooltip = ({
4868
5272
  children,
4869
5273
  arrow = false,
4870
5274
  placement,
5275
+ describeChild,
5276
+ slotProps,
4871
5277
  ...props
4872
5278
  }) => {
5279
+ const accessibleName = typeof title === "string" && !description && !describeChild ? title : void 0;
5280
+ const isCompact = useIsCompact();
5281
+ const compactSlotProps = useMemo(() => {
5282
+ const popper = slotProps?.popper;
5283
+ if (!isCompact) {
5284
+ return slotProps;
5285
+ }
5286
+ return {
5287
+ ...slotProps,
5288
+ popper: typeof popper === "function" ? (ownerState) => withCompactFallback(placement, popper(ownerState)) : withCompactFallback(placement, popper)
5289
+ };
5290
+ }, [isCompact, placement, slotProps]);
4873
5291
  const titleContent = description ? /* @__PURE__ */ jsxs(Stack, { sx: { gap: `${spacing.spacing_1_4}px` }, children: [
4874
5292
  /* @__PURE__ */ jsx(Typography, { variant: "inherit", sx: { fontWeight: typography.fontWeight.semiBold }, children: title }),
4875
5293
  /* @__PURE__ */ jsx(Typography, { variant: "inherit", children: description })
@@ -4881,6 +5299,9 @@ const ModTooltip = ({
4881
5299
  title: titleContent,
4882
5300
  arrow,
4883
5301
  placement,
5302
+ describeChild,
5303
+ "aria-label": accessibleName,
5304
+ slotProps: compactSlotProps,
4884
5305
  ...props,
4885
5306
  children
4886
5307
  }
@@ -4979,6 +5400,7 @@ function ModNavigationItem({
4979
5400
  selected,
4980
5401
  "aria-label": collapsed && typeof label === "string" ? label : void 0,
4981
5402
  disableRipple: true,
5403
+ "data-mod-nav-item": "",
4982
5404
  ...props,
4983
5405
  children: [
4984
5406
  /* @__PURE__ */ jsx(IconPadding, { className: "mod-nav-icon-padding", children: icon }),
@@ -5005,6 +5427,71 @@ function ModNavigationItem({
5005
5427
  }
5006
5428
  ModNavigationItem.displayName = "ModNavigationItem";
5007
5429
 
5430
+ function OverflowActions({ actions = [] }) {
5431
+ const compact = useIsCompact();
5432
+ const [anchor, setAnchor] = useState(null);
5433
+ const menuId = useId();
5434
+ useEffect(() => {
5435
+ if (!compact) {
5436
+ setAnchor(null);
5437
+ }
5438
+ }, [compact]);
5439
+ if (actions.length === 0) {
5440
+ return null;
5441
+ }
5442
+ const [first, ...rest] = actions;
5443
+ const inline = compact && rest.length > 0 ? [first] : actions;
5444
+ const overflow = compact ? rest : [];
5445
+ return /* @__PURE__ */ jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: `${spacing.spacing_1}px` }, children: [
5446
+ inline.map((action) => /* @__PURE__ */ jsx(
5447
+ ModButton,
5448
+ {
5449
+ variant: action.variant,
5450
+ startIcon: action.icon,
5451
+ disabled: action.disabled,
5452
+ onClick: action.onClick,
5453
+ children: action.label
5454
+ },
5455
+ action.id
5456
+ )),
5457
+ overflow.length > 0 && /* @__PURE__ */ jsxs(Fragment, { children: [
5458
+ /* @__PURE__ */ jsx(
5459
+ ModIconButton,
5460
+ {
5461
+ "aria-label": "More actions",
5462
+ "aria-haspopup": "menu",
5463
+ "aria-expanded": anchor !== null,
5464
+ "aria-controls": anchor ? menuId : void 0,
5465
+ onClick: (event) => setAnchor(event.currentTarget),
5466
+ children: /* @__PURE__ */ jsx(EllipsisVertical, {})
5467
+ }
5468
+ ),
5469
+ /* @__PURE__ */ jsx(
5470
+ ModMenu,
5471
+ {
5472
+ anchorEl: anchor,
5473
+ open: anchor !== null,
5474
+ onClose: () => setAnchor(null),
5475
+ slotProps: { list: { id: menuId } },
5476
+ children: overflow.map((action) => /* @__PURE__ */ jsx(
5477
+ ModMenuItem,
5478
+ {
5479
+ icon: action.icon,
5480
+ disabled: action.disabled,
5481
+ onClick: () => {
5482
+ setAnchor(null);
5483
+ action.onClick();
5484
+ },
5485
+ children: action.label
5486
+ },
5487
+ action.id
5488
+ ))
5489
+ }
5490
+ )
5491
+ ] })
5492
+ ] });
5493
+ }
5494
+
5008
5495
  const StickyHeader = styled(Box)(({ theme }) => ({
5009
5496
  position: "sticky",
5010
5497
  top: 0,
@@ -5026,6 +5513,7 @@ function ModPageContent({
5026
5513
  subtitle,
5027
5514
  breadcrumbs,
5028
5515
  action,
5516
+ actions,
5029
5517
  sticky = false,
5030
5518
  contentMaxWidth: contentMaxWidthProp = false,
5031
5519
  centerContent = true,
@@ -5084,13 +5572,19 @@ function ModPageContent({
5084
5572
  Stack,
5085
5573
  {
5086
5574
  direction: "row",
5087
- sx: { justifyContent: "space-between", alignItems: "flex-start", gap: "1rem" },
5575
+ sx: (theme) => ({
5576
+ justifyContent: "space-between",
5577
+ alignItems: "flex-start",
5578
+ gap: "1rem",
5579
+ [theme.breakpoints.down("md")]: { flexWrap: "wrap" }
5580
+ }),
5088
5581
  children: [
5089
5582
  /* @__PURE__ */ jsxs(Stack, { sx: { gap: "0.5rem", flexGrow: 1 }, children: [
5090
5583
  typeof pageTitle === "string" ? /* @__PURE__ */ jsx(PageTitle, { component: "h1", children: pageTitle }) : pageTitle,
5091
5584
  subtitle && (typeof subtitle === "string" ? /* @__PURE__ */ jsx(Subtitle, { variant: "caption", children: subtitle }) : subtitle)
5092
5585
  ] }),
5093
- action
5586
+ action,
5587
+ /* @__PURE__ */ jsx(OverflowActions, { actions })
5094
5588
  ]
5095
5589
  }
5096
5590
  )
@@ -5249,7 +5743,16 @@ function ModPaginatedGrid({
5249
5743
  }
5250
5744
  ModPaginatedGrid.displayName = "ModPaginatedGrid";
5251
5745
 
5746
+ const StyledQuickFilter = styled(QuickFilter)(({ theme }) => ({
5747
+ [theme.breakpoints.down("sm")]: {
5748
+ flex: "1 1 100%",
5749
+ minWidth: 0
5750
+ }
5751
+ }));
5252
5752
  const StyledTextField = styled(TextField)(({ theme }) => ({
5753
+ [theme.breakpoints.down("sm")]: {
5754
+ width: "100%"
5755
+ },
5253
5756
  [`& .${inputBaseClasses.root}`]: {
5254
5757
  height: spacing.spacing_5,
5255
5758
  fontSize: theme.typography.pxToRem(typography.fontSize.default),
@@ -5261,6 +5764,9 @@ const StyledTextField = styled(TextField)(({ theme }) => ({
5261
5764
  paddingLeft: spacing.spacing_1_1_2,
5262
5765
  paddingRight: spacing.spacing_1_1_2,
5263
5766
  gap: spacing.spacing_1_2,
5767
+ [theme.breakpoints.down("md")]: {
5768
+ height: TOUCH_TARGET
5769
+ },
5264
5770
  "&::before, &::after": {
5265
5771
  display: "none"
5266
5772
  },
@@ -5295,6 +5801,7 @@ const StyledTextField = styled(TextField)(({ theme }) => ({
5295
5801
  marginRight: 0
5296
5802
  },
5297
5803
  [`& .${iconButtonClasses.root}`]: {
5804
+ ...touchTarget(theme),
5298
5805
  color: semanticColors.color.icon.placeholder,
5299
5806
  "&:hover": {
5300
5807
  backgroundColor: semanticColors.color.icon.bgHover,
@@ -5311,7 +5818,7 @@ const ModQuickFilter = ({
5311
5818
  onKeyDown,
5312
5819
  autoFocus = false
5313
5820
  }) => {
5314
- return /* @__PURE__ */ jsx(QuickFilter, { children: /* @__PURE__ */ jsx(
5821
+ return /* @__PURE__ */ jsx(StyledQuickFilter, { children: /* @__PURE__ */ jsx(
5315
5822
  QuickFilterControl,
5316
5823
  {
5317
5824
  onKeyDown,
@@ -5451,7 +5958,7 @@ const HelperText$1 = styled("span")(({ theme, size = "medium" }) => ({
5451
5958
  }));
5452
5959
  const StyledRadio = styled(Radio, {
5453
5960
  shouldForwardProp: (prop) => prop !== "size"
5454
- })(({ size = "medium" }) => {
5961
+ })(({ theme, size = "medium" }) => {
5455
5962
  const dimensions = size === "small" ? 16 : 20;
5456
5963
  const radius = size === "small" ? 8 : 10;
5457
5964
  return {
@@ -5472,6 +5979,7 @@ const StyledRadio = styled(Radio, {
5472
5979
  width: dimensions,
5473
5980
  height: dimensions
5474
5981
  },
5982
+ "& input": inputTouchTarget(theme),
5475
5983
  // Focus state for keyboard navigation
5476
5984
  [`&.${buttonBaseClasses.focusVisible}`]: {
5477
5985
  // Unchecked focus state: white background
@@ -5600,6 +6108,11 @@ const StyledSearchChip = styled(InputBase, {
5600
6108
  transition: theme.transitions.create(["border-color", "background-color"], {
5601
6109
  duration: theme.transitions.duration.short
5602
6110
  }),
6111
+ // A tap on the hit area focuses the input; positioning keeps the input above it for caret taps.
6112
+ ...touchTarget(theme, { pseudo: "before" }),
6113
+ [theme.breakpoints.down("md")]: {
6114
+ [`& .${inputBaseClasses.input}`]: { position: "relative" }
6115
+ },
5603
6116
  [`& .${inputBaseClasses.input}`]: {
5604
6117
  padding: `0 ${spacing.spacing_1_4}px`,
5605
6118
  height: "auto",
@@ -5632,7 +6145,8 @@ const StyledSearchChip = styled(InputBase, {
5632
6145
  outline: `3px solid ${semanticColors.color.action.tint}`
5633
6146
  }
5634
6147
  }));
5635
- const ClearButton = styled(ButtonBase)({
6148
+ const ClearButton = styled(ButtonBase)(({ theme }) => ({
6149
+ ...touchTarget(theme),
5636
6150
  display: "inline-flex",
5637
6151
  alignItems: "center",
5638
6152
  justifyContent: "center",
@@ -5648,7 +6162,7 @@ const ClearButton = styled(ButtonBase)({
5648
6162
  "&:hover": {
5649
6163
  backgroundColor: semanticColors.button.secondary.bgHover
5650
6164
  }
5651
- });
6165
+ }));
5652
6166
  const ModSearchChip = ({ onClear, value, ...props }) => {
5653
6167
  const hasValue = Boolean(value && String(value).length > 0);
5654
6168
  return /* @__PURE__ */ jsx(
@@ -5761,7 +6275,7 @@ const HeaderRegion = styled("div")({
5761
6275
  flexDirection: "column",
5762
6276
  alignItems: "center"
5763
6277
  });
5764
- const Scroll = styled("div")({
6278
+ const Scroll = styled("div")(({ theme }) => ({
5765
6279
  flex: 1,
5766
6280
  minHeight: 0,
5767
6281
  overflowY: "auto",
@@ -5775,8 +6289,12 @@ const Scroll = styled("div")({
5775
6289
  // Keeps Tab from parking an item under a fade, which hides its focus ring.
5776
6290
  scrollPaddingBlock: spacing.spacing_3,
5777
6291
  paddingInline: spacing.spacing_1,
5778
- "&::-webkit-scrollbar": { display: "none" }
5779
- });
6292
+ "&::-webkit-scrollbar": { display: "none" },
6293
+ // Taller touch rows end flush on the footer's logo; the list stops short of it.
6294
+ [theme.breakpoints.down("md")]: {
6295
+ marginBottom: spacing.spacing_2
6296
+ }
6297
+ }));
5780
6298
  const FooterRegion = styled("div")({
5781
6299
  position: "relative",
5782
6300
  flexShrink: 0,
@@ -5814,6 +6332,7 @@ const Fade = styled("div", {
5814
6332
  }
5815
6333
  }));
5816
6334
  const Handle = styled(ButtonBase)(({ theme }) => ({
6335
+ ...touchTarget(theme),
5817
6336
  position: "absolute",
5818
6337
  right: 0,
5819
6338
  bottom: spacing.spacing_1,
@@ -5834,7 +6353,7 @@ const Handle = styled(ButtonBase)(({ theme }) => ({
5834
6353
  borderColor: semanticColors.color.border.primary
5835
6354
  }
5836
6355
  }));
5837
- function useScrollEdges() {
6356
+ function useScrollEdges$1() {
5838
6357
  const ref = useRef(null);
5839
6358
  const contentRef = useRef(null);
5840
6359
  const [edges, setEdges] = useState({
@@ -5867,6 +6386,33 @@ function useScrollEdges() {
5867
6386
  }, [measure]);
5868
6387
  return { ref, contentRef, onScroll: measure, ...edges };
5869
6388
  }
6389
+ function Rail({ collapsed, header, footer, children, className, id, ariaLabel }) {
6390
+ const { ref: scrollRef, contentRef, onScroll, canScrollUp, canScrollDown } = useScrollEdges$1();
6391
+ return /* @__PURE__ */ jsxs(Root, { collapsed, "aria-label": ariaLabel, className, id, children: [
6392
+ /* @__PURE__ */ jsxs(HeaderRegion, { children: [
6393
+ header,
6394
+ /* @__PURE__ */ jsx(Fade, { edge: "header", visible: canScrollUp })
6395
+ ] }),
6396
+ /* @__PURE__ */ jsx(Scroll, { ref: scrollRef, onScroll, "data-testid": "mod-side-nav-scroll", children: /* @__PURE__ */ jsx(
6397
+ Stack,
6398
+ {
6399
+ ref: contentRef,
6400
+ sx: {
6401
+ alignItems: "center",
6402
+ gap: `${spacing.spacing_1_2}px`,
6403
+ // Keeps `flex: 1` / `margin-block-start: auto` working on
6404
+ // children, as when Scroll was the flex container.
6405
+ minHeight: "100%"
6406
+ },
6407
+ children
6408
+ }
6409
+ ) }),
6410
+ /* @__PURE__ */ jsxs(FooterRegion, { children: [
6411
+ /* @__PURE__ */ jsx(Fade, { edge: "footer", visible: canScrollDown }),
6412
+ footer
6413
+ ] })
6414
+ ] });
6415
+ }
5870
6416
  function ModSideNav({
5871
6417
  collapsed,
5872
6418
  onCollapsedChange,
@@ -5875,36 +6421,57 @@ function ModSideNav({
5875
6421
  children,
5876
6422
  className,
5877
6423
  id,
5878
- "aria-label": ariaLabel
6424
+ "aria-label": ariaLabel,
6425
+ mobileOpen = false,
6426
+ onMobileOpenChange
5879
6427
  }) {
5880
- const contextValue = useMemo(() => ({ collapsed }), [collapsed]);
5881
- const { ref: scrollRef, contentRef, onScroll, canScrollUp, canScrollDown } = useScrollEdges();
6428
+ const compact = useIsCompact();
6429
+ const asDrawer = compact && onMobileOpenChange !== void 0;
6430
+ const railCollapsed = asDrawer ? false : collapsed;
6431
+ useEffect(() => {
6432
+ if (!compact && mobileOpen) {
6433
+ onMobileOpenChange?.(false);
6434
+ }
6435
+ }, [compact, mobileOpen, onMobileOpenChange]);
6436
+ const contextValue = useMemo(() => ({ collapsed: railCollapsed }), [railCollapsed]);
6437
+ const rail = /* @__PURE__ */ jsx(
6438
+ Rail,
6439
+ {
6440
+ collapsed: railCollapsed,
6441
+ header,
6442
+ footer,
6443
+ className,
6444
+ id,
6445
+ ariaLabel,
6446
+ children
6447
+ }
6448
+ );
6449
+ if (asDrawer) {
6450
+ const closeOnNavigate = (event) => {
6451
+ const target = event.target;
6452
+ const hit = target.closest("a[href], [data-mod-nav-item]");
6453
+ const popup = target.closest('[aria-haspopup]:not([aria-haspopup="false"]), [aria-expanded]');
6454
+ if (hit && !(popup && hit.contains(popup))) {
6455
+ onMobileOpenChange?.(false);
6456
+ }
6457
+ };
6458
+ return /* @__PURE__ */ jsx(ModSideNavContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsx(
6459
+ Drawer,
6460
+ {
6461
+ variant: "temporary",
6462
+ anchor: "left",
6463
+ open: mobileOpen,
6464
+ onClose: () => onMobileOpenChange?.(false),
6465
+ slotProps: {
6466
+ paper: { sx: { backgroundColor: RAIL_BACKGROUND, backgroundImage: "none" } }
6467
+ },
6468
+ children: /* @__PURE__ */ jsx(Frame, { collapsed: false, onClickCapture: closeOnNavigate, children: rail })
6469
+ }
6470
+ ) });
6471
+ }
5882
6472
  const HandleIcon = collapsed ? ChevronRight : ChevronLeft;
5883
6473
  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
- ] }),
6474
+ rail,
5908
6475
  /* @__PURE__ */ jsx(
5909
6476
  Handle,
5910
6477
  {
@@ -5943,7 +6510,9 @@ const StyledSkeleton = styled(Skeleton, {
5943
6510
  "&::after": {
5944
6511
  animationDirection: "reverse"
5945
6512
  }
5946
- }
6513
+ },
6514
+ // A fixed width sized for desktop yields to a phone-width container.
6515
+ [theme.breakpoints.down("md")]: { maxWidth: "100%" }
5947
6516
  }));
5948
6517
  const ModSkeleton = ({
5949
6518
  colorTheme = "light",
@@ -6070,20 +6639,91 @@ const ModTabPanel = ({
6070
6639
  };
6071
6640
  ModTabPanel.displayName = "ModTabPanel";
6072
6641
 
6073
- const ModTabs = styled(MuiTabs)(() => ({
6642
+ const EDGE_FADE = spacing.spacing_4;
6643
+ const StyledTabs = styled(MuiTabs)(({ theme }) => ({
6074
6644
  minHeight: spacing.spacing_5,
6645
+ [theme.breakpoints.down("md")]: {
6646
+ minHeight: TOUCH_TARGET
6647
+ },
6075
6648
  [`& .${tabsClasses.indicator}`]: {
6076
6649
  backgroundColor: semanticColors.button.nav.borderActive,
6077
- height: 2
6650
+ height: 2,
6651
+ // The indicator overlaps the selected tab's bottom edge; let those taps reach the tab.
6652
+ [theme.breakpoints.down("md")]: {
6653
+ pointerEvents: "none"
6654
+ }
6078
6655
  },
6079
6656
  [`& .${tabsClasses.list}`]: {
6080
6657
  gap: 0
6658
+ },
6659
+ // A row that scrolls fades out at each edge it can still scroll toward (set by ModTabs below md).
6660
+ [theme.breakpoints.down("md")]: {
6661
+ [`&[data-fade-end] .${tabsClasses.scroller}`]: {
6662
+ maskImage: `linear-gradient(to right, black calc(100% - ${EDGE_FADE}px), transparent)`
6663
+ },
6664
+ [`&[data-fade-start] .${tabsClasses.scroller}`]: {
6665
+ maskImage: `linear-gradient(to left, black calc(100% - ${EDGE_FADE}px), transparent)`
6666
+ },
6667
+ [`&[data-fade-start][data-fade-end] .${tabsClasses.scroller}`]: {
6668
+ maskImage: `linear-gradient(to right, transparent, black ${EDGE_FADE}px, black calc(100% - ${EDGE_FADE}px), transparent)`
6669
+ }
6081
6670
  }
6082
6671
  }));
6672
+ function useScrollEdges(active) {
6673
+ const rootRef = useRef(null);
6674
+ const [edges, setEdges] = useState({ start: false, end: false });
6675
+ useEffect(() => {
6676
+ const scroller = rootRef.current?.querySelector(`.${tabsClasses.scroller}`);
6677
+ if (!active || !scroller) {
6678
+ setEdges((prev) => prev.start || prev.end ? { start: false, end: false } : prev);
6679
+ return;
6680
+ }
6681
+ const measure = () => {
6682
+ const left = Math.abs(scroller.scrollLeft);
6683
+ const start = left > 0;
6684
+ const end = left + scroller.clientWidth < scroller.scrollWidth - 1;
6685
+ setEdges((prev) => prev.start === start && prev.end === end ? prev : { start, end });
6686
+ };
6687
+ measure();
6688
+ scroller.addEventListener("scroll", measure, { passive: true });
6689
+ const resize = new ResizeObserver(measure);
6690
+ resize.observe(scroller);
6691
+ for (const child of scroller.children) {
6692
+ resize.observe(child);
6693
+ }
6694
+ return () => {
6695
+ scroller.removeEventListener("scroll", measure);
6696
+ resize.disconnect();
6697
+ };
6698
+ }, [active]);
6699
+ return { rootRef, edges };
6700
+ }
6701
+ const ModTabs = forwardRef(function ModTabs2(props, ref) {
6702
+ const compact = useIsCompact();
6703
+ const variant = props.variant ?? "standard";
6704
+ const scrollable = compact && variant === "standard";
6705
+ const arrowless = compact && variant === "scrollable" && !props.allowScrollButtonsMobile;
6706
+ const { rootRef, edges } = useScrollEdges(compact && variant !== "fullWidth");
6707
+ const forkedRef = useForkRef(ref, rootRef);
6708
+ return /* @__PURE__ */ jsx(
6709
+ StyledTabs,
6710
+ {
6711
+ ref: forkedRef,
6712
+ ...props,
6713
+ ...scrollable && { variant: "scrollable", scrollButtons: false, centered: false },
6714
+ ...arrowless && { scrollButtons: false },
6715
+ "data-fade-start": edges.start || void 0,
6716
+ "data-fade-end": edges.end || void 0
6717
+ }
6718
+ );
6719
+ });
6083
6720
  ModTabs.displayName = "ModTabs";
6084
6721
  const StyledTab = styled(MuiTab)(({ theme }) => ({
6085
6722
  minHeight: spacing.spacing_5,
6086
6723
  padding: `${spacing.spacing_1}px ${spacing.spacing_2}px`,
6724
+ [theme.breakpoints.down("md")]: {
6725
+ minHeight: TOUCH_TARGET
6726
+ },
6087
6727
  textTransform: "none",
6088
6728
  fontWeight: typography.fontWeight.regular,
6089
6729
  fontSize: theme.typography.pxToRem(14),
@@ -6219,6 +6859,10 @@ const StyledAlert = styled(Alert, {
6219
6859
  [`& .${alertClasses.action}`]: {
6220
6860
  padding: 0,
6221
6861
  marginRight: 0
6862
+ },
6863
+ // MUI's message scrolls (overflow: auto), which would clip the action buttons' hit areas.
6864
+ [theme.breakpoints.down("md")]: {
6865
+ [`& .${alertClasses.message}`]: { overflow: "visible" }
6222
6866
  }
6223
6867
  };
6224
6868
  });
@@ -6254,7 +6898,8 @@ const ToastButton = styled(Button, {
6254
6898
  "&:hover": {
6255
6899
  backgroundColor: "transparent",
6256
6900
  textDecoration: "underline"
6257
- }
6901
+ },
6902
+ ...touchTarget(theme)
6258
6903
  }));
6259
6904
  const ModToast = ({
6260
6905
  intent = "neutral",
@@ -6276,7 +6921,7 @@ const ModToast = ({
6276
6921
  {
6277
6922
  size: "small",
6278
6923
  onClick: onClose,
6279
- sx: { color: semanticColors.color.icon.utility },
6924
+ sx: (theme) => ({ color: semanticColors.color.icon.utility, ...touchTarget(theme) }),
6280
6925
  children: /* @__PURE__ */ jsx(X, { size: 16 })
6281
6926
  }
6282
6927
  ) : void 0,
@@ -6400,6 +7045,9 @@ const StyledSwitch = styled(Switch, {
6400
7045
  color: semanticColors.input.bgDisabled
6401
7046
  }
6402
7047
  },
7048
+ [`& .${switchClasses.switchBase} .${switchClasses.input}`]: inputTouchTarget(theme, {
7049
+ heightOnly: true
7050
+ }),
6403
7051
  // Thumb
6404
7052
  [`& .${switchClasses.thumb}`]: {
6405
7053
  width: config.thumbSize,
@@ -6462,7 +7110,12 @@ const StyledToggleButton$1 = styled(MuiToggleButton, {
6462
7110
  ({ theme, toggleSize = "medium", toggleVariant = "default" }) => {
6463
7111
  const segmented = toggleVariant === "segmented";
6464
7112
  return {
7113
+ ...touchTarget(theme),
6465
7114
  height: sizeStyles[toggleSize].height,
7115
+ // Both sizes grow to a full touch row below md; the type size stays.
7116
+ [theme.breakpoints.down("md")]: {
7117
+ height: TOUCH_TARGET
7118
+ },
6466
7119
  padding: `0 ${spacing.spacing_1_1_2}px`,
6467
7120
  fontFamily: typography.fontFamily.body,
6468
7121
  fontSize: theme.typography.pxToRem(sizeStyles[toggleSize].fontSize),
@@ -6508,7 +7161,7 @@ ModToggleButton.displayName = "ModToggleButton";
6508
7161
 
6509
7162
  const StyledToggleButtonGroup$1 = styled(MuiToggleButtonGroup, {
6510
7163
  shouldForwardProp: (prop) => prop !== "groupVariant"
6511
- })(({ groupVariant = "default" }) => {
7164
+ })(({ theme, groupVariant = "default" }) => {
6512
7165
  const segmented = groupVariant === "segmented";
6513
7166
  return {
6514
7167
  display: "inline-flex",
@@ -6522,7 +7175,19 @@ const StyledToggleButtonGroup$1 = styled(MuiToggleButtonGroup, {
6522
7175
  } : {
6523
7176
  borderRadius: borderRadius.button,
6524
7177
  border: `1px solid ${semanticColors.color.border.primary}`,
6525
- overflow: "hidden"
7178
+ overflow: "hidden",
7179
+ // The clip would cut the buttons' touch targets; round the end buttons to the inner (minus 1px border) radius.
7180
+ [theme.breakpoints.down("md")]: {
7181
+ overflow: "visible",
7182
+ [`& .${toggleButtonClasses.root}:first-of-type`]: {
7183
+ borderTopLeftRadius: borderRadius.button - 1,
7184
+ borderBottomLeftRadius: borderRadius.button - 1
7185
+ },
7186
+ [`& .${toggleButtonClasses.root}:last-of-type`]: {
7187
+ borderTopRightRadius: borderRadius.button - 1,
7188
+ borderBottomRightRadius: borderRadius.button - 1
7189
+ }
7190
+ }
6526
7191
  },
6527
7192
  // Default fuses the children (square inner corners, no gap); segmented
6528
7193
  // keeps each button as its own rounded pill.
@@ -6561,10 +7226,26 @@ const StyledToolbar = styled(Toolbar)(({ theme }) => ({
6561
7226
  // 16px
6562
7227
  [theme.breakpoints.down("sm")]: {
6563
7228
  flexWrap: "wrap"
7229
+ },
7230
+ // Controls are documented as grouped in Boxes; let those groups wrap too.
7231
+ [theme.breakpoints.down("md")]: {
7232
+ rowGap: spacing.spacing_1,
7233
+ "& > *": { flexWrap: "wrap" }
7234
+ },
7235
+ // On tablets a group can wrap beside others; they centre on its first line, not on its middle.
7236
+ // Every group is at least one control row tall (the QuickFilter's 44px) and bare controls centre
7237
+ // in it. Phones give the QuickFilter a row of its own, so groups there never share a line.
7238
+ [theme.breakpoints.between("sm", "md")]: {
7239
+ alignItems: "flex-start",
7240
+ "& > div": { minHeight: TOUCH_TARGET },
7241
+ "& > :not(div)": { alignSelf: "center" }
6564
7242
  }
6565
7243
  }));
6566
- const ModToolbar = ({ children, ...props }) => {
6567
- return /* @__PURE__ */ jsx(StyledToolbar, { ...props, children });
7244
+ const ModToolbar = ({ children, actions, ...props }) => {
7245
+ return /* @__PURE__ */ jsxs(StyledToolbar, { ...props, children: [
7246
+ children,
7247
+ /* @__PURE__ */ jsx(OverflowActions, { actions })
7248
+ ] });
6568
7249
  };
6569
7250
  ModToolbar.displayName = "ModToolbar";
6570
7251
 
@@ -6576,9 +7257,88 @@ const ModTreeItemLabel = (props) => {
6576
7257
  (item?.statusIcon ?? item?.icon) && /* @__PURE__ */ jsx(ItemIcon, { children: item?.statusIcon ?? item?.icon }),
6577
7258
  /* @__PURE__ */ jsx(ItemLabel, { children }),
6578
7259
  item?.secondaryLabel && /* @__PURE__ */ jsx(ItemSecondaryLabel, { children: item.secondaryLabel }),
6579
- item?.endAction && /* @__PURE__ */ jsx(ItemEndAction, { children: item.endAction })
7260
+ item?.endAction && /* @__PURE__ */ jsx(ItemEndAction, { children: item.endAction }),
7261
+ item?.endActions && item.endActions.length > 0 && /* @__PURE__ */ jsx(ItemEndAction, { children: /* @__PURE__ */ jsx(TreeEndActions, { actions: item.endActions }) })
6580
7262
  ] });
6581
7263
  };
7264
+ const stop = (event) => event.stopPropagation();
7265
+ const EndActionButton = styled(ButtonBase)(({ theme }) => ({
7266
+ ...touchTarget(theme),
7267
+ color: "inherit",
7268
+ "&:hover": {
7269
+ color: semanticColors.color.icon.default
7270
+ },
7271
+ [`&.${buttonBaseClasses.focusVisible}`]: {
7272
+ outline: `2px solid ${semanticColors.color.border.focus}`
7273
+ }
7274
+ }));
7275
+ function TreeEndActions({ actions }) {
7276
+ const compact = useIsCompact();
7277
+ const [anchor, setAnchor] = useState(null);
7278
+ const menuId = useId();
7279
+ useEffect(() => {
7280
+ if (!compact) {
7281
+ setAnchor(null);
7282
+ }
7283
+ }, [compact]);
7284
+ if (!compact || actions.length === 1) {
7285
+ return actions.map((action) => /* @__PURE__ */ jsx(
7286
+ EndActionButton,
7287
+ {
7288
+ "aria-label": action.label,
7289
+ disabled: action.disabled,
7290
+ onKeyDown: stop,
7291
+ onClick: (event) => {
7292
+ stop(event);
7293
+ action.onClick();
7294
+ },
7295
+ children: action.icon
7296
+ },
7297
+ action.id
7298
+ ));
7299
+ }
7300
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
7301
+ /* @__PURE__ */ jsx(
7302
+ EndActionButton,
7303
+ {
7304
+ "aria-label": "More actions",
7305
+ "aria-haspopup": "menu",
7306
+ "aria-expanded": anchor !== null,
7307
+ "aria-controls": anchor ? menuId : void 0,
7308
+ onKeyDown: stop,
7309
+ onClick: (event) => {
7310
+ stop(event);
7311
+ setAnchor(event.currentTarget);
7312
+ },
7313
+ children: /* @__PURE__ */ jsx(EllipsisVertical, {})
7314
+ }
7315
+ ),
7316
+ /* @__PURE__ */ jsx(
7317
+ ModMenu,
7318
+ {
7319
+ anchorEl: anchor,
7320
+ open: anchor !== null,
7321
+ onClose: () => setAnchor(null),
7322
+ onClick: stop,
7323
+ onKeyDown: stop,
7324
+ slotProps: { list: { id: menuId } },
7325
+ children: actions.map((action) => /* @__PURE__ */ jsx(
7326
+ ModMenuItem,
7327
+ {
7328
+ icon: action.icon,
7329
+ disabled: action.disabled,
7330
+ onClick: () => {
7331
+ setAnchor(null);
7332
+ action.onClick();
7333
+ },
7334
+ children: action.label
7335
+ },
7336
+ action.id
7337
+ ))
7338
+ }
7339
+ )
7340
+ ] });
7341
+ }
6582
7342
  const ModTreeItem = forwardRef(function ModTreeItem2({ slots, slotProps, ...props }, ref) {
6583
7343
  return /* @__PURE__ */ jsx(
6584
7344
  TreeItem,
@@ -6656,9 +7416,12 @@ const ModTreeView = ({ slots, ...props }) => {
6656
7416
  ModTreeView.displayName = "ModTreeView";
6657
7417
  const CollapseIcon = () => /* @__PURE__ */ jsx(ChevronDown, { size: 16 });
6658
7418
  const ExpandIcon = () => /* @__PURE__ */ jsx(ChevronRight, { size: 16 });
6659
- const StyledTreeView = styled(RichTreeViewPro)({
7419
+ const StyledTreeView = styled(RichTreeViewPro)(({ theme }) => ({
6660
7420
  [`& .${treeItemClasses.content}`]: {
6661
7421
  height: 28,
7422
+ [theme.breakpoints.down("md")]: {
7423
+ height: TOUCH_TARGET
7424
+ },
6662
7425
  gap: spacing.spacing_1_2,
6663
7426
  paddingLeft: spacing.spacing_1,
6664
7427
  paddingRight: spacing.spacing_1,
@@ -6697,7 +7460,7 @@ const StyledTreeView = styled(RichTreeViewPro)({
6697
7460
  borderLeft: `1px solid ${semanticColors.color.border.primary}`,
6698
7461
  marginLeft: spacing.spacing_1_1_4
6699
7462
  }
6700
- });
7463
+ }));
6701
7464
 
6702
7465
  const TOGGLE_BUTTON_BORDER_RADIUS = 14;
6703
7466
  const StyledToggleButtonGroup = styled(MuiToggleButtonGroup)(({ theme }) => ({
@@ -6716,11 +7479,22 @@ const StyledToggleButtonGroup = styled(MuiToggleButtonGroup)(({ theme }) => ({
6716
7479
  "&:not(:last-of-type)": {
6717
7480
  borderRadius: TOGGLE_BUTTON_BORDER_RADIUS
6718
7481
  }
7482
+ },
7483
+ // MUI outlines disabled toggles and its vertical grouping drops each later top edge, which reads
7484
+ // as clipped borders; disabled toggles stay borderless like enabled ones.
7485
+ [theme.breakpoints.down("md")]: {
7486
+ [`& .${toggleButtonGroupClasses.grouped}.${toggleButtonClasses.disabled}`]: {
7487
+ border: "none"
7488
+ }
6719
7489
  }
6720
7490
  }));
6721
7491
  const StyledToggleButton = styled(MuiToggleButton)(({ theme }) => ({
6722
7492
  padding: theme.spacing(0.625),
6723
7493
  minWidth: "auto",
7494
+ [theme.breakpoints.down("md")]: {
7495
+ minWidth: TOUCH_TARGET,
7496
+ minHeight: TOUCH_TARGET
7497
+ },
6724
7498
  color: semanticColors.color.icon.default,
6725
7499
  border: "none",
6726
7500
  "& svg": {
@@ -6784,5 +7558,5 @@ ModVibratingDot.displayName = "ModVibratingDot";
6784
7558
 
6785
7559
  const version = '0.0.0-development';
6786
7560
 
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 };
7561
+ 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, useIsCompact, version };
6788
7562
  //# sourceMappingURL=index.esm.js.map