@crewlethq/ui 0.174.0 → 0.176.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 (87) hide show
  1. package/README.md +17 -1
  2. package/dist/AgentHandoffPanel/index.js +2 -2
  3. package/dist/AgentIdentity/AgentIdentitySheet.d.ts +8 -0
  4. package/dist/AgentIdentity/index.js +2 -2
  5. package/dist/ArtifactBar/index.js +4 -4
  6. package/dist/ArtifactCard/index.js +3 -3
  7. package/dist/AttentionList/index.js +2 -2
  8. package/dist/AuthLayout/index.js +3 -3
  9. package/dist/AvatarPicker/index.js +6 -6
  10. package/dist/BriefCard/index.js +3 -3
  11. package/dist/Card/index.js +1 -1
  12. package/dist/{Card-6UEMEFS2.css → Card-RHXMHGDS.css} +5 -0
  13. package/dist/CardGrid/CardGrid.d.ts +24 -0
  14. package/dist/CardGrid/index.d.ts +3 -0
  15. package/dist/CardGrid/index.js +2 -0
  16. package/dist/CardGrid-EU2X7QLZ.css +91 -0
  17. package/dist/DataTable/index.js +2 -2
  18. package/dist/DataView/index.js +3 -3
  19. package/dist/DeepWorkCard/index.js +3 -3
  20. package/dist/DurationField/index.js +6 -6
  21. package/dist/EntityList/index.js +3 -3
  22. package/dist/FolderTile/index.js +2 -2
  23. package/dist/GraphCanvas/index.js +2 -2
  24. package/dist/HuePicker/index.js +4 -4
  25. package/dist/InboxList/index.js +2 -2
  26. package/dist/LinkInterstitial/index.js +1 -1
  27. package/dist/MarkdownEditor/index.js +4 -4
  28. package/dist/MergeConflicts/index.js +4 -4
  29. package/dist/NumberField/index.js +5 -5
  30. package/dist/OpenInAppCard/index.js +3 -3
  31. package/dist/PresetChips/index.js +4 -4
  32. package/dist/ProposalCard/index.js +3 -3
  33. package/dist/RailList/index.js +3 -3
  34. package/dist/RefusalCard/index.js +3 -3
  35. package/dist/RelatedRow/index.js +2 -2
  36. package/dist/ResultTableCard/index.js +3 -3
  37. package/dist/SegmentedControl/index.js +3 -3
  38. package/dist/ShareDialog/index.js +2 -2
  39. package/dist/SheetColumnEditor/index.js +5 -5
  40. package/dist/StatusCard/index.js +2 -2
  41. package/dist/Tabs/index.js +2 -2
  42. package/dist/ThemeSwitcher/index.js +4 -4
  43. package/dist/TimeRangePicker/index.js +4 -4
  44. package/dist/VersionCompare/index.js +4 -4
  45. package/dist/{chunk-ETTNLZ4W.js → chunk-563UNS7A.js} +1 -1
  46. package/dist/{chunk-MUAHR6ZE.js → chunk-5PLHH6SC.js} +1 -1
  47. package/dist/{chunk-UBUEXOYL.js → chunk-6NWO46ZX.js} +2 -2
  48. package/dist/{chunk-7ICNNHQ2.js → chunk-772DMYGL.js} +1 -1
  49. package/dist/{chunk-SUGJVKJB.js → chunk-ADUMZELH.js} +2 -2
  50. package/dist/chunk-AM22MQ47.js +19 -0
  51. package/dist/{chunk-DBA62TC4.js → chunk-AQ4Q6QWY.js} +1 -1
  52. package/dist/{chunk-2YJYUAKA.js → chunk-B2K3F5K4.js} +1 -1
  53. package/dist/{chunk-TQQSOCLB.js → chunk-BRVJTEHP.js} +2 -2
  54. package/dist/{chunk-4UBZQ6N6.js → chunk-BVDKDYFP.js} +1 -1
  55. package/dist/{chunk-QMR6QF26.js → chunk-FANGLE4P.js} +1 -1
  56. package/dist/{chunk-LWU2F6RZ.js → chunk-FVYEMS77.js} +1 -1
  57. package/dist/{chunk-5Y76EWDZ.js → chunk-G732IWP4.js} +1 -1
  58. package/dist/{chunk-I3MHYEWJ.js → chunk-JZXM2BSZ.js} +1 -1
  59. package/dist/{chunk-T7VM6LZD.js → chunk-KCDGRJUF.js} +1 -1
  60. package/dist/{chunk-6MMONW2C.js → chunk-KEBCKP4F.js} +1 -1
  61. package/dist/{chunk-WDJP4UFS.js → chunk-LFNCDQPH.js} +1 -1
  62. package/dist/{chunk-GPYBH5E3.js → chunk-LVDIKZ5U.js} +1 -1
  63. package/dist/{chunk-3EVWDE6G.js → chunk-LVKLNMFP.js} +1 -1
  64. package/dist/{chunk-JNU5N67E.js → chunk-MUARF7TN.js} +1 -1
  65. package/dist/{chunk-DPWURYRT.js → chunk-P3SAKP43.js} +1 -1
  66. package/dist/{chunk-O6LCIFB6.js → chunk-ROCH2HGN.js} +1 -1
  67. package/dist/{chunk-U5CKHHMM.js → chunk-RQATEWU5.js} +1 -1
  68. package/dist/{chunk-T5JTMBMR.js → chunk-RROHJ2RL.js} +1 -1
  69. package/dist/{chunk-QXXF5JHD.js → chunk-RZKRHIZN.js} +2 -2
  70. package/dist/{chunk-JBDTBWP3.js → chunk-SR5GHUP5.js} +1 -1
  71. package/dist/{chunk-JE2D3ZHY.js → chunk-TFUX7DN2.js} +16 -1
  72. package/dist/{chunk-6LVS24FG.js → chunk-VOZHTXUS.js} +1 -1
  73. package/dist/{chunk-34TT4WFW.js → chunk-WIMAYZYL.js} +2 -2
  74. package/dist/{chunk-64CMQ2QA.js → chunk-WRLMDS4N.js} +1 -1
  75. package/dist/{chunk-S2JCOH6O.js → chunk-YAM24RKM.js} +1 -1
  76. package/dist/generated/index.d.ts +1 -0
  77. package/dist/generated/index.js +86 -85
  78. package/dist/index.js +86 -85
  79. package/dist/styles.css +100 -1
  80. package/package.json +3 -3
  81. package/dist/{chunk-JR4D3ROS.js → chunk-2ZPHAZMP.js} +1 -1
  82. package/dist/{chunk-BI23HYLK.js → chunk-AKI23HTR.js} +0 -0
  83. package/dist/{chunk-GEISX6VZ.js → chunk-H6CBXZLB.js} +1 -1
  84. package/dist/{chunk-JWS6ZNKP.js → chunk-KFPESQXJ.js} +1 -1
  85. package/dist/{chunk-QPW7CNEH.js → chunk-NQFEPPTY.js} +1 -1
  86. package/dist/{chunk-3GD5T5WY.js → chunk-S4FECSRN.js} +1 -1
  87. package/dist/{chunk-BDDJI6NA.js → chunk-WX3P3FUA.js} +1 -1
