@kanso-labs/kanso-ui 0.46.0 → 0.47.0

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 (43) hide show
  1. package/dist/chip/label.js +1 -0
  2. package/dist/chip/label.js.map +1 -1
  3. package/dist/chip/styles.js +1 -0
  4. package/dist/chip/styles.js.map +1 -1
  5. package/dist/components/breadcrumbs/index.js +1 -1
  6. package/dist/components/breadcrumbs/index.js.map +1 -1
  7. package/dist/components/code/index.js +32 -26
  8. package/dist/components/code/index.js.map +1 -1
  9. package/dist/components/color-swatch/index.js +1 -1
  10. package/dist/components/color-swatch/index.js.map +1 -1
  11. package/dist/components/icon-button/index.js +3 -3
  12. package/dist/components/icon-button/index.js.map +1 -1
  13. package/dist/components/index.d.ts +2 -2
  14. package/dist/components/link/index.js +2 -2
  15. package/dist/components/link/index.js.map +1 -1
  16. package/dist/components/menu/index.js +4 -1
  17. package/dist/components/menu/index.js.map +1 -1
  18. package/dist/components/navigation-bar/index.js.map +1 -1
  19. package/dist/components/progress-indicator/index.js +258 -172
  20. package/dist/components/progress-indicator/index.js.map +1 -1
  21. package/dist/components/search-view/index.js +1 -1
  22. package/dist/components/search-view/index.js.map +1 -1
  23. package/dist/components/table/index.d.ts +26 -5
  24. package/dist/components/table/index.js +93 -75
  25. package/dist/components/table/index.js.map +1 -1
  26. package/dist/components/tag/index.js +1 -0
  27. package/dist/components/tag/index.js.map +1 -1
  28. package/dist/components/time-picker/index.js +35 -5
  29. package/dist/components/time-picker/index.js.map +1 -1
  30. package/dist/components/toolbar/index.d.ts +4 -3
  31. package/dist/components/toolbar/index.js +107 -38
  32. package/dist/components/toolbar/index.js.map +1 -1
  33. package/dist/index.d.ts +2 -2
  34. package/dist/navigation/styles.js +1 -1
  35. package/dist/navigation/styles.js.map +1 -1
  36. package/dist/segments/index.js +2 -6
  37. package/dist/segments/index.js.map +1 -1
  38. package/dist/segments/literal.js +66 -0
  39. package/dist/segments/literal.js.map +1 -0
  40. package/dist/segments/styles.js +4 -0
  41. package/dist/segments/styles.js.map +1 -1
  42. package/dist/styles.css +351 -34
  43. package/package.json +3 -3
@@ -26,6 +26,10 @@ const styles = {
26
26
  kSiTet: "x1ppv7y9",
27
27
  $$css: true
28
28
  },
29
+ cellEnd: {
30
+ k9WMMc: "xp4054r",
31
+ $$css: true
32
+ },
29
33
  focus: {
30
34
  kjBf7l: "xrgy624 x1v8yhc2",
31
35
  kInvED: "x2ssjo2",
@@ -83,6 +87,10 @@ const styles = {
83
87
  khDVqt: "xuxw1ft",
84
88
  $$css: true
85
89
  },
90
+ selectionSelected: {
91
+ kAXs8y: "xr5dkdi",
92
+ $$css: true
93
+ },
86
94
  sticky: {
87
95
  kWkggS: "x14s9m32",
88
96
  kGVxlE: "x1ixd52e",
@@ -118,16 +126,19 @@ function cellContent(children, selection, label) {
118
126
  slot: "selection"
119
127
  });
120
128
  }
