@12-apps/ui 6.96.2 → 6.97.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 (71) hide show
  1. package/dist/_internal/components/data-display/DataViews/DataViewsGrid.js +12 -12
  2. package/dist/_internal/components/data-display/DataViews/DataViewsTableBase.js +13 -13
  3. package/dist/_internal/components/data-display/DataViews/data-views-filter-panel.js +7 -7
  4. package/dist/_internal/components/data-display/DataViews/data-views-grid-parts.js +11 -11
  5. package/dist/_internal/components/data-display/DataViews/data-views-inline-bar.js +9 -9
  6. package/dist/_internal/components/data-display/DataViews/data-views-more-fields.js +7 -7
  7. package/dist/_internal/components/data-display/DataViews/data-views-more-filters.js +8 -8
  8. package/dist/_internal/components/data-display/DataViews/data-views-range-bounds.js +5 -5
  9. package/dist/_internal/components/data-display/DataViews/data-views-range-calendar.js +4 -4
  10. package/dist/_internal/components/data-display/DataViews/data-views-range-pill.js +6 -6
  11. package/dist/_internal/components/form/Calendar/Calendar.js +3 -3
  12. package/dist/_internal/components/form/Calendar/CalendarMonth.js +1 -1
  13. package/dist/_internal/components/form/Calendar/CalendarSelectorsMonth.js +2 -2
  14. package/dist/_internal/components/form/CepField/CepField.js +1 -1
  15. package/dist/_internal/components/form/DateRangePicker/DateRangePicker.js +4 -4
  16. package/dist/_internal/components/form/index.js +5 -5
  17. package/dist/_internal/components/form/total-form/Fields/CepField.js +2 -2
  18. package/dist/_internal/components/form/total-form/Fields/index.js +3 -3
  19. package/dist/_internal/components/index.js +5 -5
  20. package/dist/{chunk-24G3BWKD.js → chunk-3BMG6VMB.js} +2 -2
  21. package/dist/{chunk-J2GDA64N.js → chunk-3CSKB57B.js} +2 -2
  22. package/dist/{chunk-RNIJL54W.js → chunk-55MYYWOV.js} +2 -2
  23. package/dist/{chunk-37SNQQ7P.js → chunk-CQOJUYTT.js} +2 -2
  24. package/dist/{chunk-C7IFBYIJ.js → chunk-EB25XITI.js} +3 -3
  25. package/dist/{chunk-OKDKKBLI.js → chunk-F5OERPU4.js} +2 -2
  26. package/dist/{chunk-VCQFDQM3.js → chunk-G3WG77QY.js} +7 -2
  27. package/dist/chunk-G3WG77QY.js.map +1 -0
  28. package/dist/{chunk-KHDKG7XB.js → chunk-GTE4TW3W.js} +2 -2
  29. package/dist/{chunk-X37NTEVS.js → chunk-HBRBIPNF.js} +2 -2
  30. package/dist/{chunk-ZPWPA6FR.js → chunk-IS3L67TF.js} +2 -2
  31. package/dist/{chunk-UTWEHMAP.js → chunk-LYVVXC3J.js} +11 -3
  32. package/dist/chunk-LYVVXC3J.js.map +1 -0
  33. package/dist/{chunk-BRFL7OWI.js → chunk-N2J24TJ3.js} +2 -2
  34. package/dist/{chunk-BMC5KGH2.js → chunk-QWI7IPYJ.js} +3 -3
  35. package/dist/{chunk-KXVWH3JM.js → chunk-QZRWOF4R.js} +2 -2
  36. package/dist/{chunk-FYAW5GBF.js → chunk-STOZ6JB5.js} +3 -3
  37. package/dist/{chunk-XALDXR3F.js → chunk-UIS3E72B.js} +2 -2
  38. package/dist/{chunk-HRES2S3Q.js → chunk-W3IFJA35.js} +2 -2
  39. package/dist/data-display/DataViews.js +13 -13
  40. package/dist/form/Calendar.js +3 -3
  41. package/dist/form/CepField.js +1 -1
  42. package/dist/form/DateRangePicker.js +4 -4
  43. package/dist/form/total-form.js +3 -3
  44. package/dist/types/components/form/Calendar/CalendarMonth.d.ts +5 -2
  45. package/dist/types/components/form/Calendar/CalendarMonth.d.ts.map +1 -1
  46. package/dist/types/components/form/CepField/CepField.d.ts +1 -1
  47. package/dist/types/components/form/CepField/CepField.d.ts.map +1 -1
  48. package/dist/types/components/form/CepField/CepField.types.d.ts +9 -0
  49. package/dist/types/components/form/CepField/CepField.types.d.ts.map +1 -1
  50. package/package.json +1 -1
  51. package/src/components/form/Calendar/CalendarMonth.tsx +9 -2
  52. package/src/components/form/CepField/CepField.md +4 -0
  53. package/src/components/form/CepField/CepField.tsx +14 -1
  54. package/src/components/form/CepField/CepField.types.ts +9 -0
  55. package/dist/chunk-UTWEHMAP.js.map +0 -1
  56. package/dist/chunk-VCQFDQM3.js.map +0 -1
  57. /package/dist/{chunk-24G3BWKD.js.map → chunk-3BMG6VMB.js.map} +0 -0
  58. /package/dist/{chunk-J2GDA64N.js.map → chunk-3CSKB57B.js.map} +0 -0
  59. /package/dist/{chunk-RNIJL54W.js.map → chunk-55MYYWOV.js.map} +0 -0
  60. /package/dist/{chunk-37SNQQ7P.js.map → chunk-CQOJUYTT.js.map} +0 -0
  61. /package/dist/{chunk-C7IFBYIJ.js.map → chunk-EB25XITI.js.map} +0 -0
  62. /package/dist/{chunk-OKDKKBLI.js.map → chunk-F5OERPU4.js.map} +0 -0
  63. /package/dist/{chunk-KHDKG7XB.js.map → chunk-GTE4TW3W.js.map} +0 -0
  64. /package/dist/{chunk-X37NTEVS.js.map → chunk-HBRBIPNF.js.map} +0 -0
  65. /package/dist/{chunk-ZPWPA6FR.js.map → chunk-IS3L67TF.js.map} +0 -0
  66. /package/dist/{chunk-BRFL7OWI.js.map → chunk-N2J24TJ3.js.map} +0 -0
  67. /package/dist/{chunk-BMC5KGH2.js.map → chunk-QWI7IPYJ.js.map} +0 -0
  68. /package/dist/{chunk-KXVWH3JM.js.map → chunk-QZRWOF4R.js.map} +0 -0
  69. /package/dist/{chunk-FYAW5GBF.js.map → chunk-STOZ6JB5.js.map} +0 -0
  70. /package/dist/{chunk-XALDXR3F.js.map → chunk-UIS3E72B.js.map} +0 -0
  71. /package/dist/{chunk-HRES2S3Q.js.map → chunk-W3IFJA35.js.map} +0 -0
@@ -304,7 +304,7 @@ import "../../chunk-RQY5ONSF.js";
304
304
  import "../../chunk-BN6POCYF.js";