package/README.md CHANGED
@@ -52,7 +52,7 @@ import { Button } from '@crewlethq/ui/Button'; // 8 KB of CSS, not 182 KB
52
52
  | Charts | `Legend`, `BarList`, `StackedBar`, `StackedColumns`, `StackedRing`, `ActivityStrip`, `TimeSeries`, `Sparkline` (with its `fine` weight), the reading layer they share (`ChartTooltip`, `useChartHover`), and the ramp (`DATA_COLORS`, `DATA_COLOR_OTHER`, `dataColor`) |
53
53
  | Marks | `Count` (with `tone="attention"`), `StatusDot`, `Spinner`, `EmptyValue`, `VisuallyHidden` |
54
54
  | Hooks and seams | `useModalLayer`, `usePopupLayer`, `LayerHost`, `useListbox`, `useOptionKeys`, `useHighlightRest` and `HIGHLIGHT_REST_MS`, `useClipboard`, `useDownload`, `downloadText`, `downloadBlob`, `safeFilename`, `toCsv`, `elementToPng` and `ElementToPngError`, `useOutcome`, `useAnnouncer`, `useNow`, `formatRelative`, `HeadingLevelProvider`, `cx`, the node hues (`NODE_HUES`, `NODE_HUE_NAMES`, `isNodeHue`) |
