@sybilion/uilib 1.3.3 → 1.3.5

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.
@@ -15,8 +15,8 @@ function hasTabPanelContent(content) {
15
15
  return false;
16
16
  return true;
17
17
  }
18
- function PageTabs({ className, contentClassName, items, tabsListProps, ...props }) {
19
- return (jsxs(Tabs, { className: cn(S.root, className), variant: "link", ...props, children: [jsx(TabsList, { ...tabsListProps, className: cn(S.list, tabsListProps?.withPaddings && S.withPaddings), children: jsx(PageXScroll, { size: "sm", scrollbarClassName: S.scrollbar, children: items.map(item => (jsx(TabsTrigger, { value: item.value, children: item.label }, item.value))) }) }), items.map(item => hasTabPanelContent(item.content) ? (jsx(TabsContent, { value: item.value, className: cn(S.content, contentClassName), children: item.content }, item.value)) : null)] }));
18
+ function PageTabs({ className, contentClassName, innerClassName, scrollbarClassName, items, tabsListProps, ...props }) {
19
+ return (jsxs(Tabs, { className: cn(S.root, className), variant: "link", ...props, children: [jsx(TabsList, { ...tabsListProps, className: cn(S.list, tabsListProps?.withPaddings && S.withPaddings), children: jsx(PageXScroll, { size: "sm", scrollbarClassName: cn(S.scrollbar, scrollbarClassName), innerClassName: innerClassName, children: items.map(item => (jsx(TabsTrigger, { value: item.value, children: item.label }, item.value))) }) }), items.map(item => hasTabPanelContent(item.content) ? (jsx(TabsContent, { value: item.value, className: cn(S.content, contentClassName), children: item.content }, item.value)) : null)] }));
20
20
  }
21
21
 
22
22
  export { PageTabs };
@@ -1,5 +1,5 @@
1
1
  import { TabsListProps, TabsProps } from '#uilib/components/ui/Tabs';
2
- export declare function PageTabs({ className, contentClassName, items, tabsListProps, ...props }: {
2
+ export declare function PageTabs({ className, contentClassName, innerClassName, scrollbarClassName, items, tabsListProps, ...props }: {
3
3
  items: {
4
4
  value: string;
5
5
  label: string;
@@ -11,4 +11,6 @@ export declare function PageTabs({ className, contentClassName, items, tabsListP
11
11
  };
12
12
  } & TabsProps & {
13
13
  contentClassName?: string;
14
+ innerClassName?: string;
15
+ scrollbarClassName?: string;
14
16
  }): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sybilion/uilib",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "description": "Sybilion Design System — React UI components (Webpack + Stylus)",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -23,6 +23,8 @@ function hasTabPanelContent(content: React.ReactNode | undefined): boolean {
23
23
  export function PageTabs({
24
24
  className,
25
25
  contentClassName,
26
+ innerClassName,
27
+ scrollbarClassName,
26
28
  items,
27
29
  tabsListProps,
28
30
  ...props
@@ -32,14 +34,22 @@ export function PageTabs({
32
34
  fullWidth?: boolean;
33
35
  withPaddings?: boolean;
34
36
  };
35
- } & TabsProps & { contentClassName?: string }) {
37
+ } & TabsProps & {
38
+ contentClassName?: string;
39
+ innerClassName?: string;
40
+ scrollbarClassName?: string;
41
+ }) {
36
42
  return (
37
43
  <Tabs className={cn(S.root, className)} variant="link" {...props}>
38
44
  <TabsList
39
45
  {...tabsListProps}
40
46
  className={cn(S.list, tabsListProps?.withPaddings && S.withPaddings)}
41
47
  >
42
- <PageXScroll size="sm" scrollbarClassName={S.scrollbar}>
48
+ <PageXScroll
49
+ size="sm"
50
+ scrollbarClassName={cn(S.scrollbar, scrollbarClassName)}
51
+ innerClassName={innerClassName}
52
+ >
43
53
  {items.map(item => (
44
54
  <TabsTrigger value={item.value} key={item.value}>
45
55
  {item.label}