121
- function cellStyles(selection) {
122
- return (state) => props(styles.cell, styles.focus, selection ? styles.selection : state.isDisabled && styles.cellDisabled);
129
+ function cellStyles(align, selection) {
130
+ return (state) => props(styles.cell, align === "end" && styles.cellEnd, styles.focus, selection ? styles.selection : state.isDisabled && styles.cellDisabled, selection && state.isSelected && styles.selectionSelected);
123
131
  }
124
- function columnContent(children, selection, label, resizable, resizeLabel) {
132
+ function columnContent(children, align, selection, label, resizable, resizeLabel) {
125
133
  if (selection) return /* @__PURE__ */ jsx(Checkbox, {
126
134
  "aria-label": label,
127
135
  slot: "selection"
128
136
  });
129
137
  return (state) => /* @__PURE__ */ jsxs(Fragment$1, { children: [/* @__PURE__ */ jsxs("span", {
130
- className: "x6s0dn4 x78zum5 x126z3so",
138
+ ...{
139
+ 0: { className: "x6s0dn4 x78zum5 x126z3so" },
140
+ 1: { className: "x6s0dn4 x78zum5 x126z3so x15zctf7 x1nhvcw1" }
141
+ }[!!(align === "end") << 0],
131
142
  children: [children, sortArrowFor(state.sortDirection)]
132
143
  }), resizable ? /* @__PURE__ */ jsx(ColumnResizer, {
133
144
  "aria-label": resizeLabel,
@@ -135,8 +146,8 @@ function columnContent(children, selection, label, resizable, resizeLabel) {
135
146
  children: resizerRule
136
147
  }) : null] });
137
148
  }
138
- function columnStyles(selection, sticky) {
139
- return (state) => props(styles.cell, styles.header, styles.focus, sticky && styles.sticky, selection && styles.selection, state.allowsSorting && styles.headerSortable, state.allowsSorting && state.isHovered && styles.headerHovered, state.allowsSorting && state.isPressed && styles.headerPressed);
149
+ function columnStyles(align, selection, sticky) {
150
+ return (state) => props(styles.cell, align === "end" && styles.cellEnd, styles.header, styles.focus, sticky && styles.sticky, selection && styles.selection, state.allowsSorting && styles.headerSortable, state.allowsSorting && state.isHovered && styles.headerHovered, state.allowsSorting && state.isPressed && styles.headerPressed);
140
151
  }
141
152
  function dropAriaLevel(node) {
142
153
  node?.removeAttribute("aria-level");
@@ -398,33 +409,34 @@ function TableBody(t0) {
398
409
  */
399
410
  function TableCell(t0) {
400
411
  const $ = c(9);
401
- const { children, selection: t1, ...props } = t0;
402
- const selection = t1 === void 0 ? false : t1;
412
+ const { align: t1, children, selection: t2, ...props } = t0;
413
+ const align = t1 === void 0 ? "start" : t1;
414
+ const selection = t2 === void 0 ? false : t2;
403
415
  const label = useContext(SelectLabelContext);
404
416
  const T0 = Cell;
405
- const t2 = mergeStatefulStyles(cellStyles(selection), props);
406
- let t3;
417
+ const t3 = mergeStatefulStyles(cellStyles(align, selection), props);
418
+ let t4;
407
419
  if ($[0] !== children || $[1] !== label || $[2] !== selection) {
408
- t3 = cellContent(children, selection, label);
420
+ t4 = cellContent(children, selection, label);
409
421
  $[0] = children;
410
422
  $[1] = label;
411
423
  $[2] = selection;
412
- $[3] = t3;
413
- } else t3 = $[3];
414
- let t4;
415
- if ($[4] !== T0 || $[5] !== props || $[6] !== t2 || $[7] !== t3) {
416
- t4 = /* @__PURE__ */ jsx(T0, {
424
+ $[3] = t4;
425
+ } else t4 = $[3];
426
+ let t5;
427
+ if ($[4] !== T0 || $[5] !== props || $[6] !== t3 || $[7] !== t4) {
428
+ t5 = /* @__PURE__ */ jsx(T0, {
417
429
  ...props,
418
- ...t2,
419
- children: t3
430
+ ...t3,
431
+ children: t4
420
432
  });
421
433
  $[4] = T0;
422
434
  $[5] = props;
423
- $[6] = t2;
424
- $[7] = t3;
425
- $[8] = t4;
426
- } else t4 = $[8];
427
- return t4;
435
+ $[6] = t3;
436
+ $[7] = t4;
437
+ $[8] = t5;
438
+ } else t5 = $[8];
439
+ return t5;
428
440
  }
429
441
  function tableClasses(state) {
430
442
  return props(styles.table, state.isDropTarget && collectionStyles.dropTarget);
@@ -440,85 +452,91 @@ function tableClasses(state) {
440
452
  * the table with no columns at all.
441
453
  */
442
454
  function TableColumn(t0) {
443
- const $ = c(27);
455
+ const $ = c(30);
444
456
  let children;
445
457
  let props;
446
458
  let t1;
447
459
  let t2;
460
+ let t3;
448
461
  if ($[0] !== t0) {
449
- ({children, resizable: t1, selection: t2, ...props} = t0);
462
+ ({align: t1, children, resizable: t2, selection: t3, ...props} = t0);
450
463
  $[0] = t0;
451
464
  $[1] = children;
452
465
  $[2] = props;
453
466
  $[3] = t1;
454
467
  $[4] = t2;
468
+ $[5] = t3;
455
469
  } else {
456
470
  children = $[1];
457
471
  props = $[2];
458
472
  t1 = $[3];
459
473
  t2 = $[4];
474
+ t3 = $[5];
460
475
  }
461
- const resizable = t1 === void 0 ? false : t1;
462
- const selection = t2 === void 0 ? false : t2;
476
+ const align = t1 === void 0 ? "start" : t1;
477
+ const resizable = t2 === void 0 ? false : t2;
478
+ const selection = t3 === void 0 ? false : t3;
463
479
  const label = useContext(SelectAllLabelContext);
464
480
  const resizeLabel = useContext(ResizeLabelContext);
465
481
  const resizableTable = useContext(ResizableContext);
466
482
  const sticky = useContext(StickyHeaderContext);
467
483
  const [element, setElement] = useState(null);
468
- let t3;
469
- if ($[5] !== props.ref || $[6] !== resizableTable) {
470
- t3 = resizableTable ? mergeRefs(setElement, props.ref ?? void 0) : props.ref;
471
- $[5] = props.ref;
472
- $[6] = resizableTable;
473
- $[7] = t3;
474
- } else t3 = $[7];
475
- const ref = t3;
476
- const minWidths = useContext(ColumnMinWidthsContext);
477
484
  let t4;
478
- if ($[8] !== element || $[9] !== minWidths) {
479
- t4 = element === null ? void 0 : minWidths.get(element);
480
- $[8] = element;
481
- $[9] = minWidths;
482
- $[10] = t4;
483
- } else t4 = $[10];
484
- const measured = t4;
485
+ if ($[6] !== props.ref || $[7] !== resizableTable) {
486
+ t4 = resizableTable ? mergeRefs(setElement, props.ref ?? void 0) : props.ref;
487
+ $[6] = props.ref;
488
+ $[7] = resizableTable;
489
+ $[8] = t4;
490
+ } else t4 = $[8];
491
+ const ref = t4;
492
+ const minWidths = useContext(ColumnMinWidthsContext);
485
493
  let t5;
486
- if ($[11] !== props || $[12] !== selection || $[13] !== sticky) {
487
- t5 = mergeStatefulStyles(columnStyles(selection, sticky), props);
488
- $[11] = props;
489
- $[12] = selection;
490
- $[13] = sticky;
491
- $[14] = t5;
492
- } else t5 = $[14];
493
- const t6 = props.minWidth ?? (measured === void 0 ? void 0 : Math.max(measured, REACT_ARIA_MIN_WIDTH));
494
- const t7 = resizable && resizableTable;
495
- let t8;
496
- if ($[15] !== children || $[16] !== label || $[17] !== resizeLabel || $[18] !== selection || $[19] !== t7) {
497
- t8 = columnContent(children, selection, label, t7, resizeLabel);
498
- $[15] = children;
499
- $[16] = label;
500
- $[17] = resizeLabel;
501
- $[18] = selection;
502
- $[19] = t7;
503
- $[20] = t8;
504
- } else t8 = $[20];
494
+ if ($[9] !== element || $[10] !== minWidths) {
495
+ t5 = element === null ? void 0 : minWidths.get(element);
496
+ $[9] = element;
497
+ $[10] = minWidths;
498
+ $[11] = t5;
499
+ } else t5 = $[11];
500
+ const measured = t5;
501
+ let t6;
502
+ if ($[12] !== align || $[13] !== props || $[14] !== selection || $[15] !== sticky) {
503
+ t6 = mergeStatefulStyles(columnStyles(align, selection, sticky), props);
504
+ $[12] = align;
505
+ $[13] = props;
506
+ $[14] = selection;
507
+ $[15] = sticky;
508
+ $[16] = t6;
509
+ } else t6 = $[16];
510
+ const t7 = props.minWidth ?? (measured === void 0 ? void 0 : Math.max(measured, REACT_ARIA_MIN_WIDTH));
511
+ const t8 = resizable && resizableTable;
505
512
  let t9;
506
- if ($[21] !== props || $[22] !== ref || $[23] !== t5 || $[24] !== t6 || $[25] !== t8) {
507
- t9 = /* @__PURE__ */ jsx(Column, {
513
+ if ($[17] !== align || $[18] !== children || $[19] !== label || $[20] !== resizeLabel || $[21] !== selection || $[22] !== t8) {
514
+ t9 = columnContent(children, align, selection, label, t8, resizeLabel);
515
+ $[17] = align;
516
+ $[18] = children;
517
+ $[19] = label;
518
+ $[20] = resizeLabel;
519
+ $[21] = selection;
520
+ $[22] = t8;
521
+ $[23] = t9;
522
+ } else t9 = $[23];
523
+ let t10;
524
+ if ($[24] !== props || $[25] !== ref || $[26] !== t6 || $[27] !== t7 || $[28] !== t9) {
525
+ t10 = /* @__PURE__ */ jsx(Column, {
508
526
  ...props,
509
- ...t5,
510
- minWidth: t6,
527
+ ...t6,
528
+ minWidth: t7,
511
529
  ref,
512
- children: t8
530
+ children: t9
513
531
  });
514
- $[21] = props;
515
- $[22] = ref;
516
- $[23] = t5;
517
- $[24] = t6;
518
- $[25] = t8;
519
- $[26] = t9;
520
- } else t9 = $[26];
521
- return t9;
532
+ $[24] = props;
533
+ $[25] = ref;
534
+ $[26] = t6;
535
+ $[27] = t7;
536
+ $[28] = t9;
537
+ $[29] = t10;
538
+ } else t10 = $[29];
539
+ return t10;
522
540
  }
523
541
  /**
524
542
  * A row under the body, for totals and the like. It is not part of the
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useLayoutEffect","useState","Cell","RACCell","Column","Row","Table","TableBody","TableFooter","TableHeader","RACTableLoadMoreItem","collectionStyles","mergeRefs","rowStyles","rowLayers","mergeStatefulStyles","mergeStyles","SelectAllLabelContext","undefined","SelectLabelContext","styles","cell","kB7OPa","kg3NbH","k9WMMc","kXLuUW","$$css","cellDisabled","kSiTet","focus","kjBf7l","kInvED","k3XXqK","kMeerF","header","kZKoxP","kMwMTN","kMv6JI","kGuDYH","k63SB2","kb6lSQ","kLWn49","kVQacm","kVAEAm","headerHovered","kWkggS","headerPressed","headerSortable","kkrTdU","row","kLZC3w","kPef9Z","kEafiO","rowDisabled","kAXs8y","rowSelected","selection","kzqmXN","khDVqt","sticky","kGVxlE","k87sOh","kY2c9j","table","kLvRdT","className","renderEmptyState","style","children","resizable","label","onResize","onResizeEnd","resizeLabel","selectAllLabel","selectLabel","stickyHeader","ResizeLabelContext","ResizableContext","StickyHeaderContext","NO_MIN_WIDTHS","Map","ColumnMinWidthsContext","REACT_ARIA_MIN_WIDTH","cellContent","cellStyles","state","props","isDisabled","columnContent","sortArrowFor","sortDirection","resizerRule","columnStyles","allowsSorting","isHovered","isPressed","dropAriaLevel","node","removeAttribute","emptyContent","measureColumns","headers","tHead","rows","push","cells","held","map","element","cssText","tableLayout","width","widths","Math","ceil","getBoundingClientRect","css","resizableContainerClassName","isResizing","isFocusVisible","isDragging","dragging","isSelected","hovered","pressed","isDropTarget","dropTarget","direction","t0","$","t1","t2","setElement","t3","ref","minWidths","useColumnMinWidths","t4","tableClasses","t5","t6","t7","t8","t9","t10","t11","t12","TableCell","T0","TableColumn","resizableTable","get","measured","minWidth","max","0","1","TableLoadMore","TableRow","setWidths","measure","next","current","size","every","changes","MutationObserver","observe","characterData","childList","subtree","document","fonts","addEventListener","disconnect","removeEventListener","Body","Footer","Header","LoadMore","RACColumnResizer","RACTable","RACResizableTableContainer","RACTableBody","RACColumn","RACTableFooter","RACTableHeader","RACRow"],"sources":["../../../src/components/table/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { CellRenderProps, ColumnRenderProps, ColumnResizerRenderProps, CellProps as RACCellProps, ColumnProps as RACColumnProps, RowProps as RACRowProps, TableBodyProps as RACTableBodyProps, TableFooterProps as RACTableFooterProps, TableHeaderProps as RACTableHeaderProps, TableLoadMoreItemProps as RACTableLoadMoreItemProps, TableProps as RACTableProps, ResizableTableContainerProps, RowRenderProps, TableBodyRenderProps, TableRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useContext, useLayoutEffect, useMemo, useState } from 'react';\nimport { Cell as RACCell, Column as RACColumn, ColumnResizer as RACColumnResizer, ResizableTableContainer as RACResizableTableContainer, Row as RACRow, Table as RACTable, TableBody as RACTableBody, TableFooter as RACTableFooter, TableHeader as RACTableHeader, TableLoadMoreItem as RACTableLoadMoreItem } from 'react-aria-components';\nimport { CollectionLoadMore } from '../../collection';\nimport { collectionStyles } from '../../collection/styles';\nimport { ArrowDownwardGlyph, ArrowUpwardGlyph } from '../../glyphs';\nimport { mergeRefs } from '../../render/ref';\nimport { rowStyles as rowLayers } from '../../row/styles';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, sizing, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\nimport Checkbox from '../checkbox';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// A grid of rows and columns, with sorting and selection. The design system\n// carries no data table page — it was dropped after Material Design 2 — so\n// the geometry comes from the archived one at\n// <https://m2.material.io/components/data-tables>, which is the page this\n// component is drawn from: a 56dp header row, 52dp body rows, 16dp of\n// padding on each side of a cell, a medium-weight header to set it apart\n// from the rows, and an arrow beside the name of the column being sorted.\n//\n// Its colour roles are the current system's rather than that page's, since\n// a table sits beside lists, cards and menus that all draw from the tokens\n// here. That means the row's state layers are the ones `src/row` uses — the\n// same hover, pressed and selected treatment a list row takes — so a\n// selected table row and a selected list row on one page cannot disagree.\n//\n// The row is not `src/row`, and that is the one place this departs from the\n// library's other collections. That module's row is a headline with a\n// supporting line and a slot at each end; a table row is a run of cells with\n// no such shape, and forcing one into the other would give every cell the\n// row's 56dp floor and body-large headline. The state layers are shared by\n// being written from the same tokens rather than by sharing the module.\n//\n// Four things are this component's own.\n//\n// **The rule between rows is drawn on the row, not on its cells.** A cell\n// cannot see whether its row is the first one, so a rule per cell either\n// doubles under the header or needs the row's position passed down. The\n// table collapses its borders, which is what lets a `<tr>` carry one.\n//\n// **A selecting table draws its checkbox where the call site puts it.**\n// `selection` on a column and on a cell renders the library's Checkbox in\n// React Aria's selection slot — the column's is select-all, the cell's is\n// that row's. It is a prop rather than an injected column because the header\n// and every row have to agree on how many columns there are, and only the\n// call site can keep that true.\n//\n// **A sortable column is the press target itself.** React Aria puts no\n// button inside the header cell; it makes the cell pressable and sets\n// `aria-sort` on it. So the arrow is content next to the name, and the\n// hover and pressed layers belong to the cell.\n//\n// **The header sticks only when asked.** A sticky header needs an opaque\n// background to scroll rows under, and that colour is only right when the\n// table is in something that scrolls. `stickyHeader` is what says so.\n//\n// **Resizing is asked for twice, and both are needed.** React Aria puts the\n// resize state on a container around the table and the handle inside a\n// column, so `resizable` on the table is what brings the container and\n// `resizable` on a column is what draws its handle. The archived page has no\n// resizer to take a treatment from — it predates the feature — so the handle\n// draws the divider's own rule, thickening and taking the primary role while\n// it is dragged, over a target far wider than the rule.\n//\n// **A resizable table stops filling its width.** The container sets\n// `table-layout: fixed` and `width: min-content` on the table as inline\n// styles, which no rule here can outrank; the container fills the width\n// instead and scrolls when the columns together are wider than it.\n//\n// **And no column of it is narrower than its longest word.** A fixed layout\n// sizes columns without reading what is in them, so a column given less than\n// a word took the word apart, \"Waitin\" over \"g\", wherever a parent such as a\n// `Card` lets words break. So the container keeps words whole, and the table\n// measures what each column holds and hands React Aria that as the column's\n// `minWidth` — see `useColumnMinWidths`. Columns that stop fitting then\n// scroll in the container, as a wide table already does, and a handle stops\n// at the word rather than breaking it. A column given a `minWidth` of its own\n// keeps it.\n//\n// One thing about React Aria's collection is worth knowing before writing a\n// call site. **A column's `id` and a row's `id` share one namespace**, and a\n// value used by both silently drops every column — the table then throws\n// \"Cell count must match column count\", naming the cells rather than the\n// duplicate key that caused it. Nothing here can catch it, since both ids\n// are the call site's to choose; the docstrings below say to keep them\n// apart, and the stories and tests use `col`-prefixed column ids so the two\n// sets cannot meet.\n\n// What the selection checkboxes are called. A context rather than a prop on\n// every column and cell, since it is the table's decision and repeating it\n// per row is how the two drift. Undefined unless the table is given one,\n// which leaves the names React Aria gives in the reader's locale.\nconst SelectAllLabelContext = createContext<string | undefined>(undefined);\nconst SelectLabelContext = createContext<string | undefined>(undefined);\nconst styles = {\n cell: {\n kB7OPa: \"x9f619\",\n kg3NbH: \"x790zyz\",\n k9WMMc: \"x1yc453h\",\n kXLuUW: \"xxymvpz\",\n $$css: true\n },\n cellDisabled: {\n kSiTet: \"x1ppv7y9\",\n $$css: true\n },\n focus: {\n kjBf7l: \"xrgy624 x1v8yhc2\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n header: {\n kZKoxP: \"x1ded5cy\",\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n kVQacm: \"x9h1dke\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n headerHovered: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n },\n headerPressed: {\n kWkggS: \"xjeeohs\",\n $$css: true\n },\n headerSortable: {\n kWkggS: \"xjbqb8w\",\n kkrTdU: \"x1ypdohk\",\n $$css: true\n },\n row: {\n kZKoxP: \"xdd8jsf\",\n kLZC3w: \"x12smttz\",\n kPef9Z: \"x13fuv20\",\n kEafiO: \"x1g31smg x178xt8z\",\n $$css: true\n },\n rowDisabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x139gbkf\",\n kkrTdU: \"x1h6gzvc\",\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n rowSelected: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selection: {\n kzqmXN: \"x19ddzpn\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n sticky: {\n kWkggS: \"x14s9m32\",\n kGVxlE: \"x1ixd52e\",\n k87sOh: \"x13vifvy\",\n kVAEAm: \"x7wzq59\",\n kY2c9j: \"x1vjfegm\",\n $$css: true\n },\n table: {\n kLvRdT: \"x1mwwwfo\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kzqmXN: \"xh8yej3\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n k3XXqK: \"x1t137rt\",\n $$css: true\n }\n};\ntype TableBodyProps<T extends object = object> = Omit<RACTableBodyProps<T>, 'className' | 'renderEmptyState' | 'style'> & {\n /** A function may compute the class from the body's render state. */\n className?: RACTableBodyProps<T>['className'];\n /**\n * What the table shows in place of rows when it has none: React Aria's own\n * render function, under React Aria's own name, as List, ListBox, Tree and\n * ChipGroup take it. What it returns is drawn in a row of its own spanning\n * every column, inside the muted, padded box the table draws there.\n */\n renderEmptyState?: RACTableBodyProps<T>['renderEmptyState'];\n /** A function may compute the style from the body's render state. */\n style?: RACTableBodyProps<T>['style'];\n};\ntype TableCellProps = Omit<RACCellProps, 'children' | 'className' | 'style'> & {\n /** What the cell holds. */\n children?: ReactNode;\n /** A function may compute the class from the cell's render state. */\n className?: RACCellProps['className'];\n /**\n * Draws this row's selection checkbox instead of `children`. The row's own\n * text is what names the row; the box inside it takes the table's\n * `selectLabel`.\n */\n selection?: boolean;\n /** A function may compute the style from the cell's render state. */\n style?: RACCellProps['style'];\n};\ntype TableColumnProps = {\n /** The column's name. */\n children?: ReactNode;\n /** A function may compute the class from the column's render state. */\n className?: RACColumnProps['className'];\n /**\n * Draws a handle at the column's trailing edge that drags its width. Needs\n * the table's own `resizable` as well — React Aria keeps the resize state\n * on a container around the table, and without it there is nothing for a\n * handle to change. `defaultWidth`, `minWidth` and `maxWidth` are React\n * Aria's and apply only inside that container.\n */\n resizable?: boolean;\n /**\n * Draws the select-all checkbox instead of `children`, for the column the\n * rows put their own checkboxes in.\n */\n selection?: boolean;\n /** A function may compute the style from the column's render state. */\n style?: RACColumnProps['style'];\n} & Omit<RACColumnProps, 'children' | 'className' | 'style'>;\ntype TableFooterProps<T extends object = object> = RACTableFooterProps<T>;\ntype TableHeaderProps<T extends object = object> = RACTableHeaderProps<T>;\ntype TableLoadMoreProps = Omit<RACTableLoadMoreItemProps, 'children'> & {\n /**\n * What the row says while it is loading. Read by a screen reader; the ring\n * itself carries no text.\n * Left out, it is the word for it in the I18nProvider's locale — \"Loading\n * more\" in English.\n */\n label?: string;\n};\ntype TableProps = {\n /** A function may compute the class from the table's render state. */\n className?: RACTableProps['className'];\n /** Called as a column is dragged, with every column's width. */\n onResize?: ResizableTableContainerProps['onResize'];\n /** Called once a drag ends, with every column's width. */\n onResizeEnd?: ResizableTableContainerProps['onResizeEnd'];\n /**\n * Lets columns marked `resizable` be dragged, by putting the table in the\n * container React Aria keeps the resize state on. A resizable table sizes\n * to its columns rather than to its parent, and that container is what\n * fills the width and scrolls instead.\n */\n resizable?: boolean;\n /**\n * What the resize handle is called, for a screen reader. React Aria\n * composes it with the column's own name. Left out, React Aria names it in\n * the reader's locale — \"Resizer\" in English.\n */\n resizeLabel?: string;\n /**\n * What the select-all checkbox is called, for a screen reader. Left out,\n * React Aria names it in the reader's locale — \"Select All\" in English.\n */\n selectAllLabel?: string;\n /**\n * What each row's selection checkbox is called, for a screen reader. The\n * row's own text is what names the row; this names the box inside it.\n * Left out, React Aria names it in the reader's locale — \"Select\" in\n * English.\n */\n selectLabel?: string;\n /**\n * Holds the header row in place while the rows scroll under it. Needs the\n * table inside something that scrolls; on a table that does not, it draws\n * the same as without it.\n */\n stickyHeader?: boolean;\n /** A function may compute the style from the table's render state. */\n style?: RACTableProps['style'];\n} & Omit<RACTableProps, 'className' | 'style'>;\ntype TableRowProps<T extends object = object> = Omit<RACRowProps<T>, 'className' | 'style'> & {\n /** A function may compute the class from the row's render state. */\n className?: RACRowProps<T>['className'];\n /** A function may compute the style from the row's render state. */\n style?: RACRowProps<T>['style'];\n};\n\n// What the resize handles are called, for the same reason the selection\n// labels travel this way: it is the table's decision, and repeating it per\n// column is how the two drift. Undefined by default, as they are.\nconst ResizeLabelContext = createContext<string | undefined>(undefined);\n\n// Whether the table brought the container. React Aria's resizer throws\n// outright without one — \"Wrap your <Table> in a <ResizableTableContainer>\",\n// naming a component a consumer of this library never writes — so a column\n// asking to resize inside a table that does not would take the whole page\n// down. It draws no handle instead.\nconst ResizableContext = createContext(false);\n\n// Whether the header sticks, so a column reaches it without every call site\n// repeating the table's own decision on each one.\nconst StickyHeaderContext = createContext(false);\n\n// The narrowest each column of a resizable table can be with its words whole,\n// by the column's header cell. Empty for a table that does not resize, whose\n// columns size to what they hold anyway.\nconst NO_MIN_WIDTHS: ReadonlyMap<Element, number> = new Map();\nconst ColumnMinWidthsContext = createContext(NO_MIN_WIDTHS);\n\n// React Aria's own minimum for a column, which a measured one below it would\n// otherwise lower.\nconst REACT_ARIA_MIN_WIDTH = 75;\n\n// What a body cell draws, and the classes it draws with. Written as calls\n// rather than inline at the props, which is what react-perf's\n// no-new-function-as-prop and jsx-no-jsx-as-prop are after; the React\n// Compiler memoises the results on their inputs.\n// The return type is written out rather than inferred, here and in the two\n// below: `ReactNode` is a union that includes a promise, and a function\n// inferred as returning one has to be `async`.\nfunction cellContent(children: ReactNode, selection: boolean, label: string | undefined): ReactNode {\n if (!selection) {\n return children;\n }\n return <Checkbox aria-label={label} slot=\"selection\" />;\n}\n\n// A cell's classes, faded on a disabled row unless it holds the checkbox,\n// which draws its own disabled state.\nfunction cellStyles(selection: boolean) {\n return (state: CellRenderProps) => stylex.props(styles.cell, styles.focus, selection ? styles.selection : state.isDisabled && styles.cellDisabled);\n}\nfunction columnContent(children: ReactNode, selection: boolean, label: string | undefined, resizable: boolean, resizeLabel: string | undefined): RACColumnProps['children'] {\n if (selection) {\n return <Checkbox aria-label={label} slot=\"selection\" />;\n }\n // The handle is a sibling of the name rather than part of it: React Aria\n // renders it as its own element, positioned against the cell's trailing\n // edge, which the name's own box does not reach.\n return (state: ColumnRenderProps): ReactNode => <>\n <span className=\"x6s0dn4 x78zum5 x126z3so\">\n {children}\n {sortArrowFor(state.sortDirection)}\n </span>\n {resizable ? <RACColumnResizer aria-label={resizeLabel} className=\"x5yr21d x9f619 xicojor xvy4d1p x13vifvy x18zu7yx x10l6tqk x5ve5x3 x1vjfegm\">\n {resizerRule}\n </RACColumnResizer> : null}\n </>;\n}\nfunction columnStyles(selection: boolean, sticky: boolean) {\n return (state: ColumnRenderProps) => stylex.props(styles.cell, styles.header, styles.focus, sticky && styles.sticky, selection && styles.selection, state.allowsSorting && styles.headerSortable, state.allowsSorting && state.isHovered && styles.headerHovered, state.allowsSorting && state.isPressed && styles.headerPressed);\n}\n\n// React Aria puts `aria-level` on the load-more row, and `aria-level` is only\n// valid on a row inside a `treegrid` — a grid's rows have no level. axe flags\n// it as `aria-conditional-attr`, and this library's stories run axe as an\n// error, so a table with a load-more row would fail on an attribute nothing\n// here asks for.\n//\n// It cannot be turned off through props: React Aria writes it after spreading\n// what the call site passed, so `aria-level={undefined}` is overwritten. The\n// attribute is taken off the element instead. React writes an attribute only\n// when its prop changes between renders, and this one is always 1, so the\n// removal holds rather than being undone by the next render. `load more` in\n// index.test.tsx pins that it is gone, which is what would notice if React\n// Aria stopped setting it or started varying it.\nfunction dropAriaLevel(node: HTMLTableRowElement | null) {\n node?.removeAttribute('aria-level');\n}\n\n// What the body draws in place of rows: whatever the call site's function\n// returns, inside the box that pads and centres it. A call rather than a\n// function written at the prop, for the same reason the others are.\n//\n// The box is the one thing this adds to React Aria's prop, and the one way\n// the table differs from its siblings, which pass theirs straight through and\n// draw nothing around it. A table's empty state goes in a spanning cell that\n// is not this component's and carries no padding, so without the box the\n// content would sit against the table's edge with no room around it.\nfunction emptyContent(renderEmptyState: (state: TableBodyRenderProps) => ReactNode) {\n // The return type is written out rather than inferred: `ReactNode` is a\n // union that includes a promise, and a function inferred as returning one\n // has to be `async`.\n return (state: TableBodyRenderProps): ReactNode => <span className=\"x9f619 x1w5n3ug x1lliihq xpo2rfv x193rfdd x1hews6w xn43zvd xv61bfh x1lrxzt4 x790zyz x2b8uid\">{renderEmptyState(state)}</span>;\n}\n\n/**\n * Each header cell's width with the table laid out to its content. A fixed\n * layout never reads a cell's content, so the table is laid out the other\n * way for the length of the measurement: automatically, at no width, and\n * with the widths React Aria put on the header cells lifted, which leaves\n * every column at the width of the longest word it holds, its padding\n * included. The styles are put back before returning, so nothing is painted\n * in between.\n */\nfunction measureColumns(table: HTMLTableElement): Map<Element, number> {\n const headers: HTMLTableCellElement[] = [];\n for (const row of table.tHead?.rows ?? []) {\n headers.push(...row.cells);\n }\n const held = [table, ...headers].map(element => [element, element.style.cssText] as const);\n table.style.tableLayout = 'auto';\n table.style.width = '0px';\n for (const header of headers) {\n header.style.width = '';\n }\n const widths = new Map(headers.map(header => [header, Math.ceil(header.getBoundingClientRect().width)]));\n for (const [element, css] of held) {\n element.style.cssText = css;\n }\n return widths;\n}\n\n// The container's class. React Aria takes a plain string here rather than a\n// function of render state, since the container reports none — so this is a\n// call rather than the function form the other parts pass.\nfunction resizableContainerClassName() {\n return {\n className: \"x9f619 xh8yej3 x1h4wwuj xw2csxc\"\n }.className ?? '';\n}\n\n// The rule a handle draws, from React Aria's own render state — it reports\n// the drag and the keyboard focus separately, and the two get one treatment.\nfunction resizerRule(state: ColumnResizerRenderProps): ReactNode {\n return <span {...{\n 0: {\n className: \"x1l12bh x5yr21d x1x0u81l xf1j0q2 xmzn1mo x9f619 x1g12otp x1i1rx1s x13vifvy x9q68il x47corl x10l6tqk\"\n },\n 1: {\n className: \"x5yr21d xf1j0q2 x9f619 x1g12otp x13vifvy x9q68il x47corl x10l6tqk xnety89 x1ksdfms x12inkfj xfo62xy\"\n }\n }[!!(state.isResizing || state.isFocusVisible) << 0]} />;\n}\nfunction rowStyles(state: RowRenderProps) {\n return stylex.props(styles.row,\n // The same ring a cell and a column header draw, and for the same\n // reason: React Aria moves focus to the row itself, so the row is where\n // it has to show. Unconditional, as it is on those two — `focus` carries\n // its own `:focus-visible`, and the browser's default ring is what shows\n // through without it: a colour and an offset the rest of the table does\n // not use, and one no forced-colours mode is obliged to keep.\n styles.focus,\n // The lists page's dragged row and the drop target a row draws, from\n // `src/row` as every other collection's row takes them — the dragged one\n // before the selected container, so a selected row keeps it while it\n // moves.\n state.isDragging && rowLayers.dragging, state.isSelected && styles.rowSelected,\n // The state layers come from the render state, which is what makes a\n // row that only runs an action — `onRowAction`, a row's `onAction` or\n // `href` — take them as a selectable one does: React Aria reports a row\n // hovered or pressed only when a press does something to it, whether\n // that is selecting it, running its action or dragging it.\n state.isHovered && rowLayers.hovered, state.isPressed && rowLayers.pressed, state.isDropTarget && rowLayers.dropTarget, state.isDisabled && styles.rowDisabled);\n}\n\n// The arrow beside a sorted column's name. Nothing is drawn on a column that\n// is sortable but not currently sorted: the page puts the arrow next to the\n// column being sorted, and an arrow on every sortable column would say every\n// one of them was.\nfunction sortArrowFor(direction: 'ascending' | 'descending' | undefined) {\n if (direction === undefined) {\n return null;\n }\n return direction === 'ascending' ? <ArrowUpwardGlyph className=\"xmix8c7 x2lah0s x1xp8n7a\" /> : <ArrowDownwardGlyph className=\"xmix8c7 x2lah0s x1xp8n7a\" />;\n}\n\n/**\n * A grid of rows and columns. Sorting and selection are React Aria's: pass\n * `sortDescriptor` with `onSortChange` and mark the sortable columns\n * `allowsSorting`, and set `selectionMode` to `single` or `multiple` with\n * `selectedKeys` and `onSelectionChange`, or `defaultSelectedKeys`.\n *\n * ```tsx\n * <Table aria-label=\"Label\" selectionMode=\"multiple\">\n * <Table.Header>\n * <Table.Column selection />\n * <Table.Column id=\"name\" isRowHeader>Label</Table.Column>\n * </Table.Header>\n * <Table.Body>\n * <Table.Row id=\"first\">\n * <Table.Cell selection />\n * <Table.Cell>First item</Table.Cell>\n * </Table.Row>\n * </Table.Body>\n * </Table>\n * ```\n *\n * Composed from parts, since a cell takes arbitrary content: `Table.Header`,\n * `Table.Column`, `Table.Body`, `Table.Row`, `Table.Cell` and\n * `Table.Footer`. Name the table with `aria-label` or `aria-labelledby`, and\n * mark one column `isRowHeader` so a screen reader has something to read a\n * row by.\n *\n * The call site's `className` and `style` land on the table, which is the\n * element a layout positions.\n */\nfunction Table({\n onResize,\n onResizeEnd,\n resizable = false,\n resizeLabel,\n selectAllLabel,\n selectLabel,\n stickyHeader = false,\n ...props\n}: RefAttributes<HTMLTableElement> & TableProps) {\n // Held as state rather than in a ref object, since the columns are\n // measured from an effect that has to run again when it changes, and only\n // for a table that resizes, so no other table renders twice for it. The\n // call site's ref lands on the same element, read off `props` for the\n // reason NavigationBar gives.\n const [element, setElement] = useState<HTMLTableElement | null>(null);\n const ref = useMemo(() => resizable ? mergeRefs<HTMLTableElement>(setElement, props.ref ?? undefined) : props.ref, [props.ref, resizable]);\n const minWidths = useColumnMinWidths(resizable ? element : null);\n const table = <RACTable {...props} {...mergeStatefulStyles(tableClasses, props)} ref={ref} />;\n return <SelectAllLabelContext value={selectAllLabel}>\n <SelectLabelContext value={selectLabel}>\n <ResizeLabelContext value={resizeLabel}>\n <ResizableContext value={resizable}>\n <StickyHeaderContext value={stickyHeader}>\n <ColumnMinWidthsContext value={minWidths}>\n {resizable ? <RACResizableTableContainer className={resizableContainerClassName()} onResize={onResize} onResizeEnd={onResizeEnd}>\n {table}\n </RACResizableTableContainer> : table}\n </ColumnMinWidthsContext>\n </StickyHeaderContext>\n </ResizableContext>\n </ResizeLabelContext>\n </SelectLabelContext>\n </SelectAllLabelContext>;\n}\n\n/**\n * The rows. `renderEmptyState` is what it shows when there are none — a table\n * with no rows and nothing to say in their place is a blank area with a\n * header over it.\n *\n * It carries no styles of its own, since every rule a body needs is drawn by\n * the rows inside it, so a `className` here lands on the `<tbody>` through\n * React Aria rather than through a merge.\n */\nfunction TableBody<T extends object = object>({\n renderEmptyState,\n ...props\n}: RefAttributes<HTMLTableSectionElement> & TableBodyProps<T>) {\n return <RACTableBody<T> {...props} renderEmptyState={renderEmptyState === undefined ? undefined : emptyContent(renderEmptyState)} />;\n}\n\n/**\n * One cell. `selection` draws this row's checkbox in place of whatever else\n * the cell would hold. On a disabled row the cell fades as a whole, so what\n * it holds fades with its text.\n */\nfunction TableCell({\n children,\n selection = false,\n ...props\n}: RefAttributes<HTMLTableCellElement> & TableCellProps) {\n const label = useContext(SelectLabelContext);\n return <RACCell {...props} {...mergeStatefulStyles(cellStyles(selection), props)}>\n {cellContent(children, selection, label)}\n </RACCell>;\n}\n\n// The table's own classes, with the drop target the other collections'\n// boxes draw while a drop would land on the table as a whole.\nfunction tableClasses(state: TableRenderProps) {\n return stylex.props(styles.table, state.isDropTarget && collectionStyles.dropTarget);\n}\n\n/**\n * One column. `allowsSorting` is React Aria's and makes the header cell\n * itself the control that sorts; the arrow appears on the column the\n * `sortDescriptor` names. `isRowHeader` marks the column a screen reader\n * reads a row by.\n *\n * Its `id` shares a namespace with the rows', so give the two sets values\n * that cannot collide — a column and a row with one id between them leaves\n * the table with no columns at all.\n */\nfunction TableColumn({\n children,\n resizable = false,\n selection = false,\n ...props\n}: RefAttributes<HTMLTableCellElement> & TableColumnProps) {\n const label = useContext(SelectAllLabelContext);\n const resizeLabel = useContext(ResizeLabelContext);\n const resizableTable = useContext(ResizableContext);\n const sticky = useContext(StickyHeaderContext);\n // The header cell, which is what the table's measurements are keyed by,\n // held only in a table that measures them.\n const [element, setElement] = useState<HTMLTableCellElement | null>(null);\n const ref = useMemo(() => resizableTable ? mergeRefs<HTMLTableCellElement>(setElement, props.ref ?? undefined) : props.ref, [props.ref, resizableTable]);\n const minWidths = useContext(ColumnMinWidthsContext);\n const measured = element === null ? undefined : minWidths.get(element);\n return <RACColumn {...props} {...mergeStatefulStyles(columnStyles(selection, sticky), props)} minWidth={props.minWidth ?? (measured === undefined ? undefined : Math.max(measured, REACT_ARIA_MIN_WIDTH))} ref={ref}>\n {columnContent(children, selection, label, resizable && resizableTable, resizeLabel)}\n </RACColumn>;\n}\n\n/**\n * A row under the body, for totals and the like. It is not part of the\n * selection or the keyboard navigation — React Aria keeps it out of both.\n */\nfunction TableFooter<T extends object = object>(props: RefAttributes<HTMLTableSectionElement> & TableFooterProps<T>) {\n return <RACTableFooter<T> {...props} {...mergeStyles({\n className: \"x12smttz x13fuv20 x178xt8z x1w5n3ug xkknnkr x14zspaw x1v9cpvo x155f00i x1lz68p4\"\n }, props)} />;\n}\n\n/**\n * The header row, holding the columns, and the rule drawn under it — which\n * moves to the cells when the header sticks, since a row group's border does\n * not travel with cells `position: sticky` has lifted out of it.\n */\nfunction TableHeader<T extends object = object>(props: RefAttributes<HTMLTableSectionElement> & TableHeaderProps<T>) {\n const sticky = useContext(StickyHeaderContext);\n return <RACTableHeader<T> {...props} {...mergeStatefulStyles({\n 0: {\n className: \"x1j6faob x1q0q8m5 xso031l\"\n },\n 1: {}\n }[!!sticky << 0], props)} />;\n}\n\n/**\n * The row the table shows while it is fetching more. React Aria calls\n * `onLoadMore` when this comes into view, and draws it only while\n * `isLoading`. It goes inside `Table.Body`, after the rows.\n */\nfunction TableLoadMore({\n label,\n ref,\n ...props\n}: RefAttributes<HTMLTableRowElement> & TableLoadMoreProps) {\n return <RACTableLoadMoreItem {...props} {...mergeStyles({\n className: \"xdd8jsf\"\n }, props)} ref={mergeRefs(dropAriaLevel, ref ?? undefined)}>\n <span className=\"x6s0dn4 x9f619 x78zum5 xl56j7k\">\n <CollectionLoadMore diameter=\"24px\" label={label} />\n </span>\n </RACTableLoadMoreItem>;\n}\n\n/**\n * One row. Give every row an `id` — that is the key selection is reported\n * by, and it has to differ from every column's. `onAction` runs when the\n * row is pressed.\n */\nfunction TableRow<T extends object = object>(props: RefAttributes<HTMLTableRowElement> & TableRowProps<T>) {\n return <RACRow<T> {...props} {...mergeStatefulStyles(rowStyles, props)} />;\n}\n\n/**\n * The narrowest each column of a resizable table can be with none of its\n * words broken, by the column's header cell, for the columns to take as\n * their minimum — see the header.\n *\n * Measured again when a row, a cell or its text changes, and when a font\n * finishes loading, which is when a word's width changes; never when the\n * table is resized, since what a column holds does not change with it.\n */\nfunction useColumnMinWidths(table: HTMLTableElement | null) {\n const [widths, setWidths] = useState(NO_MIN_WIDTHS);\n useLayoutEffect(() => {\n if (table === null) {\n return undefined;\n }\n const measure = () => {\n const next = measureColumns(table);\n setWidths(current => current.size === next.size && [...next].every(([header, width]) => current.get(header) === width) ? current : next);\n };\n measure();\n const changes = new MutationObserver(measure);\n changes.observe(table, {\n characterData: true,\n childList: true,\n subtree: true\n });\n document.fonts.addEventListener('loadingdone', measure);\n return () => {\n changes.disconnect();\n document.fonts.removeEventListener('loadingdone', measure);\n };\n }, [table]);\n return widths;\n}\nTable.Body = TableBody;\nTable.Cell = TableCell;\nTable.Column = TableColumn;\nTable.Footer = TableFooter;\nTable.Header = TableHeader;\nTable.LoadMore = TableLoadMore;\nTable.Row = TableRow;\nexport type { TableBodyProps, TableCellProps, TableColumnProps, TableFooterProps, TableHeaderProps, TableLoadMoreProps, TableProps, TableRowProps };\nexport { TableBody, TableCell, TableColumn, TableFooter, TableHeader, TableLoadMore, TableRow };\nexport default Table;"],"mappings":";;;;;;;;;;;;;;AAuGA,MAAMqB,wBAAwBnB,cAAkCoB,KAAAA,CAAS;AACzE,MAAMC,qBAAqBrB,cAAkCoB,KAAAA,CAAS;AACtE,MAAME,SAAS;CACbC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,O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AA,MAAAmE,IAAAtI,EAAA,CAAA;CACE,MAAA,CAAAqH,QAAA+C,aAA4B/J,SAAS+E,aAAa;CAAE,IAAAiD;CAAA,IAAAE;CAAA,IAAAD,EAAA,OAAAnE,OAAA;EACpCkE,WAAA;GACd,IAAIlE,UAAU,MAAI;GAGlB,MAAAkG,gBAAgB;IACd,MAAAC,OAAa7D,eAAetC,KAAK;IACjCiG,WAAUG,YAAWA,QAAOC,SAAUF,KAAIE,QAAS,CAAA,GAAIF,IAAI,CAAC,CAAAG,OAAOjC,OAAA;KAAC,MAAA,CAAAlG,QAAA8E,SAAAoB;KAAe,OAAK+B,QAAOX,IAAKtH,MAAM,MAAM8E;IAAK,CAAA,IAAhGmD,UAAAD,IAAkH;GAAC;GAE1ID,QAAQ;GACR,MAAAK,UAAgB,IAAIC,iBAAiBN,OAAO;GAC5CK,QAAOE,QAASzG,OAAO;IAAA0G,eACN;IAAIC,WACR;IAAIC,SACN;GACX,CAAC;GACDC,SAAQC,MAAMC,iBAAkB,eAAeb,OAAO;GAAC,aAChD;IACLK,QAAOS,WAAY;IACnBH,SAAQC,MAAMG,oBAAqB,eAAef,OAAO;GAAC;EAC3D;EACA9B,KAAA,CAACpE,KAAK;EAACmE,EAAA,KAAAnE;EAAAmE,EAAA,KAAAD;EAAAC,EAAA,KAAAC;CAAA,OAAA;EAAAF,KAAAC,EAAA;EAAAC,KAAAD,EAAA;CAAA;CApBVlI,gBAAgBiI,IAoBbE,EAAO;CAAC,OACJlB;AAAM;AAEf3G,MAAM2K,OAAO1K;AACbD,MAAMJ,OAAOkJ;AACb9I,MAAMF,SAASkJ;AACfhJ,MAAM4K,SAAS1K;AACfF,MAAM6K,SAAS1K;AACfH,MAAM8K,WAAWtB;AACjBxJ,MAAMD,MAAM0J"}
1
+ {"version":3,"file":"index.js","names":["_c","stylex","createContext","useContext","useLayoutEffect","useState","Cell","RACCell","Column","Row","Table","TableBody","TableFooter","TableHeader","RACTableLoadMoreItem","collectionStyles","mergeRefs","rowStyles","rowLayers","mergeStatefulStyles","mergeStyles","SelectAllLabelContext","undefined","SelectLabelContext","styles","cell","kB7OPa","kg3NbH","k9WMMc","kXLuUW","$$css","cellDisabled","kSiTet","cellEnd","focus","kjBf7l","kInvED","k3XXqK","kMeerF","header","kZKoxP","kMwMTN","kMv6JI","kGuDYH","k63SB2","kb6lSQ","kLWn49","kVQacm","kVAEAm","headerHovered","kWkggS","headerPressed","headerSortable","kkrTdU","row","kLZC3w","kPef9Z","kEafiO","rowDisabled","kAXs8y","rowSelected","selection","kzqmXN","khDVqt","selectionSelected","sticky","kGVxlE","k87sOh","kY2c9j","table","kLvRdT","className","renderEmptyState","style","align","children","resizable","label","onResize","onResizeEnd","resizeLabel","selectAllLabel","selectLabel","stickyHeader","ResizeLabelContext","ResizableContext","StickyHeaderContext","NO_MIN_WIDTHS","Map","ColumnMinWidthsContext","REACT_ARIA_MIN_WIDTH","cellContent","cellStyles","state","props","isDisabled","isSelected","columnContent","sortArrowFor","sortDirection","resizerRule","columnStyles","allowsSorting","isHovered","isPressed","dropAriaLevel","node","removeAttribute","emptyContent","measureColumns","headers","tHead","rows","push","cells","held","map","element","cssText","tableLayout","width","widths","Math","ceil","getBoundingClientRect","css","resizableContainerClassName","isResizing","isFocusVisible","isDragging","dragging","hovered","pressed","isDropTarget","dropTarget","direction","t0","$","t1","t2","setElement","t3","ref","minWidths","useColumnMinWidths","t4","tableClasses","t5","t6","t7","t8","t9","t10","t11","t12","TableCell","T0","TableColumn","resizableTable","get","measured","minWidth","max","0","1","TableLoadMore","TableRow","setWidths","measure","next","current","size","every","changes","MutationObserver","observe","characterData","childList","subtree","document","fonts","addEventListener","disconnect","removeEventListener","Body","Footer","Header","LoadMore","RACColumnResizer","RACTable","RACResizableTableContainer","RACTableBody","RACColumn","RACTableFooter","RACTableHeader","RACRow"],"sources":["../../../src/components/table/index.tsx"],"sourcesContent":["'use client';\n\nimport type { ReactNode, RefAttributes } from 'react';\nimport type { CellRenderProps, ColumnRenderProps, ColumnResizerRenderProps, CellProps as RACCellProps, ColumnProps as RACColumnProps, RowProps as RACRowProps, TableBodyProps as RACTableBodyProps, TableFooterProps as RACTableFooterProps, TableHeaderProps as RACTableHeaderProps, TableLoadMoreItemProps as RACTableLoadMoreItemProps, TableProps as RACTableProps, ResizableTableContainerProps, RowRenderProps, TableBodyRenderProps, TableRenderProps } from 'react-aria-components';\nimport * as stylex from '@stylexjs/stylex';\nimport { createContext, useContext, useLayoutEffect, useMemo, useState } from 'react';\nimport { Cell as RACCell, Column as RACColumn, ColumnResizer as RACColumnResizer, ResizableTableContainer as RACResizableTableContainer, Row as RACRow, Table as RACTable, TableBody as RACTableBody, TableFooter as RACTableFooter, TableHeader as RACTableHeader, TableLoadMoreItem as RACTableLoadMoreItem } from 'react-aria-components';\nimport { CollectionLoadMore } from '../../collection';\nimport { collectionStyles } from '../../collection/styles';\nimport { ArrowDownwardGlyph, ArrowUpwardGlyph } from '../../glyphs';\nimport { mergeRefs } from '../../render/ref';\nimport { rowStyles as rowLayers } from '../../row/styles';\nimport { mergeStatefulStyles, mergeStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, sizing, spacing, stateLayerOpacity, typography } from '../../tokens/design.tokens.stylex';\nimport Checkbox from '../checkbox';\n\n// Windows High Contrast and the rest of the forced-colours modes. Spelled\n// here rather than imported, for the reason src/field/styles.ts records: the\n// StyleX compiler resolves a constant across files only out of a `.stylex.ts`\n// module, and the generated one holds design tokens rather than queries.\nconst FORCED_COLORS = '@media (forced-colors: active)';\n\n// A grid of rows and columns, with sorting and selection. The design system\n// carries no data table page — it was dropped after Material Design 2 — so\n// the geometry comes from the archived one at\n// <https://m2.material.io/components/data-tables>, which is the page this\n// component is drawn from: a 56dp header row, 52dp body rows, 16dp of\n// padding on each side of a cell, a medium-weight header to set it apart\n// from the rows, and an arrow beside the name of the column being sorted.\n//\n// Its colour roles are the current system's rather than that page's, since\n// a table sits beside lists, cards and menus that all draw from the tokens\n// here. That means the row's state layers are the ones `src/row` uses — the\n// same hover, pressed and selected treatment a list row takes — so a\n// selected table row and a selected list row on one page cannot disagree.\n//\n// The row is not `src/row`, and that is the one place this departs from the\n// library's other collections. That module's row is a headline with a\n// supporting line and a slot at each end; a table row is a run of cells with\n// no such shape, and forcing one into the other would give every cell the\n// row's 56dp floor and body-large headline. The state layers are shared by\n// being written from the same tokens rather than by sharing the module.\n//\n// Four things are this component's own.\n//\n// **The rule between rows is drawn on the row, not on its cells.** A cell\n// cannot see whether its row is the first one, so a rule per cell either\n// doubles under the header or needs the row's position passed down. The\n// table collapses its borders, which is what lets a `<tr>` carry one.\n//\n// **A selecting table draws its checkbox where the call site puts it.**\n// `selection` on a column and on a cell renders the library's Checkbox in\n// React Aria's selection slot — the column's is select-all, the cell's is\n// that row's. It is a prop rather than an injected column because the header\n// and every row have to agree on how many columns there are, and only the\n// call site can keep that true.\n//\n// **A sortable column is the press target itself.** React Aria puts no\n// button inside the header cell; it makes the cell pressable and sets\n// `aria-sort` on it. So the arrow is content next to the name, and the\n// hover and pressed layers belong to the cell.\n//\n// **A numeric column aligns to the end, and says so twice.** The page sets\n// a column of numbers flush with the end of its cells, header included, so\n// the digits stack by place and the name sits over them. `align=\"end\"` on\n// the column moves its header, and on each cell moves that cell: React Aria\n// hands a cell nothing of its column's, so the two are the call site's to keep\n// together, as `selection` is. On the header the arrow goes before the name\n// rather than after it, as the page draws a sorted numeric column, so the\n// name meets the digits under it rather than standing an arrow's width short\n// of them. Both follow the writing direction.\n//\n// **The header sticks only when asked.** A sticky header needs an opaque\n// background to scroll rows under, and that colour is only right when the\n// table is in something that scrolls. `stickyHeader` is what says so.\n//\n// **Resizing is asked for twice, and both are needed.** React Aria puts the\n// resize state on a container around the table and the handle inside a\n// column, so `resizable` on the table is what brings the container and\n// `resizable` on a column is what draws its handle. The archived page has no\n// resizer to take a treatment from — it predates the feature — so the handle\n// draws the divider's own rule, thickening and taking the primary role while\n// it is dragged, over a target far wider than the rule.\n//\n// **A resizable table stops filling its width.** The container sets\n// `table-layout: fixed` and `width: min-content` on the table as inline\n// styles, which no rule here can outrank; the container fills the width\n// instead and scrolls when the columns together are wider than it.\n//\n// **And no column of it is narrower than its longest word.** A fixed layout\n// sizes columns without reading what is in them, so a column given less than\n// a word took the word apart, \"Waitin\" over \"g\", wherever a parent such as a\n// `Card` lets words break. So the container keeps words whole, and the table\n// measures what each column holds and hands React Aria that as the column's\n// `minWidth` — see `useColumnMinWidths`. Columns that stop fitting then\n// scroll in the container, as a wide table already does, and a handle stops\n// at the word rather than breaking it. A column given a `minWidth` of its own\n// keeps it.\n//\n// One thing about React Aria's collection is worth knowing before writing a\n// call site. **A column's `id` and a row's `id` share one namespace**, and a\n// value used by both silently drops every column — the table then throws\n// \"Cell count must match column count\", naming the cells rather than the\n// duplicate key that caused it. Nothing here can catch it, since both ids\n// are the call site's to choose; the docstrings below say to keep them\n// apart, and the stories and tests use `col`-prefixed column ids so the two\n// sets cannot meet.\n\n// What the selection checkboxes are called. A context rather than a prop on\n// every column and cell, since it is the table's decision and repeating it\n// per row is how the two drift. Undefined unless the table is given one,\n// which leaves the names React Aria gives in the reader's locale.\nconst SelectAllLabelContext = createContext<string | undefined>(undefined);\nconst SelectLabelContext = createContext<string | undefined>(undefined);\nconst styles = {\n cell: {\n kB7OPa: \"x9f619\",\n kg3NbH: \"x790zyz\",\n k9WMMc: \"x1yc453h\",\n kXLuUW: \"xxymvpz\",\n $$css: true\n },\n cellDisabled: {\n kSiTet: \"x1ppv7y9\",\n $$css: true\n },\n cellEnd: {\n k9WMMc: \"xp4054r\",\n $$css: true\n },\n focus: {\n kjBf7l: \"xrgy624 x1v8yhc2\",\n kInvED: \"x2ssjo2\",\n k3XXqK: \"x9v5kkp x1t137rt\",\n kMeerF: \"x1de99jn\",\n $$css: true\n },\n header: {\n kZKoxP: \"x1ded5cy\",\n kMwMTN: \"x1w5n3ug\",\n kMv6JI: \"xkknnkr\",\n kGuDYH: \"x14zspaw\",\n k63SB2: \"x1v9cpvo\",\n kb6lSQ: \"x155f00i\",\n kLWn49: \"x1lz68p4\",\n kVQacm: \"x9h1dke\",\n kVAEAm: \"x1n2onr6\",\n $$css: true\n },\n headerHovered: {\n kWkggS: \"x1b18xnh\",\n $$css: true\n },\n headerPressed: {\n kWkggS: \"xjeeohs\",\n $$css: true\n },\n headerSortable: {\n kWkggS: \"xjbqb8w\",\n kkrTdU: \"x1ypdohk\",\n $$css: true\n },\n row: {\n kZKoxP: \"xdd8jsf\",\n kLZC3w: \"x12smttz\",\n kPef9Z: \"x13fuv20\",\n kEafiO: \"x1g31smg x178xt8z\",\n $$css: true\n },\n rowDisabled: {\n kWkggS: \"xjbqb8w\",\n kMwMTN: \"x139gbkf\",\n kkrTdU: \"x1h6gzvc\",\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n rowSelected: {\n kWkggS: \"xp89om9 x1jzqe4\",\n kMwMTN: \"xscdzaa x1k5gbb1\",\n kAXs8y: \"x1g12otp\",\n $$css: true\n },\n selection: {\n kzqmXN: \"x19ddzpn\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n },\n selectionSelected: {\n kAXs8y: \"xr5dkdi\",\n $$css: true\n },\n sticky: {\n kWkggS: \"x14s9m32\",\n kGVxlE: \"x1ixd52e\",\n k87sOh: \"x13vifvy\",\n kVAEAm: \"x7wzq59\",\n kY2c9j: \"x1vjfegm\",\n $$css: true\n },\n table: {\n kLvRdT: \"x1mwwwfo\",\n kB7OPa: \"x9f619\",\n kMwMTN: \"x139gbkf\",\n kMv6JI: \"xpo2rfv\",\n kGuDYH: \"x193rfdd\",\n k63SB2: \"x1hews6w\",\n kzqmXN: \"xh8yej3\",\n kb6lSQ: \"xn43zvd\",\n kLWn49: \"xv61bfh\",\n k3XXqK: \"x1t137rt\",\n $$css: true\n }\n};\n\n/**\n * Which end of its cells a column's text sits at: `start` for words, `end`\n * for numbers, so the digits stack by place. Both follow the writing\n * direction.\n */\ntype TableAlign = 'end' | 'start';\ntype TableBodyProps<T extends object = object> = Omit<RACTableBodyProps<T>, 'className' | 'renderEmptyState' | 'style'> & {\n /** A function may compute the class from the body's render state. */\n className?: RACTableBodyProps<T>['className'];\n /**\n * What the table shows in place of rows when it has none: React Aria's own\n * render function, under React Aria's own name, as List, ListBox, Tree and\n * ChipGroup take it. What it returns is drawn in a row of its own spanning\n * every column, inside the muted, padded box the table draws there.\n */\n renderEmptyState?: RACTableBodyProps<T>['renderEmptyState'];\n /** A function may compute the style from the body's render state. */\n style?: RACTableBodyProps<T>['style'];\n};\ntype TableCellProps = {\n /**\n * Which end of the cell its text sits at. Give it the value its column was\n * given — React Aria hands a cell nothing of its column's, so a cell does\n * not follow the header on its own.\n * @default 'start'\n */\n align?: TableAlign;\n /** What the cell holds. */\n children?: ReactNode;\n /** A function may compute the class from the cell's render state. */\n className?: RACCellProps['className'];\n /**\n * Draws this row's selection checkbox instead of `children`. The row's own\n * text is what names the row; the box inside it takes the table's\n * `selectLabel`.\n */\n selection?: boolean;\n /** A function may compute the style from the cell's render state. */\n style?: RACCellProps['style'];\n} & Omit<RACCellProps, 'children' | 'className' | 'style'>;\ntype TableColumnProps = {\n /**\n * Which end of the header cell the name sits at. `end` is for a column of\n * numbers: the name goes against the end padding, over the digits, with\n * the sort arrow before it rather than after. Give the column's cells the\n * same `align`.\n * @default 'start'\n */\n align?: TableAlign;\n /** The column's name. */\n children?: ReactNode;\n /** A function may compute the class from the column's render state. */\n className?: RACColumnProps['className'];\n /**\n * Draws a handle at the column's trailing edge that drags its width. Needs\n * the table's own `resizable` as well — React Aria keeps the resize state\n * on a container around the table, and without it there is nothing for a\n * handle to change. `defaultWidth`, `minWidth` and `maxWidth` are React\n * Aria's and apply only inside that container.\n */\n resizable?: boolean;\n /**\n * Draws the select-all checkbox instead of `children`, for the column the\n * rows put their own checkboxes in.\n */\n selection?: boolean;\n /** A function may compute the style from the column's render state. */\n style?: RACColumnProps['style'];\n} & Omit<RACColumnProps, 'children' | 'className' | 'style'>;\ntype TableFooterProps<T extends object = object> = RACTableFooterProps<T>;\ntype TableHeaderProps<T extends object = object> = RACTableHeaderProps<T>;\ntype TableLoadMoreProps = Omit<RACTableLoadMoreItemProps, 'children'> & {\n /**\n * What the row says while it is loading. Read by a screen reader; the ring\n * itself carries no text.\n * Left out, it is the word for it in the I18nProvider's locale — \"Loading\n * more\" in English.\n */\n label?: string;\n};\ntype TableProps = {\n /** A function may compute the class from the table's render state. */\n className?: RACTableProps['className'];\n /** Called as a column is dragged, with every column's width. */\n onResize?: ResizableTableContainerProps['onResize'];\n /** Called once a drag ends, with every column's width. */\n onResizeEnd?: ResizableTableContainerProps['onResizeEnd'];\n /**\n * Lets columns marked `resizable` be dragged, by putting the table in the\n * container React Aria keeps the resize state on. A resizable table sizes\n * to its columns rather than to its parent, and that container is what\n * fills the width and scrolls instead.\n */\n resizable?: boolean;\n /**\n * What the resize handle is called, for a screen reader. React Aria\n * composes it with the column's own name. Left out, React Aria names it in\n * the reader's locale — \"Resizer\" in English.\n */\n resizeLabel?: string;\n /**\n * What the select-all checkbox is called, for a screen reader. Left out,\n * React Aria names it in the reader's locale — \"Select All\" in English.\n */\n selectAllLabel?: string;\n /**\n * What each row's selection checkbox is called, for a screen reader. The\n * row's own text is what names the row; this names the box inside it.\n * Left out, React Aria names it in the reader's locale — \"Select\" in\n * English.\n */\n selectLabel?: string;\n /**\n * Holds the header row in place while the rows scroll under it. Needs the\n * table inside something that scrolls; on a table that does not, it draws\n * the same as without it.\n */\n stickyHeader?: boolean;\n /** A function may compute the style from the table's render state. */\n style?: RACTableProps['style'];\n} & Omit<RACTableProps, 'className' | 'style'>;\ntype TableRowProps<T extends object = object> = Omit<RACRowProps<T>, 'className' | 'style'> & {\n /** A function may compute the class from the row's render state. */\n className?: RACRowProps<T>['className'];\n /** A function may compute the style from the row's render state. */\n style?: RACRowProps<T>['style'];\n};\n\n// What the resize handles are called, for the same reason the selection\n// labels travel this way: it is the table's decision, and repeating it per\n// column is how the two drift. Undefined by default, as they are.\nconst ResizeLabelContext = createContext<string | undefined>(undefined);\n\n// Whether the table brought the container. React Aria's resizer throws\n// outright without one — \"Wrap your <Table> in a <ResizableTableContainer>\",\n// naming a component a consumer of this library never writes — so a column\n// asking to resize inside a table that does not would take the whole page\n// down. It draws no handle instead.\nconst ResizableContext = createContext(false);\n\n// Whether the header sticks, so a column reaches it without every call site\n// repeating the table's own decision on each one.\nconst StickyHeaderContext = createContext(false);\n\n// The narrowest each column of a resizable table can be with its words whole,\n// by the column's header cell. Empty for a table that does not resize, whose\n// columns size to what they hold anyway.\nconst NO_MIN_WIDTHS: ReadonlyMap<Element, number> = new Map();\nconst ColumnMinWidthsContext = createContext(NO_MIN_WIDTHS);\n\n// React Aria's own minimum for a column, which a measured one below it would\n// otherwise lower.\nconst REACT_ARIA_MIN_WIDTH = 75;\n\n// What a body cell draws, and the classes it draws with. Written as calls\n// rather than inline at the props, which is what react-perf's\n// no-new-function-as-prop and jsx-no-jsx-as-prop are after; the React\n// Compiler memoises the results on their inputs.\n// The return type is written out rather than inferred, here and in the two\n// below: `ReactNode` is a union that includes a promise, and a function\n// inferred as returning one has to be `async`.\nfunction cellContent(children: ReactNode, selection: boolean, label: string | undefined): ReactNode {\n if (!selection) {\n return children;\n }\n return <Checkbox aria-label={label} slot=\"selection\" />;\n}\n\n// A cell's classes, faded on a disabled row unless it holds the checkbox,\n// which draws its own disabled state, and handed back to forced colours on a\n// selected row when it does.\nfunction cellStyles(align: TableAlign, selection: boolean) {\n return (state: CellRenderProps) => stylex.props(styles.cell, align === 'end' && styles.cellEnd, styles.focus, selection ? styles.selection : state.isDisabled && styles.cellDisabled, selection && state.isSelected && styles.selectionSelected);\n}\nfunction columnContent(children: ReactNode, align: TableAlign, selection: boolean, label: string | undefined, resizable: boolean, resizeLabel: string | undefined): RACColumnProps['children'] {\n if (selection) {\n return <Checkbox aria-label={label} slot=\"selection\" />;\n }\n // The handle is a sibling of the name rather than part of it: React Aria\n // renders it as its own element, positioned against the cell's trailing\n // edge, which the name's own box does not reach.\n return (state: ColumnRenderProps): ReactNode => <>\n <span {...{\n 0: {\n className: \"x6s0dn4 x78zum5 x126z3so\"\n },\n 1: {\n className: \"x6s0dn4 x78zum5 x126z3so x15zctf7 x1nhvcw1\"\n }\n }[!!(align === 'end') << 0]}>\n {children}\n {sortArrowFor(state.sortDirection)}\n </span>\n {resizable ? <RACColumnResizer aria-label={resizeLabel} className=\"x5yr21d x9f619 xicojor xvy4d1p x13vifvy x18zu7yx x10l6tqk x5ve5x3 x1vjfegm\">\n {resizerRule}\n </RACColumnResizer> : null}\n </>;\n}\nfunction columnStyles(align: TableAlign, selection: boolean, sticky: boolean) {\n return (state: ColumnRenderProps) => stylex.props(styles.cell, align === 'end' && styles.cellEnd, styles.header, styles.focus, sticky && styles.sticky, selection && styles.selection, state.allowsSorting && styles.headerSortable, state.allowsSorting && state.isHovered && styles.headerHovered, state.allowsSorting && state.isPressed && styles.headerPressed);\n}\n\n// React Aria puts `aria-level` on the load-more row, and `aria-level` is only\n// valid on a row inside a `treegrid` — a grid's rows have no level. axe flags\n// it as `aria-conditional-attr`, and this library's stories run axe as an\n// error, so a table with a load-more row would fail on an attribute nothing\n// here asks for.\n//\n// It cannot be turned off through props: React Aria writes it after spreading\n// what the call site passed, so `aria-level={undefined}` is overwritten. The\n// attribute is taken off the element instead. React writes an attribute only\n// when its prop changes between renders, and this one is always 1, so the\n// removal holds rather than being undone by the next render. `load more` in\n// index.test.tsx pins that it is gone, which is what would notice if React\n// Aria stopped setting it or started varying it.\nfunction dropAriaLevel(node: HTMLTableRowElement | null) {\n node?.removeAttribute('aria-level');\n}\n\n// What the body draws in place of rows: whatever the call site's function\n// returns, inside the box that pads and centres it. A call rather than a\n// function written at the prop, for the same reason the others are.\n//\n// The box is the one thing this adds to React Aria's prop, and the one way\n// the table differs from its siblings, which pass theirs straight through and\n// draw nothing around it. A table's empty state goes in a spanning cell that\n// is not this component's and carries no padding, so without the box the\n// content would sit against the table's edge with no room around it.\nfunction emptyContent(renderEmptyState: (state: TableBodyRenderProps) => ReactNode) {\n // The return type is written out rather than inferred: `ReactNode` is a\n // union that includes a promise, and a function inferred as returning one\n // has to be `async`.\n return (state: TableBodyRenderProps): ReactNode => <span className=\"x9f619 x1w5n3ug x1lliihq xpo2rfv x193rfdd x1hews6w xn43zvd xv61bfh x1lrxzt4 x790zyz x2b8uid\">{renderEmptyState(state)}</span>;\n}\n\n/**\n * Each header cell's width with the table laid out to its content. A fixed\n * layout never reads a cell's content, so the table is laid out the other\n * way for the length of the measurement: automatically, at no width, and\n * with the widths React Aria put on the header cells lifted, which leaves\n * every column at the width of the longest word it holds, its padding\n * included. The styles are put back before returning, so nothing is painted\n * in between.\n */\nfunction measureColumns(table: HTMLTableElement): Map<Element, number> {\n const headers: HTMLTableCellElement[] = [];\n for (const row of table.tHead?.rows ?? []) {\n headers.push(...row.cells);\n }\n const held = [table, ...headers].map(element => [element, element.style.cssText] as const);\n table.style.tableLayout = 'auto';\n table.style.width = '0px';\n for (const header of headers) {\n header.style.width = '';\n }\n const widths = new Map(headers.map(header => [header, Math.ceil(header.getBoundingClientRect().width)]));\n for (const [element, css] of held) {\n element.style.cssText = css;\n }\n return widths;\n}\n\n// The container's class. React Aria takes a plain string here rather than a\n// function of render state, since the container reports none — so this is a\n// call rather than the function form the other parts pass.\nfunction resizableContainerClassName() {\n return {\n className: \"x9f619 xh8yej3 x1h4wwuj xw2csxc\"\n }.className ?? '';\n}\n\n// The rule a handle draws, from React Aria's own render state — it reports\n// the drag and the keyboard focus separately, and the two get one treatment.\nfunction resizerRule(state: ColumnResizerRenderProps): ReactNode {\n return <span {...{\n 0: {\n className: \"x1l12bh x5yr21d x1x0u81l xf1j0q2 xmzn1mo x9f619 x1g12otp x1i1rx1s x13vifvy x9q68il x47corl x10l6tqk\"\n },\n 1: {\n className: \"x5yr21d xf1j0q2 x9f619 x1g12otp x13vifvy x9q68il x47corl x10l6tqk xnety89 x1ksdfms x12inkfj xfo62xy\"\n }\n }[!!(state.isResizing || state.isFocusVisible) << 0]} />;\n}\nfunction rowStyles(state: RowRenderProps) {\n return stylex.props(styles.row,\n // The same ring a cell and a column header draw, and for the same\n // reason: React Aria moves focus to the row itself, so the row is where\n // it has to show. Unconditional, as it is on those two — `focus` carries\n // its own `:focus-visible`, and the browser's default ring is what shows\n // through without it: a colour and an offset the rest of the table does\n // not use, and one no forced-colours mode is obliged to keep.\n styles.focus,\n // The lists page's dragged row and the drop target a row draws, from\n // `src/row` as every other collection's row takes them — the dragged one\n // before the selected container, so a selected row keeps it while it\n // moves.\n state.isDragging && rowLayers.dragging, state.isSelected && styles.rowSelected,\n // The state layers come from the render state, which is what makes a\n // row that only runs an action — `onRowAction`, a row's `onAction` or\n // `href` — take them as a selectable one does: React Aria reports a row\n // hovered or pressed only when a press does something to it, whether\n // that is selecting it, running its action or dragging it.\n state.isHovered && rowLayers.hovered, state.isPressed && rowLayers.pressed, state.isDropTarget && rowLayers.dropTarget, state.isDisabled && styles.rowDisabled);\n}\n\n// The arrow beside a sorted column's name. Nothing is drawn on a column that\n// is sortable but not currently sorted: the page puts the arrow next to the\n// column being sorted, and an arrow on every sortable column would say every\n// one of them was.\nfunction sortArrowFor(direction: 'ascending' | 'descending' | undefined) {\n if (direction === undefined) {\n return null;\n }\n return direction === 'ascending' ? <ArrowUpwardGlyph className=\"xmix8c7 x2lah0s x1xp8n7a\" /> : <ArrowDownwardGlyph className=\"xmix8c7 x2lah0s x1xp8n7a\" />;\n}\n\n/**\n * A grid of rows and columns. Sorting and selection are React Aria's: pass\n * `sortDescriptor` with `onSortChange` and mark the sortable columns\n * `allowsSorting`, and set `selectionMode` to `single` or `multiple` with\n * `selectedKeys` and `onSelectionChange`, or `defaultSelectedKeys`.\n *\n * ```tsx\n * <Table aria-label=\"Label\" selectionMode=\"multiple\">\n * <Table.Header>\n * <Table.Column selection />\n * <Table.Column id=\"name\" isRowHeader>Label</Table.Column>\n * </Table.Header>\n * <Table.Body>\n * <Table.Row id=\"first\">\n * <Table.Cell selection />\n * <Table.Cell>First item</Table.Cell>\n * </Table.Row>\n * </Table.Body>\n * </Table>\n * ```\n *\n * Composed from parts, since a cell takes arbitrary content: `Table.Header`,\n * `Table.Column`, `Table.Body`, `Table.Row`, `Table.Cell` and\n * `Table.Footer`. Name the table with `aria-label` or `aria-labelledby`, and\n * mark one column `isRowHeader` so a screen reader has something to read a\n * row by.\n *\n * The call site's `className` and `style` land on the table, which is the\n * element a layout positions.\n */\nfunction Table({\n onResize,\n onResizeEnd,\n resizable = false,\n resizeLabel,\n selectAllLabel,\n selectLabel,\n stickyHeader = false,\n ...props\n}: RefAttributes<HTMLTableElement> & TableProps) {\n // Held as state rather than in a ref object, since the columns are\n // measured from an effect that has to run again when it changes, and only\n // for a table that resizes, so no other table renders twice for it. The\n // call site's ref lands on the same element, read off `props` for the\n // reason NavigationBar gives.\n const [element, setElement] = useState<HTMLTableElement | null>(null);\n const ref = useMemo(() => resizable ? mergeRefs<HTMLTableElement>(setElement, props.ref ?? undefined) : props.ref, [props.ref, resizable]);\n const minWidths = useColumnMinWidths(resizable ? element : null);\n const table = <RACTable {...props} {...mergeStatefulStyles(tableClasses, props)} ref={ref} />;\n return <SelectAllLabelContext value={selectAllLabel}>\n <SelectLabelContext value={selectLabel}>\n <ResizeLabelContext value={resizeLabel}>\n <ResizableContext value={resizable}>\n <StickyHeaderContext value={stickyHeader}>\n <ColumnMinWidthsContext value={minWidths}>\n {resizable ? <RACResizableTableContainer className={resizableContainerClassName()} onResize={onResize} onResizeEnd={onResizeEnd}>\n {table}\n </RACResizableTableContainer> : table}\n </ColumnMinWidthsContext>\n </StickyHeaderContext>\n </ResizableContext>\n </ResizeLabelContext>\n </SelectLabelContext>\n </SelectAllLabelContext>;\n}\n\n/**\n * The rows. `renderEmptyState` is what it shows when there are none — a table\n * with no rows and nothing to say in their place is a blank area with a\n * header over it.\n *\n * It carries no styles of its own, since every rule a body needs is drawn by\n * the rows inside it, so a `className` here lands on the `<tbody>` through\n * React Aria rather than through a merge.\n */\nfunction TableBody<T extends object = object>({\n renderEmptyState,\n ...props\n}: RefAttributes<HTMLTableSectionElement> & TableBodyProps<T>) {\n return <RACTableBody<T> {...props} renderEmptyState={renderEmptyState === undefined ? undefined : emptyContent(renderEmptyState)} />;\n}\n\n/**\n * One cell. `selection` draws this row's checkbox in place of whatever else\n * the cell would hold. On a disabled row the cell fades as a whole, so what\n * it holds fades with its text.\n */\nfunction TableCell({\n align = 'start',\n children,\n selection = false,\n ...props\n}: RefAttributes<HTMLTableCellElement> & TableCellProps) {\n const label = useContext(SelectLabelContext);\n return <RACCell {...props} {...mergeStatefulStyles(cellStyles(align, selection), props)}>\n {cellContent(children, selection, label)}\n </RACCell>;\n}\n\n// The table's own classes, with the drop target the other collections'\n// boxes draw while a drop would land on the table as a whole.\nfunction tableClasses(state: TableRenderProps) {\n return stylex.props(styles.table, state.isDropTarget && collectionStyles.dropTarget);\n}\n\n/**\n * One column. `allowsSorting` is React Aria's and makes the header cell\n * itself the control that sorts; the arrow appears on the column the\n * `sortDescriptor` names. `isRowHeader` marks the column a screen reader\n * reads a row by.\n *\n * Its `id` shares a namespace with the rows', so give the two sets values\n * that cannot collide — a column and a row with one id between them leaves\n * the table with no columns at all.\n */\nfunction TableColumn({\n align = 'start',\n children,\n resizable = false,\n selection = false,\n ...props\n}: RefAttributes<HTMLTableCellElement> & TableColumnProps) {\n const label = useContext(SelectAllLabelContext);\n const resizeLabel = useContext(ResizeLabelContext);\n const resizableTable = useContext(ResizableContext);\n const sticky = useContext(StickyHeaderContext);\n // The header cell, which is what the table's measurements are keyed by,\n // held only in a table that measures them.\n const [element, setElement] = useState<HTMLTableCellElement | null>(null);\n const ref = useMemo(() => resizableTable ? mergeRefs<HTMLTableCellElement>(setElement, props.ref ?? undefined) : props.ref, [props.ref, resizableTable]);\n const minWidths = useContext(ColumnMinWidthsContext);\n const measured = element === null ? undefined : minWidths.get(element);\n return <RACColumn {...props} {...mergeStatefulStyles(columnStyles(align, selection, sticky), props)} minWidth={props.minWidth ?? (measured === undefined ? undefined : Math.max(measured, REACT_ARIA_MIN_WIDTH))} ref={ref}>\n {columnContent(children, align, selection, label, resizable && resizableTable, resizeLabel)}\n </RACColumn>;\n}\n\n/**\n * A row under the body, for totals and the like. It is not part of the\n * selection or the keyboard navigation — React Aria keeps it out of both.\n */\nfunction TableFooter<T extends object = object>(props: RefAttributes<HTMLTableSectionElement> & TableFooterProps<T>) {\n return <RACTableFooter<T> {...props} {...mergeStyles({\n className: \"x12smttz x13fuv20 x178xt8z x1w5n3ug xkknnkr x14zspaw x1v9cpvo x155f00i x1lz68p4\"\n }, props)} />;\n}\n\n/**\n * The header row, holding the columns, and the rule drawn under it — which\n * moves to the cells when the header sticks, since a row group's border does\n * not travel with cells `position: sticky` has lifted out of it.\n */\nfunction TableHeader<T extends object = object>(props: RefAttributes<HTMLTableSectionElement> & TableHeaderProps<T>) {\n const sticky = useContext(StickyHeaderContext);\n return <RACTableHeader<T> {...props} {...mergeStatefulStyles({\n 0: {\n className: \"x1j6faob x1q0q8m5 xso031l\"\n },\n 1: {}\n }[!!sticky << 0], props)} />;\n}\n\n/**\n * The row the table shows while it is fetching more. React Aria calls\n * `onLoadMore` when this comes into view, and draws it only while\n * `isLoading`. It goes inside `Table.Body`, after the rows.\n */\nfunction TableLoadMore({\n label,\n ref,\n ...props\n}: RefAttributes<HTMLTableRowElement> & TableLoadMoreProps) {\n return <RACTableLoadMoreItem {...props} {...mergeStyles({\n className: \"xdd8jsf\"\n }, props)} ref={mergeRefs(dropAriaLevel, ref ?? undefined)}>\n <span className=\"x6s0dn4 x9f619 x78zum5 xl56j7k\">\n <CollectionLoadMore diameter=\"24px\" label={label} />\n </span>\n </RACTableLoadMoreItem>;\n}\n\n/**\n * One row. Give every row an `id` — that is the key selection is reported\n * by, and it has to differ from every column's. `onAction` runs when the\n * row is pressed.\n */\nfunction TableRow<T extends object = object>(props: RefAttributes<HTMLTableRowElement> & TableRowProps<T>) {\n return <RACRow<T> {...props} {...mergeStatefulStyles(rowStyles, props)} />;\n}\n\n/**\n * The narrowest each column of a resizable table can be with none of its\n * words broken, by the column's header cell, for the columns to take as\n * their minimum — see the header.\n *\n * Measured again when a row, a cell or its text changes, and when a font\n * finishes loading, which is when a word's width changes; never when the\n * table is resized, since what a column holds does not change with it.\n */\nfunction useColumnMinWidths(table: HTMLTableElement | null) {\n const [widths, setWidths] = useState(NO_MIN_WIDTHS);\n useLayoutEffect(() => {\n if (table === null) {\n return undefined;\n }\n const measure = () => {\n const next = measureColumns(table);\n setWidths(current => current.size === next.size && [...next].every(([header, width]) => current.get(header) === width) ? current : next);\n };\n measure();\n const changes = new MutationObserver(measure);\n changes.observe(table, {\n characterData: true,\n childList: true,\n subtree: true\n });\n document.fonts.addEventListener('loadingdone', measure);\n return () => {\n changes.disconnect();\n document.fonts.removeEventListener('loadingdone', measure);\n };\n }, [table]);\n return widths;\n}\nTable.Body = TableBody;\nTable.Cell = TableCell;\nTable.Column = TableColumn;\nTable.Footer = TableFooter;\nTable.Header = TableHeader;\nTable.LoadMore = TableLoadMore;\nTable.Row = TableRow;\nexport type { TableAlign, TableBodyProps, TableCellProps, TableColumnProps, TableFooterProps, TableHeaderProps, TableLoadMoreProps, TableProps, TableRowProps };\nexport { TableBody, TableCell, TableColumn, TableFooter, TableHeader, TableLoadMore, TableRow };\nexport default Table;"],"mappings":";;;;;;;;;;;;;;AAiHA,MAAMqB,wBAAwBnB,cAAkCoB,KAAAA,CAAS;AACzE,MAAMC,qBAAqBrB,cAAkCoB,KAAAA,CAAS;AACtE,MAAME,SAAS;CACbC,MAAM;EACJC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,OAAO;CACT;CACAC,cAAc;EACZC,QAAQ;EACRF,OAAO;CACT;CACAG,SAAS;EACPL,QAAQ;EACRE,OAAO;CACT;CACAI,OAAO;EACLC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRR,OAAO;CACT;CACAS,QAAQ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AC,EAAA;EAAAC,KAAAD,EAAA;CAAA;CApBVrI,gBAAgBoI,IAoBbE,EAAO;CAAC,OACJjB;AAAM;AAEf/G,MAAM8K,OAAO7K;AACbD,MAAMJ,OAAOqJ;AACbjJ,MAAMF,SAASqJ;AACfnJ,MAAM+K,SAAS7K;AACfF,MAAMgL,SAAS7K;AACfH,MAAMiL,WAAWtB;AACjB3J,MAAMD,MAAM6J"}
@@ -16,6 +16,7 @@ const styles = { base: {
16
16
  kGuDYH: "x1n35her",
17
17
  kcqcaj: "xss6m8b",
18
18
  k63SB2: "x1su64ma",
19
+ kAXs8y: "xr5dkdi",
19
20
  kOIVth: "xzoy561",
20
21
  kb6lSQ: "xdlnduh",
21
22
  kLWn49: "xaomhve",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_c","stylex","useRender","mergeStyles","styles","base","kGNEyG","kaIpWk","ksu8eU","kMzoRj","kB7OPa","k1xSpc","kmuXW","kMv6JI","kGuDYH","kcqcaj","k63SB2","kOIVth","kb6lSQ","kLWn49","k8WAf4","kg3NbH","khDVqt","$$css","filledTones","negative","kWkggS","kVAM5u","kMwMTN","neutral","positive","primary","outlinedTones","tone","variant","Tag","t0","$","render","t1","t2","t3","t4","t5","t6","t7","props","undefined","toned","defaultTagName"],"sources":["../../../src/components/tag/index.tsx"],"sourcesContent":["'use client';\n\nimport * as stylex from '@stylexjs/stylex';\nimport type { RenderComponentProps } from '../../render/useRender';\nimport { useRender } from '../../render/useRender';\nimport { mergeStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, radii, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// A tag states something about what it sits beside — a count, a status, a\n// version — and is never itself the thing you press. That is the whole line\n// between this and Chip: a chip is a two-state button announcing itself\n// through `aria-pressed`, so reaching for one to render a read-only label\n// puts a control in the accessibility tree that nothing can operate.\n//\n// Both variants carry a 1px border and `filled` makes it transparent rather\n// than dropping it, so a tag is the same size either way. Emphasising one\n// tag in a row otherwise nudges its neighbours by a pixel each side.\n//\n// Tabular figures are unconditional, for the same reason Currency sets them:\n// what ends up in a tag is mostly numeric — counts, versions, ports — and a\n// stack of them down a list wobbles on proportional digits. Text that happens\n// to carry no digits is unaffected.\n//\n// No Material Design page draws a tag; the badges page's large badge, which\n// `Badge` draws, is the nearest, a label-small count on an 8dp corner, and\n// that is the type and the corner here. A tag stands beside a word rather than on an icon, so it takes\n// the padding and 1dp rule above in place of the badge's 16dp box, and the\n// container roles in place of the badge's error pair, since it names a state\n// rather than flagging one.\nconst styles = {\n base: {\n kGNEyG: \"x6s0dn4\",\n kaIpWk: \"x1xdvaa9\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xmkeg23\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x3nfvp2\",\n kmuXW: \"x2lah0s\",\n kMv6JI: \"xs1w0rn\",\n kGuDYH: \"x1n35her\",\n kcqcaj: \"xss6m8b\",\n k63SB2: \"x1su64ma\",\n kOIVth: \"xzoy561\",\n kb6lSQ: \"xdlnduh\",\n kLWn49: \"xaomhve\",\n k8WAf4: \"xpg5a72\",\n kg3NbH: \"xn60lsn\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n }\n};\n\n// `neutral` draws from the surface roles rather than a colour of its own,\n// which is what lets it state something without ranking it. The other three\n// name a direction, and are the same three Currency uses, plus primary for\n// the notable-but-not-good-or-bad case.\nconst filledTones = {\n negative: {\n kWkggS: \"xkz0cvf\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"xylzu7l\",\n $$css: true\n },\n neutral: {\n kWkggS: \"x1rrhr5q\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n positive: {\n kWkggS: \"xa3zu90\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"x1di7zbg\",\n $$css: true\n },\n primary: {\n kWkggS: \"xp89om9\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"xscdzaa\",\n $$css: true\n }\n};\n\n// Outlined takes the tone at full strength for both the rule and the text,\n// rather than the on-container pairing filled uses. There is no container\n// here for an on-colour to be legible against — the page is the background —\n// so the container roles would read as washed out.\nconst outlinedTones = {\n negative: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x1xdi1zw\",\n kMwMTN: \"x12gp0t\",\n $$css: true\n },\n neutral: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x133yhug\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n positive: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"xm76mbg\",\n kMwMTN: \"x4no3js\",\n $$css: true\n },\n primary: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x1uajy3w\",\n kMwMTN: \"x1mxwv8y\",\n $$css: true\n }\n};\ntype TagProps = {\n /**\n * Which colour role the tag carries. `neutral` states without ranking;\n * the other three read as good, bad, or worth noticing.\n *\n * Each is a container under its own on-colour, guaranteed legible on the\n * surface family — which is what the library's own tokens and every demo\n * scheme are held to. Over a container of its own the pair is one colour\n * family on top of another and is not guaranteed, so a custom theme placing\n * a tag there has to check that pair itself.\n * @default 'neutral'\n */\n tone?: TagTone;\n /**\n * How much weight the tag pulls. `filled` sits on a container of its own;\n * `outlined` is a rule on the page, for a tag that should not compete\n * with the thing it labels.\n * @default 'filled'\n */\n variant?: TagVariant;\n} & RenderComponentProps<'span'>;\ntype TagTone = 'negative' | 'neutral' | 'positive' | 'primary';\ntype TagVariant = 'filled' | 'outlined';\n\n/**\n * A short, read-only label attached to something else. It renders a `<span>`\n * and takes no interaction — for a label that can be selected, reach for Chip.\n */\nfunction Tag({\n render,\n tone = 'neutral',\n variant = 'filled',\n ...props\n}: TagProps) {\n const toned = variant === 'filled' ? filledTones[tone] : outlinedTones[tone];\n return useRender({\n defaultTagName: 'span',\n props: {\n ...props,\n ...mergeStyles(stylex.props(styles.base, toned), props)\n },\n render\n });\n}\nexport type { TagProps, TagTone, TagVariant };\nexport default Tag;"],"mappings":";;;;;;AA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,QAG0B,WAAWrB,YAAYS,QAAQD,cAAcC;EAChE/B,KAAAA;EACWuC,KAAA;EAEXK,KAAAA;EACAN,KAAArC,YAAYF,MAAaG,OAAMC,MAAO2C,KAAK,GAAGF,OAAK;EAACT,EAAA,KAAAD;EAAAC,EAAA,KAAAC;EAAAD,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAI;EAAAJ,EAAA,KAAAK;CAAA,OAAA;EAAAJ,SAAAD,EAAA;EAAAE,KAAAF,EAAA;EAAAG,KAAAH,EAAA;EAAAI,KAAAJ,EAAA;EAAAK,KAAAL,EAAA;CAAA;CAAA,IAAAM;CAAA,IAAAN,EAAA,OAAAE,MAAAF,EAAA,OAAAG,IAAA;EAFlDG,KAAA;GAAA,GACFG;GAAK,GACLN;EACL;EAACH,EAAA,KAAAE;EAAAF,EAAA,KAAAG;EAAAH,EAAA,KAAAM;CAAA,OAAAA,KAAAN,EAAA;CAAA,IAAAO;CAAA,IAAAP,EAAA,OAAAC,UAAAD,EAAA,QAAAI,MAAAJ,EAAA,QAAAM,IAAA;EALcC,KAAA;GAAAK,gBACCR;GAAMK,OACfH;GAGNL;EAEH;EAACD,EAAA,KAAAC;EAAAD,EAAA,MAAAI;EAAAJ,EAAA,MAAAM;EAAAN,EAAA,MAAAO;CAAA,OAAAA,KAAAP,EAAA;CAAA,OAPMnC,GAAU0C,EAOhB;AAAC"}
1
+ {"version":3,"file":"index.js","names":["_c","stylex","useRender","mergeStyles","styles","base","kGNEyG","kaIpWk","ksu8eU","kMzoRj","kB7OPa","k1xSpc","kmuXW","kMv6JI","kGuDYH","kcqcaj","k63SB2","kAXs8y","kOIVth","kb6lSQ","kLWn49","k8WAf4","kg3NbH","khDVqt","$$css","filledTones","negative","kWkggS","kVAM5u","kMwMTN","neutral","positive","primary","outlinedTones","tone","variant","Tag","t0","$","render","t1","t2","t3","t4","t5","t6","t7","props","undefined","toned","defaultTagName"],"sources":["../../../src/components/tag/index.tsx"],"sourcesContent":["'use client';\n\nimport * as stylex from '@stylexjs/stylex';\nimport type { RenderComponentProps } from '../../render/useRender';\nimport { useRender } from '../../render/useRender';\nimport { mergeStyles } from '../../styles/merge';\nimport '../../tokens/design.tokens.stylex';\nimport { colors, radii, spacing, typography } from '../../tokens/design.tokens.stylex';\n\n// A tag states something about what it sits beside — a count, a status, a\n// version — and is never itself the thing you press. That is the whole line\n// between this and Chip: a chip is a two-state button announcing itself\n// through `aria-pressed`, so reaching for one to render a read-only label\n// puts a control in the accessibility tree that nothing can operate.\n//\n// Both variants carry a 1px border and `filled` makes it transparent rather\n// than dropping it, so a tag is the same size either way. Emphasising one\n// tag in a row otherwise nudges its neighbours by a pixel each side.\n//\n// Tabular figures are unconditional, for the same reason Currency sets them:\n// what ends up in a tag is mostly numeric — counts, versions, ports — and a\n// stack of them down a list wobbles on proportional digits. Text that happens\n// to carry no digits is unaffected.\n//\n// No Material Design page draws a tag; the badges page's large badge, which\n// `Badge` draws, is the nearest, a label-small count on an 8dp corner, and\n// that is the type and the corner here. A tag stands beside a word rather than on an icon, so it takes\n// the padding and 1dp rule above in place of the badge's 16dp box, and the\n// container roles in place of the badge's error pair, since it names a state\n// rather than flagging one.\n//\n// Under forced colours a tag takes the mode's colours even inside something\n// that opts out of them. A selected Table or List row does, to keep its\n// `Highlight`, and the property inherits, so a tag there kept its theme\n// container on the row's `Highlight`. Handed back, it is drawn as a tag\n// anywhere else in the mode is: `CanvasText` on `Canvas`, inside a\n// `CanvasText` rule.\nconst FORCED_COLORS = '@media (forced-colors: active)';\nconst styles = {\n base: {\n kGNEyG: \"x6s0dn4\",\n kaIpWk: \"x1xdvaa9\",\n ksu8eU: \"x1y0btm7\",\n kMzoRj: \"xmkeg23\",\n kB7OPa: \"x9f619\",\n k1xSpc: \"x3nfvp2\",\n kmuXW: \"x2lah0s\",\n kMv6JI: \"xs1w0rn\",\n kGuDYH: \"x1n35her\",\n kcqcaj: \"xss6m8b\",\n k63SB2: \"x1su64ma\",\n kAXs8y: \"xr5dkdi\",\n kOIVth: \"xzoy561\",\n kb6lSQ: \"xdlnduh\",\n kLWn49: \"xaomhve\",\n k8WAf4: \"xpg5a72\",\n kg3NbH: \"xn60lsn\",\n khDVqt: \"xuxw1ft\",\n $$css: true\n }\n};\n\n// `neutral` draws from the surface roles rather than a colour of its own,\n// which is what lets it state something without ranking it. The other three\n// name a direction, and are the same three Currency uses, plus primary for\n// the notable-but-not-good-or-bad case.\nconst filledTones = {\n negative: {\n kWkggS: \"xkz0cvf\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"xylzu7l\",\n $$css: true\n },\n neutral: {\n kWkggS: \"x1rrhr5q\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n positive: {\n kWkggS: \"xa3zu90\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"x1di7zbg\",\n $$css: true\n },\n primary: {\n kWkggS: \"xp89om9\",\n kVAM5u: \"x9r1u3d\",\n kMwMTN: \"xscdzaa\",\n $$css: true\n }\n};\n\n// Outlined takes the tone at full strength for both the rule and the text,\n// rather than the on-container pairing filled uses. There is no container\n// here for an on-colour to be legible against — the page is the background —\n// so the container roles would read as washed out.\nconst outlinedTones = {\n negative: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x1xdi1zw\",\n kMwMTN: \"x12gp0t\",\n $$css: true\n },\n neutral: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x133yhug\",\n kMwMTN: \"x1w5n3ug\",\n $$css: true\n },\n positive: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"xm76mbg\",\n kMwMTN: \"x4no3js\",\n $$css: true\n },\n primary: {\n kWkggS: \"xjbqb8w\",\n kVAM5u: \"x1uajy3w\",\n kMwMTN: \"x1mxwv8y\",\n $$css: true\n }\n};\ntype TagProps = {\n /**\n * Which colour role the tag carries. `neutral` states without ranking;\n * the other three read as good, bad, or worth noticing.\n *\n * Each is a container under its own on-colour, guaranteed legible on the\n * surface family — which is what the library's own tokens and every demo\n * scheme are held to. Over a container of its own the pair is one colour\n * family on top of another and is not guaranteed, so a custom theme placing\n * a tag there has to check that pair itself.\n * @default 'neutral'\n */\n tone?: TagTone;\n /**\n * How much weight the tag pulls. `filled` sits on a container of its own;\n * `outlined` is a rule on the page, for a tag that should not compete\n * with the thing it labels.\n * @default 'filled'\n */\n variant?: TagVariant;\n} & RenderComponentProps<'span'>;\ntype TagTone = 'negative' | 'neutral' | 'positive' | 'primary';\ntype TagVariant = 'filled' | 'outlined';\n\n/**\n * A short, read-only label attached to something else. It renders a `<span>`\n * and takes no interaction — for a label that can be selected, reach for Chip.\n */\nfunction Tag({\n render,\n tone = 'neutral',\n variant = 'filled',\n ...props\n}: TagProps) {\n const toned = variant === 'filled' ? filledTones[tone] : outlinedTones[tone];\n return useRender({\n defaultTagName: 'span',\n props: {\n ...props,\n ...mergeStyles(stylex.props(styles.base, toned), props)\n },\n render\n });\n}\nexport type { TagProps, TagTone, TagVariant };\nexport default Tag;"],"mappings":";;;;;;AAsCA,MAAMI,SAAS,EACbC,MAAM;CACJC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;CACPC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,QAAQ;CACRC,OAAO;AACT,EACF;AAMA,MAAMC,cAAc;CAClBC,UAAU;EACRC,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRL,OAAO;CACT;CACAM,SAAS;EACPH,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRL,OAAO;CACT;CACAO,UAAU;EACRJ,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRL,OAAO;CACT;CACAQ,SAAS;EACPL,QAAQ;EACRC,QAAQ;EACRC,QAAQ;EACRL,OAAO;CACT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