55
- | Layout | `Container`, `Section`, `Card`, `TileGrid`, `ListDetail`, `RailList` (a directory's groups as a rail beside its list, folding into a picker), `AsideLayout`, `Tabs`, `Accordion`, `Disclosure`, `Outline` (with `useActiveHeading` and `scrollToHeading`), `TreeGrid` |
55
+ | Layout | `Container`, `Section`, `Card`, `CardGrid` (cards side by side, each row one height), `TileGrid`, `ListDetail`, `RailList` (a directory's groups as a rail beside its list, folding into a picker), `AsideLayout`, `Tabs`, `Accordion`, `Disclosure`, `Outline` (with `useActiveHeading` and `scrollToHeading`), `TreeGrid` |
56
56
  | Arranging a page | `ArrangeBoard`, `ArrangeGrid`, `ArrangeFrame` (with `useGridResize`), `ArrangeGroup`, `ArrangeList`, and the reorder hooks under them (`useReorder`, `useReorderLists`, `moveKey`) |
57
57
  | Application shell | `AppShell` with `AppShell.Rail`, the compact rail (`rail="compact"`, the one fold control from `onRailChange`, and `useAppShell().rail` to pick the shape) and `fill="flush"`, the `aside` track and the `peek` slot (`useAppShellAside`, `useAppShellPeek`), `AppShell.ResizeHandle` (also `ResizeHandle`) and `useStoredWidth`, `SidePanel` and `SidePanelFrame`, `PeekRail` and `PeekHost` (with `PeekNeighbours`, `usePeekNeighbours`, `usePeekStep`, `peekClickHandler`, `peekRowActivation`), `SectionFrame` (with `SectionFrame.Nav` and `SectionFrame.Body`), `DockColumn` and `usePresence`, `LockedLabel`, `AppShell.Topbar`, `AppShell.AccountRow` and `useAppShell`, `AuthLayout`, `SidebarNav` and `NavItem` (with `dense` lists, `unread` and `muted` rows and `collapsible` groups), `CompactNav` with `CompactNavItem`, `CompactNavGroup` and `CompactNavSeparator` (the rail folded to its marks, fed from the same places), `DirectoryList`, `BrandLockup`, `SearchTrigger`, `PageHeader`, `Toolbar`, `Stack`, `Inline`, `Spacer`, `AutoGrid`, `ErrorBoundary`, `useShortcut`, `useFullscreen`, `useIdle`, `useMediaMatch` |
58
58
  | Preferences | `ThemeToggle`, `ThemeSwitcher`, `DensitySwitcher`, `ThemeGallery`, `ThemeSwatch`, `useThemePreference`, `useDensityPreference`, `useSystemTheme`, `resolveTheme`, `applyStoredPreferences`, and the framework-free `applyTheme`, `applyPalette`, `applyDensity` with `THEME_PREFERENCES`, `DENSITY_PREFERENCES` and their guards |
@@ -209,6 +209,22 @@ places:
209
209
  - A surface that pans or zooms dispatches `LAYER_REPOSITION_EVENT` on its host
210
210
  when the content beneath it moves, and every panel anchored inside follows.
211
211
 
212
+ ## Changes in 0.176.0
213
+
214
+ ### Cards side by side end at one height
215
+
216
+ **`CardGrid` is new**: cards side by side, every card in a row as tall as the row. Each cell stretches to its row whatever alignment the page gives the grid, a cell that wraps its card (a focus target, a list item) hands the row's height down to it, and the grid folds to one card per row, each its own height, where two would be narrower than `min`. `columns` (2, 3 or 4) caps a row, unset it holds as many as fit; `min` takes `AutoGrid`'s steps (`sm` 180px, `md` 260px, `lg` 360px); `gap` is 2, 3, 4 or 5, and is set by the prop rather than a class, since the column cap counts it; `as="ul"` makes the grid the list. Story: `CardGrid` Short Beside Tall, With Actions, Empty Body, Wrapped, Narrow.
217
+
218
+ **A `Card.Footer` stays at its card's foot however tall the card is drawn**, so a short card in a stretched row or cell keeps its actions level with its neighbour's instead of floating under its content; a second footer stays right under the first. This applies to every card its parent stretches (a `CardGrid`, a `TileGrid`, an `AutoGrid` row, a flex row, an `ArrangeFrame` given a height). A card at its content's height, and a packed board's frames sized by their content, are unchanged.
219
+
220
+ What to change: lay cards that sit side by side in a `CardGrid` rather than a grid of your own, and put a cell's own attributes (an `id`, a `ref`, `tabIndex`) on the card itself or on one wrapper around it.
221
+
222
+ ## Changes in 0.175.0
223
+
224
+ ### One more value beside a handed-in file
225
+
226
+ **`AgentIdentitySheet` can ask for one optional value beside the file**: `handIn.detail` (`{ label, hint, inputMode }`) draws a plain text field under the file's own `field` in Back here, its label marked "(optional)" as every optional field is, its hint the field's help line, read with it by a screen reader. Left empty it does not hold the check back and is left out of what `onCheck` is handed; typed, it arrives trimmed as `detail`. `inputMode: 'numeric'` brings up a phone's number pad for a value that is digits. Story: `AgentIdentitySheet` Back Here With Detail.
227
+
212
228
  ## Changes in 0.174.0
213
229
 
214
230
  ### A vendor's UI names read apart, and the page a step names is linked there
@@ -1,6 +1,6 @@
1
- export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-QPW7CNEH.js';
2
- import '../chunk-XDUXAQIS.js';
1
+ export { AGENT_HANDOFF_LABELS, AgentHandoffPanel } from '../chunk-NQFEPPTY.js';
3
2
  import '../chunk-WFCWPXJN.js';
3
+ import '../chunk-XDUXAQIS.js';
4
4
  import '../chunk-EL5O66EH.js';
5
5
  import '../chunk-UZMXC5T6.js';
6
6
  import '../chunk-W4EWRZU4.js';
@@ -31,6 +31,12 @@ export type AgentIdentityHandIn = {
31
31
  label: string;
32
32
  fromName?: RegExp | undefined;
33
33
  } | undefined;
34
+ /** One more value beside the file, typed and optional, drawn under the field with one line of hint. */
35
+ detail?: {
36
+ label: string;
37
+ hint?: ReactNode;
38
+ inputMode?: 'text' | 'numeric' | undefined;
39
+ } | undefined;
34
40
  } | {
35
41
  kind: 'token';
36
42
  label: string;
@@ -45,6 +51,8 @@ export interface AgentIdentityBrought {
45
51
  made: boolean;
46
52
  file?: File;
47
53
  field?: string;
54
+ /** The hand-in's `detail`, trimmed; left out where the person typed nothing. */
55
+ detail?: string;
48
56
  token?: string;
49
57
  }
50
58
  /** The check's answer. */
@@ -1,13 +1,13 @@
1
- export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-JE2D3ZHY.js';
1
+ export { AGENT_IDENTITY_CHIPS, AGENT_IDENTITY_NEEDS_YOU, AGENT_IDENTITY_STATES, AGENT_IDENTITY_WORDS, AgentIdentity, AgentIdentitySheet, agentIdentityNeedsSetUp, agentIdentityNeedsYou } from '../chunk-TFUX7DN2.js';
2
2
  import '../chunk-GAQU5V5R.js';
3
3
  import '../chunk-C7YE4L5Y.js';
4
4
  import '../chunk-2MN3RNRM.js';
5
- import '../chunk-HHV5WHTT.js';
6
5
  import '../chunk-S5W7EIVC.js';
7
6
  import '../chunk-HUIAYSOC.js';
8
7
  import '../chunk-STJ7QBC3.js';
9
8
  import '../chunk-DTIW4CHZ.js';
10
9
  import '../chunk-HZXS5CEL.js';
10
+ import '../chunk-HHV5WHTT.js';
11
11
  import '../chunk-I4NRQIRF.js';
12
12
  import '../chunk-HOIZJFYS.js';
13
13
  import '../chunk-475DOAWF.js';
@@ -1,11 +1,11 @@
1
- export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-UBUEXOYL.js';
1
+ export { ARTIFACT_BAR_LABELS, ArtifactBar, ArtifactVersionChip } from '../chunk-6NWO46ZX.js';
2
2
  import '../chunk-DG6H4EO2.js';
3
- import '../chunk-I3MHYEWJ.js';
4
- import '../chunk-JR4D3ROS.js';
5
- import '../chunk-EUET4PNC.js';
3
+ import '../chunk-JZXM2BSZ.js';
4
+ import '../chunk-2ZPHAZMP.js';
6
5
  import '../chunk-7F3OPUM5.js';
7
6
  import '../chunk-AVL52EME.js';
8
7
  import '../chunk-RSKW25Y5.js';
8
+ import '../chunk-EUET4PNC.js';
9
9
  import '../chunk-VBBLHS2Y.js';
10
10
  import '../chunk-2YTOOH3A.js';
11
11
  import '../chunk-QRE6JCHS.js';
@@ -1,13 +1,13 @@
1
- export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-TQQSOCLB.js';
1
+ export { ArtifactCard, ArtifactCardSkeleton, ArtifactPreviewGlyph } from '../chunk-BRVJTEHP.js';
2
2
  import '../chunk-WFAJYBLX.js';
3
3
  import '../chunk-265IX4YA.js';
4
4
  import '../chunk-GBKBME7Q.js';
5
5
  import '../chunk-WGLOH33S.js';
6
- import '../chunk-5Y76EWDZ.js';
6
+ import '../chunk-G732IWP4.js';
7
7
  import '../chunk-AV2DXAEL.js';
8
+ import '../chunk-DOY3KC6I.js';
8
9
  import '../chunk-W3A6NBUM.js';
9
10
  import '../chunk-NVQERXLE.js';
10
- import '../chunk-DOY3KC6I.js';
11
11
  export { ARTIFACT_KINDS, ArtifactKindGlyph } from '../chunk-RSKW25Y5.js';
12
12
  import '../chunk-JWHXDVN5.js';
13
13
  import '../chunk-YMFFGPFE.js';
@@ -1,6 +1,6 @@
1
- export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-2YJYUAKA.js';
1
+ export { ATTENTION_LIST_LABELS, AttentionList } from '../chunk-B2K3F5K4.js';
2
2
  import '../chunk-OJD7XWB6.js';
3
- import '../chunk-5Y76EWDZ.js';
3
+ import '../chunk-G732IWP4.js';
4
4
  import '../chunk-AV2DXAEL.js';
5
5
  import '../chunk-475DOAWF.js';
6
6
  import '../chunk-WSIJDWUG.js';
@@ -1,8 +1,8 @@
1
- export { AuthLayout } from '../chunk-JNU5N67E.js';
1
+ export { AuthLayout } from '../chunk-MUARF7TN.js';
2
2
  import '../chunk-KXWJJWBD.js';
3
- import '../chunk-JLOESTT2.js';
4
- import '../chunk-5Y76EWDZ.js';
3
+ import '../chunk-G732IWP4.js';
5
4
  import '../chunk-AV2DXAEL.js';
5
+ import '../chunk-JLOESTT2.js';
6
6
  import '../chunk-475DOAWF.js';
7
7
  import '../chunk-WSIJDWUG.js';
8
8
  import '../chunk-6YKTRAWI.js';
@@ -1,12 +1,12 @@
1
- export { AvatarPicker } from '../chunk-QXXF5JHD.js';
2
- import '../chunk-S2JCOH6O.js';
1
+ export { AvatarPicker } from '../chunk-RZKRHIZN.js';
2
+ import '../chunk-YAM24RKM.js';
3
3
  import '../chunk-AJFA2XDQ.js';
4
- import '../chunk-CBUAKPF7.js';
5
4
  import '../chunk-AYKXMIOR.js';
6
- import '../chunk-I3MHYEWJ.js';
7
- import '../chunk-JR4D3ROS.js';
8
- import '../chunk-EUET4PNC.js';
5
+ import '../chunk-CBUAKPF7.js';
6
+ import '../chunk-JZXM2BSZ.js';
7
+ import '../chunk-2ZPHAZMP.js';
9
8
  import '../chunk-7F3OPUM5.js';
9
+ import '../chunk-EUET4PNC.js';
10
10
  import '../chunk-YMFFGPFE.js';
11
11
  import '../chunk-2YTOOH3A.js';
12
12
  import '../chunk-QRE6JCHS.js';
@@ -1,8 +1,8 @@
1
- export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from '../chunk-GPYBH5E3.js';
1
+ export { BRIEF_CARD_LABELS, BRIEF_CARD_MAX_FOLLOW_UPS, BRIEF_CARD_MAX_NEEDS, BRIEF_CARD_MAX_POINTS, BriefCard } from '../chunk-LVDIKZ5U.js';
2
2
  import '../chunk-IR3OWPAZ.js';
3
3
  import '../chunk-6C7GQOBV.js';
4
- import '../chunk-JBDTBWP3.js';
5
- import '../chunk-5Y76EWDZ.js';
4
+ import '../chunk-SR5GHUP5.js';
5
+ import '../chunk-G732IWP4.js';
6
6
  import '../chunk-AV2DXAEL.js';
7
7
  import '../chunk-HOIZJFYS.js';
8
8
  import '../chunk-475DOAWF.js';
@@ -1,4 +1,4 @@
1
- export { Card } from '../chunk-5Y76EWDZ.js';
1
+ export { Card } from '../chunk-G732IWP4.js';
2
2
  export { useCardHeaderSlot } from '../chunk-AV2DXAEL.js';
3
3
  import '../chunk-475DOAWF.js';
4
4
  import '../chunk-WSIJDWUG.js';
@@ -446,6 +446,11 @@
446
446
  color: var(--color-text-tertiary);
447
447
  }
448
448
 
449
+ /* At the card's foot however tall the card is drawn; a second footer stays under the first. */
450
+ .crewlet-card > .crewlet-card__footer:not(.crewlet-card__footer ~ .crewlet-card__footer) {
451
+ margin-block-start: auto;
452
+ }
453
+
449
454
  .crewlet-card__footer--actions {
450
455
  justify-content: flex-end;
451
456
  }
@@ -0,0 +1,24 @@
1
+ import type { HTMLAttributes, ReactNode } from 'react';
2
+ /** The most cards one row holds at full width. */
3
+ export type CardGridColumns = 2 | 3 | 4;
4
+ /** The narrowest a card is drawn before its row drops one: `AutoGrid`'s three steps. */
5
+ export type CardGridMin = 'sm' | 'md' | 'lg';
6
+ /** The space between cards, as a step on the spacing scale. */
7
+ export type CardGridGap = 2 | 3 | 4 | 5;
8
+ export interface CardGridProps extends HTMLAttributes<HTMLElement> {
9
+ /** The most cards a row holds; unset, as many as fit at `min`. */
10
+ columns?: CardGridColumns | undefined;
11
+ /** The narrowest card before the row drops one. `md` (260px) by default. */
12
+ min?: CardGridMin | undefined;
13
+ /** The space between cards; set here rather than by a class, since the column cap counts it. */
14
+ gap?: CardGridGap | undefined;
15
+ /** The element the cards stand in: a `ul` for cards that are `li`s. */
16
+ as?: 'div' | 'section' | 'ul' | 'ol' | undefined;
17
+ children?: ReactNode;
18
+ }
19
+ /**
20
+ * Cards side by side, every card in a row as tall as the row: each cell stretches
21
+ * whatever alignment a page gives the grid, and a cell wrapping its card hands it
22
+ * the height. A narrow grid is one card per row.
23
+ */
24
+ export declare function CardGrid({ columns, min, gap, as: Tag, className, children, ...rest }: CardGridProps): import("react").JSX.Element;
@@ -0,0 +1,3 @@
1
+ import './CardGrid.css';
2
+ export { CardGrid } from './CardGrid.js';
3
+ export type { CardGridColumns, CardGridGap, CardGridMin, CardGridProps } from './CardGrid.js';
@@ -0,0 +1,2 @@
1
+ export { CardGrid } from '../chunk-AM22MQ47.js';
2
+ import '../chunk-ODEQTPFM.js';
@@ -0,0 +1,91 @@
1
+ /*
2
+ * CardGrid: cards side by side, every card in a row as tall as the row.
3
+ */
4
+
5
+ .crewlet-card-grid {
6
+ --crewlet-card-grid-min: 260px;
7
+ --crewlet-card-grid-gap: var(--spacing-4);
8
+
9
+ display: grid;
10
+ grid-template-columns: repeat(auto-fit, minmax(min(var(--crewlet-card-grid-min), 100%), 1fr));
11
+ align-items: stretch;
12
+ min-width: 0;
13
+ }
14
+
15
+ /* The gap is the prop's, above a page's one-class utility, since the column cap counts it. */
16
+ .crewlet-card-grid[data-gap] {
17
+ gap: var(--crewlet-card-grid-gap);
18
+ }
19
+
20
+ /* A list's reset, at no weight, so a page's own spacing on the grid still applies. */
21
+ :where(.crewlet-card-grid) {
22
+ margin: 0;
23
+ padding: 0;
24
+ list-style: none;
25
+ }
26
+
27
+ .crewlet-card-grid[data-min='sm'] {
28
+ --crewlet-card-grid-min: 180px;
29
+ }
30
+
31
+ .crewlet-card-grid[data-min='lg'] {
32
+ --crewlet-card-grid-min: 360px;
33
+ }
34
+
35
+ .crewlet-card-grid[data-gap='2'] {
36
+ --crewlet-card-grid-gap: var(--spacing-2);
37
+ }
38
+
39
+ .crewlet-card-grid[data-gap='3'] {
40
+ --crewlet-card-grid-gap: var(--spacing-3);
41
+ }
42
+
43
+ .crewlet-card-grid[data-gap='5'] {
44
+ --crewlet-card-grid-gap: var(--spacing-5);
45
+ }
46
+
47
+ /* A column count caps the row: no track is narrower than its share of the width. */
48
+ .crewlet-card-grid[data-columns] {
49
+ grid-template-columns: repeat(
50
+ auto-fit,
51
+ minmax(
52
+ min(
53
+ 100%,
54
+ max(
55
+ var(--crewlet-card-grid-min),
56
+ (100% - (var(--crewlet-card-grid-columns) - 1) * var(--crewlet-card-grid-gap)) /
57
+ var(--crewlet-card-grid-columns)
58
+ )
59
+ ),
60
+ 1fr
61
+ )
62
+ );
63
+ }
64
+
65
+ .crewlet-card-grid[data-columns='2'] {
66
+ --crewlet-card-grid-columns: 2;
67
+ }
68
+
69
+ .crewlet-card-grid[data-columns='3'] {
70
+ --crewlet-card-grid-columns: 3;
71
+ }
72
+
73
+ .crewlet-card-grid[data-columns='4'] {
74
+ --crewlet-card-grid-columns: 4;
75
+ }
76
+
77
+ /* Every cell is its row's height, whatever alignment the page gives the grid. */
78
+ .crewlet-card-grid > * {
79
+ align-self: stretch;
80
+ min-width: 0;
81
+ }
82
+
83
+ /* A cell that wraps its card (a focus target, a list item) hands the row's height down to it. */
84
+ .crewlet-card-grid > :not(.crewlet-card, [hidden]):has(> .crewlet-card) {
85
+ display: flex;
86
+ flex-direction: column;
87
+ }
88
+
89
+ .crewlet-card-grid > :not(.crewlet-card) > .crewlet-card {
90
+ flex: 1 1 auto;
91
+ }
@@ -1,11 +1,11 @@
1
- export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-GEISX6VZ.js';
1
+ export { ALL_ITEMS, CopyableCell, DATA_TABLE_LABELS, DataTable, RowActionsMenu } from '../chunk-H6CBXZLB.js';
2
2
  import '../chunk-WGLOH33S.js';
3
3
  import '../chunk-AV2DXAEL.js';
4
4
  import '../chunk-NVQERXLE.js';
5
5
  import '../chunk-EUET4PNC.js';
6
- import '../chunk-HHV5WHTT.js';
7
6
  import '../chunk-STJ7QBC3.js';
8
7
  import '../chunk-DTIW4CHZ.js';
8
+ import '../chunk-HHV5WHTT.js';
9
9
  import '../chunk-UZ7JIUAL.js';
10
10
  import '../chunk-NICEDVZM.js';
11
11
  import '../chunk-JLKO7PSK.js';
@@ -1,7 +1,7 @@
1
- export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-O6LCIFB6.js';
1
+ export { DATA_VIEW_TOOLBAR_LABELS, DataView, DataViewToolbar, FILTER_AXIS_LABELS, FilterAxisBar, FilterAxisChip, applyColumnFilters, applyFilters, blankFilterValue, defaultOperator, filterDefsFromColumns, filterHasValue, filterPredicate, formatFilterValue, operatorOf, tableColumns } from '../chunk-ROCH2HGN.js';
2
2
  import '../chunk-FPDIHEM4.js';
3
3
  import '../chunk-UL7X5F5W.js';
4
- import '../chunk-GEISX6VZ.js';
4
+ import '../chunk-H6CBXZLB.js';
5
5
  import '../chunk-5TQRAZQG.js';
6
6
  import '../chunk-KW7T23RT.js';
7
7
  import '../chunk-NPEI2QAN.js';
@@ -13,9 +13,9 @@ import '../chunk-AV2DXAEL.js';
13
13
  import '../chunk-NVQERXLE.js';
14
14
  import '../chunk-EUET4PNC.js';
15
15
  import '../chunk-VBBLHS2Y.js';
16
- import '../chunk-HHV5WHTT.js';
17
16
  import '../chunk-STJ7QBC3.js';
18
17
  import '../chunk-DTIW4CHZ.js';
18
+ import '../chunk-HHV5WHTT.js';
19
19
  import '../chunk-UZ7JIUAL.js';
20
20
  import '../chunk-NICEDVZM.js';
21
21
  import '../chunk-JLKO7PSK.js';
@@ -1,8 +1,8 @@
1
- export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-3EVWDE6G.js';
1
+ export { DEEP_WORK_CARD_LABELS, DEEP_WORK_STATES, DEEP_WORK_STATE_LABELS, DeepWorkCard } from '../chunk-LVKLNMFP.js';
2
2
  import '../chunk-3XXFU4XP.js';
3
3
  import '../chunk-MXOT2CWL.js';
4
- import '../chunk-JBDTBWP3.js';
5
- import '../chunk-5Y76EWDZ.js';
4
+ import '../chunk-SR5GHUP5.js';
5
+ import '../chunk-G732IWP4.js';
6
6
  import '../chunk-AV2DXAEL.js';
7
7
  import '../chunk-2MN3RNRM.js';
8
8
  import '../chunk-HOIZJFYS.js';
@@ -1,13 +1,13 @@
1
- export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from '../chunk-34TT4WFW.js';
1
+ export { DURATION_FIELD_LABELS, DURATION_UNIT_SECONDS, DurationField, durationSeconds, durationValue, durationWords } from '../chunk-WIMAYZYL.js';
2
2
  import '../chunk-D5UVJL4I.js';
3
- import '../chunk-U5CKHHMM.js';
4
- import '../chunk-T7VM6LZD.js';
3
+ import '../chunk-RQATEWU5.js';
4
+ import '../chunk-KCDGRJUF.js';
5
5
  import '../chunk-KW7T23RT.js';
6
6
  import '../chunk-DG6H4EO2.js';
7
- import '../chunk-I3MHYEWJ.js';
8
- import '../chunk-JR4D3ROS.js';
9
- import '../chunk-EUET4PNC.js';
7
+ import '../chunk-JZXM2BSZ.js';
8
+ import '../chunk-2ZPHAZMP.js';
10
9
  import '../chunk-7F3OPUM5.js';
10
+ import '../chunk-EUET4PNC.js';
11
11
  import '../chunk-2YTOOH3A.js';
12
12
  import '../chunk-QRE6JCHS.js';
13
13
  import '../chunk-UZ7JIUAL.js';
@@ -1,6 +1,6 @@
1
- export { EntityList } from '../chunk-DBA62TC4.js';
2
- import '../chunk-JBDTBWP3.js';
3
- import '../chunk-5Y76EWDZ.js';
1
+ export { EntityList } from '../chunk-AQ4Q6QWY.js';
2
+ import '../chunk-SR5GHUP5.js';
3
+ import '../chunk-G732IWP4.js';
4
4
  import '../chunk-AV2DXAEL.js';
5
5
  import '../chunk-HOIZJFYS.js';
6
6
  import '../chunk-475DOAWF.js';
@@ -1,5 +1,5 @@
1
- export { FolderTile, describeFolderContents, folderContentsParts } from '../chunk-64CMQ2QA.js';
2
- import '../chunk-5Y76EWDZ.js';
1
+ export { FolderTile, describeFolderContents, folderContentsParts } from '../chunk-WRLMDS4N.js';
2
+ import '../chunk-G732IWP4.js';
3
3
  import '../chunk-AV2DXAEL.js';
4
4
  import '../chunk-475DOAWF.js';
5
5
  import '../chunk-WSIJDWUG.js';
@@ -1,7 +1,7 @@
1
- export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_FOCUS_ZOOM, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphFocusView, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, placeTrunkLabels, routeGraphEdges } from '../chunk-BDDJI6NA.js';
1
+ export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_FOCUS_ZOOM, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphFocusView, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, placeTrunkLabels, routeGraphEdges } from '../chunk-WX3P3FUA.js';
2
2
  import '../chunk-MY374UUD.js';
