@harborclient/sdk 1.3.2 → 1.3.3

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 (89) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/components/ColorPicker/index.d.ts +5 -1
  3. package/dist/components/ColorPicker/index.d.ts.map +1 -1
  4. package/dist/components/ColorPicker/index.js +2 -2
  5. package/dist/components/FilterButton/FilterButtonIcon.d.ts +29 -0
  6. package/dist/components/FilterButton/FilterButtonIcon.d.ts.map +1 -0
  7. package/dist/components/FilterButton/FilterButtonIcon.js +18 -0
  8. package/dist/components/FilterButton/index.d.ts +26 -0
  9. package/dist/components/FilterButton/index.d.ts.map +1 -0
  10. package/dist/components/FilterButton/index.js +14 -0
  11. package/dist/components/Resizable/applyResizableSizes.d.ts +11 -0
  12. package/dist/components/Resizable/applyResizableSizes.d.ts.map +1 -0
  13. package/dist/components/Resizable/applyResizableSizes.js +34 -0
  14. package/dist/components/Resizable/footerPanelUtils.d.ts +1 -1
  15. package/dist/components/Resizable/footerPanelUtils.js +4 -4
  16. package/dist/components/Resizable/index.d.ts +1 -0
  17. package/dist/components/Resizable/index.d.ts.map +1 -1
  18. package/dist/components/Resizable/index.js +1 -0
  19. package/dist/components/Resizable/useResizable.d.ts +1 -1
  20. package/dist/components/Resizable/useResizable.d.ts.map +1 -1
  21. package/dist/components/Resizable/useResizable.js +28 -0
  22. package/dist/components/RowActionsMenu/index.d.ts +7 -1
  23. package/dist/components/RowActionsMenu/index.d.ts.map +1 -1
  24. package/dist/components/RowActionsMenu/index.js +40 -18
  25. package/dist/components/SidebarItem/SidebarDocumentItem.d.ts +6 -6
  26. package/dist/components/SidebarItem/SidebarDocumentItem.d.ts.map +1 -1
  27. package/dist/components/SidebarItem/SidebarDocumentItem.js +4 -4
  28. package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts +4 -4
  29. package/dist/components/SidebarItem/SidebarEnvironmentItem.d.ts.map +1 -1
  30. package/dist/components/SidebarItem/SidebarEnvironmentItem.js +3 -3
  31. package/dist/components/SidebarItem/SidebarFolderItem.d.ts +5 -5
  32. package/dist/components/SidebarItem/SidebarFolderItem.d.ts.map +1 -1
  33. package/dist/components/SidebarItem/SidebarFolderItem.js +4 -4
  34. package/dist/components/SidebarItem/SidebarHistoryItem.d.ts +9 -1
  35. package/dist/components/SidebarItem/SidebarHistoryItem.d.ts.map +1 -1
  36. package/dist/components/SidebarItem/SidebarHistoryItem.js +2 -2
  37. package/dist/components/SidebarItem/SidebarMarkerDot.d.ts +22 -0
  38. package/dist/components/SidebarItem/SidebarMarkerDot.d.ts.map +1 -0
  39. package/dist/components/SidebarItem/SidebarMarkerDot.js +11 -0
  40. package/dist/components/SidebarItem/SidebarMethodBadge.d.ts +9 -1
  41. package/dist/components/SidebarItem/SidebarMethodBadge.d.ts.map +1 -1
  42. package/dist/components/SidebarItem/SidebarMethodBadge.js +7 -5
  43. package/dist/components/SidebarItem/SidebarRequestItem.d.ts +9 -5
  44. package/dist/components/SidebarItem/SidebarRequestItem.d.ts.map +1 -1
  45. package/dist/components/SidebarItem/SidebarRequestItem.js +4 -4
  46. package/dist/components/SidebarItem/SidebarRunItem.d.ts +9 -1
  47. package/dist/components/SidebarItem/SidebarRunItem.d.ts.map +1 -1
  48. package/dist/components/SidebarItem/SidebarRunItem.js +2 -2
  49. package/dist/components/SidebarItem/SidebarStatusDot.d.ts +11 -1
  50. package/dist/components/SidebarItem/SidebarStatusDot.d.ts.map +1 -1
  51. package/dist/components/SidebarItem/SidebarStatusDot.js +10 -1
  52. package/dist/components/SidebarItem/{SidebarTabGroupItem.d.ts → SidebarWorkspaceItem.d.ts} +9 -9
  53. package/dist/components/SidebarItem/SidebarWorkspaceItem.d.ts.map +1 -0
  54. package/dist/components/SidebarItem/{SidebarTabGroupItem.js → SidebarWorkspaceItem.js} +4 -4
  55. package/dist/components/SidebarItem/index.d.ts +3 -3
  56. package/dist/components/SidebarItem/index.d.ts.map +1 -1
  57. package/dist/components/SidebarItem/index.js +3 -3
  58. package/dist/components/SidebarItem/sidebarItemClasses.d.ts +17 -0
  59. package/dist/components/SidebarItem/sidebarItemClasses.d.ts.map +1 -1
  60. package/dist/components/SidebarItem/sidebarItemClasses.js +26 -2
  61. package/dist/components/SidebarSection/SectionItem.d.ts.map +1 -1
  62. package/dist/components/SidebarSection/SectionItem.js +3 -1
  63. package/dist/components/SortButton/SortButtonIcon.d.ts +29 -0
  64. package/dist/components/SortButton/SortButtonIcon.d.ts.map +1 -0
  65. package/dist/components/SortButton/SortButtonIcon.js +18 -0
  66. package/dist/components/SortButton/SortMenu.d.ts +42 -0
  67. package/dist/components/SortButton/SortMenu.d.ts.map +1 -0
  68. package/dist/components/SortButton/SortMenu.js +137 -0
  69. package/dist/components/SortButton/SortMenuOption.d.ts +35 -0
  70. package/dist/components/SortButton/SortMenuOption.d.ts.map +1 -0
  71. package/dist/components/SortButton/SortMenuOption.js +18 -0
  72. package/dist/components/SortButton/index.d.ts +32 -0
  73. package/dist/components/SortButton/index.d.ts.map +1 -0
  74. package/dist/components/SortButton/index.js +15 -0
  75. package/dist/components/SortButton/sortOptions.d.ts +14 -0
  76. package/dist/components/SortButton/sortOptions.d.ts.map +1 -0
  77. package/dist/components/SortButton/sortOptions.js +1 -0
  78. package/dist/components/TabBar/types.d.ts +1 -1
  79. package/dist/components/index.d.ts +7 -2
  80. package/dist/components/index.d.ts.map +1 -1
  81. package/dist/components/index.js +6 -2
  82. package/dist/runtime/createBridgedPluginContext.js +4 -0
  83. package/dist/types.d.ts +55 -0
  84. package/dist/types.d.ts.map +1 -1
  85. package/package.json +3 -3
  86. package/dist/components/SidebarItem/SidebarColorDot.d.ts +0 -22
  87. package/dist/components/SidebarItem/SidebarColorDot.d.ts.map +0 -1
  88. package/dist/components/SidebarItem/SidebarColorDot.js +0 -11
  89. package/dist/components/SidebarItem/SidebarTabGroupItem.d.ts.map +0 -1
