@crewlethq/ui 0.126.2 → 0.127.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 (141) hide show
  1. package/README.md +16 -0
  2. package/dist/AgentHandoffPanel/index.js +5 -5
  3. package/dist/AppShell/index.js +2 -2
  4. package/dist/ArrangeList/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 +5 -5
  10. package/dist/BriefCard/index.js +4 -4
  11. package/dist/Canvas/Canvas.d.ts +12 -1
  12. package/dist/Canvas/index.d.ts +1 -1
  13. package/dist/Canvas/index.js +1 -1
  14. package/dist/CanvasBoard/index.js +3 -3
  15. package/dist/CanvasToolbar/index.js +2 -2
  16. package/dist/Card/index.js +1 -1
  17. package/dist/Combobox/index.js +2 -2
  18. package/dist/CommandPalette/CommandPalette.d.ts +10 -0
  19. package/dist/CommandPalette/index.js +6 -6
  20. package/dist/{CommandPalette-TOZYLWLE.css → CommandPalette-UC3GJCP5.css} +7 -0
  21. package/dist/CommentThread/index.js +7 -7
  22. package/dist/Composer/index.js +3 -3
  23. package/dist/DataGrid/index.js +6 -6
  24. package/dist/DataTable/index.js +5 -5
  25. package/dist/DataView/index.js +7 -7
  26. package/dist/DatasetSource/index.js +1 -1
  27. package/dist/DeepWorkCard/index.js +4 -4
  28. package/dist/DocTabsEditor/index.js +6 -6
  29. package/dist/EditingStatus/index.js +2 -2
  30. package/dist/{Editor-SBHTMAEK.js → Editor-UIBCHECM.js} +3 -3
  31. package/dist/EntityList/index.js +4 -4
  32. package/dist/FolderTile/index.js +2 -2
  33. package/dist/GraphCanvas/GraphCanvas.d.ts +35 -6
  34. package/dist/GraphCanvas/index.d.ts +1 -1
  35. package/dist/GraphCanvas/index.js +2 -2
  36. package/dist/{GraphCanvas-V4VJADVF.css → GraphCanvas-R242DSDH.css} +17 -0
  37. package/dist/HuePicker/index.js +4 -4
  38. package/dist/InlineEditor/index.js +3 -3
  39. package/dist/KeyValueRows/index.js +3 -3
  40. package/dist/LinkInterstitial/index.js +2 -2
  41. package/dist/ListInput/index.js +6 -6
  42. package/dist/{ListInput-X2GEG2X7.css → ListInput-L6XJUDTB.css} +5 -3
  43. package/dist/MarkdownEditor/index.js +4 -4
  44. package/dist/Menu/Menu.d.ts +4 -2
  45. package/dist/Menu/index.js +1 -1
  46. package/dist/{Menu-PXOAJ4DP.css → Menu-M32ZXT6N.css} +16 -2
  47. package/dist/MergeConflicts/index.js +4 -4
  48. package/dist/Modal/index.js +1 -1
  49. package/dist/{Modal-XK3OTUQK.css → Modal-ENCXGQKV.css} +10 -0
  50. package/dist/OpenInAppCard/index.js +4 -4
  51. package/dist/OrgTable/index.js +8 -8
  52. package/dist/PrincipalPicker/index.js +3 -3
  53. package/dist/ProposalCard/index.js +6 -6
  54. package/dist/RailList/index.js +4 -4
  55. package/dist/RefusalCard/index.js +4 -4
  56. package/dist/RelatedRow/index.js +2 -2
  57. package/dist/ResultTableCard/index.js +4 -4
  58. package/dist/RichEditor/index.js +1 -1
  59. package/dist/SegmentedControl/index.js +3 -3
  60. package/dist/Select/index.js +2 -2
  61. package/dist/SetupWizard/index.js +2 -2
  62. package/dist/ShareDialog/index.js +4 -4
  63. package/dist/SheetColumnEditor/index.js +11 -11
  64. package/dist/SheetGrid/index.js +2 -2
  65. package/dist/SlideFilmstrip/index.js +2 -2
  66. package/dist/StatusCard/index.js +3 -3
  67. package/dist/Switcher/index.js +6 -6
  68. package/dist/TableCells/index.js +1 -1
  69. package/dist/Tabs/index.js +2 -2
  70. package/dist/ThemeGallery/index.js +1 -1
  71. package/dist/ThemeSwitcher/index.js +4 -4
  72. package/dist/TimeRangePicker/index.js +8 -8
  73. package/dist/TimeWindowPicker/index.js +5 -5
  74. package/dist/TreeCanvas/index.js +2 -2
  75. package/dist/TreeGrid/index.js +7 -7
  76. package/dist/ValueField/index.js +4 -4
  77. package/dist/VersionCompare/index.js +4 -4
  78. package/dist/{chunk-FOXA6UZS.js → chunk-2FRELJBU.js} +2 -2
  79. package/dist/{chunk-RD32XZLB.js → chunk-2JXILC4H.js} +1 -1
  80. package/dist/{chunk-N4O345GS.js → chunk-2ZO7WP3T.js} +3 -3
  81. package/dist/{chunk-RFZ5MMLI.js → chunk-35ALKQC5.js} +1 -1
  82. package/dist/{chunk-L3PK6KON.js → chunk-4OKNZZ5E.js} +1 -1
  83. package/dist/{chunk-HYIBP6MW.js → chunk-4VQYVWPU.js} +2 -2
  84. package/dist/{chunk-ZJQNN7ZJ.js → chunk-556M2A4S.js} +1 -1
  85. package/dist/{chunk-VB7KAQBN.js → chunk-56WQTRIW.js} +1 -1
  86. package/dist/{chunk-L34X7Q6C.js → chunk-6RMR2YYQ.js} +29 -6
  87. package/dist/{chunk-JDA4ADTD.js → chunk-7MKWQ3ZL.js} +1 -1
  88. package/dist/{chunk-5UNIA2VJ.js → chunk-7VBZDGOS.js} +2 -2
  89. package/dist/{chunk-BWSO2YRR.js → chunk-CMS5MLTU.js} +1 -1
  90. package/dist/{chunk-GKHZSNIV.js → chunk-CVNJ6VHK.js} +7 -3
  91. package/dist/{chunk-VIS6DKGQ.js → chunk-E32PP25Z.js} +1 -1
  92. package/dist/{chunk-GQPKDPMS.js → chunk-ELV2BL4R.js} +2 -2
  93. package/dist/{chunk-35S25WJZ.js → chunk-FIQGLZ5Q.js} +62 -45
  94. package/dist/{chunk-MTEQ3WO3.js → chunk-FODDW4BC.js} +1 -1
  95. package/dist/{chunk-ZPKCRFPZ.js → chunk-FXKRSBUM.js} +3 -3
  96. package/dist/{chunk-7Y5OSXA2.js → chunk-GCE475FL.js} +1 -1
  97. package/dist/{chunk-766IY2ZW.js → chunk-GHRCG45F.js} +1 -1
  98. package/dist/{chunk-T2FJN6C6.js → chunk-GVDV4X43.js} +1 -1
  99. package/dist/{chunk-VMK56SPN.js → chunk-ICIJUGKK.js} +4 -4
  100. package/dist/{chunk-OG4GX2TB.js → chunk-IU7QVXHA.js} +69 -4
  101. package/dist/{chunk-M557YJHH.js → chunk-JDWMDK5A.js} +1 -1
  102. package/dist/{chunk-AIIHTVWW.js → chunk-JLOZE7QG.js} +1 -1
  103. package/dist/{chunk-BBWCMOK7.js → chunk-K6OZBRR4.js} +1 -1
  104. package/dist/{chunk-ESLLB6TP.js → chunk-K6YVJS5T.js} +1 -1
  105. package/dist/{chunk-UGF5YD5O.js → chunk-KANE3PVJ.js} +1 -1
  106. package/dist/{chunk-5L56E6AF.js → chunk-L2N7SZFY.js} +1 -1
  107. package/dist/{chunk-NSUMHNUS.js → chunk-LETSZEMX.js} +1 -1
  108. package/dist/{chunk-M2JND4EM.js → chunk-NKB2ORTZ.js} +1 -1
  109. package/dist/{chunk-IYEMN7RK.js → chunk-ORBM3IHQ.js} +1 -1
  110. package/dist/{chunk-QDXSBVZR.js → chunk-PCSIMBUQ.js} +2 -2
  111. package/dist/{chunk-3EVDVUNS.js → chunk-QCBITY5I.js} +2 -2
  112. package/dist/{chunk-IMNCBQVO.js → chunk-RA5FPMPE.js} +1 -1
  113. package/dist/{chunk-GJJQPF75.js → chunk-RABEMWTA.js} +12 -9
  114. package/dist/{chunk-CFMNGQMN.js → chunk-TLZ7NG6T.js} +1 -1
  115. package/dist/{chunk-L6PGMA2K.js → chunk-TU6IC2XD.js} +1 -1
  116. package/dist/{chunk-VCFV7FTE.js → chunk-U3VDJ7QJ.js} +1 -1
  117. package/dist/{chunk-LV2CE5EN.js → chunk-UA7FQCD7.js} +2 -2
  118. package/dist/{chunk-SHSQNFW2.js → chunk-UL46NV3X.js} +2 -2
  119. package/dist/{chunk-6IBC6CPE.js → chunk-VPQX3EQQ.js} +1 -1
  120. package/dist/{chunk-NT26CSYA.js → chunk-W7SOT7RS.js} +2 -2
  121. package/dist/{chunk-54OD6YIS.js → chunk-WC5UG64S.js} +1 -1
  122. package/dist/{chunk-WMZ2MROV.js → chunk-WGJRD3PY.js} +1 -1
  123. package/dist/{chunk-CWHFC7FS.js → chunk-WJIBZ2UM.js} +35 -31
  124. package/dist/{chunk-VDADSS7I.js → chunk-X227R7IP.js} +1 -1
  125. package/dist/{chunk-VR72FN5R.js → chunk-XBWENJGX.js} +1 -1
  126. package/dist/{chunk-H6QSHVKY.js → chunk-XKHW7ZHP.js} +1 -1
  127. package/dist/{chunk-7RG5WLBS.js → chunk-XUFVRAEB.js} +3 -3
  128. package/dist/{chunk-LDHCLXPT.js → chunk-XWEHTYVM.js} +2 -2
  129. package/dist/{chunk-ESIB6MBQ.js → chunk-XX7UCYDH.js} +1 -1
  130. package/dist/generated/index.js +89 -89
  131. package/dist/index.js +89 -89
  132. package/dist/styles.css +60 -10
  133. package/dist/utils/useScrollerFocus.d.ts +21 -0
  134. package/package.json +3 -3
  135. package/dist/{chunk-WLL3PFI3.js → chunk-2DZV4PHK.js} +1 -1
  136. package/dist/{chunk-KRF3GQ63.js → chunk-6N53ZWRM.js} +1 -1
  137. package/dist/{chunk-WUJ54OTI.js → chunk-CWGZE3JW.js} +1 -1
  138. package/dist/{chunk-CPWSBK3F.js → chunk-D6I7HBZC.js} +1 -1
  139. package/dist/{chunk-BF3PFRBE.js → chunk-G3WSU5J7.js} +1 -1
  140. package/dist/{chunk-Q7WKCU2U.js → chunk-U56B2BAX.js} +1 -1
  141. package/dist/{chunk-6ZFQ6TAM.js → chunk-YKCLV77Z.js} +1 -1