3
- import '../chunk-37FXQ4TH.js';
4
3
  import '../chunk-L6HUVA33.js';
4
+ import '../chunk-37FXQ4TH.js';
5
5
  import '../chunk-DUTG73M4.js';
6
6
  import '../chunk-CUEPPDBC.js';
7
7
  import '../chunk-VBBLHS2Y.js';
@@ -1,10 +1,10 @@
1
1
  import '../chunk-FFMCMSJB.js';
2
- export { HuePicker, HueSwatch } from '../chunk-S2JCOH6O.js';
2
+ export { HuePicker, HueSwatch } from '../chunk-YAM24RKM.js';
3
3
  import '../chunk-AYKXMIOR.js';
4
- import '../chunk-I3MHYEWJ.js';
5
- import '../chunk-JR4D3ROS.js';
6
- import '../chunk-EUET4PNC.js';
4
+ import '../chunk-JZXM2BSZ.js';
5
+ import '../chunk-2ZPHAZMP.js';
7
6
  import '../chunk-7F3OPUM5.js';
7
+ import '../chunk-EUET4PNC.js';
8
8
  import '../chunk-2YTOOH3A.js';
9
9
  import '../chunk-QRE6JCHS.js';
10
10
  import '../chunk-34K3XN47.js';
@@ -1,7 +1,7 @@
1
- export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from '../chunk-3GD5T5WY.js';
1
+ export { INBOX_ROW_LEAVE, InboxGroup, InboxList, InboxMore, InboxRow, InboxToggle } from '../chunk-S4FECSRN.js';
2
2
  import '../chunk-RK4XPHVG.js';
