@telia/teddy 0.0.58 → 0.0.60
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/card/card-button.cjs +1 -1
- package/dist/components/card/card-button.d.ts +3 -29
- package/dist/components/card/card-button.js +1 -1
- package/dist/components/card/index.d.ts +1 -25
- package/dist/components/icon/icon.cjs +9 -9
- package/dist/components/icon/icon.js +9 -9
- package/dist/components/navigation-menu/global-navigation/utils.cjs +1 -1
- package/dist/components/navigation-menu/global-navigation/utils.d.ts +2 -2
- package/dist/components/navigation-menu/global-navigation/utils.js +1 -1
- package/dist/components/notabene/notabene-root.cjs +16 -5
- package/dist/components/notabene/notabene-root.d.ts +2 -2
- package/dist/components/notabene/notabene-root.js +16 -5
- package/dist/components/scroll-area/scroll-area-bar.cjs +8 -8
- package/dist/components/scroll-area/scroll-area-bar.js +8 -8
- package/dist/components/tabs/tabs-root.cjs +5 -5
- package/dist/components/tabs/tabs-root.js +5 -5
- package/dist/components/tabs/tabs-scroll.cjs +2 -5
- package/dist/components/tabs/tabs-scroll.js +2 -5
- package/dist/style.css +193 -209
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ function getButtonVariant(variant) {
|
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
const Button = React.forwardRef(
|
|
18
|
-
({ className, iconOnly
|
|
18
|
+
({ className, iconOnly, ...props }, forwardRef) => {
|
|
19
19
|
const context = React.useContext(components_card_card.RootContext);
|
|
20
20
|
const classes = clsx(
|
|
21
21
|
[components_card_card.styles[`${components_card_card.rootClassName}__button`]],
|
|
@@ -1,35 +1,9 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonProps as PrimitiveButtonProps } from '../button';
|
|
3
3
|
|
|
4
|
-
export type ButtonProps =
|
|
5
|
-
variant?: React.ComponentPropsWithoutRef<typeof PrimitiveButton>['variant'];
|
|
6
|
-
};
|
|
4
|
+
export type ButtonProps = PrimitiveButtonProps;
|
|
7
5
|
/**
|
|
8
6
|
* The button element is used when you want a trigger in the card
|
|
9
7
|
* When this card button element is used, the entire card is clickable
|
|
10
8
|
*/
|
|
11
|
-
export declare const Button: React.ForwardRefExoticComponent<
|
|
12
|
-
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
13
|
-
} & {
|
|
14
|
-
asChild?: boolean | undefined;
|
|
15
|
-
loading?: boolean | undefined;
|
|
16
|
-
fullWidth?: boolean | undefined;
|
|
17
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
18
|
-
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
19
|
-
} & {
|
|
20
|
-
iconOnly: true;
|
|
21
|
-
"aria-label": string;
|
|
22
|
-
} & React.RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
|
|
23
|
-
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
24
|
-
} & {
|
|
25
|
-
asChild?: boolean | undefined;
|
|
26
|
-
loading?: boolean | undefined;
|
|
27
|
-
fullWidth?: boolean | undefined;
|
|
28
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
29
|
-
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
30
|
-
} & {
|
|
31
|
-
iconOnly?: false | undefined;
|
|
32
|
-
"aria-label"?: string | undefined;
|
|
33
|
-
} & React.RefAttributes<HTMLButtonElement>, "ref">, "variant"> & {
|
|
34
|
-
variant?: React.ComponentPropsWithoutRef<typeof PrimitiveButton>['variant'];
|
|
35
|
-
} & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
export declare const Button: React.ForwardRefExoticComponent<PrimitiveButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -13,7 +13,7 @@ function getButtonVariant(variant) {
|
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
const Button = React__default.forwardRef(
|
|
16
|
-
({ className, iconOnly
|
|
16
|
+
({ className, iconOnly, ...props }, forwardRef) => {
|
|
17
17
|
const context = React__default.useContext(RootContext);
|
|
18
18
|
const classes = clsx(
|
|
19
19
|
[styles[`${rootClassName}__button`]],
|
|
@@ -10,31 +10,7 @@ import { FooterProps } from './card-footer';
|
|
|
10
10
|
|
|
11
11
|
export declare const Card: import('react').ForwardRefExoticComponent<RootProps & import('react').RefAttributes<HTMLDivElement>> & {
|
|
12
12
|
Heading: import('react').ForwardRefExoticComponent<HeadingProps & import('react').RefAttributes<HTMLHeadingElement>>;
|
|
13
|
-
Button: import('react').ForwardRefExoticComponent<
|
|
14
|
-
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
15
|
-
} & {
|
|
16
|
-
asChild?: boolean | undefined;
|
|
17
|
-
loading?: boolean | undefined;
|
|
18
|
-
fullWidth?: boolean | undefined;
|
|
19
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
21
|
-
} & {
|
|
22
|
-
iconOnly: true;
|
|
23
|
-
"aria-label": string;
|
|
24
|
-
} & import('react').RefAttributes<HTMLButtonElement>, "ref"> | Omit<Omit<import('react').ButtonHTMLAttributes<HTMLButtonElement>, "aria-label"> & import('../../utils/generate-styling/flex').FlexChildren & import('../../utils/generate-styling/grid').GridChildren & import('../../utils/generate-styling/position').PositionProps & import('../../utils/generate-styling/inset').InsetProps & import('../../utils/generate-styling/margin').MarginProps & import('../../utils/generate-styling/padding').PaddingProps & import('../../utils/generate-styling/width').WidthProps & import('../../utils/generate-styling/height').HeightProps & import('../../utils/generate-styling/color').ColorProps & {
|
|
25
|
-
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
26
|
-
} & {
|
|
27
|
-
asChild?: boolean | undefined;
|
|
28
|
-
loading?: boolean | undefined;
|
|
29
|
-
fullWidth?: boolean | undefined;
|
|
30
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
-
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
32
|
-
} & {
|
|
33
|
-
iconOnly?: false | undefined;
|
|
34
|
-
"aria-label"?: string | undefined;
|
|
35
|
-
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "variant"> & {
|
|
36
|
-
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
37
|
-
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
13
|
+
Button: import('react').ForwardRefExoticComponent<import('..').ButtonProps & import('react').RefAttributes<HTMLButtonElement>>;
|
|
38
14
|
Content: import('react').ForwardRefExoticComponent<ContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
15
|
Illustration: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
40
16
|
inset?: "all" | "top" | "bottom" | "right" | "left" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "top-right-left" | "bottom-left-right" | "top-bottom" | "left-right" | undefined;
|
|
@@ -4,15 +4,15 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const iconsHref = require("../../assets/sprite.269ba410-teddy.svg");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const styles = {
|
|
7
|
-
"teddy-icon": "_teddy-
|
|
8
|
-
"teddy-icon--font": "_teddy-icon--
|
|
9
|
-
"teddy-icon--xxs": "_teddy-icon--
|
|
10
|
-
"teddy-icon--xs": "_teddy-icon--
|
|
11
|
-
"teddy-icon--sm": "_teddy-icon--
|
|
12
|
-
"teddy-icon--md": "_teddy-icon--
|
|
13
|
-
"teddy-icon--lg": "_teddy-icon--
|
|
14
|
-
"teddy-icon--xl": "_teddy-icon--
|
|
15
|
-
"teddy-icon-with-children": "_teddy-icon-with-
|
|
7
|
+
"teddy-icon": "_teddy-icon_1ur3a_2",
|
|
8
|
+
"teddy-icon--font": "_teddy-icon--font_1ur3a_8",
|
|
9
|
+
"teddy-icon--xxs": "_teddy-icon--xxs_1ur3a_12",
|
|
10
|
+
"teddy-icon--xs": "_teddy-icon--xs_1ur3a_16",
|
|
11
|
+
"teddy-icon--sm": "_teddy-icon--sm_1ur3a_20",
|
|
12
|
+
"teddy-icon--md": "_teddy-icon--md_1ur3a_24",
|
|
13
|
+
"teddy-icon--lg": "_teddy-icon--lg_1ur3a_28",
|
|
14
|
+
"teddy-icon--xl": "_teddy-icon--xl_1ur3a_32",
|
|
15
|
+
"teddy-icon-with-children": "_teddy-icon-with-children_1ur3a_36"
|
|
16
16
|
};
|
|
17
17
|
const rootClassName = "teddy-icon";
|
|
18
18
|
const rootClassNameWithChildren = `${rootClassName}-with-children`;
|
|
@@ -2,15 +2,15 @@ import { jsxs, jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import iconsHref from "../../assets/sprite.269ba410-teddy.svg";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
const styles = {
|
|
5
|
-
"teddy-icon": "_teddy-
|
|
6
|
-
"teddy-icon--font": "_teddy-icon--
|
|
7
|
-
"teddy-icon--xxs": "_teddy-icon--
|
|
8
|
-
"teddy-icon--xs": "_teddy-icon--
|
|
9
|
-
"teddy-icon--sm": "_teddy-icon--
|
|
10
|
-
"teddy-icon--md": "_teddy-icon--
|
|
11
|
-
"teddy-icon--lg": "_teddy-icon--
|
|
12
|
-
"teddy-icon--xl": "_teddy-icon--
|
|
13
|
-
"teddy-icon-with-children": "_teddy-icon-with-
|
|
5
|
+
"teddy-icon": "_teddy-icon_1ur3a_2",
|
|
6
|
+
"teddy-icon--font": "_teddy-icon--font_1ur3a_8",
|
|
7
|
+
"teddy-icon--xxs": "_teddy-icon--xxs_1ur3a_12",
|
|
8
|
+
"teddy-icon--xs": "_teddy-icon--xs_1ur3a_16",
|
|
9
|
+
"teddy-icon--sm": "_teddy-icon--sm_1ur3a_20",
|
|
10
|
+
"teddy-icon--md": "_teddy-icon--md_1ur3a_24",
|
|
11
|
+
"teddy-icon--lg": "_teddy-icon--lg_1ur3a_28",
|
|
12
|
+
"teddy-icon--xl": "_teddy-icon--xl_1ur3a_32",
|
|
13
|
+
"teddy-icon-with-children": "_teddy-icon-with-children_1ur3a_36"
|
|
14
14
|
};
|
|
15
15
|
const rootClassName = "teddy-icon";
|
|
16
16
|
const rootClassNameWithChildren = `${rootClassName}-with-children`;
|
|
@@ -23,7 +23,7 @@ export declare const MY_PAGE_LINKS: {
|
|
|
23
23
|
readonly appKey: "my-pages";
|
|
24
24
|
readonly links: [{
|
|
25
25
|
readonly name: "Hjem";
|
|
26
|
-
readonly link: "/minside";
|
|
26
|
+
readonly link: "/minside/hjem";
|
|
27
27
|
readonly appKey: "my-pages";
|
|
28
28
|
readonly icon: "home";
|
|
29
29
|
}, {
|
|
@@ -89,7 +89,7 @@ export declare const LOGGED_IN_LINKS: [{
|
|
|
89
89
|
readonly appKey: "my-pages";
|
|
90
90
|
readonly links: [{
|
|
91
91
|
readonly name: "Hjem";
|
|
92
|
-
readonly link: "/minside";
|
|
92
|
+
readonly link: "/minside/hjem";
|
|
93
93
|
readonly appKey: "my-pages";
|
|
94
94
|
readonly icon: "home";
|
|
95
95
|
}, {
|
|
@@ -3,17 +3,28 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
|
-
const
|
|
6
|
+
const components_flex_flex = require("../flex/flex.cjs");
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-notabene": "_teddy-
|
|
9
|
-
"teddy-notabene__icon": "_teddy-
|
|
10
|
-
"teddy-notabene__heading": "_teddy-
|
|
8
|
+
"teddy-notabene": "_teddy-notabene_78ui9_1",
|
|
9
|
+
"teddy-notabene__icon": "_teddy-notabene__icon_78ui9_5",
|
|
10
|
+
"teddy-notabene__heading": "_teddy-notabene__heading_78ui9_5"
|
|
11
11
|
};
|
|
12
12
|
const rootClassName = "teddy-notabene";
|
|
13
13
|
const Root = React.forwardRef(
|
|
14
14
|
({ children, className, ...props }, forwardRef) => {
|
|
15
15
|
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
16
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
16
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
17
|
+
components_flex_flex.Flex,
|
|
18
|
+
{
|
|
19
|
+
gap: { sm: "150", md: "300" },
|
|
20
|
+
direction: { sm: "column", md: "row" },
|
|
21
|
+
p: { sm: "300", md: "400" },
|
|
22
|
+
...props,
|
|
23
|
+
ref: forwardRef,
|
|
24
|
+
className: classes,
|
|
25
|
+
children
|
|
26
|
+
}
|
|
27
|
+
);
|
|
17
28
|
}
|
|
18
29
|
);
|
|
19
30
|
Root.displayName = "Root";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { Flex } from '../flex';
|
|
3
3
|
|
|
4
4
|
export declare const rootClassName = "teddy-notabene";
|
|
5
|
-
export type RootProps = Partial<React.ComponentPropsWithoutRef<typeof
|
|
5
|
+
export type RootProps = Partial<React.ComponentPropsWithoutRef<typeof Flex>>;
|
|
6
6
|
export declare const Root: React.ForwardRefExoticComponent<RootProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,17 +1,28 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { Flex } from "../flex/flex.js";
|
|
5
5
|
const styles = {
|
|
6
|
-
"teddy-notabene": "_teddy-
|
|
7
|
-
"teddy-notabene__icon": "_teddy-
|
|
8
|
-
"teddy-notabene__heading": "_teddy-
|
|
6
|
+
"teddy-notabene": "_teddy-notabene_78ui9_1",
|
|
7
|
+
"teddy-notabene__icon": "_teddy-notabene__icon_78ui9_5",
|
|
8
|
+
"teddy-notabene__heading": "_teddy-notabene__heading_78ui9_5"
|
|
9
9
|
};
|
|
10
10
|
const rootClassName = "teddy-notabene";
|
|
11
11
|
const Root = React__default.forwardRef(
|
|
12
12
|
({ children, className, ...props }, forwardRef) => {
|
|
13
13
|
const classes = clsx([styles[`${rootClassName}`]], className);
|
|
14
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
+
return /* @__PURE__ */ jsx(
|
|
15
|
+
Flex,
|
|
16
|
+
{
|
|
17
|
+
gap: { sm: "150", md: "300" },
|
|
18
|
+
direction: { sm: "column", md: "row" },
|
|
19
|
+
p: { sm: "300", md: "400" },
|
|
20
|
+
...props,
|
|
21
|
+
ref: forwardRef,
|
|
22
|
+
className: classes,
|
|
23
|
+
children
|
|
24
|
+
}
|
|
25
|
+
);
|
|
15
26
|
}
|
|
16
27
|
);
|
|
17
28
|
Root.displayName = "Root";
|
|
@@ -27,14 +27,14 @@ function _interopNamespaceDefault(e) {
|
|
|
27
27
|
}
|
|
28
28
|
const ScrollAreaPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(ScrollAreaPrimitive);
|
|
29
29
|
const styles = {
|
|
30
|
-
"teddy-scroll-area": "_teddy-scroll-
|
|
31
|
-
"teddy-scroll-area__viewport": "_teddy-scroll-
|
|
32
|
-
"teddy-scroll-area__scrollbar": "_teddy-scroll-
|
|
33
|
-
"teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--
|
|
34
|
-
"teddy-scroll-area__thumb": "_teddy-scroll-
|
|
35
|
-
"teddy-scroll-area__corner": "_teddy-scroll-
|
|
36
|
-
"teddy-scroll-area__button": "_teddy-scroll-
|
|
37
|
-
"teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--
|
|
30
|
+
"teddy-scroll-area": "_teddy-scroll-area_1r6mf_1",
|
|
31
|
+
"teddy-scroll-area__viewport": "_teddy-scroll-area__viewport_1r6mf_5",
|
|
32
|
+
"teddy-scroll-area__scrollbar": "_teddy-scroll-area__scrollbar_1r6mf_11",
|
|
33
|
+
"teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--hidden_1r6mf_32",
|
|
34
|
+
"teddy-scroll-area__thumb": "_teddy-scroll-area__thumb_1r6mf_45",
|
|
35
|
+
"teddy-scroll-area__corner": "_teddy-scroll-area__corner_1r6mf_62",
|
|
36
|
+
"teddy-scroll-area__button": "_teddy-scroll-area__button_1r6mf_65",
|
|
37
|
+
"teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--hidden_1r6mf_93"
|
|
38
38
|
};
|
|
39
39
|
const Scrollbar = React.forwardRef(
|
|
40
40
|
({ className, ...props }, forwardRef) => {
|
|
@@ -8,14 +8,14 @@ import "../../assets/sprite.269ba410-teddy.svg";
|
|
|
8
8
|
import { Icon } from "../icon/icon.js";
|
|
9
9
|
import { Slottable } from "@radix-ui/react-slot";
|
|
10
10
|
const styles = {
|
|
11
|
-
"teddy-scroll-area": "_teddy-scroll-
|
|
12
|
-
"teddy-scroll-area__viewport": "_teddy-scroll-
|
|
13
|
-
"teddy-scroll-area__scrollbar": "_teddy-scroll-
|
|
14
|
-
"teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--
|
|
15
|
-
"teddy-scroll-area__thumb": "_teddy-scroll-
|
|
16
|
-
"teddy-scroll-area__corner": "_teddy-scroll-
|
|
17
|
-
"teddy-scroll-area__button": "_teddy-scroll-
|
|
18
|
-
"teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--
|
|
11
|
+
"teddy-scroll-area": "_teddy-scroll-area_1r6mf_1",
|
|
12
|
+
"teddy-scroll-area__viewport": "_teddy-scroll-area__viewport_1r6mf_5",
|
|
13
|
+
"teddy-scroll-area__scrollbar": "_teddy-scroll-area__scrollbar_1r6mf_11",
|
|
14
|
+
"teddy-scroll-area__scrollbar--hidden": "_teddy-scroll-area__scrollbar--hidden_1r6mf_32",
|
|
15
|
+
"teddy-scroll-area__thumb": "_teddy-scroll-area__thumb_1r6mf_45",
|
|
16
|
+
"teddy-scroll-area__corner": "_teddy-scroll-area__corner_1r6mf_62",
|
|
17
|
+
"teddy-scroll-area__button": "_teddy-scroll-area__button_1r6mf_65",
|
|
18
|
+
"teddy-scroll-area__button--hidden": "_teddy-scroll-area__button--hidden_1r6mf_93"
|
|
19
19
|
};
|
|
20
20
|
const Scrollbar = React__default.forwardRef(
|
|
21
21
|
({ className, ...props }, forwardRef) => {
|
|
@@ -24,11 +24,11 @@ function _interopNamespaceDefault(e) {
|
|
|
24
24
|
}
|
|
25
25
|
const TabsPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(TabsPrimitive);
|
|
26
26
|
const styles = {
|
|
27
|
-
"teddy-tabs__list": "_teddy-
|
|
28
|
-
"teddy-tabs--full-width": "_teddy-tabs--full-
|
|
29
|
-
"teddy-tabs__content": "_teddy-
|
|
30
|
-
"teddy-tabs__trigger": "_teddy-
|
|
31
|
-
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-
|
|
27
|
+
"teddy-tabs__list": "_teddy-tabs__list_1jnm3_1",
|
|
28
|
+
"teddy-tabs--full-width": "_teddy-tabs--full-width_1jnm3_28",
|
|
29
|
+
"teddy-tabs__content": "_teddy-tabs__content_1jnm3_31",
|
|
30
|
+
"teddy-tabs__trigger": "_teddy-tabs__trigger_1jnm3_35",
|
|
31
|
+
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1jnm3_50"
|
|
32
32
|
};
|
|
33
33
|
const rootClassName = "teddy-tabs";
|
|
34
34
|
const RootContext = React.createContext(void 0);
|
|
@@ -5,11 +5,11 @@ import * as TabsPrimitive from "@radix-ui/react-tabs";
|
|
|
5
5
|
import { useControllableState } from "@radix-ui/react-use-controllable-state";
|
|
6
6
|
import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-tabs__list": "_teddy-
|
|
9
|
-
"teddy-tabs--full-width": "_teddy-tabs--full-
|
|
10
|
-
"teddy-tabs__content": "_teddy-
|
|
11
|
-
"teddy-tabs__trigger": "_teddy-
|
|
12
|
-
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-
|
|
8
|
+
"teddy-tabs__list": "_teddy-tabs__list_1jnm3_1",
|
|
9
|
+
"teddy-tabs--full-width": "_teddy-tabs--full-width_1jnm3_28",
|
|
10
|
+
"teddy-tabs__content": "_teddy-tabs__content_1jnm3_31",
|
|
11
|
+
"teddy-tabs__trigger": "_teddy-tabs__trigger_1jnm3_35",
|
|
12
|
+
"teddy-tabs__scroll-button": "_teddy-tabs__scroll-button_1jnm3_50"
|
|
13
13
|
};
|
|
14
14
|
const rootClassName = "teddy-tabs";
|
|
15
15
|
const RootContext = React__default.createContext(void 0);
|
|
@@ -2,15 +2,12 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const React = require("react");
|
|
5
|
-
const clsx = require("clsx");
|
|
6
|
-
const components_tabs_tabsRoot = require("./tabs-root.cjs");
|
|
7
5
|
const components_scrollArea_index = require("../scroll-area/index.cjs");
|
|
8
6
|
const components_tabs_tabsScrollButton = require("./tabs-scroll-button.cjs");
|
|
9
7
|
const ScrollContext = React.createContext(false);
|
|
10
8
|
const Scroll = React.forwardRef(
|
|
11
|
-
({
|
|
12
|
-
|
|
13
|
-
return /* @__PURE__ */ jsxRuntime.jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxRuntime.jsxs(components_scrollArea_index.ScrollArea, { ...props, className: classes, ref: forwardRef, children: [
|
|
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: [
|
|
14
11
|
/* @__PURE__ */ jsxRuntime.jsx(components_tabs_tabsScrollButton.ScrollButton, { direction: "left" }),
|
|
15
12
|
/* @__PURE__ */ jsxRuntime.jsx(components_tabs_tabsScrollButton.ScrollButton, { direction: "right" }),
|
|
16
13
|
children
|
|
@@ -1,14 +1,11 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
|
-
import clsx from "clsx";
|
|
4
|
-
import { s as styles, rootClassName } from "./tabs-root.js";
|
|
5
3
|
import { ScrollArea } from "../scroll-area/index.js";
|
|
6
4
|
import { ScrollButton } from "./tabs-scroll-button.js";
|
|
7
5
|
const ScrollContext = React__default.createContext(false);
|
|
8
6
|
const Scroll = React__default.forwardRef(
|
|
9
|
-
({
|
|
10
|
-
|
|
11
|
-
return /* @__PURE__ */ jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxs(ScrollArea, { ...props, className: classes, ref: forwardRef, children: [
|
|
7
|
+
({ children, ...props }, forwardRef) => {
|
|
8
|
+
return /* @__PURE__ */ jsx(ScrollContext.Provider, { value: true, children: /* @__PURE__ */ jsxs(ScrollArea, { ...props, ref: forwardRef, children: [
|
|
12
9
|
/* @__PURE__ */ jsx(ScrollButton, { direction: "left" }),
|
|
13
10
|
/* @__PURE__ */ jsx(ScrollButton, { direction: "right" }),
|
|
14
11
|
children
|
package/dist/style.css
CHANGED
|
@@ -140,40 +140,41 @@
|
|
|
140
140
|
color: inherit;
|
|
141
141
|
}
|
|
142
142
|
}@layer icon {
|
|
143
|
-
._teddy-
|
|
143
|
+
._teddy-icon_1ur3a_2 {
|
|
144
144
|
display: inline;
|
|
145
145
|
align-self: center;
|
|
146
146
|
fill: currentColor;
|
|
147
|
+
flex-shrink: 0;
|
|
147
148
|
}
|
|
148
|
-
._teddy-icon--
|
|
149
|
+
._teddy-icon--font_1ur3a_8 {
|
|
149
150
|
width: 1em;
|
|
150
151
|
height: 1em;
|
|
151
152
|
}
|
|
152
|
-
._teddy-icon--
|
|
153
|
+
._teddy-icon--xxs_1ur3a_12 {
|
|
153
154
|
width: var(--teddy-spacing-150);
|
|
154
155
|
height: var(--teddy-spacing-150);
|
|
155
156
|
}
|
|
156
|
-
._teddy-icon--
|
|
157
|
+
._teddy-icon--xs_1ur3a_16 {
|
|
157
158
|
width: var(--teddy-spacing-200);
|
|
158
159
|
height: var(--teddy-spacing-200);
|
|
159
160
|
}
|
|
160
|
-
._teddy-icon--
|
|
161
|
+
._teddy-icon--sm_1ur3a_20 {
|
|
161
162
|
width: var(--teddy-spacing-250);
|
|
162
163
|
height: var(--teddy-spacing-250);
|
|
163
164
|
}
|
|
164
|
-
._teddy-icon--
|
|
165
|
+
._teddy-icon--md_1ur3a_24 {
|
|
165
166
|
width: var(--teddy-spacing-300);
|
|
166
167
|
height: var(--teddy-spacing-300);
|
|
167
168
|
}
|
|
168
|
-
._teddy-icon--
|
|
169
|
+
._teddy-icon--lg_1ur3a_28 {
|
|
169
170
|
width: var(--teddy-spacing-400);
|
|
170
171
|
height: var(--teddy-spacing-400);
|
|
171
172
|
}
|
|
172
|
-
._teddy-icon--
|
|
173
|
+
._teddy-icon--xl_1ur3a_32 {
|
|
173
174
|
width: var(--teddy-spacing-600);
|
|
174
175
|
height: var(--teddy-spacing-600);
|
|
175
176
|
}
|
|
176
|
-
._teddy-icon-with-
|
|
177
|
+
._teddy-icon-with-children_1ur3a_36 {
|
|
177
178
|
display: inline-flex;
|
|
178
179
|
align-items: center;
|
|
179
180
|
font-family: var(--teddy-typography-family-default);
|
|
@@ -881,27 +882,16 @@
|
|
|
881
882
|
0% {
|
|
882
883
|
transform: translateX(-100%);
|
|
883
884
|
}
|
|
884
|
-
}._teddy-
|
|
885
|
-
padding: var(--teddy-spacing-300);
|
|
886
|
-
display: flex;
|
|
887
|
-
flex-direction: column;
|
|
888
|
-
gap: var(--teddy-spacing-150);
|
|
885
|
+
}._teddy-notabene_78ui9_1 {
|
|
889
886
|
background-color: var(--teddy-color-background-status-warning);
|
|
890
887
|
color: var(--teddy-color-text-default);
|
|
891
888
|
}
|
|
892
|
-
._teddy-
|
|
889
|
+
._teddy-notabene__icon_78ui9_5, ._teddy-notabene__heading_78ui9_5 {
|
|
893
890
|
color: var(--teddy-color-orange-600);
|
|
894
891
|
align-self: flex-start;
|
|
895
892
|
}
|
|
896
|
-
._teddy-
|
|
893
|
+
._teddy-notabene__icon_78ui9_5 {
|
|
897
894
|
flex-shrink: 0;
|
|
898
|
-
}
|
|
899
|
-
@media (min-width: 600px) {
|
|
900
|
-
._teddy-notabene_1kgqm_1 {
|
|
901
|
-
padding: var(--teddy-spacing-400);
|
|
902
|
-
flex-direction: row;
|
|
903
|
-
gap: var(--teddy-spacing-300);
|
|
904
|
-
}
|
|
905
895
|
}@layer heading {
|
|
906
896
|
._teddy-heading_r8os0_2 {
|
|
907
897
|
color: var(--teddy-color-text-default);
|
|
@@ -1136,194 +1126,188 @@
|
|
|
1136
1126
|
._teddy-list__illustration_1fpoz_8 {
|
|
1137
1127
|
align-self: flex-start;
|
|
1138
1128
|
}
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
._teddy-scroll-area__button_1y01l_67 {
|
|
1210
|
-
transition: opacity var(--teddy-motion-duration-300), transform var(--teddy-motion-duration-300);
|
|
1211
|
-
}
|
|
1212
|
-
}
|
|
1213
|
-
._teddy-scroll-area__button_1y01l_67[data-direction=left] {
|
|
1214
|
-
left: 0;
|
|
1215
|
-
top: 50%;
|
|
1216
|
-
transform: translate(0, -50%);
|
|
1217
|
-
}
|
|
1218
|
-
._teddy-scroll-area__button_1y01l_67[data-direction=right] {
|
|
1219
|
-
right: 0;
|
|
1220
|
-
top: 50%;
|
|
1221
|
-
transform: translate(0, -50%);
|
|
1222
|
-
}
|
|
1223
|
-
._teddy-scroll-area__button_1y01l_67[data-direction=up] {
|
|
1224
|
-
top: 0;
|
|
1225
|
-
left: 50%;
|
|
1226
|
-
transform: translate(-50%, 0);
|
|
1227
|
-
}
|
|
1228
|
-
._teddy-scroll-area__button_1y01l_67[data-direction=down] {
|
|
1229
|
-
bottom: 0;
|
|
1230
|
-
left: 50%;
|
|
1231
|
-
transform: translate(-50%, 0);
|
|
1232
|
-
}
|
|
1233
|
-
._teddy-scroll-area__button--hidden_1y01l_95 {
|
|
1234
|
-
opacity: 0;
|
|
1235
|
-
}
|
|
1236
|
-
._teddy-scroll-area__button--hidden_1y01l_95[data-direction=left] {
|
|
1237
|
-
transform: translate(-100%, -50%);
|
|
1238
|
-
}
|
|
1239
|
-
._teddy-scroll-area__button--hidden_1y01l_95[data-direction=right] {
|
|
1240
|
-
transform: translate(100%, -50%);
|
|
1241
|
-
}
|
|
1242
|
-
._teddy-scroll-area__button--hidden_1y01l_95[data-direction=up] {
|
|
1243
|
-
transform: translate(-50%, -100%);
|
|
1244
|
-
}
|
|
1245
|
-
._teddy-scroll-area__button--hidden_1y01l_95[data-direction=down] {
|
|
1246
|
-
transform: translate(-50%, 100%);
|
|
1247
|
-
}
|
|
1248
|
-
}@layer button, scroll-area, tabs;
|
|
1249
|
-
@layer tabs {
|
|
1250
|
-
._teddy-tabs__list_1a33o_3 {
|
|
1251
|
-
display: flex;
|
|
1252
|
-
max-width: fit-content;
|
|
1253
|
-
background-color: var(--teddy-color-background-secondary);
|
|
1254
|
-
border-radius: var(--teddy-border-radius-full);
|
|
1255
|
-
padding: var(--teddy-spacing-50);
|
|
1256
|
-
position: relative;
|
|
1257
|
-
}
|
|
1258
|
-
._teddy-tabs__list_1a33o_3::before {
|
|
1259
|
-
content: "";
|
|
1260
|
-
position: absolute;
|
|
1261
|
-
inset: var(--teddy-spacing-50);
|
|
1262
|
-
inset: 0;
|
|
1263
|
-
margin: var(--teddy-spacing-50) 0;
|
|
1264
|
-
scale: var(--_width, 0) 1;
|
|
1265
|
-
translate: var(--_left, 0) 0;
|
|
1266
|
-
transform-origin: left;
|
|
1267
|
-
background: var(--teddy-color-background-interactive-primary);
|
|
1268
|
-
border-radius: calc(99vmin / var(--_width, 0.125))/99vmin;
|
|
1269
|
-
}
|
|
1270
|
-
@media (prefers-reduced-motion: no-preference) {
|
|
1271
|
-
._teddy-tabs__list_1a33o_3::before {
|
|
1272
|
-
transition: border-radius, scale, translate;
|
|
1273
|
-
transition-timing-function: var(--teddy-motion-easing-ease-in-out);
|
|
1274
|
-
transition-duration: var(--_duration, 0);
|
|
1275
|
-
}
|
|
1276
|
-
}
|
|
1277
|
-
._teddy-tabs--full-width_1a33o_30 ._teddy-tabs__list_1a33o_3 {
|
|
1278
|
-
max-width: initial;
|
|
1279
|
-
}
|
|
1280
|
-
._teddy-tabs__content_1a33o_33:focus-visible {
|
|
1281
|
-
outline: solid var(--teddy-border-width-sm) var(--teddy-color-border-interactive-focus);
|
|
1282
|
-
outline-offset: var(--teddy-spacing-25);
|
|
1283
|
-
}
|
|
1284
|
-
._teddy-tabs__trigger_1a33o_37 {
|
|
1285
|
-
flex: 1 0 auto;
|
|
1286
|
-
min-width: 3rem;
|
|
1287
|
-
color: var(--teddy-color-text-interactive-primary);
|
|
1288
|
-
background-color: var(--teddy-color-background-interactive-transparent);
|
|
1289
|
-
padding: calc(var(--teddy-spacing-100) + var(--teddy-spacing-25)) var(--teddy-spacing-200);
|
|
1290
|
-
line-height: var(--teddy-typography-line-height-100);
|
|
1291
|
-
white-space: nowrap;
|
|
1292
|
-
cursor: pointer;
|
|
1293
|
-
transition: color calc(var(--_duration, 0)) var(--teddy-motion-easing-ease-in-out);
|
|
1294
|
-
}
|
|
1295
|
-
._teddy-tabs__trigger_1a33o_37[data-state=active] {
|
|
1296
|
-
color: var(--teddy-color-text-interactive-on-primary);
|
|
1297
|
-
cursor: default;
|
|
1298
|
-
}
|
|
1299
|
-
._teddy-tabs__scroll-button_1a33o_52 {
|
|
1300
|
-
background-color: var(--teddy-color-background-secondary);
|
|
1301
|
-
color: var(--teddy-color-text-default);
|
|
1302
|
-
z-index: 1;
|
|
1303
|
-
}
|
|
1304
|
-
._teddy-tabs__scroll-button_1a33o_52:hover {
|
|
1305
|
-
background-color: var(--teddy-color-background-interactive-transparent-hover);
|
|
1306
|
-
}
|
|
1307
|
-
._teddy-tabs__scroll-button_1a33o_52:active {
|
|
1308
|
-
background-color: var(--teddy-color-background-interactive-transparent-active);
|
|
1309
|
-
}
|
|
1310
|
-
._teddy-tabs__scroll-button_1a33o_52::before {
|
|
1311
|
-
z-index: 1;
|
|
1312
|
-
}
|
|
1313
|
-
._teddy-tabs__scroll-button_1a33o_52::after {
|
|
1314
|
-
content: "";
|
|
1315
|
-
top: 0;
|
|
1316
|
-
left: 100%;
|
|
1317
|
-
bottom: 0;
|
|
1318
|
-
position: absolute;
|
|
1319
|
-
width: 1rem;
|
|
1320
|
-
background: linear-gradient(90deg, var(--teddy-color-background-secondary) 0%, var(--teddy-color-functional-transparent) 100%);
|
|
1129
|
+
}._teddy-scroll-area_1r6mf_1 {
|
|
1130
|
+
position: relative;
|
|
1131
|
+
overflow: hidden;
|
|
1132
|
+
}
|
|
1133
|
+
._teddy-scroll-area__viewport_1r6mf_5 {
|
|
1134
|
+
height: 100%;
|
|
1135
|
+
width: 100%;
|
|
1136
|
+
border-radius: inherit;
|
|
1137
|
+
display: grid;
|
|
1138
|
+
}
|
|
1139
|
+
._teddy-scroll-area__scrollbar_1r6mf_11 {
|
|
1140
|
+
display: flex;
|
|
1141
|
+
/* ensures no selection */
|
|
1142
|
+
user-select: none;
|
|
1143
|
+
/* disable browser handling of all panning and zooming gestures on touch devices */
|
|
1144
|
+
touch-action: none;
|
|
1145
|
+
padding: 1px;
|
|
1146
|
+
background: var(--teddy-color-border-weak);
|
|
1147
|
+
transition: background-color var(--teddy-motion-duration-200) ease-out;
|
|
1148
|
+
border-radius: var(--teddy-border-radius-full);
|
|
1149
|
+
}
|
|
1150
|
+
._teddy-scroll-area__scrollbar_1r6mf_11[data-orientation=vertical] {
|
|
1151
|
+
width: var(--teddy-border-width-lg);
|
|
1152
|
+
}
|
|
1153
|
+
._teddy-scroll-area__scrollbar_1r6mf_11[data-orientation=horizontal] {
|
|
1154
|
+
flex-direction: column;
|
|
1155
|
+
height: var(--teddy-border-width-lg);
|
|
1156
|
+
}
|
|
1157
|
+
._teddy-scroll-area__scrollbar_1r6mf_11:hover {
|
|
1158
|
+
background-color: var(--teddy-color-transparent-black-200);
|
|
1159
|
+
}
|
|
1160
|
+
._teddy-scroll-area__scrollbar--hidden_1r6mf_32 {
|
|
1161
|
+
width: 1px;
|
|
1162
|
+
height: 1px;
|
|
1163
|
+
padding: 0;
|
|
1164
|
+
margin: -1px;
|
|
1165
|
+
overflow: hidden;
|
|
1166
|
+
clip: rect(0, 0, 0, 0);
|
|
1167
|
+
white-space: nowrap;
|
|
1168
|
+
border: 0;
|
|
1169
|
+
}
|
|
1170
|
+
._teddy-scroll-area__scrollbar--hidden_1r6mf_32:not(caption) {
|
|
1171
|
+
position: absolute;
|
|
1172
|
+
}
|
|
1173
|
+
._teddy-scroll-area__thumb_1r6mf_45 {
|
|
1174
|
+
flex: 1;
|
|
1175
|
+
background: var(--teddy-color-border-strong);
|
|
1176
|
+
border-radius: var(--teddy-border-radius-full);
|
|
1177
|
+
position: relative;
|
|
1178
|
+
}
|
|
1179
|
+
._teddy-scroll-area__thumb_1r6mf_45::before {
|
|
1180
|
+
content: "";
|
|
1181
|
+
position: absolute;
|
|
1182
|
+
top: 50%;
|
|
1183
|
+
left: 50%;
|
|
1184
|
+
transform: translate(-50%, -50%);
|
|
1185
|
+
width: 100%;
|
|
1186
|
+
height: 100%;
|
|
1187
|
+
min-width: 44px;
|
|
1188
|
+
min-height: 44px;
|
|
1189
|
+
}
|
|
1190
|
+
._teddy-scroll-area__corner_1r6mf_62 {
|
|
1191
|
+
background: var(--teddy-color-border-medium);
|
|
1192
|
+
}
|
|
1193
|
+
._teddy-scroll-area__button_1r6mf_65 {
|
|
1194
|
+
position: absolute;
|
|
1195
|
+
}
|
|
1196
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1197
|
+
._teddy-scroll-area__button_1r6mf_65 {
|
|
1198
|
+
transition: opacity var(--teddy-motion-duration-300), transform var(--teddy-motion-duration-300);
|
|
1321
1199
|
}
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1200
|
+
}
|
|
1201
|
+
._teddy-scroll-area__button_1r6mf_65[data-direction=left] {
|
|
1202
|
+
left: 0;
|
|
1203
|
+
top: 50%;
|
|
1204
|
+
transform: translate(0, -50%);
|
|
1205
|
+
}
|
|
1206
|
+
._teddy-scroll-area__button_1r6mf_65[data-direction=right] {
|
|
1207
|
+
right: 0;
|
|
1208
|
+
top: 50%;
|
|
1209
|
+
transform: translate(0, -50%);
|
|
1210
|
+
}
|
|
1211
|
+
._teddy-scroll-area__button_1r6mf_65[data-direction=up] {
|
|
1212
|
+
top: 0;
|
|
1213
|
+
left: 50%;
|
|
1214
|
+
transform: translate(-50%, 0);
|
|
1215
|
+
}
|
|
1216
|
+
._teddy-scroll-area__button_1r6mf_65[data-direction=down] {
|
|
1217
|
+
bottom: 0;
|
|
1218
|
+
left: 50%;
|
|
1219
|
+
transform: translate(-50%, 0);
|
|
1220
|
+
}
|
|
1221
|
+
._teddy-scroll-area__button--hidden_1r6mf_93 {
|
|
1222
|
+
opacity: 0;
|
|
1223
|
+
}
|
|
1224
|
+
._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=left] {
|
|
1225
|
+
transform: translate(-100%, -50%);
|
|
1226
|
+
}
|
|
1227
|
+
._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=right] {
|
|
1228
|
+
transform: translate(100%, -50%);
|
|
1229
|
+
}
|
|
1230
|
+
._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=up] {
|
|
1231
|
+
transform: translate(-50%, -100%);
|
|
1232
|
+
}
|
|
1233
|
+
._teddy-scroll-area__button--hidden_1r6mf_93[data-direction=down] {
|
|
1234
|
+
transform: translate(-50%, 100%);
|
|
1235
|
+
}._teddy-tabs__list_1jnm3_1 {
|
|
1236
|
+
display: flex;
|
|
1237
|
+
max-width: fit-content;
|
|
1238
|
+
background-color: var(--teddy-color-background-secondary);
|
|
1239
|
+
border-radius: var(--teddy-border-radius-full);
|
|
1240
|
+
padding: var(--teddy-spacing-50);
|
|
1241
|
+
position: relative;
|
|
1242
|
+
}
|
|
1243
|
+
._teddy-tabs__list_1jnm3_1::before {
|
|
1244
|
+
content: "";
|
|
1245
|
+
position: absolute;
|
|
1246
|
+
inset: var(--teddy-spacing-50);
|
|
1247
|
+
inset: 0;
|
|
1248
|
+
margin: var(--teddy-spacing-50) 0;
|
|
1249
|
+
scale: var(--_width, 0) 1;
|
|
1250
|
+
translate: var(--_left, 0) 0;
|
|
1251
|
+
transform-origin: left;
|
|
1252
|
+
background: var(--teddy-color-background-interactive-primary);
|
|
1253
|
+
border-radius: calc(99vmin / var(--_width, 0.125))/99vmin;
|
|
1254
|
+
}
|
|
1255
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
1256
|
+
._teddy-tabs__list_1jnm3_1::before {
|
|
1257
|
+
transition: border-radius, scale, translate;
|
|
1258
|
+
transition-timing-function: var(--teddy-motion-easing-ease-in-out);
|
|
1259
|
+
transition-duration: var(--_duration, 0);
|
|
1326
1260
|
}
|
|
1261
|
+
}
|
|
1262
|
+
._teddy-tabs--full-width_1jnm3_28 ._teddy-tabs__list_1jnm3_1 {
|
|
1263
|
+
max-width: initial;
|
|
1264
|
+
}
|
|
1265
|
+
._teddy-tabs__content_1jnm3_31:focus-visible {
|
|
1266
|
+
outline: solid var(--teddy-border-width-sm) var(--teddy-color-border-interactive-focus);
|
|
1267
|
+
outline-offset: var(--teddy-spacing-25);
|
|
1268
|
+
}
|
|
1269
|
+
._teddy-tabs__trigger_1jnm3_35 {
|
|
1270
|
+
flex: 1 0 auto;
|
|
1271
|
+
min-width: 3rem;
|
|
1272
|
+
color: var(--teddy-color-text-interactive-primary);
|
|
1273
|
+
background-color: var(--teddy-color-background-interactive-transparent);
|
|
1274
|
+
padding: calc(var(--teddy-spacing-100) + var(--teddy-spacing-25)) var(--teddy-spacing-200);
|
|
1275
|
+
line-height: var(--teddy-typography-line-height-100);
|
|
1276
|
+
white-space: nowrap;
|
|
1277
|
+
cursor: pointer;
|
|
1278
|
+
transition: color calc(var(--_duration, 0)) var(--teddy-motion-easing-ease-in-out);
|
|
1279
|
+
}
|
|
1280
|
+
._teddy-tabs__trigger_1jnm3_35[data-state=active] {
|
|
1281
|
+
color: var(--teddy-color-text-interactive-on-primary);
|
|
1282
|
+
cursor: default;
|
|
1283
|
+
}
|
|
1284
|
+
._teddy-tabs__scroll-button_1jnm3_50 {
|
|
1285
|
+
background-color: var(--teddy-color-background-secondary);
|
|
1286
|
+
color: var(--teddy-color-text-default);
|
|
1287
|
+
z-index: 1;
|
|
1288
|
+
}
|
|
1289
|
+
._teddy-tabs__scroll-button_1jnm3_50:hover {
|
|
1290
|
+
background-color: var(--teddy-color-background-interactive-transparent-hover);
|
|
1291
|
+
}
|
|
1292
|
+
._teddy-tabs__scroll-button_1jnm3_50:active {
|
|
1293
|
+
background-color: var(--teddy-color-background-interactive-transparent-active);
|
|
1294
|
+
}
|
|
1295
|
+
._teddy-tabs__scroll-button_1jnm3_50::before {
|
|
1296
|
+
z-index: 1;
|
|
1297
|
+
}
|
|
1298
|
+
._teddy-tabs__scroll-button_1jnm3_50::after {
|
|
1299
|
+
content: "";
|
|
1300
|
+
top: 0;
|
|
1301
|
+
left: 100%;
|
|
1302
|
+
bottom: 0;
|
|
1303
|
+
position: absolute;
|
|
1304
|
+
width: 1rem;
|
|
1305
|
+
background: linear-gradient(90deg, var(--teddy-color-background-secondary) 0%, var(--teddy-color-functional-transparent) 100%);
|
|
1306
|
+
}
|
|
1307
|
+
._teddy-tabs__scroll-button_1jnm3_50[data-direction=right]::after {
|
|
1308
|
+
left: auto;
|
|
1309
|
+
right: 100%;
|
|
1310
|
+
transform: rotate(180deg);
|
|
1327
1311
|
}@layer reset, flex, button, link, heading, drawer;
|
|
1328
1312
|
@keyframes _teddy-fade-in_jiyrh_1 {
|
|
1329
1313
|
from {
|