@12-apps/ui 6.89.1 → 6.89.2

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.
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  DayRuler
4
- } from "../../../../chunk-2H6SCVLD.js";
5
- import "../../../../chunk-KHREN7Y7.js";
6
- import "../../../../chunk-EOJSA2EK.js";
4
+ } from "../../../../chunk-HMEGQKNQ.js";
5
+ import "../../../../chunk-ACM3HHZY.js";
6
+ import "../../../../chunk-G2PVUPE7.js";
7
7
  import "../../../../chunk-Y3F2F36I.js";
8
8
  import "../../../../chunk-K3IB7S7Q.js";
9
9
  import "../../../../chunk-YMYJO2CZ.js";
@@ -3,8 +3,8 @@ import {
3
3
  Coverage,
4
4
  RulerRow,
5
5
  spanOf
6
- } from "../../../../chunk-KHREN7Y7.js";
7
- import "../../../../chunk-EOJSA2EK.js";
6
+ } from "../../../../chunk-ACM3HHZY.js";
7
+ import "../../../../chunk-G2PVUPE7.js";
8
8
  import "../../../../chunk-YMYJO2CZ.js";
9
9
  import "../../../../chunk-7ZQ3KQ7J.js";
10
10
  import "../../../../chunk-LE5JYNR7.js";
@@ -7,6 +7,7 @@ import {
7
7
  breakSx,
8
8
  coverageCellSx,
9
9
  coverageLabelSx,
10
+ coverageStrength,
10
11
  coverageSx,
11
12
  groupTitleSx,
12
13
  handleSx,
@@ -18,7 +19,7 @@ import {
18
19
  skeletonTrackSx,
19
20
  trackSx,
20
21
  whoSx
21
- } from "../../../../chunk-EOJSA2EK.js";
22
+ } from "../../../../chunk-G2PVUPE7.js";
22
23
  import "../../../../chunk-7ZQ3KQ7J.js";
23
24
  import "../../../../chunk-4HK4FVMV.js";
24
25
  import "../../../../chunk-TZ23DNKY.js";
@@ -39,6 +40,7 @@ export {
39
40
  breakSx,
40
41
  coverageCellSx,
41
42
  coverageLabelSx,
43
+ coverageStrength,
42
44
  coverageSx,
43
45
  groupTitleSx,
44
46
  handleSx,
@@ -218,9 +218,9 @@ import {
218
218
  import "../../../chunk-D3OXTS7Y.js";
219
219
  import {
220
220
  DayRuler
221
- } from "../../../chunk-2H6SCVLD.js";
222
- import "../../../chunk-KHREN7Y7.js";
223
- import "../../../chunk-EOJSA2EK.js";
221
+ } from "../../../chunk-HMEGQKNQ.js";
222
+ import "../../../chunk-ACM3HHZY.js";
223
+ import "../../../chunk-G2PVUPE7.js";
224
224
  import "../../../chunk-Y3F2F36I.js";
225
225
  import "../../../chunk-K3IB7S7Q.js";
226
226
  import "../../../chunk-YMYJO2CZ.js";
@@ -807,9 +807,9 @@ import {
807
807
  import "../../chunk-D3OXTS7Y.js";
808
808
  import {
809
809
  DayRuler
810
- } from "../../chunk-2H6SCVLD.js";
811
- import "../../chunk-KHREN7Y7.js";
812
- import "../../chunk-EOJSA2EK.js";
810
+ } from "../../chunk-HMEGQKNQ.js";
811
+ import "../../chunk-ACM3HHZY.js";
812
+ import "../../chunk-G2PVUPE7.js";
813
813
  import "../../chunk-Y3F2F36I.js";
814
814
  import "../../chunk-K3IB7S7Q.js";
815
815
  import "../../chunk-YMYJO2CZ.js";
@@ -14,7 +14,7 @@ import {
14
14
  rowSx,
15
15
  trackSx,
16
16
  whoSx
17
- } from "./chunk-EOJSA2EK.js";
17
+ } from "./chunk-G2PVUPE7.js";
18
18
  import {
19
19
  useTextFits
20
20
  } from "./chunk-YMYJO2CZ.js";
@@ -205,4 +205,4 @@ export {
205
205
  Coverage,
206
206
  Axis
207
207
  };
208
- //# sourceMappingURL=chunk-KHREN7Y7.js.map
208
+ //# sourceMappingURL=chunk-ACM3HHZY.js.map
@@ -6,9 +6,6 @@ import {
6
6
  blockToneStyles,
7
7
  breakHatch
8
8
  } from "./chunk-4HK4FVMV.js";
9
- import {
10
- softSignal
11
- } from "./chunk-TZ23DNKY.js";
12
9
  import {
13
10
  FIELD_BORDER_WIDTH
14
11
  } from "./chunk-O6MJWHU5.js";
@@ -18,6 +15,7 @@ import {
18
15
  } from "./chunk-YKCAJ2TN.js";
19
16
 
20
17
  // src/components/data-display/DayRuler/DayRuler.styles.ts