3
- import '../chunk-SNKQNAJI.js';
4
3
  import '../chunk-6C7GQOBV.js';
4
+ import '../chunk-SNKQNAJI.js';
5
5
  import '../chunk-SK4BIFTG.js';
6
6
  import '../chunk-COS6LJ4K.js';
7
7
  import '../chunk-HTS5RJ7S.js';
@@ -1,7 +1,7 @@
1
1
  export { LinkInterstitial, openExternal } from '../chunk-35ZF72VO.js';
2
2
  import '../chunk-W4UJWFCZ.js';
3
- import '../chunk-HHV5WHTT.js';
4
3
  import '../chunk-HZXS5CEL.js';
4
+ import '../chunk-HHV5WHTT.js';
5
5
  import '../chunk-I4NRQIRF.js';
6
6
  import '../chunk-34K3XN47.js';
7
7
  import '../chunk-XSPCITPN.js';
@@ -1,10 +1,10 @@
1
- export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-SUGJVKJB.js';
1
+ export { MARKDOWN_FORMATS, MARKDOWN_TEXT_FORMATS, MarkdownEditor, formatMarkdown, insertMarkdown, markdownWords } from '../chunk-ADUMZELH.js';
2
2
  import '../chunk-NPEI2QAN.js';
3
3
  import '../chunk-DG6H4EO2.js';