305
305
  import {
306
306
  DateRangePicker
307
- } from "../../chunk-J2GDA64N.js";
307
+ } from "../../chunk-3CSKB57B.js";
308
308
  import {
309
309
  DEFAULT_QUICK_RANGES,
310
310
  DEFAULT_QUICK_RANGE_LABELS,
@@ -346,7 +346,7 @@ import "../../chunk-JXS56EW5.js";
346
346
  import "../../chunk-6XLMTOJ3.js";
347
347
  import {
348
348
  CepField
349
- } from "../../chunk-UTWEHMAP.js";
349
+ } from "../../chunk-LYVVXC3J.js";
350
350
  import "../../chunk-WGKBZ7DN.js";
351
351
  import "../../chunk-IDMG332I.js";
352
352
  import {
@@ -718,15 +718,15 @@ import "../../chunk-ZLMKGVB2.js";
718
718
  import "../../chunk-BO6S47KI.js";
719
719
  import {
720
720
  Calendar
721
- } from "../../chunk-FYAW5GBF.js";
721
+ } from "../../chunk-STOZ6JB5.js";
722
722
  import "../../chunk-ZZGG6AUD.js";
723
723
  import "../../chunk-TPMT3J32.js";
724
724
  import "../../chunk-LZOCNAUA.js";
725
725
  import "../../chunk-I4K5JMS4.js";
726
- import "../../chunk-X37NTEVS.js";
726
+ import "../../chunk-HBRBIPNF.js";
727
727
  import "../../chunk-J6LIZXSF.js";
728
728
  import "../../chunk-66TCKXOB.js";
729
- import "../../chunk-VCQFDQM3.js";
729
+ import "../../chunk-G3WG77QY.js";
730
730
  import "../../chunk-3ZRK3BRN.js";
731
731
  import "../../chunk-JV2JIUDT.js";
732
732
  import "../../chunk-4L54KUZV.js";
@@ -3,7 +3,7 @@ import {
3
3
  MoreGroup,
4
4
  MoreQuick,
5
5
  fieldClearing
6
- } from "./chunk-XALDXR3F.js";
6
+ } from "./chunk-UIS3E72B.js";
7
7
  import {
8
8
  useStillAnchor
9
9
  } from "./chunk-7CUZTWKW.js";
@@ -223,4 +223,4 @@ function MoreFilters({
223
223
  export {
224
224
  MoreFilters
225
225
  };
226
- //# sourceMappingURL=chunk-24G3BWKD.js.map
226
+ //# sourceMappingURL=chunk-3BMG6VMB.js.map
@@ -15,7 +15,7 @@ import {
15
15
  } from "./chunk-SUTOAW7I.js";
16
16
  import {
17
17
  Calendar
18
- } from "./chunk-FYAW5GBF.js";
18
+ } from "./chunk-STOZ6JB5.js";
19
19
 
20
20
  // src/components/form/DateRangePicker/DateRangePicker.tsx
21
21
  import Box from "@mui/material/Box/index.js";
@@ -181,4 +181,4 @@ export {
181
181
  DateRangePicker,
182
182
  DateRangePicker_default
183
183
  };
184
- //# sourceMappingURL=chunk-J2GDA64N.js.map
184
+ //# sourceMappingURL=chunk-3CSKB57B.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-WLDP7C4K.js";
4
4
  import {
5
5
  RangeBounds
6
- } from "./chunk-ZPWPA6FR.js";
6
+ } from "./chunk-IS3L67TF.js";
7
7
  import {
8
8
  RangePresets
9
9
  } from "./chunk-LZNUBQ5I.js";
@@ -240,4 +240,4 @@ export {
240
240
  RangePill,
241
241
  PanelRangeField
242
242
  };
243
- //# sourceMappingURL=chunk-RNIJL54W.js.map
243
+ //# sourceMappingURL=chunk-55MYYWOV.js.map
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  GridShell
3
- } from "./chunk-C7IFBYIJ.js";
3
+ } from "./chunk-EB25XITI.js";
4
4
  import {
5
5
  useDataViewsState
6
6
  } from "./chunk-5HXVXW22.js";
@@ -27,4 +27,4 @@ function DataViewsGrid(props) {
27
27
  export {
28
28
  DataViewsGrid
29
29
  };
30
- //# sourceMappingURL=chunk-37SNQQ7P.js.map
30
+ //# sourceMappingURL=chunk-CQOJUYTT.js.map
@@ -4,13 +4,13 @@ import {
4
4
  import {
5
5
  FilterDialog,
6
6
  GridFilterPanel
7
- } from "./chunk-OKDKKBLI.js";
7
+ } from "./chunk-F5OERPU4.js";
8
8
  import {
9
9
  ShellEmpty
10
10
  } from "./chunk-MKVDHR3B.js";
11
11
  import {
12
12
  InlineFilterControls
13
- } from "./chunk-BMC5KGH2.js";
13
+ } from "./chunk-QWI7IPYJ.js";
14
14
  import {
15
15
  GridHeaderRow
16
16
  } from "./chunk-X3AFXHY5.js";
@@ -252,4 +252,4 @@ function GridShell(props) {
252
252
  export {
253
253
  GridShell
254
254
  };
255
- //# sourceMappingURL=chunk-C7IFBYIJ.js.map
255
+ //# sourceMappingURL=chunk-EB25XITI.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-PJDAZG65.js";
4
4
  import {
5
5
  PanelRangeField
6
- } from "./chunk-RNIJL54W.js";
6
+ } from "./chunk-55MYYWOV.js";
7
7
  import {
8
8
  useDataViewsCopy
9
9
  } from "./chunk-KHG57NAE.js";
@@ -157,4 +157,4 @@ export {
157
157
  GridFilterPanel,
158
158
  FilterDialog
159
159
  };
160
- //# sourceMappingURL=chunk-OKDKKBLI.js.map
160
+ //# sourceMappingURL=chunk-F5OERPU4.js.map
@@ -5,6 +5,7 @@ import {
5
5
  getMonthName
6
6
  } from "./chunk-QWOI5BZV.js";
7
7
  import {
8
+ rem,
8
9
  sxRem
9
10
  } from "./chunk-YKCAJ2TN.js";
10
11
 
@@ -23,7 +24,11 @@ var GRID_SX = {
23
24
  columnGap: 0,
24
25
  rowGap: 0.5
25
26
  };
