@harborclient/sdk 1.2.6 → 1.2.7
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.
- package/CHANGELOG.md +4 -0
- package/dist/components/SegmentedTabs/index.d.ts.map +1 -1
- package/dist/components/SegmentedTabs/index.js +2 -2
- package/dist/components/classes.d.ts +1 -1
- package/dist/components/classes.d.ts.map +1 -1
- package/dist/components/classes.js +1 -1
- package/dist/styles.css +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## 1.2.7 - 2026-07-25
|
|
8
|
+
|
|
9
|
+
- Update documentation deployment workflow and enhance UI components. (`a82232bd`)
|
|
10
|
+
|
|
7
11
|
## 1.2.5 - 2026-07-25
|
|
8
12
|
|
|
9
13
|
- feat(CodeEditor): support diagnostic actions in lint hover tooltips. (`40c83c3`)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedTabs/index.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,wBAAwB,EAAE,GAAG,EAAiB,MAAM,OAAO,CAAC;AAM1E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAE1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,YAAY,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAgD1C,UAAU,KAAK,CAAC,CAAC,SAAS,MAAM,CAAE,SAAQ,IAAI,CAC5C,wBAAwB,CAAC,KAAK,CAAC,EAC/B,UAAU,GAAG,WAAW,GAAG,YAAY,GAAG,UAAU,CACrD;IACC;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE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AC,OAAO,CA4PxB"}
|
|
@@ -138,7 +138,7 @@ export function SegmentedTabs({ tabs, value: valueProp, onChange: onChangeProp,
|
|
|
138
138
|
}
|
|
139
139
|
}, [editable, onChange, value, visibleSet, visibleTabs]);
|
|
140
140
|
const outerClassName = cn('hc-segmented-tabs', segmentGroup, 'items-start gap-1', fullWidth ? 'min-w-0 flex-1' : '', className);
|
|
141
|
-
const tabListClassName = cn('hc-segmented-tabs-list flex
|
|
141
|
+
const tabListClassName = cn('hc-segmented-tabs-list flex min-w-0 flex-1 flex-wrap items-center gap-y-2');
|
|
142
142
|
const isRadiogroup = pattern === 'radiogroup';
|
|
143
143
|
/**
|
|
144
144
|
* Moves selection with arrow, Home, and End keys and focuses the newly
|
|
@@ -191,7 +191,7 @@ export function SegmentedTabs({ tabs, value: valueProp, onChange: onChangeProp,
|
|
|
191
191
|
}, [visibleTabs, value, onChange, isRadiogroup, context, getPanelId]);
|
|
192
192
|
return (_jsxs("div", { ...props, className: outerClassName, children: [_jsx("div", { className: tabListClassName, role: isRadiogroup ? 'radiogroup' : 'tablist', "aria-label": ariaLabel, ...(!isRadiogroup ? { 'aria-orientation': 'horizontal' } : {}), onKeyDown: handleKeyDown, children: visibleTabs.map((tab) => {
|
|
193
193
|
const selected = value === tab.value;
|
|
194
|
-
const tabClassName =
|
|
194
|
+
const tabClassName = cn('hc-segmented-tabs-tab flex items-center justify-center whitespace-nowrap', segment(selected), fullWidth ? 'flex-1' : 'shrink-0');
|
|
195
195
|
return (_jsx("button", { ref: (element) => {
|
|
196
196
|
if (element)
|
|
197
197
|
tabRefs.current.set(tab.value, element);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared macOS-style Tailwind class strings for SDK UI components.
|
|
3
3
|
*/
|
|
4
|
-
export declare const segmentGroup = "
|
|
4
|
+
export declare const segmentGroup = "flex min-w-0 max-w-full w-full p-3 border-b border-separator shadow-[inset_0_0.5px_1px_rgba(0,0,0,0.06)] app-no-drag";
|
|
5
5
|
/**
|
|
6
6
|
* Tailwind classes for a segmented control button.
|
|
7
7
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../src/components/classes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"classes.d.ts","sourceRoot":"","sources":["../../src/components/classes.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,eAAO,MAAM,YAAY,yHAC+F,CAAC;AAKzH;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAI/C;AAED;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,MAAM,EAAE,OAAO,GAAG,MAAM,CAI/C"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Shared macOS-style Tailwind class strings for SDK UI components.
|
|
3
3
|
*/
|
|
4
|
-
export const segmentGroup = '
|
|
4
|
+
export const segmentGroup = 'flex min-w-0 max-w-full w-full p-3 border-b border-separator shadow-[inset_0_0.5px_1px_rgba(0,0,0,0.06)] app-no-drag';
|
|
5
5
|
const segmentFocusVisible = 'focus-visible:outline focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-accent';
|
|
6
6
|
/**
|
|
7
7
|
* Tailwind classes for a segmented control button.
|
package/dist/styles.css
CHANGED
|
@@ -79,6 +79,20 @@
|
|
|
79
79
|
scrollbar-gutter: stable;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
+
/**
|
|
83
|
+
* SegmentedTabs must size to the host width, not the one-line sum of its tabs.
|
|
84
|
+
* Without this, horizontal scroll parents expand to max-content and flex-wrap
|
|
85
|
+
* never triggers — tabs clip instead of wrapping to another row.
|
|
86
|
+
*/
|
|
87
|
+
.hc-segmented-tabs {
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
width: 100%;
|
|
90
|
+
max-width: 100%;
|
|
91
|
+
min-width: 0;
|
|
92
|
+
contain: inline-size;
|
|
93
|
+
overflow-x: clip;
|
|
94
|
+
}
|
|
95
|
+
|
|
82
96
|
/**
|
|
83
97
|
* Compact circular new-tab control in horizontal scroll mode. Lives in SDK styles
|
|
84
98
|
* so the rule overrides Tailwind rounded utilities on the same element.
|