4
- import '../chunk-I3MHYEWJ.js';
5
- import '../chunk-JR4D3ROS.js';
6
- import '../chunk-EUET4PNC.js';
4
+ import '../chunk-JZXM2BSZ.js';
5
+ import '../chunk-2ZPHAZMP.js';
7
6
  import '../chunk-7F3OPUM5.js';
7
+ import '../chunk-EUET4PNC.js';
8
8
  import '../chunk-2YTOOH3A.js';
9
9
  import '../chunk-QRE6JCHS.js';
10
10
  import '../chunk-34K3XN47.js';
@@ -1,9 +1,9 @@
1
- export { MERGE_CONFLICTS_LABELS, MergeConflicts } from '../chunk-7ICNNHQ2.js';
1
+ export { MERGE_CONFLICTS_LABELS, MergeConflicts } from '../chunk-772DMYGL.js';
2
2
  import '../chunk-DG6H4EO2.js';
3
- import '../chunk-I3MHYEWJ.js';
4
- import '../chunk-JR4D3ROS.js';
5
- import '../chunk-EUET4PNC.js';
3
+ import '../chunk-JZXM2BSZ.js';
4
+ import '../chunk-2ZPHAZMP.js';
6
5
  import '../chunk-7F3OPUM5.js';
6
+ import '../chunk-EUET4PNC.js';
7
7
  import '../chunk-2YTOOH3A.js';