18
+ import { alpha } from "@mui/material/styles/index.js";
21
19
  function rootSx(hasActions) {
22
20
  return (theme) => ({
23
21
  containerType: "inline-size",
@@ -55,21 +53,30 @@ function coverageSx(hours) {
55
53
  height: rem(theme, DAY_RULER_METRICS.coverage.height)
56
54
  });
57
55
  }
56
+ function coverageStrength(count) {
57
+ if (count <= 0) return 0;
58
+ return Math.min(0.85, 0.18 + count * 0.09);
59
+ }
58
60
  function coverageCellSx(count) {
59
- return (theme) => ({
60
- display: "flex",
61
- alignItems: "center",
62
- justifyContent: "center",
63
- fontSize: rem(theme, DAY_RULER_METRICS.coverage.font),
64
- borderRadius: rem(theme, DAY_RULER_METRICS.coverage.radius),
65
- color: theme.palette.text.primary,
66
- // A tonal fill, as the prototype's coverage line draws it — never an outline (FUT-3831): a staffed
67
- // hour reads by its fill alone; the hairline stays transparent so a count never shifts its cell.
68
- backgroundColor: count > 0 ? softSignal(theme, "success") : theme.palette.action.hover,
69
- border: "1px solid transparent",
70
- minWidth: 0,
71
- overflow: "hidden"
72
- });
61
+ return (theme) => {
62
+ const strength = coverageStrength(count);
63
+ return {
64
+ display: "flex",
65
+ alignItems: "center",
66
+ justifyContent: "center",
67
+ fontSize: rem(theme, DAY_RULER_METRICS.coverage.font),
68
+ borderRadius: rem(theme, DAY_RULER_METRICS.coverage.radius),
69
+ color: theme.palette.text.primary,
70
+ // A tonal fill, as the prototype's coverage line draws it — never an outline (FUT-3831). It is
71
+ // the success colour over the page, so a staffed hour is LIGHTER than an empty one in dark mode
72
+ // and plainly green in light, where the soft-signal blend read as the empty grey. The hairline
73
+ // stays transparent so a count never shifts its cell.
74
+ backgroundColor: strength > 0 ? alpha(theme.palette.success.main, strength) : theme.palette.action.hover,
75
+ border: "1px solid transparent",
76
+ minWidth: 0,
77
+ overflow: "hidden"
78
+ };
79
+ };
73
80
  }
74
81
  var axisSx = (theme) => ({
75
82
  position: "relative",
@@ -264,6 +271,7 @@ export {
264
271
  lineSx,
265
272
  coverageLabelSx,
266
273
  coverageSx,
274
+ coverageStrength,
267
275
  coverageCellSx,
268
276
  axisSx,
269
277
  groupTitleSx,
@@ -280,4 +288,4 @@ export {
280
288
  skeletonTrackSx,
281
289
  skeletonNameSx
282
290
  };
283
- //# sourceMappingURL=chunk-EOJSA2EK.js.map
291
+ //# sourceMappingURL=chunk-G2PVUPE7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/data-display/DayRuler/DayRuler.styles.ts"],"sourcesContent":["import { alpha, type CSSObject, type SxProps, type Theme } from '@mui/material/styles/index.js';\n\nimport { FIELD_BORDER_WIDTH } from '../../../tokens/field-height.core';\nimport { rem, sxRem } from '../../../tokens/relative';\nimport { actualBarColor, blockToneStyles, breakHatch } from '../ScheduleGrid/schedule-tones';\nimport type { ScheduleBlockTone } from '../ScheduleGrid/ScheduleGrid.types';\nimport { DAY_RULER_METRICS as M } from './DayRuler.metrics';\n\n/** The container narrow rows answer to (container queries, never media queries). */\n/**\n * `--dr-actions`: the actions column, 220px when any row has actions and\n * nothing when none does (no empty column at the end of every row).\n */\nexport function rootSx(hasActions: boolean): SxProps<Theme> {\n return (theme: Theme) => ({\n containerType: 'inline-size',\n minWidth: 0,\n width: '100%',\n userSelect: 'none',\n '--dr-actions': hasActions ? rem(theme, M.sideColumn) : '0%',\n });\n}\n\n/** `@container` below which a row stacks (the coverage and axis rows go full width). Bounds are \"from px up\". */\nfunction compact(theme: Theme): string {\n return `@container (width < ${rem(theme, M.compactBelow)})`;\n}\n\n/** `@container` below which the pane is phone-sized: no coverage row, no axis. Bounds are \"from px up\". */\nfunction phone(theme: Theme): string {\n return `@container (width < ${rem(theme, M.phoneBelow)})`;\n}\n\n/** Name · track · actions, the coverage row and the axis row share these columns on a computer. */\nexport const lineSx: SxProps<Theme> = (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: `${rem(theme, M.sideColumn)} minmax(0, 1fr) var(--dr-actions)`,\n columnGap: rem(theme, M.gap),\n alignItems: 'center',\n // Stacked: across the full width, like the tracks; the label above the counts.\n [compact(theme)]: {\n gridTemplateColumns: 'minmax(0, 1fr)',\n rowGap: rem(theme, M.coverage.gap),\n '& > span:empty': { display: 'none' },\n },\n [phone(theme)]: { display: 'none' },\n});\n\nexport const coverageLabelSx: SxProps<Theme> = { fontSize: sxRem(M.meta), color: 'text.secondary' };\n\nexport function coverageSx(hours: number): SxProps<Theme> {\n return (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: `repeat(${hours}, minmax(0, 1fr))`,\n gap: rem(theme, M.coverage.gap),\n height: rem(theme, M.coverage.height),\n });\n}\n\n/**\n * How strongly a staffed hour is filled: the prototype's tonal success step, deeper with each\n * person on the escala (0.18 + 0.09 per person, at most 0.85). An empty hour has none.\n */\nexport function coverageStrength(count: number): number {\n if (count <= 0) return 0;\n return Math.min(0.85, 0.18 + count * 0.09);\n}\n\nexport function coverageCellSx(count: number): SxProps<Theme> {\n return (theme: Theme) => {\n const strength = coverageStrength(count);\n return {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n fontSize: rem(theme, M.coverage.font),\n borderRadius: rem(theme, M.coverage.radius),\n color: theme.palette.text.primary,\n // A tonal fill, as the prototype's coverage line draws it — never an outline (FUT-3831). It is\n // the success colour over the page, so a staffed hour is LIGHTER than an empty one in dark mode\n // and plainly green in light, where the soft-signal blend read as the empty grey. The hairline\n // stays transparent so a count never shifts its cell.\n backgroundColor: strength > 0 ? alpha(theme.palette.success.main, strength) : theme.palette.action.hover,\n border: '1px solid transparent',\n minWidth: 0,\n overflow: 'hidden',\n };\n };\n}\n\nexport const axisSx: SxProps<Theme> = (theme: Theme) => ({\n position: 'relative',\n height: rem(theme, M.axis.height),\n fontSize: rem(theme, M.axis.font),\n color: theme.palette.text.secondary,\n mt: 0.5,\n '& > span': { position: 'absolute', transform: 'translateX(-50%)', whiteSpace: 'nowrap' },\n});\n\nexport const groupTitleSx: SxProps<Theme> = {\n fontSize: sxRem(M.groupTitle),\n letterSpacing: '0.05em',\n textTransform: 'uppercase',\n color: 'text.secondary',\n fontWeight: 500,\n pt: 1.5,\n pb: 0.5,\n m: 0,\n};\n\n/**\n * One person's row. A computer: name · track · actions on one line. A narrow\n * ruler (a phone): name and actions on top, the track under them, full width.\n */\nexport const rowSx: SxProps<Theme> = (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: `${rem(theme, M.sideColumn)} minmax(0, 1fr) var(--dr-actions)`,\n gridTemplateAreas: '\"who track actions\"',\n columnGap: rem(theme, M.gap),\n alignItems: 'center',\n py: rem(theme, M.rowPaddingY),\n borderBottom: `1px solid ${theme.palette.divider}`,\n [compact(theme)]: {\n gridTemplateColumns: 'minmax(0, 1fr) auto',\n gridTemplateAreas: '\"who actions\" \"track track\"',\n rowGap: theme.spacing(1),\n py: theme.spacing(1.5),\n },\n});\n\nexport const whoSx: SxProps<Theme> = { gridArea: 'who', minWidth: 0 };\n\nexport const actionsSx: SxProps<Theme> = {\n gridArea: 'actions',\n display: 'flex',\n gap: 1,\n alignItems: 'center',\n justifyContent: 'flex-end',\n flexWrap: 'wrap',\n minWidth: 0,\n};\n\n/** A break inside a block: a hatched band across its height, under its text. `span` is in % of the block. */\nexport function breakSx(span: Span): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: `${span.at}%`,\n width: `${span.share}%`,\n background: breakHatch(theme, rem(theme, M.breakStripe.ink), rem(theme, M.breakStripe.ink + M.breakStripe.gap)),\n pointerEvents: 'none',\n // Where the band meets an end of the block it takes the block's rounding:\n // on a phone the block does not clip (its hit area reaches past it).\n ...(span.at <= 0.01 ? { borderTopLeftRadius: 'inherit', borderBottomLeftRadius: 'inherit' } : {}),\n ...(span.at + span.share >= 99.99 ? { borderTopRightRadius: 'inherit', borderBottomRightRadius: 'inherit' } : {}),\n });\n}\n\n/** The hour lines: one every `every` hours of a `hours`-long ruler. */\nfunction hourLines(theme: Theme, hours: number, every: number): string {\n const line = theme.palette.divider;\n const step = `${(100 * every) / hours}%`;\n const hairline = `${FIELD_BORDER_WIDTH}px`;\n return `repeating-linear-gradient(to right, ${line} 0, ${line} ${hairline}, transparent ${hairline}, transparent ${step})`;\n}\n\nexport function trackSx(opts: { hours: number; tickHours: number; interactive: boolean }): SxProps<Theme> {\n return (theme: Theme) => ({\n gridArea: 'track',\n position: 'relative',\n height: rem(theme, M.track.height),\n borderRadius: rem(theme, M.track.radius),\n backgroundColor: theme.palette.action.hover,\n backgroundImage: hourLines(theme, opts.hours, 1),\n cursor: opts.interactive ? 'crosshair' : 'default',\n touchAction: 'auto',\n outline: 'none',\n '&:focus-visible': { boxShadow: `0 0 0 ${rem(theme, M.ring)} ${theme.palette.primary.main}` },\n [compact(theme)]: {\n height: rem(theme, M.track.compactHeight),\n borderRadius: rem(theme, M.track.compactRadius),\n backgroundImage: hourLines(theme, opts.hours, opts.tickHours),\n },\n });\n}\n\n/** Where a bar starts and how long it is, both in % of the track. */\nexport interface Span {\n at: number;\n share: number;\n}\n\nexport function blockSx(tone: ScheduleBlockTone, span: Span, opts: { selected: boolean; movable: boolean }): SxProps<Theme> {\n return (theme: Theme): CSSObject => ({\n ...blockToneStyles(theme, tone, true),\n position: 'absolute',\n left: `${span.at}%`,\n width: `${span.share}%`,\n top: rem(theme, M.block.top),\n height: rem(theme, M.block.height),\n boxSizing: 'border-box',\n borderRadius: rem(theme, M.block.radius),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: `0 ${rem(theme, M.block.paddingX)}`,\n margin: 0,\n font: 'inherit',\n fontSize: rem(theme, M.block.font),\n fontWeight: 500,\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n cursor: opts.movable ? 'grab' : 'pointer',\n boxShadow: opts.selected ? `0 0 0 ${rem(theme, M.ring)} ${theme.palette.primary.main}` : 'none',\n '&:focus-visible': { outline: `${rem(theme, M.ring)} solid ${theme.palette.primary.main}`, outlineOffset: rem(theme, M.ringOffset) },\n '& [data-dr-text]': { position: 'relative', overflow: 'hidden', textOverflow: 'ellipsis', minWidth: 0 },\n '& [data-dr-text=\"short\"]': { display: 'none' },\n [compact(theme)]: {\n top: rem(theme, M.block.compactTop),\n height: rem(theme, M.block.compactHeight),\n // A 40px hit area around the 20px bar, the look unchanged: the text cuts\n // itself (its spans ellipsize), so the block need not clip.\n overflow: 'visible',\n '&::after': {\n content: '\"\"',\n position: 'absolute',\n left: 0,\n right: 0,\n top: '50%',\n height: rem(theme, M.block.hitArea),\n transform: 'translateY(-50%)',\n },\n '&[data-narrow] [data-dr-text=\"full\"]': { display: 'none' },\n '&[data-narrow] [data-dr-text=\"short\"]': { display: 'inline' },\n },\n });\n}\n\nexport function handleSx(side: 'l' | 'r'): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n top: 0,\n bottom: 0,\n [side === 'l' ? 'left' : 'right']: 0,\n width: rem(theme, M.handle),\n cursor: 'ew-resize',\n });\n}\n\nexport function actualSx(span: Span): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n left: `${span.at}%`,\n width: `${span.share}%`,\n top: rem(theme, M.actual.top),\n height: rem(theme, M.actual.height),\n borderRadius: rem(theme, M.actual.radius),\n backgroundColor: actualBarColor(theme),\n pointerEvents: 'none',\n [compact(theme)]: { top: rem(theme, M.actual.compactTop), height: rem(theme, M.actual.compactHeight) },\n });\n}\n\nexport function actualLabelSx(left: number): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n left: `calc(${left}% + ${rem(theme, M.actualLabel.offset)})`,\n top: rem(theme, M.actualLabel.top),\n fontSize: rem(theme, M.actualLabel.font),\n color: theme.palette.text.secondary,\n whiteSpace: 'nowrap',\n pointerEvents: 'none',\n [compact(theme)]: { display: 'none' },\n });\n}\n\nexport function nowSx(left: number): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n left: `${left}%`,\n top: rem(theme, -M.now.overhang),\n bottom: rem(theme, -M.now.overhang),\n width: rem(theme, M.now.width),\n backgroundColor: theme.palette.primary.main,\n pointerEvents: 'none',\n });\n}\n\nexport const skeletonTrackSx: SxProps<Theme> = (theme: Theme) => ({\n gridArea: 'track',\n height: rem(theme, M.track.height),\n borderRadius: rem(theme, M.track.radius),\n backgroundColor: theme.palette.action.hover,\n});\n\nexport const skeletonNameSx: SxProps<Theme> = (theme: Theme) => ({\n gridArea: 'who',\n height: rem(theme, M.name),\n width: '60%',\n borderRadius: rem(theme, M.skeletonNameRadius),\n backgroundColor: theme.palette.action.hover,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,aAAuD;AAazD,SAAS,OAAO,YAAqC;AAC1D,SAAO,CAAC,WAAkB;AAAA,IACxB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,gBAAgB,aAAa,IAAI,OAAO,kBAAE,UAAU,IAAI;AAAA,EAC1D;AACF;AAGA,SAAS,QAAQ,OAAsB;AACrC,SAAO,uBAAuB,IAAI,OAAO,kBAAE,YAAY,CAAC;AAC1D;AAGA,SAAS,MAAM,OAAsB;AACnC,SAAO,uBAAuB,IAAI,OAAO,kBAAE,UAAU,CAAC;AACxD;AAGO,IAAM,SAAyB,CAAC,WAAkB;AAAA,EACvD,SAAS;AAAA,EACT,qBAAqB,GAAG,IAAI,OAAO,kBAAE,UAAU,CAAC;AAAA,EAChD,WAAW,IAAI,OAAO,kBAAE,GAAG;AAAA,EAC3B,YAAY;AAAA;AAAA,EAEZ,CAAC,QAAQ,KAAK,CAAC,GAAG;AAAA,IAChB,qBAAqB;AAAA,IACrB,QAAQ,IAAI,OAAO,kBAAE,SAAS,GAAG;AAAA,IACjC,kBAAkB,EAAE,SAAS,OAAO;AAAA,EACtC;AAAA,EACA,CAAC,MAAM,KAAK,CAAC,GAAG,EAAE,SAAS,OAAO;AACpC;AAEO,IAAM,kBAAkC,EAAE,UAAU,MAAM,kBAAE,IAAI,GAAG,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AA,IAC/B,QAAQ,IAAI,OAAO,CAAC,kBAAE,IAAI,QAAQ;AAAA,IAClC,OAAO,IAAI,OAAO,kBAAE,IAAI,KAAK;AAAA,IAC7B,iBAAiB,MAAM,QAAQ,QAAQ;AAAA,IACvC,eAAe;AAAA,EACjB;AACF;AAEO,IAAM,kBAAkC,CAAC,WAAkB;AAAA,EAChE,UAAU;AAAA,EACV,QAAQ,IAAI,OAAO,kBAAE,MAAM,MAAM;AAAA,EACjC,cAAc,IAAI,OAAO,kBAAE,MAAM,MAAM;AAAA,EACvC,iBAAiB,MAAM,QAAQ,OAAO;AACxC;AAEO,IAAM,iBAAiC,CAAC,WAAkB;AAAA,EAC/D,UAAU;AAAA,EACV,QAAQ,IAAI,OAAO,kBAAE,IAAI;AAAA,EACzB,OAAO;AAAA,EACP,cAAc,IAAI,OAAO,kBAAE,kBAAkB;AAAA,EAC7C,iBAAiB,MAAM,QAAQ,OAAO;AACxC;","names":[]}
@@ -2,14 +2,14 @@ import {
2
2
  Axis,
3
3
  Coverage,
4
4
  RulerRow
5
- } from "./chunk-KHREN7Y7.js";
5
+ } from "./chunk-ACM3HHZY.js";
6
6
  import {
7
7
  groupTitleSx,
8
8
  rootSx,
9
9
  rowSx,
10
10
  skeletonNameSx,
11
11
  skeletonTrackSx
12
- } from "./chunk-EOJSA2EK.js";
12
+ } from "./chunk-G2PVUPE7.js";
13
13
  import {
14
14
  handleBlockKey,
15
15
  keyCreateSpan
@@ -117,4 +117,4 @@ function DayRuler(props) {
117
117
  export {
118
118
  DayRuler
119
119
  };
120
- //# sourceMappingURL=chunk-2H6SCVLD.js.map
120
+ //# sourceMappingURL=chunk-HMEGQKNQ.js.map
@@ -5,9 +5,9 @@ import {
5
5
  import "../chunk-D3OXTS7Y.js";
6
6
  import {
7
7
  DayRuler
8
- } from "../chunk-2H6SCVLD.js";
9
- import "../chunk-KHREN7Y7.js";
10
- import "../chunk-EOJSA2EK.js";
8
+ } from "../chunk-HMEGQKNQ.js";
9
+ import "../chunk-ACM3HHZY.js";
10
+ import "../chunk-G2PVUPE7.js";
11
11
  import "../chunk-Y3F2F36I.js";
12
12
  import "../chunk-K3IB7S7Q.js";
13
13
  import "../chunk-YMYJO2CZ.js";
@@ -1,4 +1,4 @@
1
- import type { SxProps, Theme } from '@mui/material/styles/index.js';
1
+ import { type SxProps, type Theme } from '@mui/material/styles/index.js';
2
2
  import type { ScheduleBlockTone } from '../ScheduleGrid/ScheduleGrid.types';
3
3
  /** The container narrow rows answer to (container queries, never media queries). */
4
4
  /**
@@ -10,6 +10,11 @@ export declare function rootSx(hasActions: boolean): SxProps<Theme>;
10
10
  export declare const lineSx: SxProps<Theme>;
11
11
  export declare const coverageLabelSx: SxProps<Theme>;
12
12
  export declare function coverageSx(hours: number): SxProps<Theme>;
13
+ /**
14
+ * How strongly a staffed hour is filled: the prototype's tonal success step, deeper with each
15
+ * person on the escala (0.18 + 0.09 per person, at most 0.85). An empty hour has none.
16
+ */
17
+ export declare function coverageStrength(count: number): number;
13
18
  export declare function coverageCellSx(count: number): SxProps<Theme>;
14
19
  export declare const axisSx: SxProps<Theme>;
15
20
  export declare const groupTitleSx: SxProps<Theme>;
@@ -1 +1 @@
1
- {"version":3,"file":"DayRuler.styles.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/DayRuler/DayRuler.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAa,OAAO,EAAE,KAAK,EAAE,MAAM,+BAA+B,CAAC;AAM/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAG5E,oFAAoF;AACpF;;;GAGG;AACH,wBAAgB,MAAM,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAQ1D;AAYD,mGAAmG;AACnG,eAAO,MAAM,MAAM,EAAE,OAAO,CAAC,KAAK,CAYhC,CAAC;AAEH,eAAO,MAAM,eAAe,EAAE,OAAO,CAAC,KAAK,CAAwD,CAAC;AAEpG,wBAAgB,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m@10.34.5",
6
6
  "type": "module",
@@ -1,8 +1,7 @@
1
- import type { CSSObject, SxProps, Theme } from '@mui/material/styles/index.js';
1
+ import { alpha, type CSSObject, type SxProps, type Theme } from '@mui/material/styles/index.js';
2
2
 
3
3
  import { FIELD_BORDER_WIDTH } from '../../../tokens/field-height.core';
4
4
  import { rem, sxRem } from '../../../tokens/relative';
5
- import { softSignal } from '../../../tokens/surfaces';
6
5
  import { actualBarColor, blockToneStyles, breakHatch } from '../ScheduleGrid/schedule-tones';
7
6
  import type { ScheduleBlockTone } from '../ScheduleGrid/ScheduleGrid.types';
8
7
  import { DAY_RULER_METRICS as M } from './DayRuler.metrics';
@@ -58,21 +57,35 @@ export function coverageSx(hours: number): SxProps<Theme> {
58
57
  });
59
58
  }
60
59
 
60
+ /**
61
+ * How strongly a staffed hour is filled: the prototype's tonal success step, deeper with each
62
+ * person on the escala (0.18 + 0.09 per person, at most 0.85). An empty hour has none.
63
+ */
64
+ export function coverageStrength(count: number): number {
65
+ if (count <= 0) return 0;
66
+ return Math.min(0.85, 0.18 + count * 0.09);
67
+ }
68
+
61
69
  export function coverageCellSx(count: number): SxProps<Theme> {
62
- return (theme: Theme) => ({
63
- display: 'flex',
64
- alignItems: 'center',
65
- justifyContent: 'center',
66
- fontSize: rem(theme, M.coverage.font),
67
- borderRadius: rem(theme, M.coverage.radius),
68
- color: theme.palette.text.primary,
69
- // A tonal fill, as the prototype's coverage line draws it — never an outline (FUT-3831): a staffed
70
- // hour reads by its fill alone; the hairline stays transparent so a count never shifts its cell.
71
- backgroundColor: count > 0 ? softSignal(theme, 'success') : theme.palette.action.hover,
72
- border: '1px solid transparent',
73
- minWidth: 0,
74
- overflow: 'hidden',
75
- });
70
+ return (theme: Theme) => {
71
+ const strength = coverageStrength(count);
72
+ return {
73
+ display: 'flex',
74
+ alignItems: 'center',
75
+ justifyContent: 'center',
76
+ fontSize: rem(theme, M.coverage.font),
77
+ borderRadius: rem(theme, M.coverage.radius),
78
+ color: theme.palette.text.primary,
79
+ // A tonal fill, as the prototype's coverage line draws it — never an outline (FUT-3831). It is
80
+ // the success colour over the page, so a staffed hour is LIGHTER than an empty one in dark mode
81
+ // and plainly green in light, where the soft-signal blend read as the empty grey. The hairline
82
+ // stays transparent so a count never shifts its cell.
83
+ backgroundColor: strength > 0 ? alpha(theme.palette.success.main, strength) : theme.palette.action.hover,
84
+ border: '1px solid transparent',
85
+ minWidth: 0,
86
+ overflow: 'hidden',
87
+ };
88
+ };
76
89
  }
77
90
 
78
91
  export const axisSx: SxProps<Theme> = (theme: Theme) => ({
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../src/components/data-display/DayRuler/DayRuler.styles.ts"],"sourcesContent":["import type { CSSObject, SxProps, Theme } from '@mui/material/styles/index.js';\n\nimport { FIELD_BORDER_WIDTH } from '../../../tokens/field-height.core';\nimport { rem, sxRem } from '../../../tokens/relative';\nimport { softSignal } from '../../../tokens/surfaces';\nimport { actualBarColor, blockToneStyles, breakHatch } from '../ScheduleGrid/schedule-tones';\nimport type { ScheduleBlockTone } from '../ScheduleGrid/ScheduleGrid.types';\nimport { DAY_RULER_METRICS as M } from './DayRuler.metrics';\n\n/** The container narrow rows answer to (container queries, never media queries). */\n/**\n * `--dr-actions`: the actions column, 220px when any row has actions and\n * nothing when none does (no empty column at the end of every row).\n */\nexport function rootSx(hasActions: boolean): SxProps<Theme> {\n return (theme: Theme) => ({\n containerType: 'inline-size',\n minWidth: 0,\n width: '100%',\n userSelect: 'none',\n '--dr-actions': hasActions ? rem(theme, M.sideColumn) : '0%',\n });\n}\n\n/** `@container` below which a row stacks (the coverage and axis rows go full width). Bounds are \"from px up\". */\nfunction compact(theme: Theme): string {\n return `@container (width < ${rem(theme, M.compactBelow)})`;\n}\n\n/** `@container` below which the pane is phone-sized: no coverage row, no axis. Bounds are \"from px up\". */\nfunction phone(theme: Theme): string {\n return `@container (width < ${rem(theme, M.phoneBelow)})`;\n}\n\n/** Name · track · actions, the coverage row and the axis row share these columns on a computer. */\nexport const lineSx: SxProps<Theme> = (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: `${rem(theme, M.sideColumn)} minmax(0, 1fr) var(--dr-actions)`,\n columnGap: rem(theme, M.gap),\n alignItems: 'center',\n // Stacked: across the full width, like the tracks; the label above the counts.\n [compact(theme)]: {\n gridTemplateColumns: 'minmax(0, 1fr)',\n rowGap: rem(theme, M.coverage.gap),\n '& > span:empty': { display: 'none' },\n },\n [phone(theme)]: { display: 'none' },\n});\n\nexport const coverageLabelSx: SxProps<Theme> = { fontSize: sxRem(M.meta), color: 'text.secondary' };\n\nexport function coverageSx(hours: number): SxProps<Theme> {\n return (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: `repeat(${hours}, minmax(0, 1fr))`,\n gap: rem(theme, M.coverage.gap),\n height: rem(theme, M.coverage.height),\n });\n}\n\nexport function coverageCellSx(count: number): SxProps<Theme> {\n return (theme: Theme) => ({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n fontSize: rem(theme, M.coverage.font),\n borderRadius: rem(theme, M.coverage.radius),\n color: theme.palette.text.primary,\n // A tonal fill, as the prototype's coverage line draws it — never an outline (FUT-3831): a staffed\n // hour reads by its fill alone; the hairline stays transparent so a count never shifts its cell.\n backgroundColor: count > 0 ? softSignal(theme, 'success') : theme.palette.action.hover,\n border: '1px solid transparent',\n minWidth: 0,\n overflow: 'hidden',\n });\n}\n\nexport const axisSx: SxProps<Theme> = (theme: Theme) => ({\n position: 'relative',\n height: rem(theme, M.axis.height),\n fontSize: rem(theme, M.axis.font),\n color: theme.palette.text.secondary,\n mt: 0.5,\n '& > span': { position: 'absolute', transform: 'translateX(-50%)', whiteSpace: 'nowrap' },\n});\n\nexport const groupTitleSx: SxProps<Theme> = {\n fontSize: sxRem(M.groupTitle),\n letterSpacing: '0.05em',\n textTransform: 'uppercase',\n color: 'text.secondary',\n fontWeight: 500,\n pt: 1.5,\n pb: 0.5,\n m: 0,\n};\n\n/**\n * One person's row. A computer: name · track · actions on one line. A narrow\n * ruler (a phone): name and actions on top, the track under them, full width.\n */\nexport const rowSx: SxProps<Theme> = (theme: Theme) => ({\n display: 'grid',\n gridTemplateColumns: `${rem(theme, M.sideColumn)} minmax(0, 1fr) var(--dr-actions)`,\n gridTemplateAreas: '\"who track actions\"',\n columnGap: rem(theme, M.gap),\n alignItems: 'center',\n py: rem(theme, M.rowPaddingY),\n borderBottom: `1px solid ${theme.palette.divider}`,\n [compact(theme)]: {\n gridTemplateColumns: 'minmax(0, 1fr) auto',\n gridTemplateAreas: '\"who actions\" \"track track\"',\n rowGap: theme.spacing(1),\n py: theme.spacing(1.5),\n },\n});\n\nexport const whoSx: SxProps<Theme> = { gridArea: 'who', minWidth: 0 };\n\nexport const actionsSx: SxProps<Theme> = {\n gridArea: 'actions',\n display: 'flex',\n gap: 1,\n alignItems: 'center',\n justifyContent: 'flex-end',\n flexWrap: 'wrap',\n minWidth: 0,\n};\n\n/** A break inside a block: a hatched band across its height, under its text. `span` is in % of the block. */\nexport function breakSx(span: Span): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n top: 0,\n bottom: 0,\n left: `${span.at}%`,\n width: `${span.share}%`,\n background: breakHatch(theme, rem(theme, M.breakStripe.ink), rem(theme, M.breakStripe.ink + M.breakStripe.gap)),\n pointerEvents: 'none',\n // Where the band meets an end of the block it takes the block's rounding:\n // on a phone the block does not clip (its hit area reaches past it).\n ...(span.at <= 0.01 ? { borderTopLeftRadius: 'inherit', borderBottomLeftRadius: 'inherit' } : {}),\n ...(span.at + span.share >= 99.99 ? { borderTopRightRadius: 'inherit', borderBottomRightRadius: 'inherit' } : {}),\n });\n}\n\n/** The hour lines: one every `every` hours of a `hours`-long ruler. */\nfunction hourLines(theme: Theme, hours: number, every: number): string {\n const line = theme.palette.divider;\n const step = `${(100 * every) / hours}%`;\n const hairline = `${FIELD_BORDER_WIDTH}px`;\n return `repeating-linear-gradient(to right, ${line} 0, ${line} ${hairline}, transparent ${hairline}, transparent ${step})`;\n}\n\nexport function trackSx(opts: { hours: number; tickHours: number; interactive: boolean }): SxProps<Theme> {\n return (theme: Theme) => ({\n gridArea: 'track',\n position: 'relative',\n height: rem(theme, M.track.height),\n borderRadius: rem(theme, M.track.radius),\n backgroundColor: theme.palette.action.hover,\n backgroundImage: hourLines(theme, opts.hours, 1),\n cursor: opts.interactive ? 'crosshair' : 'default',\n touchAction: 'auto',\n outline: 'none',\n '&:focus-visible': { boxShadow: `0 0 0 ${rem(theme, M.ring)} ${theme.palette.primary.main}` },\n [compact(theme)]: {\n height: rem(theme, M.track.compactHeight),\n borderRadius: rem(theme, M.track.compactRadius),\n backgroundImage: hourLines(theme, opts.hours, opts.tickHours),\n },\n });\n}\n\n/** Where a bar starts and how long it is, both in % of the track. */\nexport interface Span {\n at: number;\n share: number;\n}\n\nexport function blockSx(tone: ScheduleBlockTone, span: Span, opts: { selected: boolean; movable: boolean }): SxProps<Theme> {\n return (theme: Theme): CSSObject => ({\n ...blockToneStyles(theme, tone, true),\n position: 'absolute',\n left: `${span.at}%`,\n width: `${span.share}%`,\n top: rem(theme, M.block.top),\n height: rem(theme, M.block.height),\n boxSizing: 'border-box',\n borderRadius: rem(theme, M.block.radius),\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n padding: `0 ${rem(theme, M.block.paddingX)}`,\n margin: 0,\n font: 'inherit',\n fontSize: rem(theme, M.block.font),\n fontWeight: 500,\n whiteSpace: 'nowrap',\n overflow: 'hidden',\n cursor: opts.movable ? 'grab' : 'pointer',\n boxShadow: opts.selected ? `0 0 0 ${rem(theme, M.ring)} ${theme.palette.primary.main}` : 'none',\n '&:focus-visible': { outline: `${rem(theme, M.ring)} solid ${theme.palette.primary.main}`, outlineOffset: rem(theme, M.ringOffset) },\n '& [data-dr-text]': { position: 'relative', overflow: 'hidden', textOverflow: 'ellipsis', minWidth: 0 },\n '& [data-dr-text=\"short\"]': { display: 'none' },\n [compact(theme)]: {\n top: rem(theme, M.block.compactTop),\n height: rem(theme, M.block.compactHeight),\n // A 40px hit area around the 20px bar, the look unchanged: the text cuts\n // itself (its spans ellipsize), so the block need not clip.\n overflow: 'visible',\n '&::after': {\n content: '\"\"',\n position: 'absolute',\n left: 0,\n right: 0,\n top: '50%',\n height: rem(theme, M.block.hitArea),\n transform: 'translateY(-50%)',\n },\n '&[data-narrow] [data-dr-text=\"full\"]': { display: 'none' },\n '&[data-narrow] [data-dr-text=\"short\"]': { display: 'inline' },\n },\n });\n}\n\nexport function handleSx(side: 'l' | 'r'): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n top: 0,\n bottom: 0,\n [side === 'l' ? 'left' : 'right']: 0,\n width: rem(theme, M.handle),\n cursor: 'ew-resize',\n });\n}\n\nexport function actualSx(span: Span): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n left: `${span.at}%`,\n width: `${span.share}%`,\n top: rem(theme, M.actual.top),\n height: rem(theme, M.actual.height),\n borderRadius: rem(theme, M.actual.radius),\n backgroundColor: actualBarColor(theme),\n pointerEvents: 'none',\n [compact(theme)]: { top: rem(theme, M.actual.compactTop), height: rem(theme, M.actual.compactHeight) },\n });\n}\n\nexport function actualLabelSx(left: number): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n left: `calc(${left}% + ${rem(theme, M.actualLabel.offset)})`,\n top: rem(theme, M.actualLabel.top),\n fontSize: rem(theme, M.actualLabel.font),\n color: theme.palette.text.secondary,\n whiteSpace: 'nowrap',\n pointerEvents: 'none',\n [compact(theme)]: { display: 'none' },\n });\n}\n\nexport function nowSx(left: number): SxProps<Theme> {\n return (theme: Theme) => ({\n position: 'absolute',\n left: `${left}%`,\n top: rem(theme, -M.now.overhang),\n bottom: rem(theme, -M.now.overhang),\n width: rem(theme, M.now.width),\n backgroundColor: theme.palette.primary.main,\n pointerEvents: 'none',\n });\n}\n\nexport const skeletonTrackSx: SxProps<Theme> = (theme: Theme) => ({\n gridArea: 'track',\n height: rem(theme, M.track.height),\n borderRadius: rem(theme, M.track.radius),\n backgroundColor: theme.palette.action.hover,\n});\n\nexport const skeletonNameSx: SxProps<Theme> = (theme: Theme) => ({\n gridArea: 'who',\n height: rem(theme, M.name),\n width: '60%',\n borderRadius: rem(theme, M.skeletonNameRadius),\n backgroundColor: theme.palette.action.hover,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAcO,SAAS,OAAO,YAAqC;AAC1D,SAAO,CAAC,WAAkB;AAAA,IACxB,eAAe;AAAA,IACf,UAAU;AAAA,IACV,OAAO;AAAA,IACP,YAAY;AAAA,IACZ,gBAAgB,aAAa,IAAI,OAAO,kBAAE,UAAU,IAAI;AAAA,EAC1D;AACF;AAGA,SAAS,QAAQ,OAAsB;AACrC,SAAO,uBAAuB,IAAI,OAAO,kBAAE,YAAY,CAAC;AAC1D;AAGA,SAAS,MAAM,OAAsB;AACnC,SAAO,uBAAuB,IAAI,OAAO,kBAAE,UAAU,CAAC;AACxD;AAGO,IAAM,SAAyB,CAAC,WAAkB;AAAA,EACvD,SAAS;AAAA,EACT,qBAAqB,GAAG,IAAI,OAAO,kBAAE,UAAU,CAAC;AAAA,EAChD,WAAW,IAAI,OAAO,kBAAE,GAAG;AAAA,EAC3B,YAAY;AAAA;AAAA,EAEZ,CAAC,QAAQ,KAAK,CAAC,GAAG;AAAA,IAChB,qBAAqB;AAAA,IACrB,QAAQ,IAAI,OAAO,kBAAE,SAAS,GAAG;AAAA,IACjC,kBAAkB,EAAE,SAAS,OAAO;AAAA,EACtC;AAAA,EACA,CAAC,MAAM,KAAK,CAAC,GAAG,EAAE,SAAS,OAAO;AACpC;AAEO,IAAM,kBAAkC,EAAE,UAAU,MAAM,kBAAE,IAAI,GAAG,OAAO,iBAAiB;AAE3F,SAAS,WAAW,OAA+B;AACxD,SAAO,CAAC,WAAkB;AAAA,IACxB,SAAS;AAAA,IACT,qBAAqB,UAAU,KAAK;AAAA,IACpC,KAAK,IAAI,OAAO,kBAAE,SAAS,GAAG;AAAA,IAC9B,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