26
- var MONTH_SX = { flex: `1 1 ${sxRem(280)}`, minWidth: 0, maxWidth: sxRem(304) };
27
+ var MONTH_SX = {
28
+ flex: (theme) => `1 1 ${rem(theme, 280)}`,
29
+ minWidth: 0,
30
+ maxWidth: sxRem(304)
31
+ };
27
32
  var MonthNavHeader = ({ title, showPrevious, showNext, labels, onPreviousMonth, onNextMonth }) => /* @__PURE__ */ jsxs(
28
33
  Box,
29
34
  {
@@ -144,4 +149,4 @@ export {
144
149
  MonthDays,
145
150
  CalendarMonth
146
151
  };
147
- //# sourceMappingURL=chunk-VCQFDQM3.js.map
152
+ //# sourceMappingURL=chunk-G3WG77QY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/Calendar/CalendarMonth.tsx"],"sourcesContent":["import ChevronLeft from '@mui/icons-material/ChevronLeft';\nimport ChevronRight from '@mui/icons-material/ChevronRight';\nimport Box from '@mui/material/Box/index.js';\nimport IconButton from '@mui/material/IconButton/index.js';\nimport Typography from '@mui/material/Typography/index.js';\nimport type { FC } from 'react';\nimport React from 'react';\n\nimport type { CalendarLabels } from '../../../copy/labels';\nimport type { Theme } from '@mui/material/styles/index.js';\nimport { rem, sxRem } from '../../../tokens/relative';\n\nimport { getMonthName } from './Calendar.dates';\nimport type { CalendarProps, MonthMatrix } from './Calendar.types';\nimport type { DayCellContext } from './CalendarDayCell';\nimport { CalendarDayCell } from './CalendarDayCell';\n\n/** The nav spacer's width and the weekday row's height, 32 design px through the type scale. */\nconst SPACER_WIDTH = sxRem(32);\n\n// `minmax(0, 1fr)`, not `1fr`: a bare `1fr` keeps each column at least its\n// content's width, which is what held the grid at 304px (FUT-3861). No column\n// gap: a selected range is one band across the days, and a gap cut it into\n// tiles (FUT-4162). Rows keep theirs. Items centre in their column: the built-in\n// day stretches across it, a host's `renderDay` cell sits in its middle.\nconst GRID_SX = {\n display: 'grid',\n justifyItems: 'center',\n gridTemplateColumns: 'repeat(7, minmax(0, 1fr))',\n columnGap: 0,\n rowGap: 0.5,\n} as const;\n\n/**\n * A month takes the room it is given, from nothing up to seven full columns\n * (304 design px: what 7 × 40 cells and 6 × 4 gaps came to before the gaps\n * went, FUT-4162). Months side by side keep a 280 basis,\n * so a multi-month calendar still wraps rather than squeezing every month.\n * The basis is a theme callback: `sxRem` interpolated into the string wrote a\n * function's source, and Emotion's whole `flex` was dropped (FUT-4486).\n */\nexport const MONTH_SX = {\n flex: (theme: Theme) => `1 1 ${rem(theme, 280)}`,\n minWidth: 0,\n maxWidth: sxRem(304),\n} as const;\n\n/** The two arrows' accessible names; an icon alone names nothing. */\nexport type MonthArrowLabels = Pick<CalendarLabels, 'previousMonth' | 'nextMonth'>;\n\n// Only the outermost months carry arrows; the ones between get a spacer so their\n// titles stay centred.\nconst MonthNavHeader: FC<{\n title: React.ReactNode;\n showPrevious: boolean;\n showNext: boolean;\n labels?: MonthArrowLabels;\n onPreviousMonth: () => void;\n onNextMonth: () => void;\n}> = ({ title, showPrevious, showNext, labels, onPreviousMonth, onNextMonth }) => (\n <Box\n sx={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between', mb: 2 }}\n data-testid=\"calendar-header\"\n >\n {showPrevious && (\n <IconButton\n onClick={onPreviousMonth}\n size=\"small\"\n aria-label={labels?.previousMonth}\n data-testid=\"calendar-prev-month\"\n >\n <ChevronLeft />\n </IconButton>\n )}\n\n <Typography\n variant=\"h6\"\n component=\"h2\"\n sx={{ fontWeight: 'bold', flex: 1, textAlign: 'center' }}\n >\n {title}\n </Typography>\n\n {showNext && (\n <IconButton\n onClick={onNextMonth}\n size=\"small\"\n aria-label={labels?.nextMonth}\n data-testid=\"calendar-next-month\"\n >\n <ChevronRight />\n </IconButton>\n )}\n\n {!showPrevious && !showNext && <Box sx={{ width: SPACER_WIDTH }} />}\n </Box>\n);\n\nconst WeekdayHeader: FC<{ weekdayNames: string[] }> = ({ weekdayNames }) => (\n <Box sx={{ ...GRID_SX, mb: 1 }}>\n {weekdayNames.map((weekday, index) => (\n <Box\n // Narrow weekday names repeat within a week ('S', 'T'), so position is\n // the only stable key here.\n key={`weekday-${index}`}\n role=\"columnheader\"\n data-testid={`calendar-weekday-${index}`}\n sx={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n height: SPACER_WIDTH,\n fontSize: sxRem(14),\n fontWeight: 'bold',\n color: 'text.secondary',\n }}\n >\n {weekday}\n </Box>\n ))}\n </Box>\n);\n\n/** The weekday row and the day grid under a month's caption. */\nexport const MonthDays: FC<{\n matrix: MonthMatrix;\n monthIndex: number;\n weekdayNames: string[];\n dayContext: DayCellContext;\n}> = ({ matrix, weekdayNames, dayContext }) => (\n <>\n <WeekdayHeader weekdayNames={weekdayNames} />\n\n <Box\n role=\"grid\"\n // Named by its month in words. It pointed at an id nothing carried, so\n // the grid had no name at all and a two-month calendar read as two\n // anonymous grids.\n aria-label={getMonthName(matrix.month, matrix.year, dayContext.locale)}\n data-testid=\"calendar-grid\"\n sx={GRID_SX}\n >\n {matrix.weeks.flat().map((day) => (\n <CalendarDayCell key={day.key} day={day} {...dayContext} />\n ))}\n </Box>\n </>\n);\n\nexport interface CalendarMonthProps {\n matrix: MonthMatrix;\n monthIndex: number;\n monthsToShow: number;\n locale: string;\n weekdayNames: string[];\n renderHeader?: CalendarProps['renderHeader'];\n /** The arrows' accessible names. */\n labels?: MonthArrowLabels;\n onPreviousMonth: () => void;\n onNextMonth: () => void;\n dayContext: DayCellContext;\n}\n\nexport const CalendarMonth: FC<CalendarMonthProps> = ({\n matrix,\n monthIndex,\n monthsToShow,\n locale,\n weekdayNames,\n renderHeader,\n labels,\n onPreviousMonth,\n onNextMonth,\n dayContext,\n}) => {\n const monthName = getMonthName(matrix.month, matrix.year, locale);\n const title = renderHeader ? renderHeader({ month: matrix.month, year: matrix.year }) : monthName;\n\n return (\n /* The month is addressable by its position, because in a multi-month\n calendar every day number appears once PER MONTH — `calendar-date-5` is\n January's 5th and February's. Without a per-month hook a test can only\n reach a day positionally, which is exactly what the flakiness gate\n refuses. Additive: `calendar-grid` below is unchanged. */\n <Box sx={MONTH_SX} data-testid={`calendar-month-${monthIndex}`}>\n <MonthNavHeader\n title={title}\n showPrevious={monthIndex === 0}\n showNext={monthIndex === monthsToShow - 1}\n labels={labels}\n onPreviousMonth={onPreviousMonth}\n onNextMonth={onNextMonth}\n />\n\n <MonthDays\n matrix={matrix}\n monthIndex={monthIndex}\n weekdayNames={weekdayNames}\n dayContext={dayContext}\n />\n </Box>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAAA,OAAO,iBAAiB;AACxB,OAAO,kBAAkB;AACzB,OAAO,SAAS;AAChB,OAAO,gBAAgB;AACvB,OAAO,gBAAgB;AAwDrB,SAsEA,UA3DM,KAXN;AA1CF,IAAM,eAAe,MAAM,EAAE;AAO7B,IAAM,UAAU;AAAA,EACd,SAAS;AAAA,EACT,cAAc;AAAA,EACd,qBAAqB;AAAA,EACrB,WAAW;AAAA,EACX,QAAQ;AACV;AAUO,IAAM,WAAW;AAAA,EACtB,MAAM,CAAC,UAAiB,OAAO,IAAI,OAAO,GAAG,CAAC;AAAA,EAC9C,UAAU;AAAA,EACV,UAAU,MA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AAE,QAAQ,cAAc,WAAW,MACvC,iCACE;AAAA,sBAAC,iBAAc,cAA4B;AAAA,EAE3C;AAAA,IAAC;AAAA;AAAA,MACC,MAAK;AAAA,MAIL,cAAY,aAAa,OAAO,OAAO,OAAO,MAAM,WAAW,MAAM;AAAA,MACrE,eAAY;AAAA,MACZ,IAAI;AAAA,MAEH,iBAAO,MAAM,KAAK,EAAE,IAAI,CAAC,QACxB,oBAAC,mBAA8B,KAAW,GAAG,cAAvB,IAAI,GAA+B,CAC1D;AAAA;AAAA,EACH;AAAA,GACF;AAiBK,IAAM,gBAAwC,CAAC;AAAA,EACpD;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,MAAM;AACJ,QAAM,YAAY,aAAa,OAAO,OAAO,OAAO,MAAM,MAAM;AAChE,QAAM,QAAQ,eAAe,aAAa,EAAE,OAAO,OAAO,OAAO,MAAM,OAAO,KAAK,CAAC,IAAI;AAExF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAME,qBAAC,OAAI,IAAI,UAAU,eAAa,kBAAkB,UAAU,IAC1D;AAAA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA,cAAc,eAAe;AAAA,UAC7B,UAAU,eAAe,eAAe;AAAA,UACxC;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,MAEA;AAAA,QAAC;AAAA;AAAA,UACC;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA;AAAA,MACF;AAAA,OACF;AAAA;AAEJ;","names":[]}
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-YNVTUQ5B.js";
4
4
  import {
5
5
  DataViewsGrid
6
- } from "./chunk-37SNQQ7P.js";
6
+ } from "./chunk-CQOJUYTT.js";
7
7
  import {
8
8
  viewStateKey
9
9
  } from "./chunk-ZOLAYP2D.js";
@@ -166,4 +166,4 @@ function renderViewDialogs(ctl, fields, columns, views, testIdPrefix, onSaved) {
166
166
  export {
167
167
  DataViewsTableBase
168
168
  };
169
- //# sourceMappingURL=chunk-KHDKG7XB.js.map
169
+ //# sourceMappingURL=chunk-GTE4TW3W.js.map
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  MONTH_SX,
9
9
  MonthDays
10
- } from "./chunk-VCQFDQM3.js";
10
+ } from "./chunk-G3WG77QY.js";
11
11
  import {
12
12
  MONTH_INDEXES,
13
13
  canShiftMonth,
@@ -115,4 +115,4 @@ var CalendarSelectorsMonth = ({
115
115
  export {
116
116
  CalendarSelectorsMonth
117
117
  };
118
- //# sourceMappingURL=chunk-X37NTEVS.js.map
118
+ //# sourceMappingURL=chunk-HBRBIPNF.js.map
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-CBOB5AV6.js";
18
18
  import {
19
19
  DayRangeCalendar
20
- } from "./chunk-HRES2S3Q.js";
20
+ } from "./chunk-W3IFJA35.js";
21
21
  import {
22
22
  useDataViewsCopy
23
23
  } from "./chunk-KHG57NAE.js";
@@ -189,4 +189,4 @@ function RangeBounds({
189
189
  export {
190
190
  RangeBounds
191
191
  };
192
- //# sourceMappingURL=chunk-ZPWPA6FR.js.map
192
+ //# sourceMappingURL=chunk-IS3L67TF.js.map
@@ -63,6 +63,13 @@ function CepStatus({
63
63
  return /* @__PURE__ */ jsx("span", { id: `${testId}-status`, role: "status", "aria-live": "polite", children: visible && /* @__PURE__ */ jsx(FormMessage, { error: status === "notfound", dataTestId: `${testId}-${status}`, children: copy[status] }) });
64
64
  }
65
65
  var CEP_INPUT_PROPS = { inputMode: "numeric" };
66
+ var CEP_INPUT_PROPS_NO_MANAGERS = {
67
+ ...CEP_INPUT_PROPS,
68
+ "data-lpignore": "true",
69
+ "data-1p-ignore": "true",
70
+ "data-bwignore": "true"
71
+ };
72
+ var inputPropsOf = (passwordManagers) => passwordManagers === "ignore" ? CEP_INPUT_PROPS_NO_MANAGERS : CEP_INPUT_PROPS;
66
73
  var autoCompleteOf = (autoComplete) => autoComplete ?? "postal-code";
67
74
  function AboveLabel({
68
75
  name,
@@ -92,7 +99,8 @@ function CepField({
92
99
  size,
93
100
  // undefined reaches `Input`, whose own default is `md`
94
101
  labelPlacement = "above",
95
- autoComplete
102
+ autoComplete,
103
+ passwordManagers
96
104
  }) {
97
105
  const testId = dataTestId ?? `cep-field-${name}`;
98
106
  const status = useCepLookup({
@@ -116,7 +124,7 @@ function CepField({
116
124
  id: name,
117
125
  name,
118
126
  type: "text",
119
- inputProps: CEP_INPUT_PROPS,
127
+ inputProps: inputPropsOf(passwordManagers),
120
128
  autoComplete: autoCompleteOf(autoComplete),
121
129
  size,
122
130
  label: insideLabel(label, labelPlacement),
@@ -141,4 +149,4 @@ export {
141
149
  CepField,
142
150
  CepField_default
143
151
  };
144
- //# sourceMappingURL=chunk-UTWEHMAP.js.map
152
+ //# sourceMappingURL=chunk-LYVVXC3J.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/form/CepField/CepField.tsx"],"sourcesContent":["'use client';\n\nimport type { CepFieldCopy } from \"../../../copy\";\nimport React, { useCallback, useEffect, useRef, useState } from 'react';\n\nimport { cepDigits, formatCep, isValidCep } from '@12-apps/forms-core';\n\nimport { FormControl, FormLabel, FormMessage } from '../Form';\n// The outlined entry: CepField renders no variant, and the generic one would\n// ship MUI's FilledInput and Input to every screen with a CEP field (FUT-1054).\nimport { Input } from '../Input/outlined';\nimport type { CepAddress, CepFieldProps, CepLookupStatus } from './CepField.types';\n\n/** Everything {@link useCepLookup} needs, so the hook signature stays flat. */\ninterface LookupOptions {\n digits: string;\n complete: boolean;\n disabled: boolean;\n debounceMs: number;\n onLookup?: (cep: string) => Promise<CepAddress | null>;\n onResolved?: (address: CepAddress) => void;\n onNotFound?: () => void;\n}\n\n/**\n * Debounced, race-safe CEP resolution.\n *\n * Two guards earn their keep here: a monotonic sequence id, bumped\n * synchronously on every new query, so a slow response for a since-edited CEP\n * can never land; and a \"last queried\" marker, so re-rendering (or the caller\n * re-masking the same value) never re-hits the provider.\n */\nfunction useCepLookup({\n digits,\n complete,\n disabled,\n debounceMs,\n onLookup,\n onResolved,\n onNotFound,\n}: LookupOptions): CepLookupStatus {\n const [status, setStatus] = useState<CepLookupStatus>('idle');\n const lastQueriedRef = useRef('');\n const seqRef = useRef(0);\n // Latest callbacks, read at call time — keeps them out of the effect deps so\n // an inline arrow from the caller doesn't re-trigger the lookup every render.\n const lookupRef = useRef(onLookup);\n const resolvedRef = useRef(onResolved);\n const notFoundRef = useRef(onNotFound);\n lookupRef.current = onLookup;\n resolvedRef.current = onResolved;\n notFoundRef.current = onNotFound;\n\n useEffect(() => {\n if (!complete || disabled || !lookupRef.current) {\n // Editing away from a complete CEP drops any stale status and forgets the\n // last query, so re-typing the same CEP resolves again.\n seqRef.current += 1;\n setStatus('idle');\n lastQueriedRef.current = '';\n return;\n }\n if (lastQueriedRef.current === digits) return;\n\n const mySeq = (seqRef.current += 1);\n const handle = setTimeout(() => {\n lastQueriedRef.current = digits;\n setStatus('loading');\n void (async () => {\n // A failing lookup is treated exactly like \"not found\" — the user types\n // the address instead. Never surfaced as a crash. Going through\n // `Promise.resolve().then` rather than calling directly covers the two\n // failure modes an `await … .catch()` misses: a lookup that throws\n // SYNCHRONOUSLY, and one that returns something other than a promise.\n const address = await Promise.resolve()\n .then(() => lookupRef.current?.(digits))\n .catch(() => null);\n if (seqRef.current !== mySeq) return;\n setStatus(address ? 'found' : 'notfound');\n // A miss is reported too, so a caller that filled from a PREVIOUS CEP\n // can undo it rather than leaving that address under this CEP.\n if (address) resolvedRef.current?.(address);\n else notFoundRef.current?.();\n })();\n }, debounceMs);\n\n return () => clearTimeout(handle);\n }, [digits, complete, disabled, debounceMs]);\n\n return status;\n}\n\n/**\n * The lookup outcome as a live region, so screen readers announce it without\n * stealing focus. Silent while idle, and while the caller is showing its own\n * validation error (which would otherwise stack two messages).\n */\nfunction CepStatus({\n status,\n testId,\n suppressed,\n copy,\n}: {\n status: CepLookupStatus;\n testId: string;\n suppressed: boolean;\n copy: CepFieldCopy;\n}): React.ReactElement {\n const visible = !suppressed && status !== 'idle';\n return (\n <span id={`${testId}-status`} role=\"status\" aria-live=\"polite\">\n {visible && (\n <FormMessage error={status === 'notfound'} dataTestId={`${testId}-${status}`}>\n {copy[status as Exclude<CepLookupStatus, 'idle'>]}\n </FormMessage>\n )}\n </span>\n );\n}\n\n/** What only the `<input>` can act on. Hoisted: one object for every render. */\nconst CEP_INPUT_PROPS = { inputMode: 'numeric' } as const;\n\n/** The same, plus each password manager's own \"not mine\" flag (`passwordManagers=\"ignore\"`, FUT-4444). */\nconst CEP_INPUT_PROPS_NO_MANAGERS = {\n ...CEP_INPUT_PROPS,\n 'data-lpignore': 'true',\n 'data-1p-ignore': 'true',\n 'data-bwignore': 'true',\n} as const;\n\n/** The `<input>`'s own props: the keypad always, the managers' flags only when asked (`offer` is the default). */\nconst inputPropsOf = (passwordManagers: 'offer' | 'ignore' | undefined) =>\n passwordManagers === 'ignore' ? CEP_INPUT_PROPS_NO_MANAGERS : CEP_INPUT_PROPS;\n\n/** `postal-code` unless the caller said otherwise (`off` for somebody else's address). */\nconst autoCompleteOf = (autoComplete: string | undefined): string => autoComplete ?? 'postal-code';\n\n/** The stacked label over the box (`labelPlacement=\"above\"`), or nothing when there is no label. */\nfunction AboveLabel({\n name,\n label,\n error,\n}: {\n name: string;\n label?: string;\n error?: string;\n}): React.ReactElement | null {\n if (!label) return null;\n return (\n <FormLabel htmlFor={name} error={Boolean(error)}>\n {label}\n </FormLabel>\n );\n}\n\n/** The label handed to the `Input`, which draws it in the box: only for `inside`. */\nfunction insideLabel(label: string | undefined, placement: 'above' | 'inside'): string | undefined {\n return placement === 'inside' ? label : undefined;\n}\n\n/**\n * A CEP input that fills the rest of the address in.\n *\n * The pattern every Brazilian form has used for twenty years: type eight\n * digits, and logradouro/bairro/cidade/UF arrive on their own. This is the\n * reusable half — masking, validation, debouncing, race-safety and status —\n * with the actual lookup injected via `onLookup`, so the same component serves\n * a supplier form, a store-location form or a delivery checkout without\n * knowing anything about providers or auth.\n *\n * Resolution is best-effort by design. A provider outage, an unknown CEP or a\n * timeout leaves the field exactly as usable as a plain text input — the user\n * types the address themselves. Autofill never blocks.\n *\n * @example\n * ```tsx\n * <CepField\n * value={cep}\n * onChange={setCep}\n * onLookup={(c) => fetch(`/api/…/lookup/cep/${c}`).then((r) => r.json()).then((b) => b.data)}\n * onResolved={(a) => { setStreet(a.street ?? ''); setCity(a.city ?? ''); }}\n * />\n * ```\n */\nexport function CepField({\n value,\n onChange,\n onLookup,\n onResolved,\n onNotFound,\n label = 'CEP',\n placeholder = '00000-000',\n error,\n disabled = false,\n debounceMs = 500,\n name = 'postalCode',\n dataTestId,\n copy,\n size, // undefined reaches `Input`, whose own default is `md`\n labelPlacement = 'above',\n autoComplete,\n passwordManagers,\n}: CepFieldProps): React.ReactElement {\n const testId = dataTestId ?? `cep-field-${name}`;\n\n const status = useCepLookup({\n digits: cepDigits(value),\n complete: isValidCep(value),\n disabled,\n debounceMs,\n onLookup,\n onResolved,\n onNotFound,\n });\n\n const handleChange = useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => onChange(formatCep(event.target.value)),\n [onChange],\n );\n\n return (\n <FormControl fullWidth>\n {labelPlacement === 'above' && <AboveLabel name={name} label={label} error={error} />}\n <Input\n id={name}\n name={name}\n type=\"text\"\n // On the `<input>`, through `inputProps`: a top-level `inputMode` is a\n // prop `Input` does not recognise, so it landed on the wrapper `div`\n // and the phone kept opening the letter keyboard for eight digits\n // (FUT-1440's CepField row).\n inputProps={inputPropsOf(passwordManagers)}\n autoComplete={autoCompleteOf(autoComplete)}\n size={size}\n // `inside`: the label is the Input's own, drawn in the box and floating\n // up on focus or a value — what every other `Input` in the form does.\n // `above` keeps the stacked `FormLabel`, for callers that never opted in.\n label={insideLabel(label, labelPlacement)}\n placeholder={placeholder}\n value={value}\n error={Boolean(error)}\n disabled={disabled}\n loading={status === 'loading'}\n onChange={handleChange}\n data-testid={testId}\n aria-describedby={`${testId}-status`}\n aria-busy={status === 'loading'}\n />\n {error && (\n <FormMessage error dataTestId={`${testId}-message`}>\n {error}\n </FormMessage>\n )}\n <CepStatus status={status} testId={testId} suppressed={Boolean(error)} copy={copy} />\n </FormControl>\n );\n}\n\nexport default CepField;\n"],"mappings":";;;;;;;;;;AAGA,SAAgB,aAAa,WAAW,QAAQ,gBAAgB;AAEhE,SAAS,WAAW,WAAW,kBAAkB;AA2GzC,cA8GJ,YA9GI;AAhFR,SAAS,aAAa;AAAA,EACpB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GAAmC;AACjC,QAAM,CAAC,QAAQ,SAAS,IAAI,SAA0B,MAAM;AAC5D,QAAM,iBAAiB,OAAO,EAAE;AAChC,QAAM,SAAS,OAAO,CAAC;AAGvB,QAAM,YAAY,OAAO,QAAQ;AACjC,QAAM,cAAc,OAAO,UAAU;AACrC,QAAM,cAAc,OAAO,UAAU;AACrC,YAAU,UAAU;AACpB,cAAY,UAAU;AACtB,cAAY,UAAU;AAEtB,YAAU,MAAM;AACd,QAAI,CAAC,YAAY,YAAY,CAAC,UAAU,SAAS;AAG/C,aAAO,WAAW;AAClB,gBAAU,MAAM;AAChB,qBAAe,UAAU;AACzB;AAAA,IACF;AACA,QAAI,eAAe,YAAY,OAAQ;AAEvC,UAAM,QAAS,OAAO,WAAW;AACjC,UAAM,SAAS,WAAW,MAAM;AAC9B,qBAAe,UAAU;AACzB,gBAAU,SAAS;AACnB,YAAM,YAAY;AAMhB,cAAM,UAAU,MAAM,QAAQ,QAAQ,EACnC,KAAK,MAAM,UAAU,UAAU,MAAM,CAAC,EACtC,MAAM,MAAM,IAAI;AACnB,YAAI,OAAO,YAAY,MAAO;AAC9B,kBAAU,UAAU,UAAU,UAAU;AAGxC,YAAI,QAAS,aAAY,UAAU,OAAO;AAAA,YACrC,aAAY,UAAU;AAAA,MAC7B,GAAG;AAAA,IACL,GA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Q,UAAU,KAAK;AAAA,IACvB,UAAU,WAAW,KAAK;AAAA,IAC1B;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF,CAAC;AAED,QAAM,eAAe;AAAA,IACnB,CAAC,UAA+C,SAAS,UAAU,MAAM,OAAO,KAAK,CAAC;AAAA,IACtF,CAAC,QAAQ;AAAA,EACX;AAEA,SACE,qBAAC,eAAY,WAAS,MACnB;AAAA,uBAAmB,WAAW,oBAAC,cAAW,MAAY,OAAc,OAAc;AAAA,IACnF;AAAA,MAAC;AAAA;AAAA,QACC,IAAI;AAAA,QACJ;AAAA,QACA,MAAK;AAAA,QAKL,YAAY,aAAa,gBAAgB;AAAA,QACzC,cAAc,eAAe,YAAY;AAAA,QACzC;AAAA,QAIA,OAAO,YAAY,OAAO,cAAc;AAAA,QACxC;AAAA,QACA;AAAA,QACA,OAAO,QAAQ,KAAK;AAAA,QACpB;AAAA,QACA,SAAS,WAAW;AAAA,QACpB,UAAU;AAAA,QACV,eAAa;AAAA,QACb,oBAAkB,GAAG,MAAM;AAAA,QAC3B,aAAW,WAAW;AAAA;AAAA,IACxB;AAAA,IACC,SACC,oBAAC,eAAY,OAAK,MAAC,YAAY,GAAG,MAAM,YACrC,iBACH;AAAA,IAEF,oBAAC,aAAU,QAAgB,QAAgB,YAAY,QAAQ,KAAK,GAAG,MAAY;AAAA,KACrF;AAEJ;AAEA,IAAO,mBAAQ;","names":[]}
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-6YSGP2WS.js";
10
10
  import {
11
11
  CepField
12
- } from "./chunk-KXVWH3JM.js";
12
+ } from "./chunk-QZRWOF4R.js";
13
13
  import {
14
14
  CategoryField
15
15
  } from "./chunk-6AKDAQSS.js";
@@ -30,4 +30,4 @@ __export(Fields_exports, {
30
30
  export {
31
31
  Fields_exports
32
32
  };
33
- //# sourceMappingURL=chunk-BRFL7OWI.js.map
33
+ //# sourceMappingURL=chunk-N2J24TJ3.js.map
@@ -5,7 +5,7 @@ import {
5
5
  } from "./chunk-T7OIVPCO.js";
6
6
  import {
7
7
  MoreFilters
8
- } from "./chunk-24G3BWKD.js";
8
+ } from "./chunk-3BMG6VMB.js";
9
9
  import {
10
10
  PillControl
11
11
  } from "./chunk-PJDAZG65.js";
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-KYUEO2IO.js";
18
18
  import {
19
19
  RangePill
20
- } from "./chunk-RNIJL54W.js";
20
+ } from "./chunk-55MYYWOV.js";
21
21
  import {
22
22
  CollapsedSearch,
23
23
  InlineKeyword
@@ -251,4 +251,4 @@ function FilterSlots({
251
251
  export {
252
252
  InlineFilterControls
253
253
  };
254
- //# sourceMappingURL=chunk-BMC5KGH2.js.map
254
+ //# sourceMappingURL=chunk-QWI7IPYJ.js.map
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-4XK6JQ4D.js";
4
4
  import {
5
5
  CepField
6
- } from "./chunk-UTWEHMAP.js";
6
+ } from "./chunk-LYVVXC3J.js";
7
7
 
8
8
  // src/components/form/total-form/Fields/CepField.tsx
9
9
  import { useCallback, useMemo, useRef } from "react";
@@ -86,4 +86,4 @@ function CepField2({
86
86
  export {
87
87
  CepField2 as CepField
88
88
  };
89
- //# sourceMappingURL=chunk-KXVWH3JM.js.map
89
+ //# sourceMappingURL=chunk-QZRWOF4R.js.map
@@ -12,10 +12,10 @@ import {
12
12
  } from "./chunk-I4K5JMS4.js";
13
13
  import {
14
14
  CalendarSelectorsMonth
15
- } from "./chunk-X37NTEVS.js";
15
+ } from "./chunk-HBRBIPNF.js";
16
16
  import {
17
17
  CalendarMonth
18
- } from "./chunk-VCQFDQM3.js";
18
+ } from "./chunk-G3WG77QY.js";
19
19
  import {
20
20
  resolveLabels
21
21
  } from "./chunk-LL2BWQPM.js";
@@ -162,4 +162,4 @@ export {
162
162
  Calendar,
163
163
  Calendar_default
164
164
  };
165
- //# sourceMappingURL=chunk-FYAW5GBF.js.map
165
+ //# sourceMappingURL=chunk-STOZ6JB5.js.map
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-KYUEO2IO.js";
10
10
  import {
11
11
  RangeBounds
12
- } from "./chunk-ZPWPA6FR.js";
12
+ } from "./chunk-IS3L67TF.js";
13
13
  import {
14
14
  isRangeSet
15
15
  } from "./chunk-GCZJH4XL.js";
@@ -278,4 +278,4 @@ export {
278
278
  clearTargetSx,
279
279
  MoreGroup
280
280
  };
281
- //# sourceMappingURL=chunk-XALDXR3F.js.map
281
+ //# sourceMappingURL=chunk-UIS3E72B.js.map
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-SUTOAW7I.js";
8
8
  import {
9
9
  Calendar
10
- } from "./chunk-FYAW5GBF.js";
10
+ } from "./chunk-STOZ6JB5.js";
11
11
  import {
12
12
  EN_US_DATA_VIEWS_COPY
13
13
  } from "./chunk-ARGVUTTL.js";
@@ -196,4 +196,4 @@ export {
196
196
  rangeFromCalendar,
197
197
  DayRangeCalendar
198
198
  };
199
- //# sourceMappingURL=chunk-HRES2S3Q.js.map
199
+ //# sourceMappingURL=chunk-W3IFJA35.js.map
@@ -3,11 +3,11 @@ import {
3
3
  } from "../chunk-MBMZNSBP.js";
4
4
  import {
5
5
  DataViewsTableBase
6
- } from "../chunk-KHDKG7XB.js";
6
+ } from "../chunk-GTE4TW3W.js";
7
7
  import "../chunk-YNVTUQ5B.js";
8
8
  import {
9
9
  DataViewsGrid
10
- } from "../chunk-37SNQQ7P.js";
10
+ } from "../chunk-CQOJUYTT.js";
11
11
  import {
12
12
  BaseListCard
13
13
  } from "../chunk-CSD6SWBZ.js";
@@ -23,18 +23,18 @@ import {
23
23
  DropIndicator,
24
24
  useDragItem
25
25
  } from "../chunk-K4EKTMTC.js";
26
- import "../chunk-C7IFBYIJ.js";
26
+ import "../chunk-EB25XITI.js";
27
27
  import "../chunk-XNAI7QGU.js";
28
28
  import {
29
29
  DataViewsBoard
30
30
  } from "../chunk-7TCOYCD7.js";
31
31
  import "../chunk-4ZQQUICR.js";
32
- import "../chunk-OKDKKBLI.js";
32
+ import "../chunk-F5OERPU4.js";
33
33
  import "../chunk-MKVDHR3B.js";
34
- import "../chunk-BMC5KGH2.js";
34
+ import "../chunk-QWI7IPYJ.js";
35
35
  import "../chunk-T7OIVPCO.js";
36
- import "../chunk-24G3BWKD.js";
37
- import "../chunk-XALDXR3F.js";
36
+ import "../chunk-3BMG6VMB.js";
37
+ import "../chunk-UIS3E72B.js";
38
38
  import "../chunk-PJDAZG65.js";
39
39
  import "../chunk-X3AFXHY5.js";
40
40
  import "../chunk-AT6UKTH4.js";
@@ -42,15 +42,15 @@ import "../chunk-XZFTRGRW.js";
42
42
  import "../chunk-WWH674WU.js";
43
43
  import "../chunk-KYUEO2IO.js";
44
44
  import "../chunk-GZOW6HNN.js";
45
- import "../chunk-RNIJL54W.js";
45
+ import "../chunk-55MYYWOV.js";
46
46
  import "../chunk-WLDP7C4K.js";
47
- import "../chunk-ZPWPA6FR.js";
47
+ import "../chunk-IS3L67TF.js";
48
48
  import "../chunk-2FKWKLSC.js";
49
49
  import "../chunk-LZNUBQ5I.js";
50
50
  import "../chunk-GCZJH4XL.js";
51
51
  import "../chunk-YOPMXGHY.js";
52
52
  import "../chunk-CBOB5AV6.js";
53
- import "../chunk-HRES2S3Q.js";
53
+ import "../chunk-W3IFJA35.js";
54
54
  import "../chunk-5YDS6HO3.js";
55
55
  import "../chunk-OY437NRJ.js";
56
56
  import "../chunk-ACBHZG3Z.js";
@@ -148,15 +148,15 @@ import "../chunk-QYKDY4EI.js";
148
148
  import "../chunk-ZJY7OK6H.js";
149
149
  import "../chunk-ZLMKGVB2.js";
150
150
  import "../chunk-BO6S47KI.js";
151
- import "../chunk-FYAW5GBF.js";
151
+ import "../chunk-STOZ6JB5.js";
152
152
  import "../chunk-ZZGG6AUD.js";
153
153
  import "../chunk-TPMT3J32.js";
154
154
  import "../chunk-LZOCNAUA.js";
155
155
  import "../chunk-I4K5JMS4.js";
156
- import "../chunk-X37NTEVS.js";
156
+ import "../chunk-HBRBIPNF.js";
157
157
  import "../chunk-J6LIZXSF.js";
158
158
  import "../chunk-66TCKXOB.js";
159
- import "../chunk-VCQFDQM3.js";
159
+ import "../chunk-G3WG77QY.js";
160
160
  import "../chunk-3ZRK3BRN.js";
161
161
  import "../chunk-JV2JIUDT.js";
162
162
  import "../chunk-4L54KUZV.js";
@@ -1,15 +1,15 @@
1
1
  import "../chunk-BO6S47KI.js";
2
2
  import {
3
3
  Calendar
4
- } from "../chunk-FYAW5GBF.js";
4
+ } from "../chunk-STOZ6JB5.js";
5
5
  import "../chunk-ZZGG6AUD.js";
6
6
  import "../chunk-TPMT3J32.js";
7
7
  import "../chunk-LZOCNAUA.js";
8
8
  import "../chunk-I4K5JMS4.js";
9
- import "../chunk-X37NTEVS.js";
9
+ import "../chunk-HBRBIPNF.js";
10
10
  import "../chunk-J6LIZXSF.js";
11
11
  import "../chunk-66TCKXOB.js";
12
- import "../chunk-VCQFDQM3.js";
12
+ import "../chunk-G3WG77QY.js";
13
13
  import "../chunk-3ZRK3BRN.js";
14
14
  import "../chunk-JV2JIUDT.js";
15
15
  import "../chunk-4L54KUZV.js";
@@ -1,7 +1,7 @@
1
1
  import "../chunk-6XLMTOJ3.js";
2
2
  import {
3
3
  CepField
4
- } from "../chunk-UTWEHMAP.js";
4
+ } from "../chunk-LYVVXC3J.js";
5
5
  import "../chunk-WGKBZ7DN.js";
6
6
  import "../chunk-ASBFGGJB.js";
7
7
  import "../chunk-PD7MKJCM.js";
@@ -1,7 +1,7 @@
1
1
  import "../chunk-BN6POCYF.js";
2
2
  import {
3
3
  DateRangePicker
4
- } from "../chunk-J2GDA64N.js";
4
+ } from "../chunk-3CSKB57B.js";
5
5
  import {
6
6
  DEFAULT_QUICK_RANGES,
7
7
  DEFAULT_QUICK_RANGE_LABELS,
@@ -17,15 +17,15 @@ import {
17
17
  import "../chunk-L6YTVXGN.js";
18
18
  import "../chunk-SUTOAW7I.js";
19
19
  import "../chunk-BO6S47KI.js";
20
- import "../chunk-FYAW5GBF.js";
20
+ import "../chunk-STOZ6JB5.js";
21
21
  import "../chunk-ZZGG6AUD.js";
22
22
  import "../chunk-TPMT3J32.js";
23
23
  import "../chunk-LZOCNAUA.js";
24
24
  import "../chunk-I4K5JMS4.js";
25
- import "../chunk-X37NTEVS.js";
25
+ import "../chunk-HBRBIPNF.js";
26
26
  import "../chunk-J6LIZXSF.js";
27
27
  import "../chunk-66TCKXOB.js";
28
- import "../chunk-VCQFDQM3.js";
28
+ import "../chunk-G3WG77QY.js";
29
29
  import "../chunk-3ZRK3BRN.js";
30
30
  import "../chunk-JV2JIUDT.js";
31
31
  import "../chunk-4L54KUZV.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "../chunk-CPAJYJUD.js";
10
10
  import {
11
11
  Fields_exports
12
- } from "../chunk-BRFL7OWI.js";
12
+ } from "../chunk-N2J24TJ3.js";
13
13
  import "../chunk-RLTYBV4N.js";
14
14
  import {
15
15
  TextField
@@ -17,7 +17,7 @@ import {
17
17
  import {
18
18
  SelectField
19
19
  } from "../chunk-6YSGP2WS.js";
20
- import "../chunk-KXVWH3JM.js";
20
+ import "../chunk-QZRWOF4R.js";
21
21
  import {
22
22
  CategoryField
23
23
  } from "../chunk-6AKDAQSS.js";
@@ -34,7 +34,7 @@ import "../chunk-OQW4OERS.js";
34
34
  import "../chunk-6VTOGR36.js";
35
35
  import "../chunk-IYC7NPX7.js";
36
36
  import "../chunk-6XLMTOJ3.js";
37
- import "../chunk-UTWEHMAP.js";
37
+ import "../chunk-LYVVXC3J.js";
38
38
  import "../chunk-WGKBZ7DN.js";
39
39
  import "../chunk-JD5BVIM7.js";
40
40
  import "../chunk-T77OVQEO.js";
@@ -1,5 +1,6 @@
1
1
  import type { FC } from 'react';
2
2
  import type { CalendarLabels } from '../../../copy/labels';
3
+ import type { Theme } from '@mui/material/styles/index.js';
3
4
  import type { CalendarProps, MonthMatrix } from './Calendar.types';
4
5
  import type { DayCellContext } from './CalendarDayCell';
5
6
  /**
@@ -7,11 +8,13 @@ import type { DayCellContext } from './CalendarDayCell';
7
8
  * (304 design px: what 7 × 40 cells and 6 × 4 gaps came to before the gaps
8
9
  * went, FUT-4162). Months side by side keep a 280 basis,
9
10
  * so a multi-month calendar still wraps rather than squeezing every month.
11
+ * The basis is a theme callback: `sxRem` interpolated into the string wrote a
12
+ * function's source, and Emotion's whole `flex` was dropped (FUT-4486).
10
13
  */
11
14
  export declare const MONTH_SX: {
12
- readonly flex: `1 1 ${string}`;
15
+ readonly flex: (theme: Theme) => string;
13
16
  readonly minWidth: 0;
14
- readonly maxWidth: (theme: import("@mui/material").Theme) => string;
17
+ readonly maxWidth: (theme: Theme) => string;
15
18
  };
16
19
  /** The two arrows' accessible names; an icon alone names nothing. */
17
20
  export type MonthArrowLabels = Pick<CalendarLabels, 'previousMonth' | 'nextMonth'>;
@@ -1 +1 @@
1
- {"version":3,"file":"CalendarMonth.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/Calendar/CalendarMonth.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAGhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAI3D,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAmBxD;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;;;;CAA4E,CAAC;AAElG,qEAAqE;AACrE,MAAM,MAAM,gBAAgB,GAAG,IAAI,CAAC,cAAc,EAAE,eAAe,GAAG,WAAW,CAAC,CAAC;AA2EnF,gEAAgE;AAChE,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC;IACzB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,cAAc,CAAC;CAC5B,CAkBA,CA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BA,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,YAAY,CAAC,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC7C,oCAAoC;IACpC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,UAAU,EAAE,cAAc,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CAuChD,CAAC"}
@@ -25,6 +25,6 @@ import type { CepFieldProps } from './CepField.types';
25
25
  * ```
26
26
  */
27
27
  export declare function CepField({ value, onChange, onLookup, onResolved, onNotFound, label, placeholder, error, disabled, debounceMs, name, dataTestId, copy, size, // undefined reaches `Input`, whose own default is `md`
28
- labelPlacement, autoComplete, }: CepFieldProps): React.ReactElement;
28
+ labelPlacement, autoComplete, passwordManagers, }: CepFieldProps): React.ReactElement;
29
29
  export default CepField;
30
30
  //# sourceMappingURL=CepField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CepField.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/CepField/CepField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAQxE,OAAO,KAAK,EAAc,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AA0InF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,KAAa,EACb,WAAyB,EACzB,KAAK,EACL,QAAgB,EAChB,UAAgB,EAChB,IAAmB,EACnB,UAAU,EACV,IAAI,EACJ,IAAI,EAAE,uDAAuD;AAC7D,cAAwB,EACxB,YAAY,GACb,EAAE,aAAa,GAAG,KAAK,CAAC,YAAY,CAsDpC;AAED,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"CepField.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/CepField/CepField.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAQxE,OAAO,KAAK,EAAc,aAAa,EAAmB,MAAM,kBAAkB,CAAC;AAsJnF;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,UAAU,EACV,KAAa,EACb,WAAyB,EACzB,KAAK,EACL,QAAgB,EAChB,UAAgB,EAChB,IAAmB,EACnB,UAAU,EACV,IAAI,EACJ,IAAI,EAAE,uDAAuD;AAC7D,cAAwB,EACxB,YAAY,EACZ,gBAAgB,GACjB,EAAE,aAAa,GAAG,KAAK,CAAC,YAAY,CAsDpC;AAED,eAAe,QAAQ,CAAC"}
@@ -94,5 +94,14 @@ export interface CepFieldProps {
94
94
  * (FUT-4140).
95
95
  */
96
96
  autoComplete?: string;
97
+ /**
98
+ * Whether password managers may treat the box as theirs. `offer` (default)
99
+ * leaves them alone, as the field always has. `ignore` marks the `<input>`
100
+ * with `data-lpignore`, `data-1p-ignore` and `data-bwignore`, so LastPass,
101
+ * 1Password and Bitwarden keep their icon and fill out of a lone CEP box that
102
+ * their heuristics read as a login field (FUT-4444). The browser's own
103
+ * `autocomplete` is untouched: a saved CEP is still offered.
104
+ */
105
+ passwordManagers?: 'offer' | 'ignore';
97
106
  }
98
107
  //# sourceMappingURL=CepField.types.d.ts.map