8
8
  import '../chunk-QRE6JCHS.js';
9
9
  import '../chunk-34K3XN47.js';
@@ -1,10 +1,10 @@
1
- export { NUMBER_FIELD_LABELS, NumberField, typedNumber } from '../chunk-U5CKHHMM.js';
2
- import '../chunk-T7VM6LZD.js';
1
+ export { NUMBER_FIELD_LABELS, NumberField, typedNumber } from '../chunk-RQATEWU5.js';
2
+ import '../chunk-KCDGRJUF.js';
3
3
  import '../chunk-DG6H4EO2.js';
4
- import '../chunk-I3MHYEWJ.js';
5
- import '../chunk-JR4D3ROS.js';
6
- import '../chunk-EUET4PNC.js';
4
+ import '../chunk-JZXM2BSZ.js';
5
+ import '../chunk-2ZPHAZMP.js';
7
6
  import '../chunk-7F3OPUM5.js';
7
+ import '../chunk-EUET4PNC.js';
8
8
  import '../chunk-2YTOOH3A.js';
9
9
  import '../chunk-QRE6JCHS.js';
10
10
  import '../chunk-UZ7JIUAL.js';
@@ -1,10 +1,10 @@
1
- export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-4UBZQ6N6.js';
1
+ export { OPEN_IN_APP_CARD_LABELS, OpenInAppCard } from '../chunk-BVDKDYFP.js';
2
2
  import '../chunk-KOJPDCGQ.js';
3
3
  import '../chunk-VRVNLJUA.js';
4
4
  import '../chunk-3XXFU4XP.js';
5
- import '../chunk-JBDTBWP3.js';
5
+ import '../chunk-SR5GHUP5.js';
6
6
  import '../chunk-KMTOGF6T.js';
7
- import '../chunk-5Y76EWDZ.js';
7
+ import '../chunk-G732IWP4.js';
8
8
  import '../chunk-AV2DXAEL.js';
9
9
  import '../chunk-HOIZJFYS.js';
10
10
  import '../chunk-475DOAWF.js';