@@ -31,10 +31,10 @@ interface Props {
31
31
  */
32
32
  ariaLabel?: string;
33
33
  /**
34
- * Optional color dot beside the folder name.
34
+ * Optional marker dot beside the folder name.
35
35
  */
36
- colorDot?: {
37
- color: string | null | undefined;
36
+ markerDot?: {
37
+ marker: string | null | undefined;
38
38
  visible?: boolean;
39
39
  label?: string;
40
40
  };
@@ -85,12 +85,12 @@ interface Props {
85
85
  as?: 'div' | 'li';
86
86
  }
87
87
  /**
88
- * Renders a collection folder row with expand/collapse control, optional color dot,
88
+ * Renders a collection folder row with expand/collapse control, optional marker dot,
89
89
  * and optional drag-drop highlight affordance. Chevron size and label spacing use
90
90
  * the shared `SIDEBAR_CHEVRON_*` classes (Cursor-like explorer twisties).
91
91
  *
92
92
  * Wrap folder trees in {@link SidebarTree} and pass `as="li"` for valid tree semantics.
93
93
  */
94
- export declare function SidebarFolderItem({ name, expanded, childrenId, level, setSize, posInSet, ariaLabel, colorDot, dropHighlighted, selected, sortable, onContextMenu, onToggleExpand, onNameClick, onNameDoubleClick, onNameEnter, actions, expandIcon, collapseIcon, as }: Props): JSX.Element;
94
+ export declare function SidebarFolderItem({ name, expanded, childrenId, level, setSize, posInSet, ariaLabel, markerDot, dropHighlighted, selected, sortable, onContextMenu, onToggleExpand, onNameClick, onNameDoubleClick, onNameEnter, actions, expandIcon, collapseIcon, as }: Props): JSX.Element;
95
95
  export {};
96
96
  //# sourceMappingURL=SidebarFolderItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarFolderItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarFolderItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,GAAG,EAAiB,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAe,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAQ/E,UAAU,KAAK;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb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,QAAQ,EACR,eAAuB,EACvB,QAAgB,EAChB,QAAQ,EACR,aAAa,EACb,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,UAAU,EACV,YAAY,EACZ,EAAS,EACV,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA2ErB"}
1
+ {"version":3,"file":"SidebarFolderItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarFolderItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,GAAG,EAAiB,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAe,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAS/E,UAAU,KAAK;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,SAAS,CAAC,EAAE;QACV,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QAClC,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,yBAAyB,CAAC;IAEpC;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEzD;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAE3B;;OAEG;IACH,WAAW,EAAE,MAAM,IAAI,CAAC;IAExB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAE/B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IAEzB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAC3B,YAAY,EAAE,cAAc,CAAC;IAE7B;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,EAChC,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,KAAK,EACL,OAAO,EACP,QAAQ,EACR,SAAS,EACT,SAAS,EACT,eAAuB,EACvB,QAAgB,EAChB,QAAQ,EACR,aAAa,EACb,cAAc,EACd,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,UAAU,EACV,YAAY,EACZ,EAAS,EACV,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA2ErB"}
@@ -1,17 +1,17 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "@harborclient/sdk/jsx-runtime";
2
2
  import { FaIcon } from '../FaIcon/index.js';
3
- import { SidebarColorDot } from './SidebarColorDot.js';
4
3
  import { SidebarItem } from './SidebarItem.js';
4
+ import { SidebarMarkerDot } from './SidebarMarkerDot.js';
5
5
  import { SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS } from './sidebarItemClasses.js';
6
6
  import { stopSortableDragPointerDown } from './stopSortableDragPointerDown.js';
7
7
  /**
8
- * Renders a collection folder row with expand/collapse control, optional color dot,
8
+ * Renders a collection folder row with expand/collapse control, optional marker dot,
9
9
  * and optional drag-drop highlight affordance. Chevron size and label spacing use
10
10
  * the shared `SIDEBAR_CHEVRON_*` classes (Cursor-like explorer twisties).
11
11
  *
12
12
  * Wrap folder trees in {@link SidebarTree} and pass `as="li"` for valid tree semantics.
13
13
  */
14
- export function SidebarFolderItem({ name, expanded, childrenId, level, setSize, posInSet, ariaLabel, colorDot, dropHighlighted = false, selected = false, sortable, onContextMenu, onToggleExpand, onNameClick, onNameDoubleClick, onNameEnter, actions, expandIcon, collapseIcon, as = 'li' }) {
14
+ export function SidebarFolderItem({ name, expanded, childrenId, level, setSize, posInSet, ariaLabel, markerDot, dropHighlighted = false, selected = false, sortable, onContextMenu, onToggleExpand, onNameClick, onNameDoubleClick, onNameEnter, actions, expandIcon, collapseIcon, as = 'li' }) {
15
15
  const useTreeItem = as === 'li';
16
16
  /**
17
17
  * Opens folder settings when Enter is pressed on the name area.
@@ -40,5 +40,5 @@ export function SidebarFolderItem({ name, expanded, childrenId, level, setSize,
40
40
  : undefined, children: [_jsx("button", { type: "button", className: SIDEBAR_CHEVRON_BUTTON_CLASS, onClick: (event) => {
41
41
  event.stopPropagation();
42
42
  onToggleExpand();
43
- }, onPointerDown: stopSortableDragPointerDown, tabIndex: -1, "aria-label": chevronLabel, children: _jsx(FaIcon, { icon: expanded ? collapseIcon : expandIcon, className: SIDEBAR_CHEVRON_ICON_CLASS }) }), _jsxs("span", { className: `app-no-drag ${SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS} min-w-0 flex-1 cursor-pointer truncate border-none bg-transparent py-0 text-left leading-none font-medium text-inherit`, "aria-current": selected ? 'true' : undefined, children: [_jsxs("span", { className: "inline-flex min-w-0 items-center gap-1.5", children: [name, colorDot != null ? (_jsx(SidebarColorDot, { color: colorDot.color, visible: colorDot.visible, label: colorDot.label })) : null] }), dropHighlighted ? _jsx("span", { className: "ml-1.5 font-normal text-info", children: "Drop here" }) : null] })] }));
43
+ }, onPointerDown: stopSortableDragPointerDown, tabIndex: -1, "aria-label": chevronLabel, children: _jsx(FaIcon, { icon: expanded ? collapseIcon : expandIcon, className: SIDEBAR_CHEVRON_ICON_CLASS }) }), _jsxs("span", { className: `app-no-drag ${SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS} min-w-0 flex-1 cursor-pointer truncate border-none bg-transparent py-0 text-left leading-none font-medium text-inherit`, "aria-current": selected ? 'true' : undefined, children: [_jsxs("span", { className: "inline-flex min-w-0 items-center gap-1.5", children: [name, markerDot != null ? (_jsx(SidebarMarkerDot, { marker: markerDot.marker, visible: markerDot.visible, label: markerDot.label })) : null] }), dropHighlighted ? _jsx("span", { className: "ml-1.5 font-normal text-info", children: "Drop here" }) : null] })] }));
44
44
  }
@@ -21,6 +21,14 @@ interface Props {
21
21
  * HTTP status text for request history entries.
22
22
  */
23
23
  statusText?: string;
24
+ /**
25
+ * When false, hides the HTTP status indicator even when status is available.
26
+ */
27
+ statusDotVisible?: boolean;
28
+ /**
29
+ * When false, renders the method badge in neutral theme text instead of per-method colors.
30
+ */
31
+ methodColors?: boolean;
24
32
  /**
25
33
  * Icon shown for run history entries.
26
34
  */
@@ -57,6 +65,6 @@ interface Props {
57
65
  /**
58
66
  * Renders a request or run history entry row in the Collections sidebar History section.
59
67
  */
60
- export declare function SidebarHistoryItem({ method, name, isRun, status, statusText, runIcon, selected, title, ariaLabel, onContextMenu, onClick, actions, as }: Props): JSX.Element;
68
+ export declare function SidebarHistoryItem({ method, name, isRun, status, statusText, statusDotVisible, methodColors, runIcon, selected, title, ariaLabel, onContextMenu, onClick, actions, as }: Props): JSX.Element;
61
69
  export {};
62
70
  //# sourceMappingURL=SidebarHistoryItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarHistoryItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarHistoryItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOxD,UAAU,KAAK;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,OAAO,CAAC,EAAE,cAAc,CAAC;IAEzB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEzD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,IAAI,EACJ,KAAa,EACb,MAAM,EACN,UAAU,EACV,OAAO,EACP,QAAgB,EAChB,KAAK,EACL,SAAS,EACT,aAAa,EACb,OAAO,EACP,OAAO,EACP,EAAS,EACV,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAwCrB"}
1
+ {"version":3,"file":"SidebarHistoryItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarHistoryItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACxE,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAA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a request or run history entry row in the Collections sidebar History section.
9
9
  */
10
- export function SidebarHistoryItem({ method, name, isRun = false, status, statusText, runIcon, selected = false, title, ariaLabel, onContextMenu, onClick, actions, as = 'li' }) {
10
+ export function SidebarHistoryItem({ method, name, isRun = false, status, statusText, statusDotVisible = true, methodColors = true, runIcon, selected = false, title, ariaLabel, onContextMenu, onClick, actions, as = 'li' }) {
11
11
  const useListboxOption = as === 'li';
12
12
  const optionAriaLabel = !isRun && status != null && statusText != null
13
13
  ? `${ariaLabel}, responded ${status} ${statusText}`
@@ -17,5 +17,5 @@ export function SidebarHistoryItem({ method, name, isRun = false, status, status
17
17
  ariaLabel: optionAriaLabel,
18
18
  onClick
19
19
  }
20
- : undefined, children: _jsxs("span", { className: `${SIDEBAR_ITEM_BUTTON_CLASS} py-0.5`, title: title, children: [_jsx(SidebarMethodBadge, { method: method, uppercase: true }), _jsxs("span", { className: "flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden", children: [_jsx("span", { className: "min-w-0 flex-1 truncate text-text", children: name }), isRun && runIcon != null ? (_jsx(FaIcon, { icon: runIcon, className: "h-3.5 w-3.5 shrink-0 text-muted", "aria-hidden": true })) : null] }), !isRun && status != null && statusText != null ? (_jsx(SidebarStatusDot, { className: statusDotClass(status), title: `${status} ${statusText}`, srOnlyLabel: `${status} ${statusText}` })) : null] }) }));
20
+ : undefined, children: _jsxs("span", { className: `${SIDEBAR_ITEM_BUTTON_CLASS} py-0.5`, title: title, children: [_jsx(SidebarMethodBadge, { method: method, uppercase: true, methodColors: methodColors }), _jsxs("span", { className: "flex min-w-0 flex-1 items-center gap-1.5 overflow-hidden", children: [_jsx("span", { className: "min-w-0 flex-1 truncate text-text", children: name }), isRun && runIcon != null ? (_jsx(FaIcon, { icon: runIcon, className: "h-3.5 w-3.5 shrink-0 text-muted", "aria-hidden": true })) : null] }), !isRun && status != null && statusText != null ? (_jsx(SidebarStatusDot, { className: statusDotClass(status), visible: statusDotVisible, title: `${status} ${statusText}`, srOnlyLabel: `${status} ${statusText}` })) : null] }) }));
21
21
  }
@@ -0,0 +1,22 @@
1
+ import type { JSX } from 'react';
2
+ interface Props {
3
+ /**
4
+ * Marker value as a CSS color string, or null/undefined to hide the dot.
5
+ */
6
+ marker: string | null | undefined;
7
+ /**
8
+ * When false, suppresses the dot even when a marker is assigned.
9
+ */
10
+ visible?: boolean;
11
+ /**
12
+ * Accessible label when the dot conveys meaning without visible text.
13
+ */
14
+ label?: string;
15
+ }
16
+ /**
17
+ * Renders a small colored circle beside a sidebar row when a marker is assigned
18
+ * and visibility is enabled.
19
+ */
20
+ export declare function SidebarMarkerDot({ marker, visible, label }: Props): JSX.Element | null;
21
+ export {};
22
+ //# sourceMappingURL=SidebarMarkerDot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarMarkerDot.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarMarkerDot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,UAAU,KAAK;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAElC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,MAAM,EAAE,OAAc,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAY7F"}
@@ -0,0 +1,11 @@
1
+ import { jsx as _jsx } from "@harborclient/sdk/jsx-runtime";
2
+ /**
3
+ * Renders a small colored circle beside a sidebar row when a marker is assigned
4
+ * and visibility is enabled.
5
+ */
6
+ export function SidebarMarkerDot({ marker, visible = true, label }) {
7
+ if (!visible || marker == null || marker.trim() === '') {
8
+ return null;
9
+ }
10
+ return (_jsx("span", { className: "inline-block h-4 w-4 shrink-0 rounded-full", style: { backgroundColor: marker }, ...(label != null ? { role: 'img', 'aria-label': label } : { 'aria-hidden': true }) }));
11
+ }
@@ -8,10 +8,18 @@ interface Props {
8
8
  * When true, renders the method in uppercase with medium font weight.
9
9
  */
10
10
  uppercase?: boolean;
11
+ /**
12
+ * When false, renders the method in neutral theme text instead of per-method colors.
13
+ */
14
+ methodColors?: boolean;
11
15
  }
12
16
  /**
13
17
  * Renders a colored HTTP method badge for sidebar request and history rows.
18
+ *
19
+ * @param method - HTTP method name shown in the badge.
20
+ * @param uppercase - When true, applies uppercase medium-weight styling.
21
+ * @param methodColors - When false, uses neutral theme text instead of per-method colors.
14
22
  */
15
- export declare function SidebarMethodBadge({ method, uppercase }: Props): JSX.Element;
23
+ export declare function SidebarMethodBadge({ method, uppercase, methodColors }: Props): JSX.Element;
16
24
  export {};
17
25
  //# sourceMappingURL=SidebarMethodBadge.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarMethodBadge.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarMethodBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjC,UAAU,KAAK;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,MAAM,EAAE,SAAiB,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CASpF"}
1
+ {"version":3,"file":"SidebarMethodBadge.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarMethodBadge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAIjC,UAAU,KAAK;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IAEpB;;OAEG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;AAED;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,SAAiB,EACjB,YAAmB,EACpB,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAYrB"}
@@ -1,11 +1,13 @@
1
1
  import { jsx as _jsx } from "@harborclient/sdk/jsx-runtime";
2
2
  import { cn } from '../utils.js';
3
- import { METHOD_CLASSES } from './sidebarItemClasses.js';
3
+ import { methodBadgeClass } from './sidebarItemClasses.js';
4
4
  /**
5
5
  * Renders a colored HTTP method badge for sidebar request and history rows.
6
+ *
7
+ * @param method - HTTP method name shown in the badge.
8
+ * @param uppercase - When true, applies uppercase medium-weight styling.
9
+ * @param methodColors - When false, uses neutral theme text instead of per-method colors.
6
10
  */
7
- export function SidebarMethodBadge({ method, uppercase = false }) {
8
- const methodKey = method.toLowerCase();
9
- const colorClass = METHOD_CLASSES[methodKey] ?? 'text-info';
10
- return (_jsx("span", { className: cn('shrink-0 px-1 py-px', uppercase && 'font-medium uppercase', colorClass), children: method }));
11
+ export function SidebarMethodBadge({ method, uppercase = false, methodColors = true }) {
12
+ return (_jsx("span", { className: cn('shrink-0 px-1 py-px', uppercase && 'font-medium uppercase', methodBadgeClass(method, methodColors)), children: method }));
11
13
  }
@@ -14,13 +14,17 @@ interface Props {
14
14
  */
15
15
  nameClassName?: string;
16
16
  /**
17
- * Optional color dot configuration for collection sidebar rows.
17
+ * Optional color marker dot configuration for collection sidebar rows.
18
18
  */
19
- colorDot?: {
20
- color: string | null | undefined;
19
+ markerDot?: {
20
+ marker: string | null | undefined;
21
21
  visible?: boolean;
22
22
  label?: string;
23
23
  };
24
+ /**
25
+ * When false, renders the method badge in neutral theme text instead of per-method colors.
26
+ */
27
+ methodColors?: boolean;
24
28
  /**
25
29
  * Optional git change status marker shown after the name in git sidebar rows.
26
30
  */
@@ -69,7 +73,7 @@ interface Props {
69
73
  as?: 'div' | 'li';
70
74
  }
71
75
  /**
72
- * Renders a saved-request sidebar row with method badge, optional color dot or git
76
+ * Renders a saved-request sidebar row with method badge, optional color marker dot or git
73
77
  * status marker, and shared row chrome. Used in both Collections and Git sidebars.
74
78
  *
75
79
  * The accessible name defaults to visible row content (method, name, markers) but
@@ -77,6 +81,6 @@ interface Props {
77
81
  *
78
82
  * Wrap lists in {@link SidebarListbox} and pass `as="li"` for valid listbox semantics.
79
83
  */
80
- export declare function SidebarRequestItem({ method, name, nameClassName, colorDot, statusMarker, selected, sortable, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, as }: Props): JSX.Element;
84
+ export declare function SidebarRequestItem({ method, name, nameClassName, markerDot, methodColors, statusMarker, selected, sortable, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, as }: Props): JSX.Element;
81
85
  export {};
82
86
  //# sourceMappingURL=SidebarRequestItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarRequestItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarRequestItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EAAe,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAK/E,UAAU,KAAK;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB;;OAEG;IACH,QAAQ,CAAC,EAAE;QACT,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;QACjC,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IAEF;;OAEG;IACH,YAAY,CAAC,EAAE;QACb,MAAM,EAAE,MAAM,CAAC;QACf,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;IAEF;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,QAAQ,CAAC,EAAE,yBAAyB,CAAC;IAErC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEzD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,EACjC,MAAM,EACN,IAAI,EACJ,aAAa,EACb,QAAQ,EACR,YAAY,EACZ,QAAgB,EAChB,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,EAAS,EACV,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA6CrB"}
1
+ {"version":3,"file":"SidebarRequestItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarRequestItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAe,KAAK,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAM/E,UAAU,KAAK;IACb;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,CA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sx as _jsx, jsxs as _jsxs } from "@harborclient/sdk/jsx-runtime";
2
- import { SidebarColorDot } from './SidebarColorDot.js';
3
2
  import { SidebarItem } from './SidebarItem.js';
3
+ import { SidebarMarkerDot } from './SidebarMarkerDot.js';
4
4
  import { SidebarMethodBadge } from './SidebarMethodBadge.js';
5
5
  import { SidebarStatusMarker } from './SidebarStatusMarker.js';
6
6
  import { SIDEBAR_ITEM_BUTTON_CLASS } from './sidebarItemClasses.js';
7
7
  /**
8
- * Renders a saved-request sidebar row with method badge, optional color dot or git
8
+ * Renders a saved-request sidebar row with method badge, optional color marker dot or git
9
9
  * status marker, and shared row chrome. Used in both Collections and Git sidebars.
10
10
  *
11
11
  * The accessible name defaults to visible row content (method, name, markers) but
@@ -13,7 +13,7 @@ import { SIDEBAR_ITEM_BUTTON_CLASS } from './sidebarItemClasses.js';
13
13
  *
14
14
  * Wrap lists in {@link SidebarListbox} and pass `as="li"` for valid listbox semantics.
15
15
  */
16
- export function SidebarRequestItem({ method, name, nameClassName, colorDot, statusMarker, selected = false, sortable, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, as = 'li' }) {
16
+ export function SidebarRequestItem({ method, name, nameClassName, markerDot, methodColors = true, statusMarker, selected = false, sortable, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, as = 'li' }) {
17
17
  const useListboxOption = as === 'li';
18
18
  return (_jsx(SidebarItem, { selected: selected, sortable: sortable, onContextMenu: onContextMenu, actions: actions, as: as, listboxOption: useListboxOption
19
19
  ? {
@@ -22,5 +22,5 @@ export function SidebarRequestItem({ method, name, nameClassName, colorDot, stat
22
22
  ariaCurrent,
23
23
  onClick
24
24
  }
25
- : undefined, children: _jsxs("span", { className: SIDEBAR_ITEM_BUTTON_CLASS, children: [_jsx(SidebarMethodBadge, { method: method }), colorDot != null ? (_jsxs("span", { className: "inline-flex min-w-0 items-center gap-1.5", children: [_jsx("span", { className: `min-w-0 truncate ${nameClassName ?? ''}`, children: name }), _jsx(SidebarColorDot, { color: colorDot.color, visible: colorDot.visible, label: colorDot.label })] })) : (_jsx("span", { className: `min-w-0 truncate ${nameClassName ?? ''}`, children: name })), statusMarker != null ? (_jsx(SidebarStatusMarker, { marker: statusMarker.marker, className: statusMarker.className, label: statusMarker.label })) : null] }) }));
25
+ : undefined, children: _jsxs("span", { className: SIDEBAR_ITEM_BUTTON_CLASS, children: [_jsx(SidebarMethodBadge, { method: method, methodColors: methodColors }), markerDot != null ? (_jsxs("span", { className: "inline-flex min-w-0 items-center gap-1.5", children: [_jsx("span", { className: `min-w-0 truncate ${nameClassName ?? ''}`, children: name }), _jsx(SidebarMarkerDot, { marker: markerDot.marker, visible: markerDot.visible, label: markerDot.label })] })) : (_jsx("span", { className: `min-w-0 truncate ${nameClassName ?? ''}`, children: name })), statusMarker != null ? (_jsx(SidebarStatusMarker, { marker: statusMarker.marker, className: statusMarker.className, label: statusMarker.label })) : null] }) }));
26
26
  }
@@ -16,6 +16,14 @@ interface Props {
16
16
  * Tailwind background color class for the pass/fail status dot.
17
17
  */
18
18
  statusDotClassName: string;
19
+ /**
20
+ * When false, hides the pass/fail status indicator.
21
+ */
22
+ statusDotVisible?: boolean;
23
+ /**
24
+ * When false, renders the method badge in neutral theme text instead of per-method colors.
25
+ */
26
+ methodColors?: boolean;
19
27
  /**
20
28
  * Screen-reader text describing the run summary status.
21
29
  */
@@ -69,6 +77,6 @@ interface Props {
69
77
  * The accessible name is derived from visible row content (method, label, connection badge,
70
78
  * status summary).
71
79
  */
72
- export declare function SidebarRunItem({ method, label, connectionBadge, statusDotClassName, statusSummary, selected, title, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, dataSidebarRunResultId, as }: Props): JSX.Element;
80
+ export declare function SidebarRunItem({ method, label, connectionBadge, statusDotClassName, statusDotVisible, methodColors, statusSummary, selected, title, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, dataSidebarRunResultId, as }: Props): JSX.Element;
73
81
  export {};
74
82
  //# sourceMappingURL=SidebarRunItem.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarRunItem.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarRunItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAOxD,UAAU,KAAK;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;OAGG;IACH,YAAY,CAAC,EAAE,OAAO,CAAC;IAEvB;;OAEG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IAEtB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEzD;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,CAAC;IAEnD;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;IAEpB;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAEzC;;OAEG;IACH,EAAE,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,QAAgB,EAChB,KAAK,EACL,SAAS,EACT,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CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;CACnB;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,EAC7B,MAAM,EACN,KAAK,EACL,eAAe,EACf,kBAAkB,EAClB,gBAAuB,EACvB,YAAmB,EACnB,aAAa,EACb,QAAgB,EAChB,KAAK,EACL,SAAS,EACT,YAAY,EACZ,WAAW,EACX,aAAa,EACb,OAAO,EACP,OAAO,EACP,sBAAsB,EACtB,EAAS,EACV,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CA8CrB"}
@@ -10,7 +10,7 @@ import { SIDEBAR_ITEM_BUTTON_CLASS } from './sidebarItemClasses.js';
10
10
  * The accessible name is derived from visible row content (method, label, connection badge,
11
11
  * status summary).
12
12
  */
13
- export function SidebarRunItem({ method, label, connectionBadge, statusDotClassName, statusSummary, selected = false, title, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, dataSidebarRunResultId, as = 'li' }) {
13
+ export function SidebarRunItem({ method, label, connectionBadge, statusDotClassName, statusDotVisible = true, methodColors = true, statusSummary, selected = false, title, ariaLabel, ariaSelected, ariaCurrent, onContextMenu, onClick, actions, dataSidebarRunResultId, as = 'li' }) {
14
14
  const useListboxOption = as === 'li';
15
15
  return (_jsx(SidebarItem, { selected: selected, onContextMenu: onContextMenu, actions: actions, as: as, listboxOption: useListboxOption
16
16
  ? {
@@ -21,5 +21,5 @@ export function SidebarRunItem({ method, label, connectionBadge, statusDotClassN
21
21
  }
22
22
  : undefined, children: _jsxs("span", { className: `${SIDEBAR_ITEM_BUTTON_CLASS} py-0.5`, title: title, ...(dataSidebarRunResultId != null
23
23
  ? { 'data-sidebar-run-result-id': String(dataSidebarRunResultId) }
24
- : {}), children: [method != null && method !== '' ? _jsx(SidebarMethodBadge, { method: method, uppercase: true }) : null, _jsxs("span", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "min-w-0 truncate text-text", children: label }), connectionBadge != null ? (_jsx(SidebarBadge, { variant: "info", title: `Stored in ${connectionBadge}`, children: connectionBadge })) : null] }), _jsx(SidebarStatusDot, { className: statusDotClassName, srOnlyLabel: statusSummary })] }) }));
24
+ : {}), children: [method != null && method !== '' ? (_jsx(SidebarMethodBadge, { method: method, uppercase: true, methodColors: methodColors })) : null, _jsxs("span", { className: "flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "min-w-0 truncate text-text", children: label }), connectionBadge != null ? (_jsx(SidebarBadge, { variant: "info", title: `Stored in ${connectionBadge}`, children: connectionBadge })) : null] }), _jsx(SidebarStatusDot, { className: statusDotClassName, visible: statusDotVisible, srOnlyLabel: statusSummary })] }) }));
25
25
  }
@@ -4,6 +4,10 @@ interface Props {
4
4
  * Tailwind background color class for the dot (e.g. from {@link statusDotClass}).
5
5
  */
6
6
  className: string;
7
+ /**
8
+ * When false, suppresses the indicator even when status data is available.
9
+ */
10
+ visible?: boolean;
7
11
  /**
8
12
  * Screen-reader text describing the status when a visible label is not shown.
9
13
  */
@@ -15,7 +19,13 @@ interface Props {
15
19
  }
16
20
  /**
17
21
  * Renders a small circular status indicator with optional screen-reader text.
22
+ *
23
+ * @param className - Tailwind background color class for the dot.
24
+ * @param visible - When false, returns null instead of rendering the indicator.
25
+ * @param srOnlyLabel - Screen-reader text describing the status.
26
+ * @param title - Native tooltip shown on hover.
27
+ * @returns The status indicator, or null when visibility is disabled.
18
28
  */
19
- export declare function SidebarStatusDot({ className, srOnlyLabel, title }: Props): JSX.Element;
29
+ export declare function SidebarStatusDot({ className, visible, srOnlyLabel, title }: Props): JSX.Element | null;
20
30
  export {};
21
31
  //# sourceMappingURL=SidebarStatusDot.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarStatusDot.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarStatusDot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,UAAU,KAAK;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAUtF"}
1
+ {"version":3,"file":"SidebarStatusDot.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/SidebarStatusDot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAGjC,UAAU,KAAK;IACb;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,EAC/B,SAAS,EACT,OAAc,EACd,WAAW,EACX,KAAK,EACN,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,GAAG,IAAI,CAc5B"}
@@ -2,7 +2,16 @@ import { jsx as _jsx, jsxs as _jsxs } from "@harborclient/sdk/jsx-runtime";
2
2
  import { cn } from '../utils.js';
3
3
  /**
4
4
  * Renders a small circular status indicator with optional screen-reader text.
5
+ *
6
+ * @param className - Tailwind background color class for the dot.
7
+ * @param visible - When false, returns null instead of rendering the indicator.
8
+ * @param srOnlyLabel - Screen-reader text describing the status.
9
+ * @param title - Native tooltip shown on hover.
10
+ * @returns The status indicator, or null when visibility is disabled.
5
11
  */
6
- export function SidebarStatusDot({ className, srOnlyLabel, title }) {
12
+ export function SidebarStatusDot({ className, visible = true, srOnlyLabel, title }) {
13
+ if (!visible) {
14
+ return null;
15
+ }
7
16
  return (_jsxs("span", { className: "flex shrink-0 items-center gap-1.5", title: title, children: [_jsx("span", { className: cn('inline-block h-2 w-2 shrink-0 rounded-full', className), "aria-hidden": "true" }), srOnlyLabel != null ? _jsx("span", { className: "sr-only", children: srOnlyLabel }) : null] }));
8
17
  }
@@ -3,7 +3,7 @@ import type { JSX, MouseEvent, ReactNode } from 'react';
3
3
  import { type SidebarItemSortableConfig } from './SidebarItem.js';
4
4
  interface Props {
5
5
  /**
6
- * Tab group display name.
6
+ * Workspace display name.
7
7
  */
8
8
  name: string;
9
9
  /**
@@ -11,14 +11,14 @@ interface Props {
11
11
  */
12
12
  summary: string;
13
13
  /**
14
- * Icon shown before the tab group name.
14
+ * Icon shown before the workspace name.
15
15
  */
16
16
  icon: IconDefinition;
17
17
  /**
18
- * Optional color dot beside the tab group name.
18
+ * Optional marker dot beside the workspace name.
19
19
  */
20
- colorDot?: {
21
- color: string | null | undefined;
20
+ markerDot?: {
21
+ marker: string | null | undefined;
22
22
  visible?: boolean;
23
23
  label?: string;
24
24
  };
@@ -27,7 +27,7 @@ interface Props {
27
27
  */
28
28
  selected?: boolean;
29
29
  /**
30
- * dnd-kit sortable configuration for tab group reordering.
30
+ * dnd-kit sortable configuration for workspace reordering.
31
31
  */
32
32
  sortable?: SidebarItemSortableConfig;
33
33
  /**
@@ -48,8 +48,8 @@ interface Props {
48
48
  as?: 'div' | 'li';
49
49
  }
50
50
  /**
51
- * Renders a tab group row in the Collections sidebar Tab Groups section.
51
+ * Renders a workspace row in the Collections sidebar Workspaces section.
52
52
  */
53
- export declare function SidebarTabGroupItem({ name, summary, icon, colorDot, selected, sortable, onContextMenu, onClick, actions, as }: Props): JSX.Element;
53
+ export declare function SidebarWorkspaceItem({ name, summary, icon, markerDot, selected, sortable, onContextMenu, onClick, actions, as }: Props): JSX.Element;
54
54
  export {};
55
- //# sourceMappingURL=SidebarTabGroupItem.d.ts.map
55
+ //# sourceMappingURL=SidebarWorkspaceItem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SidebarWorkspaceItem.d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jsx as _jsx, jsxs as _jsxs } from "@harborclient/sdk/jsx-runtime";
2
2
  import { FaIcon } from '../FaIcon/index.js';
3
- import { SidebarColorDot } from './SidebarColorDot.js';
4
3
  import { SidebarItem } from './SidebarItem.js';
4
+ import { SidebarMarkerDot } from './SidebarMarkerDot.js';
5
5
  import { SIDEBAR_ITEM_BUTTON_CLASS } from './sidebarItemClasses.js';
6
6
  /**
7
- * Renders a tab group row in the Collections sidebar Tab Groups section.
7
+ * Renders a workspace row in the Collections sidebar Workspaces section.
8
8
  */
9
- export function SidebarTabGroupItem({ name, summary, icon, colorDot, selected = false, sortable, onContextMenu, onClick, actions, as = 'li' }) {
9
+ export function SidebarWorkspaceItem({ name, summary, icon, markerDot, selected = false, sortable, onContextMenu, onClick, actions, as = 'li' }) {
10
10
  const useListboxOption = as === 'li';
11
11
  return (_jsx(SidebarItem, { selected: selected, sortable: sortable, onContextMenu: onContextMenu, actions: actions, as: as, listboxOption: useListboxOption
12
12
  ? {
13
13
  onClick
14
14
  }
15
- : undefined, children: _jsxs("span", { className: `${SIDEBAR_ITEM_BUTTON_CLASS} gap-2 rounded-md px-2 py-1`, children: [_jsx(FaIcon, { icon: icon, className: "h-3.5 w-3.5 shrink-0 text-muted", "aria-hidden": true }), _jsxs("span", { className: "inline-flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "min-w-0 truncate", children: name }), colorDot != null ? (_jsx(SidebarColorDot, { color: colorDot.color, visible: colorDot.visible, label: colorDot.label })) : null] }), _jsx("span", { className: "shrink-0 text-muted", children: summary })] }) }));
15
+ : undefined, children: _jsxs("span", { className: `${SIDEBAR_ITEM_BUTTON_CLASS} gap-2 rounded-md px-2 py-1`, children: [_jsx(FaIcon, { icon: icon, className: "h-3.5 w-3.5 shrink-0 text-muted", "aria-hidden": true }), _jsxs("span", { className: "inline-flex min-w-0 flex-1 items-center gap-1.5", children: [_jsx("span", { className: "min-w-0 truncate", children: name }), markerDot != null ? (_jsx(SidebarMarkerDot, { marker: markerDot.marker, visible: markerDot.visible, label: markerDot.label })) : null] }), _jsx("span", { className: "shrink-0 text-muted", children: summary })] }) }));
16
16
  }
@@ -6,9 +6,9 @@ export { SidebarTreeGroup } from './SidebarTreeGroup.js';
6
6
  export { handleSidebarOptionKeyDown } from './sidebarListOption.js';
7
7
  export { SortableSidebarItem } from './SortableSidebarItem.js';
8
8
  export { stopSortableDragPointerDown } from './stopSortableDragPointerDown.js';
9
- export { SidebarColorDot } from './SidebarColorDot.js';
9
+ export { SidebarMarkerDot } from './SidebarMarkerDot.js';
10
10
  export { SidebarBadge, type SidebarBadgeVariant } from './SidebarBadge.js';
11
- export { sourceRow, METHOD_CLASSES, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS } from './sidebarItemClasses.js';
11
+ export { sourceRow, METHOD_CLASSES, methodBadgeClass, documentIconClass, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS } from './sidebarItemClasses.js';
12
12
  export { SidebarMethodBadge } from './SidebarMethodBadge.js';
13
13
  export { SidebarStatusDot } from './SidebarStatusDot.js';
14
14
  export { SidebarStatusMarker } from './SidebarStatusMarker.js';
@@ -18,6 +18,6 @@ export { SidebarFolderItem } from './SidebarFolderItem.js';
18
18
  export { SidebarRunItem } from './SidebarRunItem.js';
19
19
  export { SidebarHistoryItem } from './SidebarHistoryItem.js';
20
20
  export { SidebarEnvironmentItem } from './SidebarEnvironmentItem.js';
21
- export { SidebarTabGroupItem } from './SidebarTabGroupItem.js';
21
+ export { SidebarWorkspaceItem } from './SidebarWorkspaceItem.js';
22
22
  export { SidebarCommitItem, type SidebarCommitPushStatus } from './SidebarCommitItem.js';
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACzB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wBAAwB,CAAC;AACpE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EACL,SAAS,EACT,cAAc,EACd,gBAAgB,EAChB,cAAc,EACd,yBAAyB,EACzB,4BAA4B,EAC5B,0BAA0B,EAC1B,0BAA0B,EAC1B,kCAAkC,EACnC,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,i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AM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,KAAK,uBAAuB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -6,9 +6,9 @@ export { SidebarTreeGroup } from './SidebarTreeGroup.js';
6
6
  export { handleSidebarOptionKeyDown } from './sidebarListOption.js';
7
7
  export { SortableSidebarItem } from './SortableSidebarItem.js';
8
8
  export { stopSortableDragPointerDown } from './stopSortableDragPointerDown.js';
9
- export { SidebarColorDot } from './SidebarColorDot.js';
9
+ export { SidebarMarkerDot } from './SidebarMarkerDot.js';
10
10
  export { SidebarBadge } from './SidebarBadge.js';
11
- export { sourceRow, METHOD_CLASSES, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS } from './sidebarItemClasses.js';
11
+ export { sourceRow, METHOD_CLASSES, methodBadgeClass, documentIconClass, statusDotVariant, statusDotClass, SIDEBAR_ITEM_BUTTON_CLASS, SIDEBAR_CHEVRON_BUTTON_CLASS, SIDEBAR_CHEVRON_ICON_CLASS, SIDEBAR_CHEVRON_SLOT_CLASS, SIDEBAR_CHEVRON_LABEL_OFFSET_CLASS } from './sidebarItemClasses.js';
12
12
  export { SidebarMethodBadge } from './SidebarMethodBadge.js';
13
13
  export { SidebarStatusDot } from './SidebarStatusDot.js';
14
14
  export { SidebarStatusMarker } from './SidebarStatusMarker.js';
@@ -18,5 +18,5 @@ export { SidebarFolderItem } from './SidebarFolderItem.js';
18
18
  export { SidebarRunItem } from './SidebarRunItem.js';
19
19
  export { SidebarHistoryItem } from './SidebarHistoryItem.js';
20
20
  export { SidebarEnvironmentItem } from './SidebarEnvironmentItem.js';
21
- export { SidebarTabGroupItem } from './SidebarTabGroupItem.js';
21
+ export { SidebarWorkspaceItem } from './SidebarWorkspaceItem.js';
22
22
  export { SidebarCommitItem } from './SidebarCommitItem.js';
@@ -4,6 +4,8 @@ import type { StatusDotVariant } from '../StatusDot/index.js';
4
4
  */
5
5
  /**
6
6
  * Tailwind classes for a sidebar source row (collection, folder, request, etc.).
7
+ * Uses left padding only so trailing hamburger menus align with section header
8
+ * Add/Erase actions (which sit at the sidebar body's `pr-2` inset).
7
9
  *
8
10
  * @param selected - Whether this row is the active selection.
9
11
  * @param compact - When true, uses tighter vertical padding for top-level list rows.
@@ -14,6 +16,21 @@ export declare function sourceRow(selected: boolean, compact?: boolean): string;
14
16
  * HTTP method color classes keyed by lowercase method name.
15
17
  */
16
18
  export declare const METHOD_CLASSES: Record<string, string>;
19
+ /**
20
+ * Returns Tailwind classes for an HTTP method badge in the sidebar.
21
+ *
22
+ * @param method - HTTP method string.
23
+ * @param methodColors - When false, uses neutral theme text instead of per-method colors.
24
+ * @returns Combined Tailwind class string for the method badge.
25
+ */
26
+ export declare function methodBadgeClass(method: string, methodColors?: boolean): string;
27
+ /**
28
+ * Returns Tailwind classes for a collection markdown document icon in the sidebar.
29
+ *
30
+ * @param methodColors - When false, uses neutral theme text instead of the doc-markdown accent.
31
+ * @returns Tailwind text color class for the document icon.
32
+ */
33
+ export declare function documentIconClass(methodColors?: boolean): string;
17
34
  /**
18
35
  * Status dot variant for an HTTP response code.
19
36
  *
@@ -1 +1 @@
1
- {"version":3,"file":"sidebarItemClasses.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/sidebarItemClasses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D;;GAEG;AAEH;;;;;;GAMG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,UAAQ,GAAG,MAAM,CAKpE;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQjD,CAAC;AAEF;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAMjE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,+HACwF,CAAC;AAE/H;;GAEG;AACH,eAAO,MAAM,yBAAyB,oVAC6S,CAAC;AAEpV;;;GAGG;AACH,eAAO,MAAM,4BAA4B,0JACgH,CAAC;AAE1J;;;GAGG;AACH,eAAO,MAAM,0BAA0B,cAAc,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,kEAC0B,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,kCAAkC,WAAW,CAAC"}
1
+ {"version":3,"file":"sidebarItemClasses.d.ts","sourceRoot":"","sources":["../../../src/components/SidebarItem/sidebarItemClasses.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAG9D;;GAEG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,OAAO,EAAE,OAAO,UAAQ,GAAG,MAAM,CAKpE;AAED;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAQjD,CAAC;AAEF;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,YAAY,UAAO,GAAG,MAAM,CAK5E;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,YAAY,UAAO,GAAG,MAAM,CAE7D;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,GAAG,gBAAgB,CAMjE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAErD;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB,+HACwF,CAAC;AAE/H;;GAEG;AACH,eAAO,MAAM,yBAAyB,oVAC6S,CAAC;AAEpV;;;GAGG;AACH,eAAO,MAAM,4BAA4B,0JACgH,CAAC;AAE1J;;;GAGG;AACH,eAAO,MAAM,0BAA0B,cAAc,CAAC;AAEtD;;;GAGG;AACH,eAAO,MAAM,0BAA0B,kEAC0B,CAAC;AAElE;;;GAGG;AACH,eAAO,MAAM,kCAAkC,WAAW,CAAC"}