@@ -1,6 +1,6 @@
1
1
  import { Table } from './chunk-YGN4SBNP.js';
2
2
  import { DownloadButton } from './chunk-GCRACVZO.js';
3
- import { StatusCard } from './chunk-VDADSS7I.js';
3
+ import { StatusCard } from './chunk-X227R7IP.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './ResultTableCard-AP355LQM.css';
6
6
  import { useState } from 'react';
@@ -1,5 +1,5 @@
1
1
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
2
- import { SegmentedControl } from './chunk-MTEQ3WO3.js';
2
+ import { SegmentedControl } from './chunk-FODDW4BC.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { Toolbar } from './chunk-NPEI2QAN.js';
2
- import { ShortcutTip } from './chunk-GKHZSNIV.js';
2
+ import { ShortcutTip } from './chunk-CVNJ6VHK.js';
3
3
  import { IconButton } from './chunk-X5YI6E5X.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './CanvasToolbar-EM5EVZED.css';
@@ -1,12 +1,12 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
1
+ import { Select } from './chunk-YKCLV77Z.js';
2
2
  import { SHEET_LABELS, SHEET_COLUMN_TYPES, optionHue, retypeColumn } from './chunk-LFSIKGRQ.js';
3
- import { HueSwatch } from './chunk-766IY2ZW.js';
3
+ import { HueSwatch } from './chunk-GHRCG45F.js';
4
4
  import { NODE_HUES, NODE_HUE_NAMES } from './chunk-AYKXMIOR.js';
