@12-apps/ui 6.98.0 → 6.98.1

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.
Files changed (80) hide show
  1. package/dist/_internal/components/data-display/Alert/Alert.content.js +4 -2
  2. package/dist/_internal/components/data-display/Alert/Alert.ink.js +27 -0
  3. package/dist/_internal/components/data-display/Alert/Alert.js +5 -4
  4. package/dist/_internal/components/data-display/Alert/Alert.metrics.js +5 -1
  5. package/dist/_internal/components/data-display/Alert/Alert.styles.js +2 -2
  6. package/dist/_internal/components/data-display/Banner/Banner.js +3 -3
  7. package/dist/_internal/components/data-display/Banner/Banner.styles.js +2 -2
  8. package/dist/_internal/components/data-display/CardKit/card-actions-context.js +7 -6
  9. package/dist/_internal/components/data-display/CardKit/use-remove-confirm.js +8 -7
  10. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +8 -7
  11. package/dist/_internal/components/data-display/DataViews/data-views-table-parts.js +7 -6
  12. package/dist/_internal/components/data-display/index.js +11 -7
  13. package/dist/_internal/components/feedback/NotificationStatusNotice/NotificationStatusNotice.js +6 -5
  14. package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.js +9 -8
  15. package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.overview.js +8 -7
  16. package/dist/_internal/components/feedback/SequenceResolver/SequenceResolver.parts.js +7 -6
  17. package/dist/_internal/components/feedback/index.js +10 -9
  18. package/dist/_internal/components/index.js +15 -11
  19. package/dist/{chunk-QIP37Y2C.js → chunk-2RC6EAGD.js} +2 -2
  20. package/dist/{chunk-64LNNC54.js → chunk-3R5MCSYO.js} +3 -3
  21. package/dist/{chunk-RCTHCXS6.js → chunk-4N4M237A.js} +2 -2
  22. package/dist/{chunk-AP7GEUJS.js → chunk-67GTAPK6.js} +2 -2
  23. package/dist/{chunk-YNZUYZ2O.js → chunk-6FGP7RMV.js} +2 -2
  24. package/dist/{chunk-U4PV2ZKK.js → chunk-AESKKFA5.js} +2 -2
  25. package/dist/chunk-AG4F6NVT.js +1 -0
  26. package/dist/chunk-AG4F6NVT.js.map +1 -0
  27. package/dist/{chunk-ZKVSFVIA.js → chunk-CGLMWS7K.js} +2 -2
  28. package/dist/{chunk-7HZ36QDH.js → chunk-GDWU7WF4.js} +9 -3
  29. package/dist/chunk-GDWU7WF4.js.map +1 -0
  30. package/dist/chunk-LNZJJFZQ.js +41 -0
  31. package/dist/chunk-LNZJJFZQ.js.map +1 -0
  32. package/dist/{chunk-6D5AMANO.js → chunk-OV5NM4FY.js} +2 -2
  33. package/dist/{chunk-BQBEN44R.js → chunk-PNAKRHRT.js} +2 -2
  34. package/dist/{chunk-NQCTANF3.js → chunk-RKAX37F4.js} +14 -7
  35. package/dist/chunk-RKAX37F4.js.map +1 -0
  36. package/dist/{chunk-Z4ZFJ565.js → chunk-SRAIV6U6.js} +3 -3
  37. package/dist/{chunk-5ZY3IIIG.js → chunk-TBQR5VCN.js} +11 -1
  38. package/dist/chunk-TBQR5VCN.js.map +1 -0
  39. package/dist/{chunk-L5RS6QAT.js → chunk-YBF2WUGQ.js} +2 -2
  40. package/dist/data-display/Alert.js +9 -5
  41. package/dist/data-display/Banner.js +3 -3
  42. package/dist/data-display/CardKit.js +8 -7
  43. package/dist/data-display/DataViews.js +8 -7
  44. package/dist/feedback/NotificationStatusNotice.js +6 -5
  45. package/dist/feedback/SequenceResolver.js +9 -8
  46. package/dist/native/data-display/Alert.js +10 -0
  47. package/dist/native/data-display/Alert.js.map +1 -1
  48. package/dist/types/components/data-display/Alert/Alert.content.d.ts.map +1 -1
  49. package/dist/types/components/data-display/Alert/Alert.d.ts.map +1 -1
  50. package/dist/types/components/data-display/Alert/Alert.ink.d.ts +65 -0
  51. package/dist/types/components/data-display/Alert/Alert.ink.d.ts.map +1 -0
  52. package/dist/types/components/data-display/Alert/Alert.metrics.d.ts +73 -5
  53. package/dist/types/components/data-display/Alert/Alert.metrics.d.ts.map +1 -1
  54. package/dist/types/components/data-display/Alert/index.d.ts +1 -0
  55. package/dist/types/components/data-display/Alert/index.d.ts.map +1 -1
  56. package/dist/types-native/components/data-display/Alert/Alert.metrics.d.ts +73 -5
  57. package/dist/types-native/components/data-display/Alert/Alert.metrics.d.ts.map +1 -1
  58. package/package.json +1 -1
  59. package/src/components/data-display/Alert/Alert.content.tsx +16 -1
  60. package/src/components/data-display/Alert/Alert.ink.ts +106 -0
  61. package/src/components/data-display/Alert/Alert.md +40 -0
  62. package/src/components/data-display/Alert/Alert.metrics.ts +57 -5
  63. package/src/components/data-display/Alert/Alert.tsx +18 -7
  64. package/src/components/data-display/Alert/index.ts +1 -0
  65. package/dist/chunk-5ZY3IIIG.js.map +0 -1
  66. package/dist/chunk-7HZ36QDH.js.map +0 -1
  67. package/dist/chunk-NQCTANF3.js.map +0 -1
  68. package/dist/chunk-NUGT7LMR.js +0 -1
  69. /package/dist/{chunk-NUGT7LMR.js.map → _internal/components/data-display/Alert/Alert.ink.js.map} +0 -0
  70. /package/dist/{chunk-QIP37Y2C.js.map → chunk-2RC6EAGD.js.map} +0 -0
  71. /package/dist/{chunk-64LNNC54.js.map → chunk-3R5MCSYO.js.map} +0 -0
  72. /package/dist/{chunk-RCTHCXS6.js.map → chunk-4N4M237A.js.map} +0 -0
  73. /package/dist/{chunk-AP7GEUJS.js.map → chunk-67GTAPK6.js.map} +0 -0
  74. /package/dist/{chunk-YNZUYZ2O.js.map → chunk-6FGP7RMV.js.map} +0 -0
  75. /package/dist/{chunk-U4PV2ZKK.js.map → chunk-AESKKFA5.js.map} +0 -0
  76. /package/dist/{chunk-ZKVSFVIA.js.map → chunk-CGLMWS7K.js.map} +0 -0
  77. /package/dist/{chunk-6D5AMANO.js.map → chunk-OV5NM4FY.js.map} +0 -0
  78. /package/dist/{chunk-BQBEN44R.js.map → chunk-PNAKRHRT.js.map} +0 -0
  79. /package/dist/{chunk-Z4ZFJ565.js.map → chunk-SRAIV6U6.js.map} +0 -0
  80. /package/dist/{chunk-L5RS6QAT.js.map → chunk-YBF2WUGQ.js.map} +0 -0
@@ -12,7 +12,7 @@ import {
12
12
  } from "./chunk-4SQ2WCZA.js";
13
13
  import {
14
14
  Alert
15
- } from "./chunk-NQCTANF3.js";
15
+ } from "./chunk-RKAX37F4.js";
16
16
 
17
17
  // src/components/data-display/DataViews/data-views-table-parts.tsx
18
18
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
@@ -121,4 +121,4 @@ export {
121
121
  ViewsMenuSlot,
122
122
  ViewDialogs
123
123
  };
124
- //# sourceMappingURL=chunk-ZKVSFVIA.js.map
124
+ //# sourceMappingURL=chunk-CGLMWS7K.js.map
@@ -1,3 +1,7 @@
1
+ import {
2
+ ALERT_CHILDREN_CLASS,
3
+ ALERT_DESCRIPTION_CLASS
4
+ } from "./chunk-LNZJJFZQ.js";
1
5
  import {
2
6
  testIdFor
3
7
  } from "./chunk-L7VH6IMR.js";
@@ -6,7 +10,7 @@ import {
6
10
  ICON_SLOT,
7
11
  TITLE,
8
12
  TITLE_ICON
9
- } from "./chunk-5ZY3IIIG.js";
13
+ } from "./chunk-TBQR5VCN.js";
10
14
  import {
11
15
  sxRem
12
16
  } from "./chunk-YKCAJ2TN.js";
@@ -20,6 +24,7 @@ var BREAK_WORDS = {
20
24
  overflowWrap: "break-word",
21
25
  wordBreak: "break-word"
22
26
  };
27
+ var ChildrenInk = ({ children }) => children === void 0 || children === null || children === false ? null : /* @__PURE__ */ jsx(Box, { component: "span", className: ALERT_CHILDREN_CLASS, sx: { display: "contents" }, children });
23
28
  var AlertContent = ({ title, description, titleIcon, dataTestId, children }) => {
24
29
  const heading = title ? /* @__PURE__ */ jsx(
25
30
  AlertTitle,
@@ -67,16 +72,17 @@ var AlertContent = ({ title, description, titleIcon, dataTestId, children }) =>
67
72
  Box,
68
73
  {
69
74
  component: "div",
75
+ className: ALERT_DESCRIPTION_CLASS,
70
76
  "data-testid": testIdFor(dataTestId, "message"),
71
77
  sx: { opacity: DESCRIPTION.opacity, fontSize: sxRem(DESCRIPTION.fontSize), ...BREAK_WORDS },
72
78
  children: description
73
79
  }
74
80
  ),
75
- children
81
+ /* @__PURE__ */ jsx(ChildrenInk, { children })
76
82
  ] });
