@camstack/ui-library 1.2.322 → 1.2.323

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.
@@ -0,0 +1,19 @@
1
+ import { type HTMLAttributes, type JSX, type ReactNode } from "react";
2
+ export interface TabStripOverflowState {
3
+ readonly overflowLeft: boolean;
4
+ readonly overflowRight: boolean;
5
+ }
6
+ /** Scroll offsets and sizes — jsdom defaults are 0, so tests set these explicitly. */
7
+ export declare function readTabStripOverflow(el: HTMLDivElement): TabStripOverflowState;
8
+ interface TabsListScrollShellProps extends HTMLAttributes<HTMLDivElement> {
9
+ readonly activeTabKey?: string;
10
+ readonly listClassName: string;
11
+ readonly children?: ReactNode;
12
+ }
13
+ /**
14
+ * Horizontally scrollable tab strip with edge fades when tabs are hidden and,
15
+ * on fine-pointer devices, chevron buttons that scroll one tab at a time.
16
+ * Touch keeps native swipe — no chevrons on coarse pointers.
17
+ */
18
+ export declare function TabsListScrollShell({ activeTabKey, listClassName, className, children, ...props }: TabsListScrollShellProps): JSX.Element;
19
+ export {};
@@ -1,4 +1,4 @@
1
- import { type JSX, type ButtonHTMLAttributes, type HTMLAttributes } from "react";
1
+ import { type JSX, type ButtonHTMLAttributes, type HTMLAttributes, type ForwardRefExoticComponent, type RefAttributes } from "react";
2
2
  export type TabsAppearance = "underline" | "pills";
3
3
  interface TabsProps extends HTMLAttributes<HTMLDivElement> {
4
4
  value?: string;
@@ -33,7 +33,7 @@ export declare function TabsList({ className, ...props }: HTMLAttributes<HTMLDiv
33
33
  interface TabsTriggerProps extends ButtonHTMLAttributes<HTMLButtonElement> {
34
34
  value: string;
35
35
  }
36
- export declare function TabsTrigger({ value, className, ...props }: TabsTriggerProps): JSX.Element | null;
36
+ export declare const TabsTrigger: ForwardRefExoticComponent<TabsTriggerProps & RefAttributes<HTMLButtonElement>>;
37
37
  interface TabsContentProps extends HTMLAttributes<HTMLDivElement> {
38
38
  value: string;
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/ui-library",
3
- "version": "1.2.322",
3
+ "version": "1.2.323",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",