5
+ import { Menu } from './chunk-FIQGLZ5Q.js';
5
6
  import { Checkbox } from './chunk-KFTVPWG2.js';
6
- import { Menu } from './chunk-35S25WJZ.js';
7
- import { FormField, Input } from './chunk-NN44J7BP.js';
8
7
  import { Kbd } from './chunk-VBBLHS2Y.js';
9
8
  import { Button } from './chunk-M2M6ZD7P.js';
9
+ import { FormField, Input } from './chunk-NN44J7BP.js';
10
10
  import { IconButton } from './chunk-X5YI6E5X.js';
11
11
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
12
12
  import { cx } from './chunk-ODEQTPFM.js';
@@ -5,12 +5,65 @@ import { useLayerContainer } from './chunk-FIX72ZEC.js';
5
5
  import { focusables, useModalLayer, useBodyScrollLock } from './chunk-EDPMHSLZ.js';
6
6
  import { HeadingLevelProvider } from './chunk-PQADV6P6.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
8
- import './Modal-XK3OTUQK.css';
9
- import { useId, useRef, useCallback } from 'react';
8
+ import './Modal-ENCXGQKV.css';
9
+ import { useState, useLayoutEffect, useId, useRef, useCallback } from 'react';
10
10
  import { createPortal } from 'react-dom';
11
11
  import { ChevronLeftGlyph, XGlyph } from '@crewlethq/icons/glyphs';
12
12
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
13
13
 