77
83
  };
78
84
 
79
85
  export {
80
86
  AlertContent
81
87
  };
82
- //# sourceMappingURL=chunk-7HZ36QDH.js.map
88
+ //# sourceMappingURL=chunk-GDWU7WF4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/data-display/Alert/Alert.content.tsx"],"sourcesContent":["import AlertTitle from '@mui/material/AlertTitle/index.js';\nimport Box from '@mui/material/Box/index.js';\nimport React from 'react';\n\nimport { sxRem } from '../../../tokens/relative';\n\nimport { testIdFor } from './Alert.helpers';\nimport { ALERT_CHILDREN_CLASS, ALERT_DESCRIPTION_CLASS } from './Alert.ink';\nimport { DESCRIPTION, ICON_SLOT, TITLE, TITLE_ICON } from './Alert.metrics';\nimport type { AlertProps } from './Alert.types';\n\nconst BREAK_WORDS = {\n wordWrap: 'break-word',\n overflowWrap: 'break-word',\n wordBreak: 'break-word',\n} as const;\n\n/**\n * The caller's `children`, wrapped so the pointer step (`Alert.ink.ts`) reaches\n * children-only text without reaching the title row's icon. `display: contents`\n * gives the wrapper no box, so the column's flex layout is exactly what it was\n * and a bare text node still inherits the stepped colour.\n */\nconst ChildrenInk: React.FC<{ children?: React.ReactNode }> = ({ children }) =>\n children === undefined || children === null || children === false ? null : (\n <Box component=\"span\" className={ALERT_CHILDREN_CLASS} sx={{ display: 'contents' }}>\n {children}\n </Box>\n );\n\n/**\n * The message column: title, description, then whatever the caller put inside.\n *\n * `titleIcon` is the icon when it sits on the title's line\n * (`iconPlacement: 'title'`, see `Alert.placement.ts`). The title then shares\n * a row with it, and the description below is a sibling of that row — so it\n * starts at the column's own edge rather than under the title's first letter.\n */\nexport const AlertContent: React.FC<{\n title?: AlertProps['title'];\n description?: AlertProps['description'];\n titleIcon?: React.ReactNode;\n dataTestId?: string;\n children?: React.ReactNode;\n}> = ({ title, description, titleIcon, dataTestId, children }) => {\n const heading = title ? (\n <AlertTitle\n data-testid={testIdFor(dataTestId, 'title')}\n sx={{\n fontWeight: TITLE.fontWeight,\n fontSize: sxRem(TITLE.fontSize),\n // On the icon's row MUI's 2px lift would push the title off the glyph,\n // and the line height is stated so the glyph can be centred on it.\n ...(titleIcon\n ? { margin: 0, lineHeight: TITLE_ICON.lineHeight }\n : { marginBottom: description ? TITLE.marginBottomUnits : 0 }),\n ...BREAK_WORDS,\n }}\n >\n {title}\n </AlertTitle>\n ) : null;\n\n return (\n <>\n {titleIcon && heading ? (\n <Box\n data-testid={testIdFor(dataTestId, 'title-row')}\n sx={{\n display: 'flex',\n // The FIRST line, not the block: a title that wraps to three lines\n // on a phone would otherwise float its icon beside the second.\n alignItems: 'flex-start',\n gap: TITLE_ICON.gapUnits,\n marginBottom: description ? TITLE.marginBottomUnits : 0,\n '& > span': {\n display: 'flex',\n flex: 'none',\n alignItems: 'center',\n fontSize: sxRem(ICON_SLOT.size),\n // One title line tall, so the glyph is centred on that line.\n height: sxRem(TITLE.fontSize * TITLE_ICON.lineHeight),\n },\n }}\n >\n {titleIcon}\n {heading}\n </Box>\n ) : (\n heading\n )}\n {description && (\n <Box\n component=\"div\"\n className={ALERT_DESCRIPTION_CLASS}\n data-testid={testIdFor(dataTestId, 'message')}\n sx={{ opacity: DESCRIPTION.opacity, fontSize: sxRem(DESCRIPTION.fontSize), ...BREAK_WORDS }}\n >\n {description}\n </Box>\n )}\n <ChildrenInk>{children}</ChildrenInk>\n </>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,OAAO,gBAAgB;AACvB,OAAO,SAAS;AAwBZ,SAuCA,UAvCA,KAyCI,YAzCJ;AAdJ,IAAM,cAAc;AAAA,EAClB,UAAU;AAAA,EACV,cAAc;AAAA,EACd,WAAW;AACb;AAQA,IAAM,cAAwD,CAAC,EAAE,SAAS,MACxE,aAAa,UAAa,aAAa,QAAQ,aAAa,QAAQ,OAClE,oBAAC,OAAI,WAAU,QAAO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VE,
3
+ ALERT_EASING,
4
+ POINTER_INK_STEP,
5
+ seconds
6
+ } from "./chunk-TBQR5VCN.js";
7
+ import {
8
+ absoluteInk
9
+ } from "./chunk-XJAD6E3V.js";
10
+
11
+ // src/components/data-display/Alert/Alert.ink.ts
12
+ var ALERT_DESCRIPTION_CLASS = "alert-description";
13
+ var ALERT_CHILDREN_CLASS = "alert-children";
14
+ var MESSAGE_INK = `& .MuiAlertTitle-root, & .${ALERT_DESCRIPTION_CLASS}, & .${ALERT_CHILDREN_CLASS}`;
15
+ function inkAbsolute(theme, variant) {
16
+ if (variant === "gradient") return null;
17
+ return theme.palette.mode === "dark" ? "white" : "black";
18
+ }
19
+ function steppedInkCss(absolute, step) {
20
+ return `color-mix(in srgb, currentColor ${Math.round((1 - step) * 100)}%, ${absolute})`;
21
+ }
22
+ function pointerInkStyles(theme, variant) {
23
+ const side = inkAbsolute(theme, variant);
24
+ if (side === null) return { rest: {}, hover: {}, press: {} };
25
+ const absolute = absoluteInk(theme)[side];
26
+ const at = (state) => steppedInkCss(absolute, POINTER_INK_STEP[state][side]);
27
+ return {
28
+ rest: { [MESSAGE_INK]: { transition: `color ${seconds(ACTIVE.ms)} ${ALERT_EASING}` } },
29
+ hover: { [MESSAGE_INK]: { color: at("hover") } },
30
+ press: { [MESSAGE_INK]: { color: at("press"), transition: "none" } }
31
+ };
32
+ }
33
+
34
+ export {
35
+ ALERT_DESCRIPTION_CLASS,
36
+ ALERT_CHILDREN_CLASS,
37
+ inkAbsolute,
38
+ steppedInkCss,
39
+ pointerInkStyles
40
+ };
41
+ //# sourceMappingURL=chunk-LNZJJFZQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/data-display/Alert/Alert.ink.ts"],"sourcesContent":["import type { CSSObject, Theme } from '@mui/material/styles/index.js';\n\nimport { absoluteInk } from '../../../tokens/ink';\n\nimport { ACTIVE, ALERT_EASING, POINTER_INK_STEP, seconds } from './Alert.metrics';\n\n/**\n * THE INK HALF OF THE POINTER STATES (FUT-4506, option C).\n *\n * The hover and press tint (`pointerShadow` in `Alert.tsx`) moves the SURFACE\n * toward an absolute. On every surface that tracks the mode that is the side\n * the ink is on, so the gap the message is read across closed under the\n * pointer — a host summary at 4.71:1 idle fell to 3.17:1 pressed. These rules\n * move the INK further the same way, by {@link POINTER_INK_STEP}, so it\n * re-opens.\n */\n\n/** The summary's class, so the pointer states can reach it without a test id. */\nexport const ALERT_DESCRIPTION_CLASS = 'alert-description';\n/**\n * The wrapper `AlertContent` puts around `children`, at `display: contents`:\n * no box of its own, so the column's flex layout is what it was, and a bare\n * text node still inherits its colour.\n */\nexport const ALERT_CHILDREN_CLASS = 'alert-children';\n\n/**\n * What steps: the WORDS of the message — the title, the description and\n * whatever the caller passed as `children` — each one step, none nested in\n * another. Stepping only the title and the description left a children-only\n * alert (about one in six in the first host measured) at its rest ink under\n * the press tint.\n *\n * Not the whole message column, because the column is not only words: with\n * `iconPlacement: 'title'` the icon sits in it, on the title's row, beside\n * `.MuiAlertTitle-root` rather than inside it. The icon is the variant's\n * meaning, not an affordance, so it stays still in both placements; the close\n * button (`.MuiAlert-action`) is outside the column altogether. A control\n * inside `children` keeps its own colour, because it declares one; only a\n * `color=\"inherit\"` one follows the step, on the same tinted surface as the\n * words around it.\n */\nconst MESSAGE_INK = `& .MuiAlertTitle-root, & .${ALERT_DESCRIPTION_CLASS}, & .${ALERT_CHILDREN_CLASS}`;\n\nexport type PointerInkState = keyof typeof POINTER_INK_STEP;\nexport type InkAbsolute = 'black' | 'white';\n\n/**\n * The absolute the ink steps toward — the mode's, the side the ink is on — or\n * `null` for `gradient`, which does not step at all.\n *\n * Every other variant's surface tracks the mode: a dark ink on a light tint,\n * a light ink on a dark one, so the step is toward black in light mode and\n * toward white in dark, the same absolute the tint layer moves the surface to.\n *\n * `gradient` is the one surface where the package cannot know which side its\n * ink is on. Its own ink is `getContrastText` of the hue, but a host that\n * repaints alerts repaints the gradient too: a light pane and a dark ink under\n * the variant's BLACK layer. Stepping by the package's own ink then moved that\n * dark ink toward white — 1.02:1 pressed. A step that reads `currentColor` for\n * its amount but not for its direction is only safe where the direction is the\n * mode's, so `gradient` keeps today's ink. Its rest contrast and its dark ink\n * on dark mode's light hues are FUT-4516's.\n */\nexport function inkAbsolute(theme: Theme, variant: string | undefined): InkAbsolute | null {\n if (variant === 'gradient') return null;\n return theme.palette.mode === 'dark' ? 'white' : 'black';\n}\n\n/**\n * The CSS for the ink at one pointer state: the ink actually painted\n * (`currentColor`, inherited from the root — a host's repaint included) mixed\n * toward the absolute by the state's step.\n *\n * `currentColor` in a `color` declaration is the PARENT's colour, which is why\n * this sits on the message's parts and never on the root: on the root it would\n * read the page's text colour instead of the alert's ink. None of the three\n * parts is nested in another, so nothing steps twice.\n */\nexport function steppedInkCss(absolute: string, step: number): string {\n return `color-mix(in srgb, currentColor ${Math.round((1 - step) * 100)}%, ${absolute})`;\n}\n\n/**\n * The three pieces of the ink's pointer behaviour, spread into the root's\n * blocks by `Alert.tsx`:\n *\n * - `rest` eases the ink on the box-shadow's own clock, so ink and tint arrive\n * together rather than the ink snapping while the surface eases;\n * - `hover` and `press` step it. The press declares `transition: none` for the\n * same reason the root's `:active` does: a click's `:active` is too short to\n * ease into. A `:hover` block declares no transition, ever (see `ACTIVE`).\n *\n * All three are empty for a variant that does not step.\n */\nexport function pointerInkStyles(theme: Theme, variant: string | undefined): Record<'rest' | PointerInkState, CSSObject> {\n const side = inkAbsolute(theme, variant);\n if (side === null) return { rest: {}, hover: {}, press: {} };\n const absolute = absoluteInk(theme)[side];\n const at = (state: PointerInkState): string => steppedInkCss(absolute, POINTER_INK_STEP[state][side]);\n return {\n rest: { [MESSAGE_INK]: { transition: `color ${seconds(ACTIVE.ms)} ${ALERT_EASING}` } },\n hover: { [MESSAGE_INK]: { color: at('hover') } },\n press: { [MESSAGE_INK]: { color: at('press'), transition: 'none' } },\n };\n}\n"],"mappings":";;;;;;;;;;;AAkBO,IAAM,0BAA0B;AAMhC,IAAM,uBAAuB;AAkBpC,IAAM,cAAc,6BAA6B,uBAAuB,QAAQ,oBAAoB;AAsB7F,SAAS,YAAY,OAAc,SAAiD;AACzF,MAAI,YAAY,WAAY,QAAO;AACnC,SAAO,MAAM,QAAQ,SAAS,SAAS,UAAU;AACnD;AAYO,SAAS,cAAc,UAAkB,MAAsB;AACpE,SAAO,mCAAmC,KAAK,OAAO,IAAI,QAAQ,GAAG,CAAC,MAAM,QAAQ;AACtF;AAcO,SAAS,iBAAiB,OAAc,SAA0E;AACvH,QAAM,OAAO,YAAY,OAAO,OAAO;AACvC,MAAI,SAAS,KAAM,QAAO,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,OAAO,CAAC,EAAE;AAC3D,QAAM,WAAW,YAAY,KAAK,EAAE,IAAI;AACxC,QAAM,KAAK,CAAC,UAAmC,cAAc,UAAU,iBAAiB,KAAK,EAAE,IAAI,CAAC;AACpG,SAAO;AAAA,IACL,MAAM,EAAE,CAAC,WAAW,GAAG,EAAE,YAAY,SAAS,QAAQ,OAAO,EAAE,CAAC,IAAI,YAAY,GAAG,EAAE;AAAA,IACrF,OAAO,EAAE,CAAC,WAAW,GAAG,EAAE,OAAO,GAAG,OAAO,EAAE,EAAE;AAAA,IAC/C,OAAO,EAAE,CAAC,WAAW,GAAG,EAAE,OAAO,GAAG,OAAO,GAAG,YAAY,OAAO,EAAE;AAAA,EACrE;AACF;","names":[]}
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useFocusOnScreen
3
- } from "./chunk-BQBEN44R.js";
3
+ } from "./chunk-PNAKRHRT.js";
4
4
  import {
5
5
  actionSx,
6
6
  categoryDescriptionSx,
@@ -47,4 +47,4 @@ function SequenceOverviewBody(props) {
47
47
  export {
48
48
  SequenceOverviewBody
49
49
  };
50
- //# sourceMappingURL=chunk-6D5AMANO.js.map
50
+ //# sourceMappingURL=chunk-OV5NM4FY.js.map
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-2ORD2FMN.js";
18
18
  import {
19
19
  Alert
20
- } from "./chunk-NQCTANF3.js";
20
+ } from "./chunk-RKAX37F4.js";
21
21
  import {
22
22
  Button
23
23
  } from "./chunk-YOXYSAUI.js";
@@ -160,4 +160,4 @@ export {
160
160
  SequenceStepBody,
161
161
  SequenceDoneBody
162
162
  };
163
- //# sourceMappingURL=chunk-BQBEN44R.js.map
163
+ //# sourceMappingURL=chunk-PNAKRHRT.js.map
@@ -1,3 +1,6 @@
1
+ import {
2
+ AlertContent
3
+ } from "./chunk-GDWU7WF4.js";
1
4
  import {
2
5
  alertEmphasisStyles,
3
6
  alertLayoutStyles,
@@ -5,13 +8,13 @@ import {
5
8
  fadeInScale,
6
9
  getColorFromTheme,
7
10
  getVariantIcon
8
- } from "./chunk-L5RS6QAT.js";
11
+ } from "./chunk-YBF2WUGQ.js";
9
12
  import {
10
13
  resolveIconPlacement
11
14
  } from "./chunk-QXUXO22M.js";
12
15
  import {
13
- AlertContent
14
- } from "./chunk-7HZ36QDH.js";
16
+ pointerInkStyles
17
+ } from "./chunk-LNZJJFZQ.js";
15
18
  import {
16
19
  resolveAlertProps,
17
20
  resolveAnnouncement,
@@ -30,7 +33,7 @@ import {
30
33
  GLOW,
31
34
  HOVER,
32
35
  seconds
33
- } from "./chunk-5ZY3IIIG.js";
36
+ } from "./chunk-TBQR5VCN.js";
34
37
  import {
35
38
  resolveTestId,
36
39
  withoutTestIdProps
@@ -64,6 +67,7 @@ var StyledAlert = styled(MuiAlert, {
64
67
  })(({ theme, customVariant, customColor, glow, pulse, animate }) => {
65
68
  const colorPalette = getColorFromTheme(theme, customColor || customVariant || "info");
66
69
  const withTint = pointerShadow(theme, colorPalette, Boolean(glow), customVariant);
70
+ const ink = pointerInkStyles(theme, customVariant);
67
71
  return {
68
72
  borderRadius: theme.spacing(ALERT_RADIUS_UNITS),
69
73
  transition: `${transition}, box-shadow ${seconds(ACTIVE.ms)} ${ALERT_EASING}`,
@@ -72,12 +76,14 @@ var StyledAlert = styled(MuiAlert, {
72
76
  animation: animate ? `${fadeInScale(theme)} ${seconds(FADE_IN.ms)} ease-out` : "none",
73
77
  willChange: "transform, opacity",
74
78
  ...alertLayoutStyles(theme, colorPalette, animate),
79
+ ...ink.rest,
75
80
  // Hover: one tint step, and nothing that moves. An alert is a surface
76
81
  // rather than a control, so the pointer only needs telling it is here. The
77
82
  // icon keeps its own place for the same reason — it is the variant's
78
- // meaning, not an affordance to animate.
83
+ // meaning, not an affordance to animate. The message's ink steps too.
79
84
  "&:hover": {
80
85
  boxShadow: withTint(HOVER.tintAlpha),
86
+ ...ink.hover,
81
87
  "&::before": {
82
88
  opacity: 1
83
89
  }
@@ -103,7 +109,8 @@ var StyledAlert = styled(MuiAlert, {
103
109
  // fired at all.
104
110
  '&:active:not(:has(button:active, a:active, [role="button"]:active))': {
105
111
  boxShadow: withTint(ACTIVE.tintAlpha),
106
- transition: "none"
112
+ transition: "none",
113
+ ...ink.press
107
114
  },
108
115
  // Focus: `:focus-visible`, not `:focus-within`.
109
116
  //
@@ -277,4 +284,4 @@ export {
277
284
  Alert,
278
285
  ALERT_ONLY_PROPS
279
286
  };
280
- //# sourceMappingURL=chunk-NQCTANF3.js.map
287
+ //# sourceMappingURL=chunk-RKAX37F4.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/data-display/Alert/Alert.tsx"],"sourcesContent":["import Close from '@mui/icons-material/Close';\nimport MuiAlert from '@mui/material/Alert/index.js';\nimport Box from '@mui/material/Box/index.js';\nimport Collapse from '@mui/material/Collapse/index.js';\nimport IconButton from '@mui/material/IconButton/index.js';\nimport { alpha, styled, useTheme } from '@mui/material/styles/index.js';\nimport type { Theme } from '@mui/material/styles/index.js';\nimport React from 'react';\n\nimport { absoluteInk, modeInk } from '../../../tokens/ink';\n\nimport { AlertContent } from './Alert.content';\nimport { pointerInkStyles } from './Alert.ink';\nimport { resolveAlertProps, resolveAnnouncement, testIdFor } from './Alert.helpers';\nimport { resolveIconPlacement, type AlertIconPlacement } from './Alert.placement';\nimport type { AlertPalette } from './Alert.metrics';\nimport {\n ACTIVE,\n GLOW,\n ALERT_EASING,\n ALERT_RADIUS_UNITS,\n ALERT_TRANSITION_MS,\n CLOSE_BUTTON,\n CLOSE_DELAY_MS,\n COLLAPSE_MS,\n FADE_IN,\n FOCUS,\n HOVER,\n seconds,\n} from './Alert.metrics';\nimport {\n alertEmphasisStyles,\n alertLayoutStyles,\n alertVariantStyles,\n fadeInScale,\n getColorFromTheme,\n getVariantIcon,\n} from './Alert.styles';\nimport type { AlertColor } from '@mui/material/Alert/index.js';\nimport type { AlertProps } from './Alert.types';\nimport { resolveTestId, withoutTestIdProps } from '../../../platform/test-id';\nimport { rem, rems } from '../../../tokens/relative';\n\nconst transition = `all ${seconds(ALERT_TRANSITION_MS)} ${ALERT_EASING}`;\n\n// Define animations\n/**\n * The pointer states' shadow: a flat tint, plus the glow when the alert has one.\n *\n * The tint is an inset spread at 100vmax, which always exceeds the element, so\n * it covers the surface edge to edge. It paints ABOVE the background and BELOW\n * the content, so it never dims the ink itself — see `ACTIVE` in\n * `Alert.metrics.ts` for why a layer replaced the opacity dip and the\n * brightness multiplier that each preceded it. It does move the surface toward\n * the ink's side, which is the contrast `pointerInkStyles` (`Alert.ink.ts`)\n * wins back by stepping the message's words the same way.\n *\n * The glow is COMPOSED rather than replaced, so hovering a glowing alert keeps\n * its glow; `glowStyles` gave up its `!important` for this.\n */\nfunction pointerShadow(\n theme: Theme,\n colorPalette: AlertPalette,\n glow: boolean,\n variant: string | undefined,\n): (alpha_: number) => string {\n // The tint's colour reads the variant and not only the mode. On every\n // surface that tracks the mode it moves the surface TOWARD its ink's side —\n // the contrast cost `pointerInkStyles` pays back.\n //\n // `gradient` is the one variant where the two disagree: it paints a\n // mid-lightness sweep (L* 42–61) under WHITE ink in BOTH modes, so the\n // mode-keyed answer tinted it white in dark mode — toward the text. Measured:\n // white-on-gradient fell to 2.90:1 on hover and 2.41:1 pressed, under the 3:1\n // floor and below its own idle. Every other variant's surface tracks the mode,\n // so for them the two rules agree. (Not quite WHITE in both modes: dark\n // mode's light hues get a dark `getContrastText` ink, which this black layer\n // closes on. That ink is not stepped (`inkAbsolute`); its rest contrast is\n // FUT-4516's.)\n const ink = variant === 'gradient' ? absoluteInk(theme).black : modeInk(theme);\n const glowShadow = glow\n ? `0 0 ${rems(theme, GLOW.blur, GLOW.spread)} ${alpha(colorPalette.main, GLOW.alpha)}`\n : null;\n return (alpha_) =>\n [`inset 0 0 0 100vmax ${alpha(ink, alpha_)}`, glowShadow].filter(Boolean).join(', ');\n}\n\nconst StyledAlert = styled(MuiAlert, {\n shouldForwardProp: (prop) =>\n !['customVariant', 'customColor', 'glow', 'pulse', 'animate'].includes(prop as string),\n})<{\n customVariant?: string;\n customColor?: string;\n glow?: boolean;\n pulse?: boolean;\n animate?: boolean;\n}>(({ theme, customVariant, customColor, glow, pulse, animate }) => {\n const colorPalette = getColorFromTheme(theme, customColor || customVariant || 'info');\n\n const withTint = pointerShadow(theme, colorPalette, Boolean(glow), customVariant);\n const ink = pointerInkStyles(theme, customVariant);\n\n return {\n borderRadius: theme.spacing(ALERT_RADIUS_UNITS),\n transition: `${transition}, box-shadow ${seconds(ACTIVE.ms)} ${ALERT_EASING}`,\n position: 'relative',\n overflow: 'hidden',\n animation: animate ? `${fadeInScale(theme)} ${seconds(FADE_IN.ms)} ease-out` : 'none',\n willChange: 'transform, opacity',\n\n ...alertLayoutStyles(theme, colorPalette, animate),\n ...ink.rest,\n\n // Hover: one tint step, and nothing that moves. An alert is a surface\n // rather than a control, so the pointer only needs telling it is here. The\n // icon keeps its own place for the same reason — it is the variant's\n // meaning, not an affordance to animate. The message's ink steps too.\n '&:hover': {\n boxShadow: withTint(HOVER.tintAlpha),\n ...ink.hover,\n\n '&::before': {\n opacity: 1,\n },\n },\n\n // Press: a 20% tint, landing at once and easing back. Still no geometry.\n //\n // `transition: none` here is what makes the dip INSTANT: a click's\n // `:active` lasts about as long as the finger is down, so easing into it\n // would be cut off in its first tenth and read as a flicker. The ease is on\n // the way back, governed by the root.\n //\n // Neither `:hover` nor `:focus-visible` may declare `transition`, and that\n // is not a style preference. `:active` under a mouse ALWAYS implies\n // `:hover`, so a bare shorthand in the hover block outranks the root's\n // (0,2,0 beats 0,1,0) and silently resets the timing this state rests on.\n //\n // The `:not(:has(…))` names CONTROLS, not any descendant. `:active`\n // matches an ancestor of whatever is pressed, so dismissing an alert\n // dimmed the alert being dismissed and pressing a call to action dimmed\n // the message explaining it. Excluding `:has(:active)` wholesale does not\n // work and was the first attempt: pressing the TEXT makes that text\n // `:active` too, so the guard matched on every press and the state never\n // fired at all.\n '&:active:not(:has(button:active, a:active, [role=\"button\"]:active))': {\n boxShadow: withTint(ACTIVE.tintAlpha),\n transition: 'none',\n ...ink.press,\n },\n\n // Focus: `:focus-visible`, not `:focus-within`.\n //\n // The alert carries `tabIndex={0}`, so a MOUSE CLICK focused it and painted\n // the ring — a keyboard affordance answering a pointer, which is what made\n // clicking one look like an error state. `:focus-visible` is the browser's\n // own answer to \"did this focus come from the keyboard\": the ring stays for\n // whoever tabs here and never fires on a click.\n //\n // One ring, not three. It was a 3px outline at 3px offset UNDER a 6px halo,\n // and stacking two rings on one edge is what read as unfinished rather than\n // as emphasis.\n // It declares no `transition`: `outline-style` is discrete, so the ring\n // arrives at full width with only its COLOUR easing — from `currentcolor`,\n // the near-black alert ink, to the blue. That is a visible dark flash on\n // every keyboard focus, and it would also outrank the root's opacity\n // transition the way the hover block did.\n '&:focus-visible': {\n outline: `${rem(theme, FOCUS.ringWidth)} solid ${alpha(colorPalette.main, FOCUS.ringAlpha)}`,\n outlineOffset: rem(theme, FOCUS.offset),\n },\n\n ...alertVariantStyles(theme, customVariant, colorPalette),\n ...alertEmphasisStyles(theme, colorPalette, Boolean(glow), Boolean(pulse)),\n };\n});\n\n// glass and gradient are our own looks with no MUI severity of their own; both\n// borrow info's. danger is MUI's error.\nconst MUI_SEVERITY: Record<string, AlertColor> = {\n danger: 'error',\n glass: 'info',\n gradient: 'info',\n};\n\nconst toMuiSeverity = (variant: string): AlertColor =>\n MUI_SEVERITY[variant] ?? (variant as AlertColor);\n\nconst AlertCloseButton: React.FC<{ dataTestId?: string; label: string; onClose: () => void }> = ({\n dataTestId,\n label,\n onClose,\n}) => (\n <IconButton\n data-testid={testIdFor(dataTestId, 'close')}\n aria-label={label}\n color=\"inherit\"\n size=\"small\"\n onClick={onClose}\n sx={(theme) => ({\n transition,\n opacity: CLOSE_BUTTON.opacity,\n // Opacity and a wash only: the button used to spin 90deg and grow 1.1,\n // which drew the eye to the dismiss rather than to the message.\n '&:hover': {\n opacity: 1,\n backgroundColor: alpha(theme.palette.action.hover, CLOSE_BUTTON.washAlpha),\n },\n // A REAL ring, on the keyboard-only selector.\n //\n // This used to be `&:focus` setting `outline: 'none'` over a\n // `rgba(0,0,0,0.1)` wash — 1.25:1 against the info surface, and MUI's\n // ButtonBase already sets `outline: 0`, so there was no UA fallback\n // either. It went unnoticed while the ROOT still matched `:focus-within`\n // and drew a ring around the whole alert; moving the root to\n // `:focus-visible` took that away and left this button with no visible\n // focus at all. `Banner`'s dismiss already draws its own outline, so\n // this is also what keeps the two surfaces telling a keyboard user the\n // same thing.\n '&:focus-visible': {\n opacity: 1,\n // `currentColor` is the alert's own ink, inherited through\n // `color=\"inherit\"`, so the ring is drawn in whatever colour was\n // already chosen to be READ on this surface. Measured 11.2:1 on the\n // semantic variants and 5.7:1 on `gradient`.\n //\n // That is a reasoned choice, not a test-backed one, and the difference\n // matters: `alert-contrast.test.tsx` covers the ink of the four\n // semantic variants only — its `glass` case asserts the pane's alpha\n // rather than its ink, and `gradient` it does not render at all. A\n // translucent surface's contrast depends on what sits behind it, which\n // is why that test stops where it does and why this comment does not\n // borrow a guarantee it never made.\n outline: `${rem(theme, FOCUS.ringWidth)} solid currentColor`,\n outlineOffset: rem(theme, FOCUS.offset),\n backgroundColor: alpha(theme.palette.action.focus, CLOSE_BUTTON.washAlpha),\n },\n })}\n >\n <Close fontSize=\"inherit\" />\n </IconButton>\n);\n\n/**\n * The dismiss button, or nothing.\n *\n * Reads `closeLabel` straight off the props rather than through the\n * `definedProps` merge, which would widen it to `string | undefined` and hand\n * the button an empty name. The UNION in `AlertProps` guarantees the label\n * wherever `closable` is true — that narrowing is gone inside the component,\n * which is why the fallback below exists and why it is unreachable.\n */\nfunction dismissButton(\n props: AlertProps,\n dataTestId: string | undefined,\n onClose: () => void,\n): React.JSX.Element | null {\n if (!props.closable) return null;\n return <AlertCloseButton dataTestId={dataTestId} label={props.closeLabel} onClose={onClose} />;\n}\n\n/**\n * Where the icon goes: MUI's own slot (`slot`), or the title's row\n * (`titleIcon`) — never both. On the title's row only when there IS a title\n * and an icon to put on it (`Alert.placement.ts`).\n */\nfunction placeIcon({\n icon,\n dataTestId,\n hasTitle,\n placement,\n}: {\n icon: React.ReactNode;\n dataTestId: string | undefined;\n hasTitle: boolean;\n placement: AlertIconPlacement;\n}): { slot: React.ReactNode; titleIcon?: React.ReactNode } {\n if (icon === null) return { slot: false };\n const glyph = (\n <Box component=\"span\" data-testid={testIdFor(dataTestId, 'icon')}>\n {icon}\n </Box>\n );\n return placement === 'title' && hasTitle ? { slot: false, titleIcon: glyph } : { slot: glyph };\n}\n\nexport const Alert = React.forwardRef<HTMLDivElement, AlertProps>((alertProps, ref) => {\n const {\n variant,\n color,\n glow,\n pulse,\n icon,\n showIcon,\n onClose,\n title,\n description,\n children,\n animate,\n iconPlacement,\n role: _role, announce: _announce, // resolved from `alertProps` — see `resolveAnnouncement`\n 'aria-atomic': ariaAtomic,\n ...others\n } = resolveAlertProps(alertProps);\n\n // Every spelling of the test id the shared contract allows, mapped to the\n // one the DOM reads and defaulted to `alert`; the native Alert does the same.\n const dataTestId = resolveTestId(others, 'alert');\n // Then the dismiss union, which `dismissButton` reads off `alertProps` rather\n // than through this destructure — so without this strip it rides `...props`\n // onto the DOM. `ALERT_DEFAULTS` supplies `closable: false`, so that happened\n // on EVERY alert, not only the closable ones.\n const props = withoutAlertOnlyProps(withoutTestIdProps(others));\n\n // Depends on `variant`, so it cannot live in the static defaults above.\n const announcement = resolveAnnouncement(alertProps, variant);\n const theme = useTheme();\n const [open, setOpen] = React.useState(true);\n const [isClosing, setIsClosing] = React.useState(false);\n\n const handleClose = () => {\n setIsClosing(true);\n window.setTimeout(() => {\n setOpen(false);\n onClose?.();\n }, CLOSE_DELAY_MS);\n };\n\n const severity = toMuiSeverity(variant);\n\n const { slot, titleIcon } = placeIcon({\n icon: showIcon ? (icon ?? getVariantIcon(variant)) : null,\n dataTestId,\n hasTitle: Boolean(title),\n placement: resolveIconPlacement(theme, iconPlacement),\n });\n\n return (\n <Collapse in={open && !isClosing} timeout={COLLAPSE_MS}>\n <StyledAlert\n ref={ref}\n data-testid={dataTestId}\n severity={severity}\n customVariant={variant}\n customColor={color}\n glow={glow}\n pulse={pulse}\n animate={animate}\n icon={slot}\n role={announcement.role}\n aria-live={announcement['aria-live']}\n aria-atomic={ariaAtomic}\n tabIndex={0}\n action={dismissButton(alertProps, dataTestId, handleClose)}\n {...props}\n >\n <AlertContent title={title} description={description} titleIcon={titleIcon} dataTestId={dataTestId}>\n {children}\n </AlertContent>\n </StyledAlert>\n </Collapse>\n );\n});\n\n/**\n * The props `Alert` OWNS, which must never reach the DOM.\n *\n * `AlertProps` extends MUI's, whose rest-spread is how a host's real HTML\n * attributes get onto the root — so the same spread carries the alert's own\n * configuration unless it is named here. Everything else the component consumes\n * leaves through the destructure above; these two do not, because\n * `dismissButton` reads them off the original props to keep the dismiss union's\n * narrowing intact.\n *\n * Exported so a test can render an alert carrying every name on it and assert\n * none reaches the DOM — the check that would have caught `closable`.\n */\nexport const ALERT_ONLY_PROPS = ['closable', 'closeLabel'] as const;\n\nfunction withoutAlertOnlyProps<P extends object>(rest: P): P {\n const html = { ...rest } as Record<string, unknown>;\n for (const key of ALERT_ONLY_PROPS) delete html[key];\n return html as P;\n}\n\nAlert.displayName = 'Alert';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;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B,QAAO,KAAK,GAAG;AACnD,SAAO;AACT;AAEA,MAAM,cAAc;","names":[]}
@@ -4,10 +4,10 @@ import {
4
4
  bannerPointerStates,
5
5
  fadeInSlide,
6
6
  getVariantColor
7
- } from "./chunk-QIP37Y2C.js";
7
+ } from "./chunk-2RC6EAGD.js";
8
8
  import {
9
9
  FOCUS
10
- } from "./chunk-5ZY3IIIG.js";
10
+ } from "./chunk-TBQR5VCN.js";
11
11
  import {
12
12
  rem
13
13
  } from "./chunk-YKCAJ2TN.js";
@@ -263,4 +263,4 @@ Banner.displayName = "Banner";
263
263
  export {
264
264
  Banner
265
265
  };
266
- //# sourceMappingURL=chunk-Z4ZFJ565.js.map
266
+ //# sourceMappingURL=chunk-SRAIV6U6.js.map
@@ -42,6 +42,14 @@ var GLOW = { blur: 20, spread: 5, alpha: 0.3, brightness: 1.05 };
42
42
  var PULSE = { alpha: 0.2, ms: 2e3, spread: 10 };
43
43
  var HOVER = { tintAlpha: 0.06 };
44
44
  var ACTIVE = { tintAlpha: 0.2, ms: 250 };
45
+ var POINTER_INK_STEP = {
46
+ hover: { black: 0.15, white: 0.2 },
47
+ press: { black: 0.35, white: 0.6 }
48
+ };
49
+ var POINTER_STATES = {
50
+ hover: { tintAlpha: HOVER.tintAlpha, inkStep: POINTER_INK_STEP.hover },
51
+ press: { tintAlpha: ACTIVE.tintAlpha, inkStep: POINTER_INK_STEP.press }
52
+ };
45
53
  var FOCUS = { ringWidth: 2, ringAlpha: 1, offset: 2 };
46
54
  var NEUTRAL_GREY = { main: 500, light: 300, dark: 700 };
47
55
  var seconds = (ms) => `${ms / 1e3}s`;
@@ -124,6 +132,8 @@ export {
124
132
  PULSE,
125
133
  HOVER,
126
134
  ACTIVE,
135
+ POINTER_INK_STEP,
136
+ POINTER_STATES,
127
137
  FOCUS,
128
138
  NEUTRAL_GREY,
129
139
  seconds,
@@ -135,4 +145,4 @@ export {
135
145
  gradientSurface,
136
146
  alertSurface
137
147
  };
138
- //# sourceMappingURL=chunk-5ZY3IIIG.js.map
148
+ //# sourceMappingURL=chunk-TBQR5VCN.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/data-display/Alert/Alert.metrics.ts"],"sourcesContent":["import type { AlertVariant } from './Alert.base';\nimport { alpha, darken, lighten } from '../../../tokens/color';\nimport { NEUTRAL_RAMP } from '../../../tokens/ink.core';\nimport { contrastText, type UiGreyStep, type UiTheme } from '../../../tokens/theme';\n\n/**\n * THE NUMBERS BOTH `Alert` RENDERERS DRAW WITH.\n *\n * `Alert.styles.tsx` / `Alert.tsx` (MUI) and `Alert.native.tsx` (React\n * Native) read this one table. Spacing is in SPACING UNITS where the web\n * writes `theme.spacing(n)`; durations are ms (the web turns them into `s`\n * through {@link seconds} so its emitted CSS is byte-for-byte what it was);\n * everything else is px, a ratio or an alpha. The hover, active and focus\n * numbers are here too although only the DOM can honour them — a number the\n * web draws with belongs in the table whether or not native can reach it.\n */\n\n/** The root: 12px corners, 14px 16px of padding, one 300ms curve for everything. */\nexport const ALERT_RADIUS_UNITS = 1.5;\nexport const ALERT_PADDING_UNITS = { vertical: 1.75, horizontal: 2 } as const;\nexport const ALERT_TRANSITION_MS = 300;\nexport const ALERT_EASING = 'cubic-bezier(0.4, 0, 0.2, 1)';\n\n/** Mount: the web's `fadeInScale` keyframes and the icon's `iconRotate`. */\nexport const FADE_IN = { ms: 300, scale: 0.95, lift: 10 } as const;\nexport const ICON_SPIN = { ms: 600, from: 0.8, mid: 1.1 } as const;\n/** Dismiss: MUI `Collapse` runs 300ms; `onClose` fires 200ms in. */\nexport const COLLAPSE_MS = 300;\nexport const CLOSE_DELAY_MS = 200;\n\n/** The message column: 8px between title, description and children; 0.95rem body on 1.5. */\nexport const MESSAGE_GAP_UNITS = 1;\nexport const MESSAGE_FONT_SIZE = 15.2;\nexport const MESSAGE_LINE_HEIGHT = 1.5;\n/** A control inside the message gets an edge: 4px above, a hairline at 0.45 of the hue. */\nexport const MESSAGE_BUTTON = { marginTopUnits: 0.5, borderAlpha: 0.45 } as const;\n\n/** The title: 1.05rem at 600; MUI's `AlertTitle` lifts it 2px; 4px below it when a description follows. */\nexport const TITLE = { fontSize: 16.8, fontWeight: 600, marginTop: -2, marginBottomUnits: 0.5 } as const;\n/** The description: 0.925rem, slightly faded. */\nexport const DESCRIPTION = { fontSize: 14.8, opacity: 0.9 } as const;\n\n/** The icon on the title's line (`iconPlacement: 'title'`): 10px from the title, centred on its first line (1.5). */\nexport const TITLE_ICON = { gapUnits: 1.25, lineHeight: 1.5 } as const;\n/** The icon slot: MUI's 22px glyph at 0.9, 14px from the words, 2px down (MUI's 7px stays below). */\nexport const ICON_SLOT = { size: 22, opacity: 0.9, marginRightUnits: 1.75, paddingTopUnits: 0.25, paddingBottom: 7 } as const;\n/** The action slot: MUI's `4px 0 0 16px` with the 16px ours, pushed right, 8px into the padding. */\nexport const ACTION_SLOT = { paddingLeftUnits: 2, paddingTop: 4, marginRight: -8 } as const;\n/** The close button: MUI's small `IconButton` (5px padding, 18px glyph) at 0.7. */\nexport const CLOSE_BUTTON = { padding: 5, iconSize: 18, opacity: 0.7, washAlpha: 0.1 } as const;\n\n/**\n * A semantic Alert's surface and ink: an OPAQUE tint of the hue with a dark\n * ink of the same hue — MUI's own `standard` recipe, at its ratios. See\n * `semanticSurface` in `Alert.styles.tsx` for why not `alpha(main, 0.1)`.\n */\nexport const SEMANTIC_SURFACE = { tint: { light: 0.9, dark: 0.8 }, ink: 0.6, borderAlpha: 0.35 } as const;\n/** `glass`: 85% paper under a 20px blur, a 0.4 divider hairline. */\nexport const GLASS = { backgroundAlpha: 0.85, borderAlpha: 0.4, blur: 20, saturatePercent: 180 } as const;\n/**\n * `gradient`: light→dark at 0.9 along 135°, a 0.2 white shimmer sweeping 1000px every 3s.\n *\n * It carries no hover of its own, and that is load-bearing rather than an\n * omission. `alertVariantStyles` is spread AFTER the root's `'&:hover'` in the\n * same object literal, so a second `'&:hover'` key does not merge with it — it\n * REPLACES it. While this variant had one, `gradient` was the only alert that\n * brightened on hover while every other variant darkened, and the only one to\n * lose the shimmer reveal the root's hover performs.\n */\nexport const GRADIENT = {\n angleDeg: 135,\n stopAlpha: 0.9,\n shimmerAlpha: 0.2,\n shimmerMs: 3000,\n shimmerTravel: 1000,\n} as const;\n\n/** Emphasis: the glow's shadow and brightness, the pulse's wash. */\nexport const GLOW = { blur: 20, spread: 5, alpha: 0.3, brightness: 1.05 } as const;\nexport const PULSE = { alpha: 0.2, ms: 2000, spread: 10 } as const;\n\n/**\n * Pointer states — DOM only, kept so the web derives them.\n *\n * HOVER and ACTIVE carry NO geometry, and that is the point rather than an\n * omission. They used to lift the card 3px, scale it 1.01, grow a 20px shadow\n * and spin the icon 10deg at 1.15 — four things moving at once on a surface\n * that is not a control, which made a page of alerts twitch under the pointer.\n *\n * Both are a TINT now: a flat inset layer over the surface. Two mechanisms\n * came before it and each failed on a case the next had to fix. Dropping the\n * element's `opacity` composites toward the PAGE, so it inverted the hover on\n * a light tint (L* 95.0 idle, 89.1 hovered, 91.1 pressed) and vanished on a\n * dark one. A `filter: brightness()` fixed the direction but is MULTIPLICATIVE,\n * so it moved a near-black `glass` by four counts (ΔE76 1.71, under the JND)\n * and Banner's 10%-alpha wash by ΔE76 0.44. A layer is additive: it reads the\n * same on an opaque tint, a translucent wash and a gradient.\n *\n * Painting above the background and below the content keeps the layer off the\n * INK, but not off the ink's CONTRAST: the layer moves the surface toward the\n * mode's absolute, which is the side the ink is on, so the two close in. That\n * is what {@link POINTER_INK_STEP} answers (FUT-4506).\n */\nexport const HOVER = { tintAlpha: 0.06 } as const;\n\n/**\n * The press: a 20% tint LAYER, eased back fast.\n *\n * The layer is the point. The first attempt dropped the whole element's\n * opacity, which composites toward the PAGE and so behaves differently on\n * every surface it is asked about. Measured: over a light page it made a light\n * tint LIGHTER (L* 95.0 idle, 89.1 hovered, 91.1 pressed), so pushing the\n * surface looked like the pointer leaving; over a dark page it landed back on\n * the idle surface (ΔE76 0.82 on `glass`); on `gradient` it washed white body\n * copy to 2.31:1, under AA; and it diluted the ink during a text-selection\n * drag. A `brightness()` step instead of it fixed the direction but not the\n * reach — a multiplier does nothing to a near-black `glass` in dark mode\n * (ΔE76 1.71) and nothing to Banner's 10%-alpha wash (ΔE76 0.44), because it\n * scales only what the element already paints.\n *\n * An inset shadow at 100vmax is a flat tint over the whole surface: ADDITIVE,\n * so it reads the same on an opaque tint, a translucent wash and a gradient;\n * painted above the background and below the content, so it never dims the\n * ink itself; and animatable, which `background-image` is not. It DOES dim the\n * ink's contrast, because it darkens a light surface toward a dark ink (and\n * lightens a dark one toward a light ink) — on Alert, {@link POINTER_INK_STEP}\n * is the other half of the press.\n *\n * `ms` is 250 and not the 1000 first asked for, and the reason is that ONE\n * property carries both states. CSS runs a transition from the DESTINATION\n * state's declaration, and entering hover and releasing a press share that\n * destination — so they cannot have different durations without a second\n * animatable property, and both free pseudo-elements are already spent on the\n * `gradient` shimmer and the `pulse` wash. At 1000ms the hover inherited the\n * second: crossing an alert in 300ms peaked at a ≈ 0.024, under the JND, and\n * for ~360ms the alert you had just LEFT was darker than the one under the\n * pointer. A fast press-return is the smaller loss, and it is the call the\n * product owner made when shown both.\n */\nexport const ACTIVE = { tintAlpha: 0.2, ms: 250 } as const;\n\n/**\n * How far the MESSAGE ink — title, description and children — steps toward the\n * absolute on its own side while the alert is hovered or pressed (FUT-4506,\n * option C).\n *\n * The tint layer above moves the surface toward the mode's absolute — black in\n * light mode, white in dark — which is the side the ink sits on, so every\n * pointer state CLOSED the gap the ink is read across. Measured on a host pane\n * whose summary sat at 4.71:1 idle: 4.22 hovered, 3.17 pressed in light mode,\n * and down to 2.68 pressed in dark. The title, at 16.8px/600, is not WCAG\n * \"large\" text, so it is held to 4.5:1 as well.\n *\n * The answer keeps the layer (the pointer still gets its feedback) and moves\n * the ink FURTHER the same way, so the gap re-opens. The amounts are the\n * prototype's measured steps on that host pane, the worst case in reach: they\n * hold the 0.9 summary at 4.75–6.07:1 there, and at 6.38:1 or more on this\n * package's default palette in both modes. White needs the bigger step because\n * a light ink has less room above it than a dark ink has below it, and dark\n * mode's pressed step needs at least 0.55.\n *\n * Keyed by the absolute the ink moves TOWARD, which is the mode's: black in\n * light mode, white in dark. The web applies the step as `color-mix()` over\n * `currentColor`, so its AMOUNT lands on whatever ink is actually painted — a\n * host's repaint of a semantic or `glass` alert included. Its DIRECTION is the\n * mode's, which is only safe where the surface tracks the mode, so `gradient`\n * is not stepped at all (`inkAbsolute` in `Alert.ink.ts`): a host that\n * repaints it to a light pane and a dark ink would otherwise have its ink\n * stepped toward white under a black layer. DOM only; native has no pointer\n * states. `Banner` paints the same tint and does not step yet.\n */\nexport const POINTER_INK_STEP = {\n hover: { black: 0.15, white: 0.2 },\n press: { black: 0.35, white: 0.6 },\n} as const;\n\n/**\n * Both pointer states as a host reads them: the tint layer's alpha and the ink\n * step, per absolute. Exported (as `ALERT_POINTER_STATES`) so a theme that\n * repaints the alert's pane and ink can assert its own tones still clear 4.5:1\n * hovered and pressed, against the numbers the package actually draws with.\n */\nexport const POINTER_STATES = {\n hover: { tintAlpha: HOVER.tintAlpha, inkStep: POINTER_INK_STEP.hover },\n press: { tintAlpha: ACTIVE.tintAlpha, inkStep: POINTER_INK_STEP.press },\n} as const;\n\nexport const FOCUS = { ringWidth: 2, ringAlpha: 1, offset: 2 } as const;\n\n/** `neutral` has no palette slot; the web has always drawn it from three greys. */\nexport const NEUTRAL_GREY: Record<'main' | 'light' | 'dark', UiGreyStep> = { main: 500, light: 300, dark: 700 };\n\n/** A duration as the CSS the web has always emitted: `2000` → `2s`, `300` → `0.3s`. */\nexport const seconds = (ms: number): string => `${ms / 1000}s`;\n\n/** The palette shape the web's `getColorFromTheme` returns — a main plus optional shades. */\nexport interface AlertPalette {\n main: string;\n light?: string;\n dark?: string;\n}\n\n/**\n * The renderer-free twin of the web's `getColorFromTheme`: a variant or\n * colour name to its palette, `neutral` from the greys, anything unknown\n * (`glass`, `gradient`) to `info`.\n */\nexport function alertPalette(theme: UiTheme, key: string | undefined): AlertPalette {\n switch (key) {\n case 'info':\n case 'success':\n case 'warning':\n case 'danger':\n case 'primary':\n case 'secondary':\n return theme.palette[key];\n case 'neutral':\n return {\n main: NEUTRAL_RAMP[NEUTRAL_GREY.main],\n light: NEUTRAL_RAMP[NEUTRAL_GREY.light],\n dark: NEUTRAL_RAMP[NEUTRAL_GREY.dark],\n };\n default:\n return theme.palette.info;\n }\n}\n\n/** What a variant paints: its fill, its ink, its hairline if any, and the colour of its glyph. */\nexport interface AlertSurface {\n backgroundColor: string;\n color: string;\n borderColor?: string;\n iconColor: string;\n}\n\nexport const SEMANTIC_VARIANTS: ReadonlySet<AlertVariant> = new Set(['info', 'success', 'warning', 'danger']);\n\n/** The opaque tint and same-hue ink, inverted for dark mode; the hairline keeps its alpha. */\nexport function semanticSurface(theme: UiTheme, palette: AlertPalette): AlertSurface {\n const dark = theme.mode === 'dark';\n return {\n backgroundColor: dark\n ? darken(palette.main, SEMANTIC_SURFACE.tint.dark)\n : lighten(palette.main, SEMANTIC_SURFACE.tint.light),\n color: dark ? lighten(palette.main, SEMANTIC_SURFACE.ink) : darken(palette.main, SEMANTIC_SURFACE.ink),\n borderColor: alpha(palette.main, SEMANTIC_SURFACE.borderAlpha),\n iconColor: palette.main,\n };\n}\n\nexport function glassSurface(theme: UiTheme): AlertSurface {\n return {\n backgroundColor: alpha(theme.palette.background.paper, GLASS.backgroundAlpha),\n color: theme.palette.text.primary,\n borderColor: alpha(theme.palette.divider, GLASS.borderAlpha),\n iconColor: theme.palette.primary.main,\n };\n}\n\n/** The gradient's two stops; a renderer with no gradient fill paints `from`. */\nexport function gradientStops(palette: AlertPalette): { from: string; to: string } {\n return {\n from: alpha(palette.light || palette.main, GRADIENT.stopAlpha),\n to: alpha(palette.dark || palette.main, GRADIENT.stopAlpha),\n };\n}\n\nexport function gradientSurface(palette: AlertPalette): AlertSurface {\n const ink = contrastText(palette.main);\n return { backgroundColor: gradientStops(palette).from, color: ink, iconColor: ink };\n}\n\n/** The surface for a variant, `glass` and `gradient` included. */\nexport function alertSurface(theme: UiTheme, variant: AlertVariant, palette: AlertPalette): AlertSurface {\n if (variant === 'glass') return glassSurface(theme);\n if (variant === 'gradient') return gradientSurface(palette);\n return semanticSurface(theme, palette);\n}\n"],"mappings":";;;;;;;;;;;;;AAkBO,IAAM,qBAAqB;AAC3B,IAAM,sBAAsB,EAAE,UAAU,MAAM,YAAY,EAAE;AAC5D,IAAM,sBAAsB;AAC5B,IAAM,eAAe;AAGrB,IAAM,UAAU,EAAE,IAAI,KAAK,OAAO,MAAM,MAAM,GAAG;AACjD,IAAM,YAAY,EAAE,IAAI,KAAK,MAAM,KAAK,KAAK,IAAI;AAEjD,IAAM,cAAc;AACpB,IAAM,iBAAiB;AAGvB,IAAM,oBAAoB;AAC1B,IAAM,oBAAoB;AAC1B,IAAM,sBAAsB;AAE5B,IAAM,iBAAiB,EAAE,gBAAgB,KAAK,aAAa,KAAK;AAGhE,IAAM,QAAQ,EAAE,UAAU,MAAM,YAAY,KAAK,WAAW,IAAI,mBAAmB,IAAI;AAEvF,IAAM,cAAc,EAAE,UAAU,MAAM,SAAS,IAAI;AAGnD,IAAM,aAAa,EAAE,UAAU,MAAM,YAAY,IAAI;AAErD,IAAM,YAAY,EAAE,MAAM,IAAI,SAAS,KAAK,kBAAkB,MAAM,iBAAiB,MAAM,eAAe,EAAE;AAE5G,IAAM,cAAc,EAAE,kBAAkB,GAAG,YAAY,GAAG,aAAa,GAAG;AAE1E,IAAM,eAAe,EAAE,SAAS,GAAG,UAAU,IAAI,SAAS,KAAK,WAAW,IAAI;AAO9E,IAAM,mBAAmB,EAAE,MAAM,EAAE,OAAO,KAAK,MAAM,IAAI,GAAG,KAAK,KAAK,aAAa,KAAK;AAExF,IAAM,QAAQ,EAAE,iBAAiB,MAAM,aAAa,KAAK,MAAM,IAAI,iBAAiB,IAAI;AAWxF,IAAM,WAAW;AAAA,EACtB,UAAU;AAAA,EACV,WAAW;AAAA,EACX,cAAc;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
25
25
  sheen,
26
26
  softNeutral
@@ -267,4 +267,4 @@ export {
267
267
  alertVariantStyles,
268
268
  alertEmphasisStyles
269
269
  };
270
- //# sourceMappingURL=chunk-L5RS6QAT.js.map
270
+ //# sourceMappingURL=chunk-YBF2WUGQ.js.map
@@ -1,12 +1,15 @@
1
- import "../chunk-NUGT7LMR.js";
1
+ import "../chunk-AG4F6NVT.js";
2
2
  import {
3
3
  Alert
4
- } from "../chunk-NQCTANF3.js";
5
- import "../chunk-L5RS6QAT.js";
4
+ } from "../chunk-RKAX37F4.js";
5
+ import "../chunk-GDWU7WF4.js";
6
+ import "../chunk-YBF2WUGQ.js";
6
7
  import "../chunk-QXUXO22M.js";
7
- import "../chunk-7HZ36QDH.js";
8
+ import "../chunk-LNZJJFZQ.js";
8
9
  import "../chunk-L7VH6IMR.js";
9
- import "../chunk-5ZY3IIIG.js";
10
+ import {
11
+ POINTER_STATES
12
+ } from "../chunk-TBQR5VCN.js";
10
13
  import "../chunk-TYJR4GOF.js";
11
14
  import "../chunk-2FBGDSGC.js";
12
15
  import "../chunk-VBP46YP4.js";
@@ -21,6 +24,7 @@ import "../chunk-N3GAFIXG.js";
21
24
  import "../chunk-YKCAJ2TN.js";
22
25
  import "../chunk-PZ5AY32C.js";
23
26
  export {
27
+ POINTER_STATES as ALERT_POINTER_STATES,
24
28
  Alert
25
29
  };
26
30
  //# sourceMappingURL=Alert.js.map
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  Banner
3
- } from "../chunk-Z4ZFJ565.js";
4
- import "../chunk-QIP37Y2C.js";
5
- import "../chunk-5ZY3IIIG.js";
3
+ } from "../chunk-SRAIV6U6.js";
4
+ import "../chunk-2RC6EAGD.js";
5
+ import "../chunk-TBQR5VCN.js";
6
6
  import "../chunk-2FBGDSGC.js";
7
7
  import "../chunk-VBP46YP4.js";
8
8
  import "../chunk-44BD7SFH.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "../chunk-3LD42RNV.js";
7
7
  import {
8
8
  useRemoveConfirm
9
- } from "../chunk-AP7GEUJS.js";
9
+ } from "../chunk-67GTAPK6.js";
10
10
  import {
11
11
  rowActionsToMenuItems
12
12
  } from "../chunk-ZBXG6RVJ.js";
@@ -20,7 +20,7 @@ import {
20
20
  import {
21
21
  CardActionsProvider,
22
22
  useCardActions
23
- } from "../chunk-RCTHCXS6.js";
23
+ } from "../chunk-4N4M237A.js";
24
24
  import "../chunk-WVML3ENZ.js";
25
25
  import "../chunk-AY5GKCH7.js";
26
26
  import "../chunk-XCBQXSTR.js";
@@ -31,16 +31,17 @@ import "../chunk-4P63RSSY.js";
31
31
  import "../chunk-EMYESBIT.js";
32
32
  import "../chunk-LZRVUOMU.js";
33
33
  import "../chunk-EEB66IVH.js";
34
- import "../chunk-NUGT7LMR.js";
35
- import "../chunk-NQCTANF3.js";
36
- import "../chunk-L5RS6QAT.js";
34
+ import "../chunk-AG4F6NVT.js";
35
+ import "../chunk-RKAX37F4.js";
36
+ import "../chunk-GDWU7WF4.js";
37
+ import "../chunk-YBF2WUGQ.js";
37
38
  import "../chunk-QXUXO22M.js";
38
- import "../chunk-7HZ36QDH.js";
39
+ import "../chunk-LNZJJFZQ.js";
39
40
  import "../chunk-L7VH6IMR.js";
40
41
  import "../chunk-2IBFEHIX.js";
41
42
  import "../chunk-TTBLQZVT.js";
42
43
  import "../chunk-WGK7VNCO.js";
43
- import "../chunk-5ZY3IIIG.js";
44
+ import "../chunk-TBQR5VCN.js";
44
45
  import "../chunk-6DPAWXZ3.js";
45
46
  import "../chunk-BA4RHQ3B.js";
46
47
  import "../chunk-YOXYSAUI.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-MBMZNSBP.js";
4
4
  import {
5
5
  DataViewsTableBase
6
- } from "../chunk-U4PV2ZKK.js";
6
+ } from "../chunk-AESKKFA5.js";
7
7
  import {
8
8
  DataViewsGrid
9
9
  } from "../chunk-SOXO2VN3.js";
@@ -66,7 +66,7 @@ import "../chunk-YLGY3D52.js";
66
66
  import "../chunk-4NG3LTRX.js";
67
67
  import "../chunk-4IE66GY2.js";
68
68
  import "../chunk-2MT6VSS2.js";
69
- import "../chunk-ZKVSFVIA.js";
69
+ import "../chunk-CGLMWS7K.js";
70
70
  import "../chunk-RVBLOR32.js";
71
71
  import "../chunk-OFRQMFWD.js";
72
72
  import "../chunk-5M4TYFR3.js";
@@ -223,18 +223,19 @@ import "../chunk-G3E66C6J.js";
223
223
  import "../chunk-LL2BWQPM.js";
224
224
  import "../chunk-SNCSGLJ6.js";
225
225
  import "../chunk-UMICTXMP.js";
226
- import "../chunk-NUGT7LMR.js";
227
- import "../chunk-NQCTANF3.js";
228
- import "../chunk-L5RS6QAT.js";
226
+ import "../chunk-AG4F6NVT.js";
227
+ import "../chunk-RKAX37F4.js";
228
+ import "../chunk-GDWU7WF4.js";
229
+ import "../chunk-YBF2WUGQ.js";
229
230
  import "../chunk-QXUXO22M.js";
230
- import "../chunk-7HZ36QDH.js";
231
+ import "../chunk-LNZJJFZQ.js";
231
232
  import "../chunk-L7VH6IMR.js";
232
233
  import "../chunk-2IBFEHIX.js";
233
234
  import "../chunk-TTBLQZVT.js";
234
235
  import "../chunk-WGK7VNCO.js";
235
236
  import "../chunk-3UIDKLML.js";
236
237
  import "../chunk-PYC4CWCQ.js";
237
- import "../chunk-5ZY3IIIG.js";
238
+ import "../chunk-TBQR5VCN.js";
238
239
  import "../chunk-6DPAWXZ3.js";
239
240
  import "../chunk-WEBEOBN5.js";
240
241
  import "../chunk-VUHLNYAE.js";
@@ -1,18 +1,19 @@
1
1
  import "../chunk-JQRKXMSH.js";
2
2
  import {
3
3
  NotificationStatusNotice
4
- } from "../chunk-YNZUYZ2O.js";
4
+ } from "../chunk-6FGP7RMV.js";
5
5
  import "../chunk-55FFONIV.js";
6
6
  import {
7
7
  detectNotificationBrowser,
8
8
  notificationUnblockSteps
9
9
  } from "../chunk-L7BRU4UF.js";
10
- import "../chunk-NQCTANF3.js";
11
- import "../chunk-L5RS6QAT.js";
10
+ import "../chunk-RKAX37F4.js";
11
+ import "../chunk-GDWU7WF4.js";
12
+ import "../chunk-YBF2WUGQ.js";
12
13
  import "../chunk-QXUXO22M.js";
13
- import "../chunk-7HZ36QDH.js";
14
+ import "../chunk-LNZJJFZQ.js";
14
15
  import "../chunk-L7VH6IMR.js";
15
- import "../chunk-5ZY3IIIG.js";
16
+ import "../chunk-TBQR5VCN.js";
16
17
  import "../chunk-YOXYSAUI.js";
17
18
  import "../chunk-PPEHBI5O.js";
18
19
  import "../chunk-G2FUZALJ.js";
@@ -1,10 +1,10 @@
1
1
  import "../chunk-TWAKMV5B.js";
2
2
  import {
3
3
  SequenceResolver
4
- } from "../chunk-64LNNC54.js";
4
+ } from "../chunk-3R5MCSYO.js";
5
5
  import "../chunk-74IH3ZGD.js";
6
- import "../chunk-6D5AMANO.js";
7
- import "../chunk-BQBEN44R.js";
6
+ import "../chunk-OV5NM4FY.js";
7
+ import "../chunk-PNAKRHRT.js";
8
8
  import "../chunk-JO6D7YGN.js";
9
9
  import "../chunk-2ORD2FMN.js";
10
10
  import "../chunk-2SRWPNQ7.js";
@@ -23,13 +23,14 @@ import "../chunk-Z2JH5KW5.js";
23
23
  import "../chunk-AL5E624U.js";
24
24
  import "../chunk-GYXUCS37.js";
25
25
  import "../chunk-LV7LSPBF.js";
26
- import "../chunk-NUGT7LMR.js";
27
- import "../chunk-NQCTANF3.js";
28
- import "../chunk-L5RS6QAT.js";
26
+ import "../chunk-AG4F6NVT.js";
27
+ import "../chunk-RKAX37F4.js";
28
+ import "../chunk-GDWU7WF4.js";
29
+ import "../chunk-YBF2WUGQ.js";
29
30
  import "../chunk-QXUXO22M.js";
30
- import "../chunk-7HZ36QDH.js";
31
+ import "../chunk-LNZJJFZQ.js";
31
32
  import "../chunk-L7VH6IMR.js";
32
- import "../chunk-5ZY3IIIG.js";
33
+ import "../chunk-TBQR5VCN.js";
33
34
  import "../chunk-BA4RHQ3B.js";
34
35
  import "../chunk-YOXYSAUI.js";
35
36
  import "../chunk-PPEHBI5O.js";
@@ -101,6 +101,16 @@ var GRADIENT = {
101
101
  };
102
102
  var GLOW = { blur: 20, spread: 5, alpha: 0.3, brightness: 1.05 };
103
103
  var PULSE = { alpha: 0.2, ms: 2e3, spread: 10 };
104
+ var HOVER = { tintAlpha: 0.06 };
105
+ var ACTIVE = { tintAlpha: 0.2, ms: 250 };
106
+ var POINTER_INK_STEP = {
107
+ hover: { black: 0.15, white: 0.2 },
108
+ press: { black: 0.35, white: 0.6 }
109
+ };
110
+ var POINTER_STATES = {
111
+ hover: { tintAlpha: HOVER.tintAlpha, inkStep: POINTER_INK_STEP.hover },
112
+ press: { tintAlpha: ACTIVE.tintAlpha, inkStep: POINTER_INK_STEP.press }
113
+ };
104
114
  var NEUTRAL_GREY = { main: 500, light: 300, dark: 700 };
105
115
  function alertPalette(theme, key) {
106
116
  switch (key) {