@telia/teddy 0.4.5 → 0.4.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/dist/components/flip-card/flip-card-back.cjs +2 -2
- package/dist/components/flip-card/flip-card-back.js +2 -2
- package/dist/components/scroll-area/scroll-area-root.d.ts +6 -0
- package/dist/components/tabs/index.cjs +12 -13
- package/dist/components/tabs/index.d.ts +112 -58
- package/dist/components/tabs/index.js +12 -13
- package/dist/components/tabs/tabs-content.d.ts +2 -0
- package/dist/components/tabs/tabs-root.d.ts +10 -0
- package/dist/components/tabs/tabs-scroll.cjs +1 -1
- package/dist/components/tabs/tabs-scroll.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,7 @@ const components_scrollArea_index = require("../scroll-area/index.cjs");
|
|
|
9
9
|
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
10
10
|
const BackContext = React.createContext({});
|
|
11
11
|
const Back = React.forwardRef(
|
|
12
|
-
({ className, variant, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
12
|
+
({ className, variant, bordered, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
13
13
|
const { flipped, backId, backRef } = React.useContext(components_flipCard_flipCardRoot.FlipContext);
|
|
14
14
|
const ref = utils_composeRefs.useComposedRefs(forwardRef, backRef);
|
|
15
15
|
const classesOuter = clsx(
|
|
@@ -20,7 +20,7 @@ const Back = React.forwardRef(
|
|
|
20
20
|
wrapperClassName
|
|
21
21
|
);
|
|
22
22
|
const classesInner = clsx([components_flipCard_flipCardRoot.styles[`${components_flipCard_flipCardRoot.rootClassName}__back-inner`]], className);
|
|
23
|
-
return /* @__PURE__ */ jsxRuntime.jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsx(components_card_index.Card, { variant, className: classesOuter, children: /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea, { viewPortClassName: components_flipCard_flipCardRoot.styles[`${components_flipCard_flipCardRoot.rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
23
|
+
return /* @__PURE__ */ jsxRuntime.jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsxRuntime.jsx(components_card_index.Card, { variant, bordered, className: classesOuter, children: /* @__PURE__ */ jsxRuntime.jsx(components_scrollArea_index.ScrollArea, { viewPortClassName: components_flipCard_flipCardRoot.styles[`${components_flipCard_flipCardRoot.rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
24
24
|
components_card_index.Card,
|
|
25
25
|
{
|
|
26
26
|
id: backId,
|
|
@@ -7,7 +7,7 @@ import { ScrollArea } from "../scroll-area/index.js";
|
|
|
7
7
|
import { useComposedRefs } from "../../utils/composeRefs.js";
|
|
8
8
|
const BackContext = React__default.createContext({});
|
|
9
9
|
const Back = React__default.forwardRef(
|
|
10
|
-
({ className, variant, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
10
|
+
({ className, variant, bordered, children, wrapperClassName, "aria-label": ariaLabel, ...props }, forwardRef) => {
|
|
11
11
|
const { flipped, backId, backRef } = useContext(FlipContext);
|
|
12
12
|
const ref = useComposedRefs(forwardRef, backRef);
|
|
13
13
|
const classesOuter = clsx(
|
|
@@ -18,7 +18,7 @@ const Back = React__default.forwardRef(
|
|
|
18
18
|
wrapperClassName
|
|
19
19
|
);
|
|
20
20
|
const classesInner = clsx([styles[`${rootClassName}__back-inner`]], className);
|
|
21
|
-
return /* @__PURE__ */ jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsx(Card, { variant, className: classesOuter, children: /* @__PURE__ */ jsx(ScrollArea, { viewPortClassName: styles[`${rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsx(
|
|
21
|
+
return /* @__PURE__ */ jsx(BackContext.Provider, { value: { variant }, children: /* @__PURE__ */ jsx(Card, { variant, bordered, className: classesOuter, children: /* @__PURE__ */ jsx(ScrollArea, { viewPortClassName: styles[`${rootClassName}__scroll-area-view-port`], children: /* @__PURE__ */ jsx(
|
|
22
22
|
Card,
|
|
23
23
|
{
|
|
24
24
|
id: backId,
|
|
@@ -10,6 +10,9 @@ export type RootProps = React.ComponentPropsWithoutRef<typeof ScrollAreaPrimitiv
|
|
|
10
10
|
* - `hidden`: The scrollbar will not be visible
|
|
11
11
|
*/
|
|
12
12
|
variant?: Variant | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* The scroll behavior of the scroll area
|
|
15
|
+
*/
|
|
13
16
|
scrollBehavior?: 'smooth' | 'auto';
|
|
14
17
|
/**
|
|
15
18
|
* To style the viewport, viewport is the inner container of the scroll area
|
|
@@ -38,6 +41,9 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<ScrollAreaPrimit
|
|
|
38
41
|
* - `hidden`: The scrollbar will not be visible
|
|
39
42
|
*/
|
|
40
43
|
variant?: Variant | undefined;
|
|
44
|
+
/**
|
|
45
|
+
* The scroll behavior of the scroll area
|
|
46
|
+
*/
|
|
41
47
|
scrollBehavior?: "auto" | "smooth" | undefined;
|
|
42
48
|
/**
|
|
43
49
|
* To style the viewport, viewport is the inner container of the scroll area
|
|
@@ -6,17 +6,16 @@ const components_tabs_tabsTrigger = require("./tabs-trigger.cjs");
|
|
|
6
6
|
const components_tabs_tabsContent = require("./tabs-content.cjs");
|
|
7
7
|
const components_tabs_tabsScroll = require("./tabs-scroll.cjs");
|
|
8
8
|
const components_tabs_tabsScrollButton = require("./tabs-scroll-button.cjs");
|
|
9
|
-
components_tabs_tabsRoot.Root
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
});
|
|
9
|
+
const Tabs = components_tabs_tabsRoot.Root;
|
|
10
|
+
Tabs.displayName = "Tabs";
|
|
11
|
+
Tabs.List = components_tabs_tabsList.List;
|
|
12
|
+
Tabs.List.displayName = "Tabs.List";
|
|
13
|
+
Tabs.Trigger = components_tabs_tabsTrigger.Trigger;
|
|
14
|
+
Tabs.Trigger.displayName = "Tabs.Trigger";
|
|
15
|
+
Tabs.Content = components_tabs_tabsContent.Content;
|
|
16
|
+
Tabs.Content.displayName = "Tabs.Content";
|
|
17
|
+
Tabs.Scroll = components_tabs_tabsScroll.Scroll;
|
|
18
|
+
Tabs.Scroll.displayName = "Tabs.Scroll";
|
|
19
|
+
Tabs.ScrollButton = components_tabs_tabsScrollButton.ScrollButton;
|
|
20
|
+
Tabs.ScrollButton.displayName = "Tabs.ScrollButton";
|
|
22
21
|
exports.Tabs = Tabs;
|
|
@@ -1,11 +1,51 @@
|
|
|
1
1
|
import { RootProps } from './tabs-root';
|
|
2
|
-
import { ListProps } from './tabs-list';
|
|
3
|
-
import { TriggerProps } from './tabs-trigger';
|
|
4
|
-
import { ContentProps } from './tabs-content';
|
|
5
|
-
import { ScrollProps } from './tabs-scroll';
|
|
6
|
-
import { ScrollButtonProps } from './tabs-scroll-button';
|
|
2
|
+
import { List, ListProps } from './tabs-list';
|
|
3
|
+
import { Trigger, TriggerProps } from './tabs-trigger';
|
|
4
|
+
import { Content, ContentProps } from './tabs-content';
|
|
5
|
+
import { Scroll, ScrollProps } from './tabs-scroll';
|
|
6
|
+
import { ScrollButton, ScrollButtonProps } from './tabs-scroll-button';
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
type TabsProps = {
|
|
9
|
+
Root: RootProps;
|
|
10
|
+
List: ListProps;
|
|
11
|
+
Trigger: TriggerProps;
|
|
12
|
+
Content: ContentProps;
|
|
13
|
+
Scroll: ScrollProps;
|
|
14
|
+
ScrollButton: ScrollButtonProps;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Tabs organize content into separate views where only one view can be visible at a time.
|
|
18
|
+
* They allow users to quickly navigate between related sections of content.
|
|
19
|
+
*
|
|
20
|
+
* @component
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* // Basic usage
|
|
24
|
+
* <Tabs defaultValue="tab1">
|
|
25
|
+
* <Tabs.List>
|
|
26
|
+
* <Tabs.Trigger value="tab1">First Tab</Tabs.Trigger>
|
|
27
|
+
* <Tabs.Trigger value="tab2">Second Tab</Tabs.Trigger>
|
|
28
|
+
* </Tabs.List>
|
|
29
|
+
* <Tabs.Content value="tab1">Content for first tab</Tabs.Content>
|
|
30
|
+
* <Tabs.Content value="tab2">Content for second tab</Tabs.Content>
|
|
31
|
+
* </Tabs>
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* // With scroll buttons, only needed if you need to override the default scrollbar behavior
|
|
35
|
+
* <Tabs>
|
|
36
|
+
* <Tabs.Scroll>
|
|
37
|
+
* <Tabs.ScrollButton direction="left" />
|
|
38
|
+
* <Tabs.List>
|
|
39
|
+
* <Tabs.Trigger value="tab1">First Tab</Tabs.Trigger>
|
|
40
|
+
* <Tabs.Trigger value="tab2">Second Tab</Tabs.Trigger>
|
|
41
|
+
* </Tabs.List>
|
|
42
|
+
* <Tabs.ScrollButton direction="right" />
|
|
43
|
+
* </Tabs.Scroll>
|
|
44
|
+
* <Tabs.Content value="tab1">Content for first tab</Tabs.Content>
|
|
45
|
+
* <Tabs.Content value="tab2">Content for second tab</Tabs.Content>
|
|
46
|
+
* </Tabs>
|
|
47
|
+
*/
|
|
48
|
+
declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<import('@radix-ui/react-tabs').TabsProps & import('react').RefAttributes<HTMLDivElement>, "ref">, "defaultValue" | "value" | "onValueChange" | "activationMode"> & {
|
|
9
49
|
value?: string | undefined;
|
|
10
50
|
onValueChange?: ((value: string) => void) | undefined;
|
|
11
51
|
defaultValue?: string | undefined;
|
|
@@ -13,56 +53,70 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<i
|
|
|
13
53
|
fullWidth?: boolean | undefined;
|
|
14
54
|
snapCenter?: boolean | undefined;
|
|
15
55
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
56
|
+
/**
|
|
57
|
+
* Container for the tab triggers. Provides keyboard navigation and proper ARIA roles.
|
|
58
|
+
*
|
|
59
|
+
* @component
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* <Tabs.List>
|
|
63
|
+
* <Tabs.Trigger value="tab1">First Tab</Tabs.Trigger>
|
|
64
|
+
* <Tabs.Trigger value="tab2">Second Tab</Tabs.Trigger>
|
|
65
|
+
* </Tabs.List>
|
|
66
|
+
*/
|
|
67
|
+
List: typeof List;
|
|
68
|
+
/**
|
|
69
|
+
* The clickable element that toggles the visibility of the corresponding content.
|
|
70
|
+
* Must have a unique value prop that matches its paired Content component.
|
|
71
|
+
*
|
|
72
|
+
* @component
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* <Tabs.Trigger value="tab1">First Tab</Tabs.Trigger>
|
|
76
|
+
*/
|
|
77
|
+
Trigger: typeof Trigger;
|
|
78
|
+
/**
|
|
79
|
+
* The panel that contains the content for each tab.
|
|
80
|
+
* The value prop must match the corresponding Trigger.
|
|
81
|
+
*
|
|
82
|
+
* @component
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* <Tabs.Content value="tab1">Content for first tab</Tabs.Content>
|
|
86
|
+
*/
|
|
87
|
+
Content: typeof Content;
|
|
88
|
+
/**
|
|
89
|
+
* Container that provides horizontal scrolling for the tabs list when it overflows.
|
|
90
|
+
*
|
|
91
|
+
* @component
|
|
92
|
+
*
|
|
93
|
+
* @example
|
|
94
|
+
* <Tabs.Scroll>
|
|
95
|
+
* <Tabs.ScrollButton direction="left" />
|
|
96
|
+
* <Tabs.List>
|
|
97
|
+
* <Tabs.Trigger value="tab1">First Tab</Tabs.Trigger>
|
|
98
|
+
* <Tabs.Trigger value="tab2">Second Tab</Tabs.Trigger>
|
|
99
|
+
* </Tabs.List>
|
|
100
|
+
* <Tabs.ScrollButton direction="right" />
|
|
101
|
+
* </Tabs.Scroll>
|
|
102
|
+
*/
|
|
103
|
+
Scroll: typeof Scroll;
|
|
104
|
+
/**
|
|
105
|
+
* Navigation button for scrolling through the tabs list when it overflows.
|
|
106
|
+
*
|
|
107
|
+
* @component
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* <Tabs.Scroll>
|
|
111
|
+
* <Tabs.ScrollButton direction="left" />
|
|
112
|
+
* <Tabs.List>
|
|
113
|
+
* <Tabs.Trigger value="tab1">First Tab</Tabs.Trigger>
|
|
114
|
+
* <Tabs.Trigger value="tab2">Second Tab</Tabs.Trigger>
|
|
115
|
+
* </Tabs.List>
|
|
116
|
+
* <Tabs.ScrollButton direction="right" />
|
|
117
|
+
* </Tabs.Scroll>
|
|
118
|
+
*/
|
|
119
|
+
ScrollButton: typeof ScrollButton;
|
|
68
120
|
};
|
|
121
|
+
export { Tabs };
|
|
122
|
+
export type { TabsProps };
|
|
@@ -4,19 +4,18 @@ import { Trigger } from "./tabs-trigger.js";
|
|
|
4
4
|
import { Content } from "./tabs-content.js";
|
|
5
5
|
import { Scroll } from "./tabs-scroll.js";
|
|
6
6
|
import { ScrollButton } from "./tabs-scroll-button.js";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
});
|
|
7
|
+
const Tabs = Root;
|
|
8
|
+
Tabs.displayName = "Tabs";
|
|
9
|
+
Tabs.List = List;
|
|
10
|
+
Tabs.List.displayName = "Tabs.List";
|
|
11
|
+
Tabs.Trigger = Trigger;
|
|
12
|
+
Tabs.Trigger.displayName = "Tabs.Trigger";
|
|
13
|
+
Tabs.Content = Content;
|
|
14
|
+
Tabs.Content.displayName = "Tabs.Content";
|
|
15
|
+
Tabs.Scroll = Scroll;
|
|
16
|
+
Tabs.Scroll.displayName = "Tabs.Scroll";
|
|
17
|
+
Tabs.ScrollButton = ScrollButton;
|
|
18
|
+
Tabs.ScrollButton.displayName = "Tabs.ScrollButton";
|
|
20
19
|
export {
|
|
21
20
|
Tabs
|
|
22
21
|
};
|
|
@@ -2,9 +2,11 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
4
|
export type ContentProps = Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive.Content>, 'value'> & {
|
|
5
|
+
/** A unique value that associates the content with a trigger. */
|
|
5
6
|
value: TabsPrimitive.TabsContentProps['value'];
|
|
6
7
|
};
|
|
7
8
|
/** Contains the content associated with each trigger.*/
|
|
8
9
|
export declare const Content: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref">, "value"> & {
|
|
10
|
+
/** A unique value that associates the content with a trigger. */
|
|
9
11
|
value: TabsPrimitive.TabsContentProps['value'];
|
|
10
12
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -2,6 +2,9 @@ import { default as React } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
4
4
|
export declare const rootClassName = "teddy-tabs";
|
|
5
|
+
/**
|
|
6
|
+
* The props for the Tabs Root component.
|
|
7
|
+
*/
|
|
5
8
|
export type RootProps = Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive.Root>, 'value' | 'defaultValue' | 'onValueChange' | 'activationMode'> & {
|
|
6
9
|
/** The controlled value of the tab to activate. Should be used in conjunction with onValueChange. */
|
|
7
10
|
value?: TabsPrimitive.TabsProps['value'];
|
|
@@ -9,6 +12,7 @@ export type RootProps = Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive
|
|
|
9
12
|
onValueChange?: TabsPrimitive.TabsProps['onValueChange'];
|
|
10
13
|
/** The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. */
|
|
11
14
|
defaultValue?: TabsPrimitive.TabsProps['defaultValue'];
|
|
15
|
+
/** Controls when tabs are activated. 'automatic' activates on focus, 'manual' activates on click. */
|
|
12
16
|
activationMode?: TabsPrimitive.TabsProps['activationMode'];
|
|
13
17
|
/** Makes the tabs span the full width of the container */
|
|
14
18
|
fullWidth?: boolean;
|
|
@@ -18,10 +22,15 @@ export type RootProps = Omit<React.ComponentPropsWithoutRef<typeof TabsPrimitive
|
|
|
18
22
|
snapCenter?: boolean;
|
|
19
23
|
};
|
|
20
24
|
type RootContextType = {
|
|
25
|
+
/** The currently active tab element */
|
|
21
26
|
activeElement: HTMLButtonElement | null;
|
|
27
|
+
/** Function to set the active tab element */
|
|
22
28
|
setActiveElement: React.Dispatch<React.SetStateAction<HTMLButtonElement | null>>;
|
|
29
|
+
/** Reference to the tabs list element */
|
|
23
30
|
listElement: React.RefObject<HTMLDivElement>;
|
|
31
|
+
/** Whether to snap the tab to center on click */
|
|
24
32
|
snapCenter: boolean;
|
|
33
|
+
/** The current tab value */
|
|
25
34
|
value: string | undefined;
|
|
26
35
|
};
|
|
27
36
|
export declare const RootContext: React.Context<RootContextType | undefined>;
|
|
@@ -32,6 +41,7 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<TabsPrimiti
|
|
|
32
41
|
onValueChange?: TabsPrimitive.TabsProps['onValueChange'];
|
|
33
42
|
/** The value of the tab that should be active when initially rendered. Use when you do not need to control the state of the tabs. */
|
|
34
43
|
defaultValue?: TabsPrimitive.TabsProps['defaultValue'];
|
|
44
|
+
/** Controls when tabs are activated. 'automatic' activates on focus, 'manual' activates on click. */
|
|
35
45
|
activationMode?: TabsPrimitive.TabsProps['activationMode'];
|
|
36
46
|
/** Makes the tabs span the full width of the container */
|
|
37
47
|
fullWidth?: boolean | undefined;
|
|
@@ -7,7 +7,7 @@ const components_tabs_tabsScrollButton = require("./tabs-scroll-button.cjs");
|
|
|
7
7
|
const ScrollContext = React.createContext(false);
|
|
8
8
|
const Scroll = React.forwardRef(
|
|
9
9
|
({ children, ...props }, forwardRef) => {
|
|
10
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsxs(components_scrollArea_index.ScrollArea, { ...props, ref: forwardRef, children: [
|
|
10
|
+
return /* @__PURE__ */ jsxRuntime.jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsxs(components_scrollArea_index.ScrollArea, { variant: "button", ...props, ref: forwardRef, children: [
|
|
11
11
|
/* @__PURE__ */ jsxRuntime.jsx(components_tabs_tabsScrollButton.ScrollButton, { direction: "left" }),
|
|
12
12
|
/* @__PURE__ */ jsxRuntime.jsx(components_tabs_tabsScrollButton.ScrollButton, { direction: "right" }),
|
|
13
13
|
children
|
|
@@ -5,7 +5,7 @@ import { ScrollButton } from "./tabs-scroll-button.js";
|
|
|
5
5
|
const ScrollContext = React__default.createContext(false);
|
|
6
6
|
const Scroll = React__default.forwardRef(
|
|
7
7
|
({ children, ...props }, forwardRef) => {
|
|
8
|
-
return /* @__PURE__ */ jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxs(ScrollArea, { ...props, ref: forwardRef, children: [
|
|
8
|
+
return /* @__PURE__ */ jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxs(ScrollArea, { variant: "button", ...props, ref: forwardRef, children: [
|
|
9
9
|
/* @__PURE__ */ jsx(ScrollButton, { direction: "left" }),
|
|
10
10
|
/* @__PURE__ */ jsx(ScrollButton, { direction: "right" }),
|
|
11
11
|
children
|