14
+ var STOPS = [
15
+ "a[href]",
16
+ "button:not([disabled])",
17
+ "input:not([disabled]):not([type='hidden'])",
18
+ "select:not([disabled])",
19
+ "textarea:not([disabled])",
20
+ "[contenteditable='true']",
21
+ "[tabindex]"
22
+ ].join(",");
23
+ function holdsStop(scroller) {
24
+ for (const el of scroller.querySelectorAll(STOPS)) {
25
+ if (el.tabIndex >= 0 && !el.closest("[hidden],[inert]")) return true;
26
+ }
27
+ return false;
28
+ }
29
+ function scrolls(scroller) {
30
+ const style = getComputedStyle(scroller);
31
+ const along = (overflow, content, box) => (overflow === "auto" || overflow === "scroll") && content > box;
32
+ return along(style.overflowY, scroller.scrollHeight, scroller.clientHeight) || along(style.overflowX, scroller.scrollWidth, scroller.clientWidth);
33
+ }
34
+ function useScrollerFocus(scroller) {
35
+ const [needed, setNeeded] = useState(false);
36
+ useLayoutEffect(() => {
37
+ if (!scroller) {
38
+ setNeeded(false);
39
+ return void 0;
40
+ }
41
+ const measure = () => setNeeded(scrolls(scroller) && !holdsStop(scroller));
42
+ const resize = typeof ResizeObserver === "function" ? new ResizeObserver(measure) : null;
43
+ const watch = () => {
44
+ resize?.disconnect();
45
+ resize?.observe(scroller);
46
+ for (const child of scroller.children) resize?.observe(child);
47
+ };
48
+ const mutation = typeof MutationObserver === "function" ? new MutationObserver(() => {
49
+ watch();
50
+ measure();
51
+ }) : null;
52
+ mutation?.observe(scroller, {
53
+ childList: true,
54
+ subtree: true,
55
+ attributes: true,
56
+ attributeFilter: ["tabindex", "disabled", "hidden", "inert", "href", "contenteditable"]
57
+ });
58
+ watch();
59
+ measure();
60
+ return () => {
61
+ resize?.disconnect();
62
+ mutation?.disconnect();
63
+ };
64
+ }, [scroller]);
65
+ return needed;
66
+ }
14
67
  function Modal({ open, ...rest }) {
15
68
  const container = useLayerContainer();
16
69
  return open && container ? /* @__PURE__ */ jsx(ModalFrame, { container, ...rest }, hostKey(container)) : null;
@@ -72,6 +125,12 @@ function ModalFrame({
72
125
  const phone = phoneSheet && variant === "dialog" && !prompt;
73
126
  const frame = useRef(null);
74
127
  const body = useRef(null);
128
+ const [bodyElement, setBodyElement] = useState(null);
129
+ const bodyRef = useCallback((el) => {
130
+ body.current = el;
131
+ setBodyElement(el);
132
+ }, []);
133
+ const bodyTakesFocus = useScrollerFocus(bodyElement);
75
134
  const foot = useRef(null);
76
135
  const start = useRef(initialFocus);
77
136
  start.current = initialFocus;
@@ -154,7 +213,13 @@ function ModalFrame({
154
213
  given(children) || prompt && given(title) ? /* @__PURE__ */ jsxs(
155
214
  "div",
156
215
  {
157
- ref: body,
216
+ ref: bodyRef,
217
+ ...bodyTakesFocus ? {
218
+ tabIndex: 0,
219
+ role: "group",
220
+ "aria-labelledby": labelledBy,
221
+ "aria-label": labelledBy === void 0 ? ariaLabel : void 0
222
+ } : {},
158
223
  className: cx(
159
224
  "crewlet-modal__body",
160
225
  stackBody ? "crewlet-modal__body--stacked" : void 0,
@@ -289,4 +354,4 @@ function ConfirmModal({
289
354
  );
290
355
  }
291
356
 
292
- export { ConfirmModal, Modal };
357
+ export { ConfirmModal, Modal, useScrollerFocus };
@@ -1,6 +1,6 @@
1
1
  import { RefusalStrip, ReceiptStrip } from './chunk-TMHG4576.js';
2
2
  import { ChangeList } from './chunk-NB53SAL4.js';
3
- import { StatusCard } from './chunk-VDADSS7I.js';
3
+ import { StatusCard } from './chunk-X227R7IP.js';
4
4
  import { Checkbox } from './chunk-KFTVPWG2.js';
5
5
  import { Disclosure } from './chunk-D5O64CVE.js';
6
6
  import { Button } from './chunk-M2M6ZD7P.js';
@@ -1,7 +1,7 @@
1
1
  import { StepList } from './chunk-EHD4CEHK.js';
2
2
  import { Meter } from './chunk-MXOT2CWL.js';
3
3
  import { ReceiptStrip } from './chunk-TMHG4576.js';
4
- import { StatusCard } from './chunk-VDADSS7I.js';
4
+ import { StatusCard } from './chunk-X227R7IP.js';
5
5
  import { Disclosure } from './chunk-D5O64CVE.js';
6
6
  import { Spinner } from './chunk-XSPCITPN.js';
7
7
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,7 +1,7 @@
1
1
  import { safeHref } from './chunk-KBZO4B33.js';
2
2
  import { IconTile } from './chunk-VRVNLJUA.js';
3
3
  import { ReceiptStrip } from './chunk-TMHG4576.js';
4
- import { StatusCard } from './chunk-VDADSS7I.js';
4
+ import { StatusCard } from './chunk-X227R7IP.js';
5
5
  import { ButtonLink, Button } from './chunk-M2M6ZD7P.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
7
7
  import './OpenInAppCard-CKHCK7DO.css';
@@ -1,6 +1,6 @@
1
1
  import { SuggestionList, SuggestionRow } from './chunk-IR3OWPAZ.js';
2
2
  import { developing } from './chunk-6C7GQOBV.js';
3
- import { StatusCard } from './chunk-VDADSS7I.js';
3
+ import { StatusCard } from './chunk-X227R7IP.js';
4
4
  import { StatusDot } from './chunk-QRE6JCHS.js';
5
5
  import { Button } from './chunk-M2M6ZD7P.js';
6
6
  import { cx } from './chunk-ODEQTPFM.js';
@@ -1,4 +1,4 @@
1
- import { SegmentedControl } from './chunk-MTEQ3WO3.js';
1
+ import { SegmentedControl } from './chunk-FODDW4BC.js';
2
2
  import { Button } from './chunk-M2M6ZD7P.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './MergeConflicts-HCXPRQVR.css';
@@ -1,6 +1,6 @@
1
1
  import { useRoving, tabStop, revealInRow } from './chunk-7F3OPUM5.js';
2
2
  import { StatusDot } from './chunk-QRE6JCHS.js';
3
- import { Menu } from './chunk-35S25WJZ.js';
3
+ import { Menu } from './chunk-FIQGLZ5Q.js';
4
4
  import { HIT_AREA_CLASS } from './chunk-2YTOOH3A.js';
5
5
  import { Count } from './chunk-Y5CMDLQM.js';
6
6
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,4 +1,4 @@
1
- import { Combobox } from './chunk-WUJ54OTI.js';
1
+ import { Combobox } from './chunk-CWGZE3JW.js';
2
2
  import { PRINCIPAL_KINDS, PrincipalAvatar } from './chunk-HF5L56YQ.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './PrincipalPicker-P6UYHDJR.css';
@@ -1,4 +1,4 @@
1
- import { Card } from './chunk-GJJQPF75.js';
1
+ import { Card } from './chunk-RABEMWTA.js';
2
2
  import { Button } from './chunk-M2M6ZD7P.js';
3
3
  import { useHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
4
4
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,5 +1,5 @@
1
1
  import { useThemePreference, useDensityPreference } from './chunk-Z24ZUSTX.js';
2
- import { SegmentedControl } from './chunk-MTEQ3WO3.js';
2
+ import { SegmentedControl } from './chunk-FODDW4BC.js';
3
3
  import { SunGlyph, MonitorGlyph, MoonGlyph } from '@crewlethq/icons/glyphs';
4
4
  import { jsx } from 'react/jsx-runtime';
5
5
 
@@ -1,5 +1,5 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
2
- import { Combobox } from './chunk-WUJ54OTI.js';
1
+ import { Select } from './chunk-YKCLV77Z.js';
2
+ import { Combobox } from './chunk-CWGZE3JW.js';
3
3
  import { FormField, Textarea, InputAffix } from './chunk-NN44J7BP.js';
4
4
  import './Input-YVCNNTYT.css';
5
5
  import './VisuallyHidden-OUYVMKEH.css';
@@ -1,5 +1,5 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
2
- import { Modal } from './chunk-OG4GX2TB.js';
1
+ import { Select } from './chunk-YKCLV77Z.js';
2
+ import { Modal } from './chunk-IU7QVXHA.js';
3
3
  import { CopyButton } from './chunk-AVK7RRQ4.js';
4
4
  import { Callout } from './chunk-RCQLXOGS.js';
5
5
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
@@ -1,4 +1,4 @@
1
- import { ConfirmModal } from './chunk-OG4GX2TB.js';
1
+ import { ConfirmModal } from './chunk-IU7QVXHA.js';
2
2
  import { InlineCode } from './chunk-PPGDH32L.js';
3
3
  import { Callout } from './chunk-RCQLXOGS.js';
4
4
  import './LinkInterstitial-ET4MSVSV.css';
@@ -1,10 +1,10 @@
1
1
  import { CardHeaderSlotContext } from './chunk-AV2DXAEL.js';
2
2
  import { Text } from './chunk-475DOAWF.js';
3
3
  import { Count } from './chunk-Y5CMDLQM.js';
4
- import { useHeadingLevel, HeadingLevelProvider, nextHeadingLevel, headingTag } from './chunk-PQADV6P6.js';
4
+ import { useHeadingLevel, nextHeadingLevel, HeadingLevelProvider, headingTag } from './chunk-PQADV6P6.js';
5
5
  import { cx } from './chunk-ODEQTPFM.js';
6
6
  import './Card-O35OMBQ5.css';
7
- import { createContext, useId, useState, isValidElement, useRef, useCallback, useMemo, Children, cloneElement, useContext, useEffect, Fragment } from 'react';
7
+ import { createContext, useId, useState, isValidElement, useRef, useCallback, useMemo, Children, cloneElement, useContext, useLayoutEffect, Fragment } from 'react';
8
8
  import { jsx, jsxs } from 'react/jsx-runtime';
9
9
 
10
10
  var CardContext = createContext(null);
@@ -85,7 +85,8 @@ var CardRoot = ({
85
85
  }) => {
86
86
  const level = useHeadingLevel();
87
87
  const titleId = useId();
88
- const [hasTitle, setHasTitle] = useState(false);
88
+ const [titles, setTitles] = useState(0);
89
+ const hasTitle = titles > 0;
89
90
  const navigates = href !== void 0 || asChild;
90
91
  const inner = asChild && isValidElement(children) ? children.props["children"] : children;
91
92
  const slots = slotsIn(inner);
@@ -122,12 +123,16 @@ var CardRoot = ({
122
123
  }),
123
124
  [slots.header, chromeNode, claimChrome, releaseChrome]
124
125
  );
125
- const registerTitle = useCallback(() => setHasTitle(true), []);
126
+ const registerTitle = useCallback(() => {
127
+ setTitles((count) => count + 1);
128
+ return () => setTitles((count) => count - 1);
129
+ }, []);
126
130
  const context = useMemo(
127
131
  () => ({ titleLevel: level, titleId, registerTitle, hostChrome }),
128
132
  [level, titleId, registerTitle, hostChrome]
129
133
  );
130
- const body = /* @__PURE__ */ jsx(CardContext.Provider, { value: context, children: /* @__PURE__ */ jsx(CardHeaderSlotContext.Provider, { value: headerSlot, children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: nextHeadingLevel(level), children: content }) }) });
134
+ const inside = hasTitle ? nextHeadingLevel(level) : level;
135
+ const body = /* @__PURE__ */ jsx(CardContext.Provider, { value: context, children: /* @__PURE__ */ jsx(CardHeaderSlotContext.Provider, { value: headerSlot, children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: inside, children: content }) }) });
131
136
  if (asChild) {
132
137
  const child = Children.only(children);
133
138
  if (!isValidElement(child)) {
@@ -137,7 +142,7 @@ var CardRoot = ({
137
142
  return cloneElement(
138
143
  childEl,
139
144
  { ...rest, className: cx(childEl.props["className"], classes) },
140
- /* @__PURE__ */ jsx(CardContext.Provider, { value: context, children: /* @__PURE__ */ jsx(CardHeaderSlotContext.Provider, { value: headerSlot, children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: nextHeadingLevel(level), children: content }) }) })
145
+ /* @__PURE__ */ jsx(CardContext.Provider, { value: context, children: /* @__PURE__ */ jsx(CardHeaderSlotContext.Provider, { value: headerSlot, children: /* @__PURE__ */ jsx(HeadingLevelProvider, { level: inside, children: content }) }) })
141
146
  );
142
147
  }
143
148
  if (href !== void 0) {
@@ -216,9 +221,7 @@ var CardTitle = ({ as, truncate = false, className, children, ...rest }) => {
216
221
  const fallback = useHeadingLevel();
217
222
  const Tag = as ?? headingTag(card?.titleLevel ?? fallback);
218
223
  const register = card?.registerTitle;
219
- useEffect(() => {
220
- register?.();
221
- }, [register]);
224
+ useLayoutEffect(() => register?.(), [register]);
222
225
  return /* @__PURE__ */ jsx(
223
226
  Tag,
224
227
  {
@@ -1,5 +1,5 @@
1
1
  import { useReorder } from './chunk-JMBPMSNI.js';
2
- import { Menu } from './chunk-35S25WJZ.js';
2
+ import { Menu } from './chunk-FIQGLZ5Q.js';
3
3
  import { Input } from './chunk-NN44J7BP.js';
4
4
  import { IconButton } from './chunk-X5YI6E5X.js';
5
5
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
1
  import { releaseFocus, usePresence } from './chunk-SNKQNAJI.js';
2
2
  import { useRailShape, RailShapeContext, RailLeavingContext } from './chunk-JLOESTT2.js';
3
- import { Menu } from './chunk-35S25WJZ.js';
3
+ import { Menu } from './chunk-FIQGLZ5Q.js';
4
4
  import { PeekContext, AsideContext } from './chunk-MBEZOURR.js';
5
5
  import { ResizeHandle, clampSize } from './chunk-FQ6J4DK7.js';
6
6
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
@@ -1,4 +1,4 @@
1
- import { TreeGrid } from './chunk-VIS6DKGQ.js';
1
+ import { TreeGrid } from './chunk-E32PP25Z.js';
2
2
  import { OrgLabel } from './chunk-SYMLWDV6.js';
3
3
  import { createTreeModel, treeParent } from './chunk-MY374UUD.js';
4
4
  import { AddPill } from './chunk-5W3EYO5Q.js';
@@ -1,10 +1,10 @@
1
1
  import { Skeleton } from './chunk-WFAJYBLX.js';
2
2
  import { PrincipalAvatar } from './chunk-HF5L56YQ.js';
3
3
  import { RelativeTime } from './chunk-GBKBME7Q.js';
4
- import { Card } from './chunk-GJJQPF75.js';
4
+ import { Card } from './chunk-RABEMWTA.js';
5
+ import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
5
6
  import { ArtifactKindGround } from './chunk-W3A6NBUM.js';
6
7
  import { Checkbox } from './chunk-KFTVPWG2.js';
7
- import { ArtifactAccessGlyph } from './chunk-DOY3KC6I.js';
8
8
  import { ArtifactKindGlyph } from './chunk-RSKW25Y5.js';
9
9
  import { AvatarStack } from './chunk-5SMYKL3D.js';
10
10
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
- import { SegmentedControl } from './chunk-MTEQ3WO3.js';
1
+ import { SegmentedControl } from './chunk-FODDW4BC.js';
2
2
  import { ArtifactIcon } from './chunk-AVL52EME.js';
3
- import { Menu } from './chunk-35S25WJZ.js';
3
+ import { Menu } from './chunk-FIQGLZ5Q.js';
4
4
  import { isApplePlatform, Kbd, ariaKeyshortcuts } from './chunk-VBBLHS2Y.js';
5
5
  import { Button } from './chunk-M2M6ZD7P.js';
6
6
  import { IconButton } from './chunk-X5YI6E5X.js';
@@ -1,5 +1,5 @@
1
1
  import { BrandLockup } from './chunk-KXWJJWBD.js';
2
- import { Card } from './chunk-GJJQPF75.js';
2
+ import { Card } from './chunk-RABEMWTA.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './AuthLayout-ODHBUPHQ.css';
5
5
  import { useId } from 'react';
@@ -1,11 +1,11 @@
1
- import { Modal } from './chunk-OG4GX2TB.js';
1
+ import { Modal } from './chunk-IU7QVXHA.js';
2
2
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
3
3
  import { KeyChip, highlightMatch } from './chunk-HBDA76EZ.js';
4
4
  import { Popover } from './chunk-KDRJZWE3.js';
5
5
  import { Skeleton } from './chunk-WFAJYBLX.js';
6
6
  import { Text } from './chunk-475DOAWF.js';
7
- import { Input } from './chunk-NN44J7BP.js';
8
7
  import { useMediaMatch } from './chunk-COS6LJ4K.js';
8
+ import { Input } from './chunk-NN44J7BP.js';
9
9
  import { focusables, isComposing } from './chunk-EDPMHSLZ.js';
10
10
  import { returnFocus } from './chunk-4ITETIGZ.js';
11
11
  import { announce } from './chunk-WGMKERCR.js';
@@ -1,4 +1,4 @@
1
- import { StatusCard } from './chunk-VDADSS7I.js';
1
+ import { StatusCard } from './chunk-X227R7IP.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './EntityList-DT3BQLUW.css';
4
4
  import { jsx, jsxs } from 'react/jsx-runtime';
@@ -1,4 +1,4 @@
1
- import { EditingStatus } from './chunk-KRF3GQ63.js';
1
+ import { EditingStatus } from './chunk-6N53ZWRM.js';
2
2
  import { Kbd } from './chunk-VBBLHS2Y.js';
3
3
  import { Button } from './chunk-M2M6ZD7P.js';
4
4
  import { isComposing } from './chunk-EDPMHSLZ.js';
@@ -1,12 +1,12 @@
1
1
  import { useMeasuredSizes, isTypeAheadKey, typeAheadBuffer } from './chunk-MY374UUD.js';
2
2
  import { FilterChip } from './chunk-L6HUVA33.js';
3
3
  import { FullscreenToggle } from './chunk-3JLG6KRU.js';
4
- import { fitView, CANVAS_FIT_PADDING, Canvas } from './chunk-GKHZSNIV.js';
4
+ import { CANVAS_FIT_PADDING, Canvas } from './chunk-CVNJ6VHK.js';
5
5
  import { Text } from './chunk-475DOAWF.js';
6
6
  import { LayerHost } from './chunk-FIX72ZEC.js';
7
7
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
8
8
  import { cx } from './chunk-ODEQTPFM.js';
9
- import './GraphCanvas-V4VJADVF.css';
9
+ import './GraphCanvas-R242DSDH.css';
10
10
  import { memo, useMemo, useId, useState, useCallback, useRef, useEffect, useLayoutEffect, useImperativeHandle } from 'react';
11
11
  import { ChevronDownGlyph, ChevronRightGlyph, TriangleAlertGlyph, CircleAlertGlyph, InfoGlyph } from '@crewlethq/icons/glyphs';
12
12
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
@@ -1008,7 +1008,18 @@ function graphDetail(zoom) {
1008
1008
  if (zoom >= GRAPH_CANVAS_DETAIL_ZOOM) return "cards";
1009
1009
  return zoom >= GRAPH_CANVAS_TILE_ZOOM ? "tiles" : "marks";
1010
1010
  }
1011
- var GRAPH_CANVAS_OPEN_ZOOM = 0.75;
1011
+ var GRAPH_CANVAS_FOCUS_ZOOM = 0.75;
1012
+ function graphFocusView(item, room, fit) {
1013
+ const across = (room.width - 2 * CANVAS_FIT_PADDING) / item.width;
1014
+ const down = (room.height - 2 * CANVAS_FIT_PADDING) / item.height;
1015
+ const k = Math.min(GRAPH_CANVAS_FOCUS_ZOOM, across, down);
1016
+ if (!(k > fit.k)) return null;
1017
+ return {
1018
+ k,
1019
+ x: room.x + room.width / 2 - (item.x + item.width / 2) * k,
1020
+ y: room.y + room.height / 2 - (item.y + item.height / 2) * k
1021
+ };
1022
+ }
1012
1023
  var GRAPH_CANVAS_FIT_FLOOR = 0.02;
1013
1024
  var GRAPH_CANVAS_FLOW_LIMIT = 160;
1014
1025
  var ZOOM_PROPERTY = "--crewlet-graph-canvas-zoom";
@@ -1066,6 +1077,7 @@ function GraphCanvas({
1066
1077
  minZoom = GRAPH_CANVAS_FIT_FLOOR,
1067
1078
  fitKey,
1068
1079
  initialView,
1080
+ initialNode = null,
1069
1081
  onViewChange,
1070
1082
  ref,
1071
1083
  className
@@ -1128,8 +1140,8 @@ function GraphCanvas({
1128
1140
  };
1129
1141
  }, [measured, sizes]);
1130
1142
  const emptyLanes = useMemo(() => {
1131
- const filled = new Set(nodes.map((node) => node.lane));
1132
- return bands.flatMap((band) => band.lanes.filter((lane) => !filled.has(lane.id)));
1143
+ const filled2 = new Set(nodes.map((node) => node.lane));
1144
+ return bands.flatMap((band) => band.lanes.filter((lane) => !filled2.has(lane.id)));
1133
1145
  }, [bands, nodes]);
1134
1146
  const emptyHeights = useMemo(() => {
1135
1147
  const out = /* @__PURE__ */ new Map();
@@ -1342,7 +1354,7 @@ function GraphCanvas({
1342
1354
  };
1343
1355
  useLayoutEffect(() => placeCardNow.current());
1344
1356
  const root = useRef(null);
1345
- const [frame, setFrame] = useState(null);
1357
+ const [sized, setSized] = useState(false);
1346
1358
  const [narrow, setNarrow] = useState(false);
1347
1359
  useLayoutEffect(() => {
1348
1360
  const el = root.current;
@@ -1350,33 +1362,19 @@ function GraphCanvas({
1350
1362
  const observer = new ResizeObserver((entries) => {
1351
1363
  const box = entries[entries.length - 1]?.contentRect;
1352
1364
  if (!box || box.width <= 0 || box.height <= 0) return;
1353
- setFrame((was) => was ?? { width: box.width, height: box.height });
1365
+ setSized(true);
1354
1366
  setNarrow(box.width < GRAPH_CANVAS_NARROW_WIDTH);
1355
1367
  });
1356
1368
  observer.observe(el);
1357
1369
  return () => observer.disconnect();
1358
1370
  }, []);
1359
- const [barsBottom, setBarsBottom] = useState(0);
1360
- useLayoutEffect(() => {
1361
- const el = root.current;
1362
- if (!el || !frame) return;
1363
- const top = el.getBoundingClientRect().top;
1364
- let bottom = 0;
1365
- for (const bar2 of el.querySelectorAll(".crewlet-canvas__controls")) {
1366
- const rect = bar2.getBoundingClientRect();
1367
- if (rect.height > 0 && rect.top - top < frame.height / 2) bottom = Math.max(bottom, rect.bottom - top);
1368
- }
1369
- setBarsBottom(bottom);
1370
- }, [frame, controlsStart, controlsPlacement]);
1371
+ const openKey = initialNode === null || !layout ? void 0 : layout.itemOfNode.get(initialNode);
1372
+ const openOn = openKey === void 0 ? void 0 : layout?.itemByKey.get(openKey);
1371
1373
  const opening = useMemo(() => {
1372
1374
  if (initialView) return initialView;
1373
- if (!layout || !frame) return void 0;
1374
- const fit = fitView(layout.bounds, frame, CANVAS_FIT_PADDING, minZoom);
1375
- if (fit.k >= GRAPH_CANVAS_DETAIL_ZOOM) return void 0;
1376
- const k = GRAPH_CANVAS_OPEN_ZOOM;
1377
- const y = Math.max(CANVAS_FIT_PADDING, barsBottom + CANVAS_FIT_PADDING / 2);
1378
- return { k, x: CANVAS_FIT_PADDING - layout.bounds.x * k, y: y - layout.bounds.y * k };
1379
- }, [initialView, layout, frame, minZoom, barsBottom]);
1375
+ if (!openOn) return void 0;
1376
+ return (room, fit) => graphFocusView(openOn, room, fit);
1377
+ }, [initialView, openOn]);
1380
1378
  const [active, setActive] = useState(null);
1381
1379
  const selectedKey = selectedId === null || !layout ? null : layout.itemOfNode.get(selectedId) ?? null;
1382
1380
  const activeKey = active !== null && layout?.itemByKey.has(active) ? active : selectedKey ?? layout?.lanes.find((lane) => lane.items.length > 0)?.items[0] ?? null;
@@ -1451,19 +1449,24 @@ function GraphCanvas({
1451
1449
  }),
1452
1450
  [focusItem]
1453
1451
  );
1452
+ const filled = nodes.length > 0;
1454
1453
  const fittedFor = useRef(fitKey);
1454
+ const fittedFilled = useRef(false);
1455
1455
  const placedOnce = useRef(false);
1456
1456
  useLayoutEffect(() => {
1457
1457
  if (!placed) return;
1458
1458
  if (!placedOnce.current) {
1459
1459
  placedOnce.current = true;
1460
1460
  fittedFor.current = fitKey;
1461
+ fittedFilled.current = filled;
1461
1462
  return;
1462
1463
  }
1463
- if (fitKey === fittedFor.current) return;
1464
+ const firstEntries = filled && !fittedFilled.current;
1465
+ if (fitKey === fittedFor.current && !firstEntries) return;
1464
1466
  fittedFor.current = fitKey;
1467
+ if (filled) fittedFilled.current = true;
1465
1468
  canvas.current?.fit();
1466
- }, [fitKey, placed]);
1469
+ }, [fitKey, placed, filled]);
1467
1470
  const typed = useRef({ text: "", at: 0 });
1468
1471
  const activate = useCallback(
1469
1472
  (item, focus) => {
@@ -1685,7 +1688,7 @@ function GraphCanvas({
1685
1688
  dock ? /* @__PURE__ */ jsx("div", { className: "crewlet-graph-canvas__dock", children: dock }) : null,
1686
1689
  legend
1687
1690
  ] }) : null;
1688
- const body = frame ? /* @__PURE__ */ jsxs(
1691
+ const body = sized ? /* @__PURE__ */ jsxs(
1689
1692
  Canvas,
1690
1693
  {
1691
1694
  label,
@@ -1703,6 +1706,7 @@ function GraphCanvas({
1703
1706
  largestItemWidth: metrics?.cardWidth,
1704
1707
  labels: text,
1705
1708
  minZoom,
1709
+ refitOnResize: true,
1706
1710
  initialView: opening,
1707
1711
  onViewChange: viewChanged,
1708
1712
  children: [
@@ -2066,7 +2070,7 @@ function GraphEmptyLane({
2066
2070
  if (event.target === event.currentTarget) onFocusItem(itemKey);
2067
2071
  },
2068
2072
  onKeyDown: onItemKey,
2069
- children
2073
+ children: /* @__PURE__ */ jsx("span", { className: "crewlet-graph-canvas__empty-words", children })
2070
2074
  }
2071
2075
  )
2072
2076
  );
@@ -2159,4 +2163,4 @@ function typeAhead(layout, from, text, nameOf) {
2159
2163
  return null;
2160
2164
  }
2161
2165
 
2162
- export { GRAPH_CANVAS_DETAIL_ZOOM, GRAPH_CANVAS_FIT_FLOOR, GRAPH_CANVAS_FLOW_LIMIT, GRAPH_CANVAS_LABELS, GRAPH_CANVAS_NARROW_WIDTH, GRAPH_CANVAS_OPEN_ZOOM, GRAPH_CANVAS_TILE_ZOOM, GRAPH_EDGE_FAMILIES, GRAPH_ORDER_SWEEPS, GraphCanvas, graphDetail, graphItemKey, graphNeighbourhood, graphReach, graphStep, graphTrunks, graphWindow, layoutGraph, routeGraphEdges };
2166
+ 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, routeGraphEdges };
@@ -1,5 +1,5 @@
1
1
  import { Tag } from './chunk-SJ3EUCFD.js';
2
- import { Card } from './chunk-GJJQPF75.js';
2
+ import { Card } from './chunk-RABEMWTA.js';
3
3
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './StatusCard-72STCSWY.css';
@@ -1,4 +1,4 @@
1
- import { Card } from './chunk-GJJQPF75.js';
1
+ import { Card } from './chunk-RABEMWTA.js';
2
2
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
3
3
  import { cx } from './chunk-ODEQTPFM.js';
4
4
  import './FolderTile-NM7CRTVH.css';
@@ -1,4 +1,4 @@
1
- import { StatusCard } from './chunk-VDADSS7I.js';
1
+ import { StatusCard } from './chunk-X227R7IP.js';
2
2
  import { cx } from './chunk-ODEQTPFM.js';
3
3
  import './RefusalCard-UM67F5HB.css';
4
4
  import { LockGlyph } from '@crewlethq/icons/glyphs';
@@ -1,15 +1,15 @@
1
1
  import { PageHeader } from './chunk-FPDIHEM4.js';
2
2
  import { FilterPill } from './chunk-E4QX4VET.js';
3
3
  import { DateTimePicker } from './chunk-AQZPZYSY.js';
4
- import { DataTable } from './chunk-FOXA6UZS.js';
4
+ import { DataTable } from './chunk-2FRELJBU.js';
5
5
  import { useListbox, useOptionKeys } from './chunk-KW7T23RT.js';
6
6
  import { Toolbar } from './chunk-NPEI2QAN.js';
7
7
  import { Popover } from './chunk-KDRJZWE3.js';
8
+ import { Menu } from './chunk-FIQGLZ5Q.js';
8
9
  import { RelativeTime } from './chunk-GBKBME7Q.js';
9
- import { Menu } from './chunk-35S25WJZ.js';
10
- import { Input } from './chunk-NN44J7BP.js';
11
10
  import { Kbd } from './chunk-VBBLHS2Y.js';
12
11
  import { Button } from './chunk-M2M6ZD7P.js';
12
+ import { Input } from './chunk-NN44J7BP.js';
13
13
  import { IconButton } from './chunk-X5YI6E5X.js';
14
14
  import { Count } from './chunk-Y5CMDLQM.js';
15
15
  import { VisuallyHidden } from './chunk-RRRK2KB6.js';
@@ -1,6 +1,6 @@
1
- import { Select } from './chunk-6ZFQ6TAM.js';
1
+ import { Select } from './chunk-YKCLV77Z.js';
2
2
  import { SidebarNav, NavItem } from './chunk-SM2MM4DQ.js';
3
- import { Card } from './chunk-GJJQPF75.js';
3
+ import { Card } from './chunk-RABEMWTA.js';
4
4
  import { Text } from './chunk-475DOAWF.js';
5
5
  import './RailList-N2ZBPRM2.css';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -1,5 +1,5 @@
1
1
  import { Inline, Stack, Spacer } from './chunk-ZAC7SKUN.js';
2
- import { Card } from './chunk-GJJQPF75.js';
2
+ import { Card } from './chunk-RABEMWTA.js';
3
3
  import { Text } from './chunk-475DOAWF.js';
4
4
  import { cx } from './chunk-ODEQTPFM.js';
5
5
  import './RelatedRow-IZ22XCLP.css';