@@ -1,9 +1,9 @@
1
- export { PresetChips } from '../chunk-T7VM6LZD.js';
1
+ export { PresetChips } from '../chunk-KCDGRJUF.js';
2
2
  import '../chunk-DG6H4EO2.js';
3
- import '../chunk-I3MHYEWJ.js';
4
- import '../chunk-JR4D3ROS.js';
5
- import '../chunk-EUET4PNC.js';
3
+ import '../chunk-JZXM2BSZ.js';
4
+ import '../chunk-2ZPHAZMP.js';
6
5
  import '../chunk-7F3OPUM5.js';
6
+ import '../chunk-EUET4PNC.js';
7
7
  import '../chunk-2YTOOH3A.js';
8
8
  import '../chunk-QRE6JCHS.js';
9
9
  import '../chunk-34K3XN47.js';
@@ -1,4 +1,4 @@
1
- export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-WDJP4UFS.js';
1
+ export { PROPOSAL_CARD_LABELS, PROPOSAL_FAILURE_OUTCOMES, PROPOSAL_STATES, PROPOSAL_TONES, ProposalCard } from '../chunk-LFNCDQPH.js';
2
2
  import '../chunk-VZUWSL6X.js';
3
3
  import '../chunk-D5UVJL4I.js';
4
4
  import '../chunk-3XXFU4XP.js';
@@ -6,10 +6,10 @@ import '../chunk-5EGST7S2.js';
6
6
  import '../chunk-KW7T23RT.js';
7
7
  import '../chunk-SN2FN2XW.js';
8
8
  import '../chunk-7XUP32RY.js';
9
- import '../chunk-JBDTBWP3.js';
9
+ import '../chunk-SR5GHUP5.js';
10
10
  import '../chunk-GBKBME7Q.js';
11
11
  import '../chunk-WGLOH33S.js';
12
- import '../chunk-5Y76EWDZ.js';
12
+ import '../chunk-G732IWP4.js';
13
13
  import '../chunk-AV2DXAEL.js';
14
14
  import '../chunk-NVQERXLE.js';
15
15
  import '../chunk-2YTOOH3A.js';
@@ -1,11 +1,11 @@
1
- export { RAIL_LIST_LABELS, RailList } from '../chunk-T5JTMBMR.js';
1
+ export { RAIL_LIST_LABELS, RailList } from '../chunk-RROHJ2RL.js';
2
2
  import '../chunk-F7BTJM55.js';
3
3
  import '../chunk-D5UVJL4I.js';
4
4
  import '../chunk-6KWNXIDE.js';
5
- import '../chunk-KW7T23RT.js';
6
5
  import '../chunk-TODOBUXO.js';
6
+ import '../chunk-KW7T23RT.js';
7
7
  import '../chunk-HBDA76EZ.js';
8
- import '../chunk-5Y76EWDZ.js';
8
+ import '../chunk-G732IWP4.js';
9
9
  import '../chunk-AV2DXAEL.js';
10
10
  import '../chunk-COS6LJ4K.js';
11
11
  import '../chunk-2YTOOH3A.js';
@@ -1,6 +1,6 @@
1
- export { REFUSAL_CARD_LABELS, RefusalCard } from '../chunk-6MMONW2C.js';
2
- import '../chunk-JBDTBWP3.js';
3
- import '../chunk-5Y76EWDZ.js';
1
+ export { REFUSAL_CARD_LABELS, RefusalCard } from '../chunk-KEBCKP4F.js';
2
+ import '../chunk-SR5GHUP5.js';
3
+ import '../chunk-G732IWP4.js';
4
4
  import '../chunk-AV2DXAEL.js';
5
5
  import '../chunk-HOIZJFYS.js';
6
6
  import '../chunk-475DOAWF.js';
@@ -1,6 +1,6 @@
1
- export { RelatedRow } from '../chunk-LWU2F6RZ.js';
1
+ export { RelatedRow } from '../chunk-FVYEMS77.js';
2
2
  import '../chunk-ZAC7SKUN.js';
3
- import '../chunk-5Y76EWDZ.js';
3
+ import '../chunk-G732IWP4.js';
4
4
  import '../chunk-AV2DXAEL.js';
5
5
  import '../chunk-475DOAWF.js';
6
6
  import '../chunk-WSIJDWUG.js';
@@ -1,9 +1,9 @@
1
- export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from '../chunk-6LVS24FG.js';
1
+ export { RESULT_TABLE_CARD_LABELS, RESULT_TABLE_COLLAPSED_ROWS, RESULT_TABLE_MAX_ROWS, ResultTableCard } from '../chunk-VOZHTXUS.js';
2
2
  import '../chunk-YGN4SBNP.js';
3
3
  import '../chunk-XJOLNBEI.js';
4
4
  import '../chunk-YNRKVY7X.js';
5
- import '../chunk-JBDTBWP3.js';
6
- import '../chunk-5Y76EWDZ.js';
5
+ import '../chunk-SR5GHUP5.js';
6
+ import '../chunk-G732IWP4.js';
7
7
  import '../chunk-AV2DXAEL.js';
8
8
  import '../chunk-DTIW4CHZ.js';
9
9
  import '../chunk-HOIZJFYS.js';
@@ -1,8 +1,8 @@
1
1
  import '../chunk-DG6H4EO2.js';
2
- export { SegmentedControl } from '../chunk-I3MHYEWJ.js';
3
- import '../chunk-JR4D3ROS.js';
4
- import '../chunk-EUET4PNC.js';
2
+ export { SegmentedControl } from '../chunk-JZXM2BSZ.js';
3
+ import '../chunk-2ZPHAZMP.js';
5
4
  import '../chunk-7F3OPUM5.js';
5
+ import '../chunk-EUET4PNC.js';
6
6
  import '../chunk-2YTOOH3A.js';
7
7
  import '../chunk-QRE6JCHS.js';
8
8
  import '../chunk-34K3XN47.js';