@telia/teddy 0.0.55 → 0.0.57
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/box/box.cjs +1 -3
- package/dist/components/box/box.js +1 -3
- package/dist/components/breadcrumbs/breadcrumbs-link.cjs +16 -19
- package/dist/components/breadcrumbs/breadcrumbs-link.d.ts +8 -3
- package/dist/components/breadcrumbs/breadcrumbs-link.js +17 -20
- package/dist/components/breadcrumbs/breadcrumbs-page.cjs +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-page.js +1 -1
- package/dist/components/breadcrumbs/breadcrumbs-root.cjs +8 -9
- package/dist/components/breadcrumbs/breadcrumbs-root.js +8 -9
- package/dist/components/breadcrumbs/index.d.ts +6 -1
- package/dist/components/card/card-button.d.ts +2 -2
- package/dist/components/card/index.d.ts +3 -3
- package/dist/components/container/container.cjs +40 -0
- package/dist/components/container/container.d.ts +9 -0
- package/dist/components/container/container.js +40 -0
- package/dist/components/container/index.cjs +4 -0
- package/dist/components/container/index.d.ts +2 -0
- package/dist/components/container/index.js +4 -0
- package/dist/components/expandable-card/expandable-card-button.d.ts +2 -2
- package/dist/components/expandable-card/index.d.ts +3 -3
- package/dist/components/index.cjs +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +2 -0
- package/dist/components/modal/modal.cjs +1 -0
- package/dist/components/modal/modal.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-content.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-body.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-body.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item-title.js +1 -0
- package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -0
- package/dist/components/radio-card-group/radio-card-group-item.js +1 -0
- package/dist/components/scroll-area/index.d.ts +2 -2
- package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
- package/dist/components/tabs/index.d.ts +2 -2
- package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
- package/dist/components/text-field/index.d.ts +2 -2
- package/dist/components/text-field/text-field-button.d.ts +2 -2
- package/dist/main.cjs +2 -0
- package/dist/main.js +2 -0
- package/dist/style.css +97 -114
- package/dist/utils/generate-styling/index.cjs +3 -0
- package/dist/utils/generate-styling/index.js +3 -0
- package/package.json +14 -15
|
@@ -5,11 +5,9 @@ const React = require("react");
|
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const utils_generateStyling_index = require("../../utils/generate-styling/index.cjs");
|
|
7
7
|
const reactSlot = require("@radix-ui/react-slot");
|
|
8
|
-
const styles = {};
|
|
9
|
-
const rootClassName = "teddy-box";
|
|
10
8
|
const Box = React.forwardRef((props, forwardRef) => {
|
|
11
9
|
const { className, asChild, style, as = "div", ...rest } = utils_generateStyling_index.extractProps(props);
|
|
12
|
-
const classes = clsx(
|
|
10
|
+
const classes = clsx(className);
|
|
13
11
|
const Comp = asChild ? reactSlot.Slot : as;
|
|
14
12
|
return /* @__PURE__ */ jsxRuntime.jsx(Comp, { ...rest, style, ref: forwardRef, className: classes });
|
|
15
13
|
});
|
|
@@ -3,11 +3,9 @@ import React__default from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { extractProps } from "../../utils/generate-styling/index.js";
|
|
5
5
|
import { Slot } from "@radix-ui/react-slot";
|
|
6
|
-
const styles = {};
|
|
7
|
-
const rootClassName = "teddy-box";
|
|
8
6
|
const Box = React__default.forwardRef((props, forwardRef) => {
|
|
9
7
|
const { className, asChild, style, as = "div", ...rest } = extractProps(props);
|
|
10
|
-
const classes = clsx(
|
|
8
|
+
const classes = clsx(className);
|
|
11
9
|
const Comp = asChild ? Slot : as;
|
|
12
10
|
return /* @__PURE__ */ jsx(Comp, { ...rest, style, ref: forwardRef, className: classes });
|
|
13
11
|
});
|
|
@@ -5,26 +5,23 @@ const React = require("react");
|
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const reactSlot = require("@radix-ui/react-slot");
|
|
7
7
|
const components_breadcrumbs_breadcrumbsRoot = require("./breadcrumbs-root.cjs");
|
|
8
|
+
const components_link_link = require("../link/link.cjs");
|
|
8
9
|
require("../../assets/sprite.269ba410-teddy.svg");
|
|
9
10
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
10
|
-
const Link = React.forwardRef(
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
[components_breadcrumbs_breadcrumbsRoot.styles[
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
26
|
-
] });
|
|
27
|
-
}
|
|
28
|
-
);
|
|
11
|
+
const Link = React.forwardRef(({ children, home, className, ...props }, ref) => {
|
|
12
|
+
var _a;
|
|
13
|
+
const negative = (_a = React.useContext(components_breadcrumbs_breadcrumbsRoot.RootContext)) == null ? void 0 : _a.negative;
|
|
14
|
+
const classes = clsx(
|
|
15
|
+
[components_breadcrumbs_breadcrumbsRoot.styles[`${components_breadcrumbs_breadcrumbsRoot.rootClassName}__link`]],
|
|
16
|
+
{
|
|
17
|
+
[components_breadcrumbs_breadcrumbsRoot.styles["teddy-breadcrumbs__link--home"]]: home
|
|
18
|
+
},
|
|
19
|
+
className
|
|
20
|
+
);
|
|
21
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(components_link_link.Link, { ...props, variant: negative ? "standalone-negative" : "standalone", ref, className: classes, children: [
|
|
22
|
+
home && /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: "home" }),
|
|
23
|
+
/* @__PURE__ */ jsxRuntime.jsx(reactSlot.Slottable, { children })
|
|
24
|
+
] });
|
|
25
|
+
});
|
|
29
26
|
Link.displayName = "Link";
|
|
30
27
|
exports.Link = Link;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
+
import { Link as LinkPrimitive } from '../link';
|
|
2
3
|
|
|
3
|
-
export type LinkProps = React.ComponentPropsWithoutRef<'
|
|
4
|
-
asChild?: boolean;
|
|
4
|
+
export type LinkProps = Omit<React.ComponentPropsWithoutRef<typeof LinkPrimitive>, 'variant'> & {
|
|
5
5
|
home?: boolean;
|
|
6
6
|
};
|
|
7
|
-
export declare const Link: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
7
|
+
export declare const Link: React.ForwardRefExoticComponent<Omit<Omit<Omit<React.DetailedHTMLProps<React.AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
8
8
|
asChild?: boolean | undefined;
|
|
9
|
+
disableVisited?: boolean | undefined;
|
|
10
|
+
ensureTargetArea?: boolean | undefined;
|
|
11
|
+
silent?: boolean | undefined;
|
|
12
|
+
variant: "text" | "navigation" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
13
|
+
} & React.RefAttributes<HTMLAnchorElement>, "ref">, "variant"> & {
|
|
9
14
|
home?: boolean | undefined;
|
|
10
15
|
} & React.RefAttributes<HTMLAnchorElement>>;
|
|
@@ -1,29 +1,26 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { Slottable
|
|
4
|
+
import { Slottable } from "@radix-ui/react-slot";
|
|
5
5
|
import { RootContext, s as styles, rootClassName } from "./breadcrumbs-root.js";
|
|
6
|
+
import { Link as Link$1 } from "../link/link.js";
|
|
6
7
|
import "../../assets/sprite.269ba410-teddy.svg";
|
|
7
8
|
import { Icon } from "../icon/icon.js";
|
|
8
|
-
const Link = React__default.forwardRef(
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
[styles[
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
)
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */ jsx(Slottable, { children })
|
|
24
|
-
] });
|
|
25
|
-
}
|
|
26
|
-
);
|
|
9
|
+
const Link = React__default.forwardRef(({ children, home, className, ...props }, ref) => {
|
|
10
|
+
var _a;
|
|
11
|
+
const negative = (_a = React__default.useContext(RootContext)) == null ? void 0 : _a.negative;
|
|
12
|
+
const classes = clsx(
|
|
13
|
+
[styles[`${rootClassName}__link`]],
|
|
14
|
+
{
|
|
15
|
+
[styles["teddy-breadcrumbs__link--home"]]: home
|
|
16
|
+
},
|
|
17
|
+
className
|
|
18
|
+
);
|
|
19
|
+
return /* @__PURE__ */ jsxs(Link$1, { ...props, variant: negative ? "standalone-negative" : "standalone", ref, className: classes, children: [
|
|
20
|
+
home && /* @__PURE__ */ jsx(Icon, { name: "home" }),
|
|
21
|
+
/* @__PURE__ */ jsx(Slottable, { children })
|
|
22
|
+
] });
|
|
23
|
+
});
|
|
27
24
|
Link.displayName = "Link";
|
|
28
25
|
export {
|
|
29
26
|
Link
|
|
@@ -10,7 +10,7 @@ const Page = React.forwardRef(({ className, ...props }, forwardRef) => {
|
|
|
10
10
|
const classes = clsx(
|
|
11
11
|
[components_breadcrumbs_breadcrumbsRoot.styles[`${components_breadcrumbs_breadcrumbsRoot.rootClassName}__page`]],
|
|
12
12
|
{
|
|
13
|
-
[components_breadcrumbs_breadcrumbsRoot.styles[
|
|
13
|
+
[components_breadcrumbs_breadcrumbsRoot.styles[`${components_breadcrumbs_breadcrumbsRoot.rootClassName}__page--negative`]]: negative
|
|
14
14
|
},
|
|
15
15
|
className
|
|
16
16
|
);
|
|
@@ -8,7 +8,7 @@ const Page = React__default.forwardRef(({ className, ...props }, forwardRef) =>
|
|
|
8
8
|
const classes = clsx(
|
|
9
9
|
[styles[`${rootClassName}__page`]],
|
|
10
10
|
{
|
|
11
|
-
[styles[
|
|
11
|
+
[styles[`${rootClassName}__page--negative`]]: negative
|
|
12
12
|
},
|
|
13
13
|
className
|
|
14
14
|
);
|
|
@@ -4,15 +4,14 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const styles = {
|
|
7
|
-
"teddy-breadcrumbs__list": "_teddy-
|
|
8
|
-
"teddy-breadcrumbs__item": "_teddy-
|
|
9
|
-
"teddy-breadcrumbs__link": "_teddy-
|
|
10
|
-
"teddy-breadcrumbs__link--home": "_teddy-breadcrumbs__link--
|
|
11
|
-
"teddy-
|
|
12
|
-
"teddy-breadcrumbs__page": "_teddy-
|
|
13
|
-
"teddy-
|
|
14
|
-
"teddy-breadcrumbs__separator": "_teddy-
|
|
15
|
-
"teddy-breadcrumbs__separator--negative": "_teddy-breadcrumbs__separator--negative_qwtmx_67"
|
|
7
|
+
"teddy-breadcrumbs__list": "_teddy-breadcrumbs__list_8irth_1",
|
|
8
|
+
"teddy-breadcrumbs__item": "_teddy-breadcrumbs__item_8irth_11",
|
|
9
|
+
"teddy-breadcrumbs__link": "_teddy-breadcrumbs__link_8irth_22",
|
|
10
|
+
"teddy-breadcrumbs__link--home": "_teddy-breadcrumbs__link--home_8irth_26",
|
|
11
|
+
"teddy-breadcrumbs__page": "_teddy-breadcrumbs__page_8irth_35",
|
|
12
|
+
"teddy-breadcrumbs__page--negative": "_teddy-breadcrumbs__page--negative_8irth_41",
|
|
13
|
+
"teddy-breadcrumbs__separator": "_teddy-breadcrumbs__separator_8irth_44",
|
|
14
|
+
"teddy-breadcrumbs__separator--negative": "_teddy-breadcrumbs__separator--negative_8irth_48"
|
|
16
15
|
};
|
|
17
16
|
const rootClassName = "teddy-breadcrumbs";
|
|
18
17
|
const RootContext = React.createContext(void 0);
|
|
@@ -2,15 +2,14 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
const styles = {
|
|
5
|
-
"teddy-breadcrumbs__list": "_teddy-
|
|
6
|
-
"teddy-breadcrumbs__item": "_teddy-
|
|
7
|
-
"teddy-breadcrumbs__link": "_teddy-
|
|
8
|
-
"teddy-breadcrumbs__link--home": "_teddy-breadcrumbs__link--
|
|
9
|
-
"teddy-
|
|
10
|
-
"teddy-breadcrumbs__page": "_teddy-
|
|
11
|
-
"teddy-
|
|
12
|
-
"teddy-breadcrumbs__separator": "_teddy-
|
|
13
|
-
"teddy-breadcrumbs__separator--negative": "_teddy-breadcrumbs__separator--negative_qwtmx_67"
|
|
5
|
+
"teddy-breadcrumbs__list": "_teddy-breadcrumbs__list_8irth_1",
|
|
6
|
+
"teddy-breadcrumbs__item": "_teddy-breadcrumbs__item_8irth_11",
|
|
7
|
+
"teddy-breadcrumbs__link": "_teddy-breadcrumbs__link_8irth_22",
|
|
8
|
+
"teddy-breadcrumbs__link--home": "_teddy-breadcrumbs__link--home_8irth_26",
|
|
9
|
+
"teddy-breadcrumbs__page": "_teddy-breadcrumbs__page_8irth_35",
|
|
10
|
+
"teddy-breadcrumbs__page--negative": "_teddy-breadcrumbs__page--negative_8irth_41",
|
|
11
|
+
"teddy-breadcrumbs__separator": "_teddy-breadcrumbs__separator_8irth_44",
|
|
12
|
+
"teddy-breadcrumbs__separator--negative": "_teddy-breadcrumbs__separator--negative_8irth_48"
|
|
14
13
|
};
|
|
15
14
|
const rootClassName = "teddy-breadcrumbs";
|
|
16
15
|
const RootContext = React__default.createContext(void 0);
|
|
@@ -10,8 +10,13 @@ export declare const Breadcrumbs: import('react').ForwardRefExoticComponent<Omit
|
|
|
10
10
|
} & import('react').RefAttributes<HTMLElement>> & {
|
|
11
11
|
List: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import('react').RefAttributes<HTMLOListElement>>;
|
|
12
12
|
Item: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import('react').RefAttributes<HTMLLIElement>>;
|
|
13
|
-
Link: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
13
|
+
Link: import('react').ForwardRefExoticComponent<Omit<Omit<Omit<import('react').DetailedHTMLProps<import('react').AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & {
|
|
14
14
|
asChild?: boolean | undefined;
|
|
15
|
+
disableVisited?: boolean | undefined;
|
|
16
|
+
ensureTargetArea?: boolean | undefined;
|
|
17
|
+
silent?: boolean | undefined;
|
|
18
|
+
variant: "text" | "navigation" | "text-negative" | "standalone" | "standalone-negative" | "navigation-negative";
|
|
19
|
+
} & import('react').RefAttributes<HTMLAnchorElement>, "ref">, "variant"> & {
|
|
15
20
|
home?: boolean | undefined;
|
|
16
21
|
} & import('react').RefAttributes<HTMLAnchorElement>>;
|
|
17
22
|
Page: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLSpanElement>>;
|
|
@@ -15,7 +15,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
15
15
|
loading?: boolean | undefined;
|
|
16
16
|
fullWidth?: boolean | undefined;
|
|
17
17
|
size?: "sm" | "md" | "lg" | undefined;
|
|
18
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
19
|
} & {
|
|
20
20
|
iconOnly: true;
|
|
21
21
|
"aria-label": string;
|
|
@@ -26,7 +26,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
26
26
|
loading?: boolean | undefined;
|
|
27
27
|
fullWidth?: boolean | undefined;
|
|
28
28
|
size?: "sm" | "md" | "lg" | undefined;
|
|
29
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
30
|
} & {
|
|
31
31
|
iconOnly?: false | undefined;
|
|
32
32
|
"aria-label"?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const Card: import('react').ForwardRefExoticComponent<RootProps &
|
|
|
17
17
|
loading?: boolean | undefined;
|
|
18
18
|
fullWidth?: boolean | undefined;
|
|
19
19
|
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
21
|
} & {
|
|
22
22
|
iconOnly: true;
|
|
23
23
|
"aria-label": string;
|
|
@@ -28,12 +28,12 @@ export declare const Card: import('react').ForwardRefExoticComponent<RootProps &
|
|
|
28
28
|
loading?: boolean | undefined;
|
|
29
29
|
fullWidth?: boolean | undefined;
|
|
30
30
|
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
32
|
} & {
|
|
33
33
|
iconOnly?: false | undefined;
|
|
34
34
|
"aria-label"?: string | undefined;
|
|
35
35
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "variant"> & {
|
|
36
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
37
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
38
38
|
Content: import('react').ForwardRefExoticComponent<ContentProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
39
39
|
Illustration: import('react').ForwardRefExoticComponent<Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
4
|
+
const React = require("react");
|
|
5
|
+
const components_box_box = require("../box/box.cjs");
|
|
6
|
+
const clsx = require("clsx");
|
|
7
|
+
const components_flex_flex = require("../flex/flex.cjs");
|
|
8
|
+
const styles = {
|
|
9
|
+
"teddy-container": "_teddy-container_1jmq1_1"
|
|
10
|
+
};
|
|
11
|
+
const Container = React.forwardRef(
|
|
12
|
+
({ width, minWidth, maxWidth, height, minHeight, maxHeight, children, ...props }, forwardRef) => {
|
|
13
|
+
const innerContainer = { minWidth, height, minHeight, maxHeight };
|
|
14
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
15
|
+
components_flex_flex.Flex,
|
|
16
|
+
{
|
|
17
|
+
align: "center",
|
|
18
|
+
direction: "column",
|
|
19
|
+
flexGrow: "1",
|
|
20
|
+
flexShrink: "0",
|
|
21
|
+
ml: { sm: "200", xl: "600" },
|
|
22
|
+
mr: { sm: "200", xl: "600" },
|
|
23
|
+
...props,
|
|
24
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
25
|
+
components_box_box.Box,
|
|
26
|
+
{
|
|
27
|
+
width: width || "100%",
|
|
28
|
+
maxWidth: maxWidth || { sm: "100%", xl: "1344px" },
|
|
29
|
+
...innerContainer,
|
|
30
|
+
className: clsx(styles["teddy-container"], props.className),
|
|
31
|
+
ref: forwardRef,
|
|
32
|
+
children
|
|
33
|
+
}
|
|
34
|
+
)
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
);
|
|
39
|
+
Container.displayName = "Container";
|
|
40
|
+
exports.Container = Container;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { Box } from '../box';
|
|
3
|
+
import { Flex } from '../flex';
|
|
4
|
+
|
|
5
|
+
type ContainerProps = React.ComponentPropsWithoutRef<typeof Box> & Pick<React.ComponentProps<typeof Flex>, 'align'>;
|
|
6
|
+
/** */
|
|
7
|
+
declare const Container: React.ForwardRefExoticComponent<ContainerProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export { Container };
|
|
9
|
+
export type { ContainerProps };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import React__default from "react";
|
|
3
|
+
import { Box } from "../box/box.js";
|
|
4
|
+
import clsx from "clsx";
|
|
5
|
+
import { Flex } from "../flex/flex.js";
|
|
6
|
+
const styles = {
|
|
7
|
+
"teddy-container": "_teddy-container_1jmq1_1"
|
|
8
|
+
};
|
|
9
|
+
const Container = React__default.forwardRef(
|
|
10
|
+
({ width, minWidth, maxWidth, height, minHeight, maxHeight, children, ...props }, forwardRef) => {
|
|
11
|
+
const innerContainer = { minWidth, height, minHeight, maxHeight };
|
|
12
|
+
return /* @__PURE__ */ jsx(
|
|
13
|
+
Flex,
|
|
14
|
+
{
|
|
15
|
+
align: "center",
|
|
16
|
+
direction: "column",
|
|
17
|
+
flexGrow: "1",
|
|
18
|
+
flexShrink: "0",
|
|
19
|
+
ml: { sm: "200", xl: "600" },
|
|
20
|
+
mr: { sm: "200", xl: "600" },
|
|
21
|
+
...props,
|
|
22
|
+
children: /* @__PURE__ */ jsx(
|
|
23
|
+
Box,
|
|
24
|
+
{
|
|
25
|
+
width: width || "100%",
|
|
26
|
+
maxWidth: maxWidth || { sm: "100%", xl: "1344px" },
|
|
27
|
+
...innerContainer,
|
|
28
|
+
className: clsx(styles["teddy-container"], props.className),
|
|
29
|
+
ref: forwardRef,
|
|
30
|
+
children
|
|
31
|
+
}
|
|
32
|
+
)
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
);
|
|
37
|
+
Container.displayName = "Container";
|
|
38
|
+
export {
|
|
39
|
+
Container
|
|
40
|
+
};
|
|
@@ -12,7 +12,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
12
12
|
loading?: boolean | undefined;
|
|
13
13
|
fullWidth?: boolean | undefined;
|
|
14
14
|
size?: "sm" | "md" | "lg" | undefined;
|
|
15
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
15
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
16
16
|
} & {
|
|
17
17
|
iconOnly: true;
|
|
18
18
|
"aria-label": string;
|
|
@@ -23,7 +23,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
23
23
|
loading?: boolean | undefined;
|
|
24
24
|
fullWidth?: boolean | undefined;
|
|
25
25
|
size?: "sm" | "md" | "lg" | undefined;
|
|
26
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
26
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
27
27
|
} & {
|
|
28
28
|
iconOnly?: false | undefined;
|
|
29
29
|
"aria-label"?: string | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const ExpandableCard: import('react').ForwardRefExoticComponent<R
|
|
|
27
27
|
loading?: boolean | undefined;
|
|
28
28
|
fullWidth?: boolean | undefined;
|
|
29
29
|
size?: "sm" | "md" | "lg" | undefined;
|
|
30
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
30
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
31
31
|
} & {
|
|
32
32
|
iconOnly: true;
|
|
33
33
|
"aria-label": string;
|
|
@@ -38,12 +38,12 @@ export declare const ExpandableCard: import('react').ForwardRefExoticComponent<R
|
|
|
38
38
|
loading?: boolean | undefined;
|
|
39
39
|
fullWidth?: boolean | undefined;
|
|
40
40
|
size?: "sm" | "md" | "lg" | undefined;
|
|
41
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
41
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
42
42
|
} & {
|
|
43
43
|
iconOnly?: false | undefined;
|
|
44
44
|
"aria-label"?: string | undefined;
|
|
45
45
|
} & import('react').RefAttributes<HTMLButtonElement>, "ref">, "variant"> & {
|
|
46
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
46
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
47
47
|
position?: "right" | "left" | undefined;
|
|
48
48
|
} & import('react').RefAttributes<HTMLButtonElement>>;
|
|
49
49
|
Indicator: import('react').ForwardRefExoticComponent<Omit<IndicatorProps, "ref"> & import('react').RefAttributes<SVGSVGElement>>;
|
|
@@ -43,6 +43,7 @@ const components_textField_index = require("./text-field/index.cjs");
|
|
|
43
43
|
const components_heading_heading = require("./heading/heading.cjs");
|
|
44
44
|
const components_visuallyHidden_visuallyHidden = require("./visually-hidden/visually-hidden.cjs");
|
|
45
45
|
const components_textSpacing_textSpacing = require("./text-spacing/text-spacing.cjs");
|
|
46
|
+
const components_container_container = require("./container/container.cjs");
|
|
46
47
|
const components_input_inputGroup = require("./input/input-group.cjs");
|
|
47
48
|
exports.Breadcrumbs = components_breadcrumbs_index.Breadcrumbs;
|
|
48
49
|
exports.Modal = components_radioCardGroup_radioCardGroupItemTitle.Modal;
|
|
@@ -88,4 +89,5 @@ exports.TextField = components_textField_index.TextField;
|
|
|
88
89
|
exports.Heading = components_heading_heading.Heading;
|
|
89
90
|
exports.VisuallyHidden = components_visuallyHidden_visuallyHidden.VisuallyHidden;
|
|
90
91
|
exports.TextSpacing = components_textSpacing_textSpacing.TextSpacing;
|
|
92
|
+
exports.Container = components_container_container.Container;
|
|
91
93
|
exports.Input = components_input_inputGroup.Input;
|
package/dist/components/index.js
CHANGED
|
@@ -41,6 +41,7 @@ import { TextField } from "./text-field/index.js";
|
|
|
41
41
|
import { Heading } from "./heading/heading.js";
|
|
42
42
|
import { VisuallyHidden } from "./visually-hidden/visually-hidden.js";
|
|
43
43
|
import { TextSpacing } from "./text-spacing/text-spacing.js";
|
|
44
|
+
import { Container } from "./container/container.js";
|
|
44
45
|
import { I } from "./input/input-group.js";
|
|
45
46
|
export {
|
|
46
47
|
Accordion,
|
|
@@ -53,6 +54,7 @@ export {
|
|
|
53
54
|
Card,
|
|
54
55
|
Chip,
|
|
55
56
|
ColorDot,
|
|
57
|
+
Container,
|
|
56
58
|
CounterBadge,
|
|
57
59
|
DatePicker,
|
|
58
60
|
Drawer,
|
|
@@ -45,6 +45,7 @@ require("../text-field/index.cjs");
|
|
|
45
45
|
require("../heading/heading.cjs");
|
|
46
46
|
require("../visually-hidden/visually-hidden.cjs");
|
|
47
47
|
require("../text-spacing/text-spacing.cjs");
|
|
48
|
+
require("../container/container.cjs");
|
|
48
49
|
require("@radix-ui/react-slot");
|
|
49
50
|
require("../../utils/composeRefs.cjs");
|
|
50
51
|
exports.Modal = components_radioCardGroup_radioCardGroupItemTitle.Modal;
|
|
@@ -43,6 +43,7 @@ import "../text-field/index.js";
|
|
|
43
43
|
import "../heading/heading.js";
|
|
44
44
|
import "../visually-hidden/visually-hidden.js";
|
|
45
45
|
import "../text-spacing/text-spacing.js";
|
|
46
|
+
import "../container/container.js";
|
|
46
47
|
import "@radix-ui/react-slot";
|
|
47
48
|
import "../../utils/composeRefs.js";
|
|
48
49
|
export {
|
|
@@ -44,4 +44,5 @@ require("../text-field/index.cjs");
|
|
|
44
44
|
require("../heading/heading.cjs");
|
|
45
45
|
require("../visually-hidden/visually-hidden.cjs");
|
|
46
46
|
require("../text-spacing/text-spacing.cjs");
|
|
47
|
+
require("../container/container.cjs");
|
|
47
48
|
exports.Content = components_radioCardGroup_radioCardGroupItemTitle.Content;
|
|
@@ -45,4 +45,5 @@ require("../text-field/index.cjs");
|
|
|
45
45
|
require("../heading/heading.cjs");
|
|
46
46
|
require("../visually-hidden/visually-hidden.cjs");
|
|
47
47
|
require("../text-spacing/text-spacing.cjs");
|
|
48
|
+
require("../container/container.cjs");
|
|
48
49
|
exports.Body = components_radioCardGroup_radioCardGroupItemTitle.Body;
|
|
@@ -47,6 +47,7 @@ require("../text-field/index.cjs");
|
|
|
47
47
|
const components_heading_heading = require("../heading/heading.cjs");
|
|
48
48
|
require("../visually-hidden/visually-hidden.cjs");
|
|
49
49
|
require("../text-spacing/text-spacing.cjs");
|
|
50
|
+
require("../container/container.cjs");
|
|
50
51
|
const utils_composeRefs = require("../../utils/composeRefs.cjs");
|
|
51
52
|
const components_radioCardGroup_radioCardGroupIndicator = require("./radio-card-group-indicator.cjs");
|
|
52
53
|
const RadioGroupPrimitive = require("@radix-ui/react-radio-group");
|
|
@@ -45,6 +45,7 @@ import "../text-field/index.js";
|
|
|
45
45
|
import { Heading } from "../heading/heading.js";
|
|
46
46
|
import "../visually-hidden/visually-hidden.js";
|
|
47
47
|
import "../text-spacing/text-spacing.js";
|
|
48
|
+
import "../container/container.js";
|
|
48
49
|
import { useComposedRefs, composeRefs } from "../../utils/composeRefs.js";
|
|
49
50
|
import { Indicator } from "./radio-card-group-indicator.js";
|
|
50
51
|
import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
|
|
@@ -45,6 +45,7 @@ require("../text-field/index.cjs");
|
|
|
45
45
|
require("../heading/heading.cjs");
|
|
46
46
|
require("../visually-hidden/visually-hidden.cjs");
|
|
47
47
|
require("../text-spacing/text-spacing.cjs");
|
|
48
|
+
require("../container/container.cjs");
|
|
48
49
|
require("../../utils/composeRefs.cjs");
|
|
49
50
|
exports.Item = components_radioCardGroup_radioCardGroupItemTitle.Item;
|
|
50
51
|
exports.ItemContext = components_radioCardGroup_radioCardGroupItemTitle.ItemContext;
|
|
@@ -43,6 +43,7 @@ import "../text-field/index.js";
|
|
|
43
43
|
import "../heading/heading.js";
|
|
44
44
|
import "../visually-hidden/visually-hidden.js";
|
|
45
45
|
import "../text-spacing/text-spacing.js";
|
|
46
|
+
import "../container/container.js";
|
|
46
47
|
import "../../utils/composeRefs.js";
|
|
47
48
|
export {
|
|
48
49
|
a as Item,
|
|
@@ -15,7 +15,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
15
15
|
loading?: boolean | undefined;
|
|
16
16
|
fullWidth?: boolean | undefined;
|
|
17
17
|
size?: "sm" | "md" | "lg" | undefined;
|
|
18
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
19
|
} & {
|
|
20
20
|
iconOnly: true;
|
|
21
21
|
"aria-label": string;
|
|
@@ -26,7 +26,7 @@ export declare const ScrollArea: import('react').ForwardRefExoticComponent<Omit<
|
|
|
26
26
|
loading?: boolean | undefined;
|
|
27
27
|
fullWidth?: boolean | undefined;
|
|
28
28
|
size?: "sm" | "md" | "lg" | undefined;
|
|
29
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
30
|
} & {
|
|
31
31
|
iconOnly?: false | undefined;
|
|
32
32
|
"aria-label"?: string | undefined;
|
|
@@ -17,7 +17,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
17
17
|
loading?: boolean | undefined;
|
|
18
18
|
fullWidth?: boolean | undefined;
|
|
19
19
|
size?: "sm" | "md" | "lg" | undefined;
|
|
20
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
21
|
} & {
|
|
22
22
|
iconOnly: true;
|
|
23
23
|
"aria-label": string;
|
|
@@ -28,7 +28,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
28
28
|
loading?: boolean | undefined;
|
|
29
29
|
fullWidth?: boolean | undefined;
|
|
30
30
|
size?: "sm" | "md" | "lg" | undefined;
|
|
31
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
32
|
} & {
|
|
33
33
|
iconOnly?: false | undefined;
|
|
34
34
|
"aria-label"?: string | undefined;
|
|
@@ -33,7 +33,7 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<i
|
|
|
33
33
|
loading?: boolean | undefined;
|
|
34
34
|
fullWidth?: boolean | undefined;
|
|
35
35
|
size?: "sm" | "md" | "lg" | undefined;
|
|
36
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
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
37
|
} & {
|
|
38
38
|
iconOnly: true;
|
|
39
39
|
"aria-label": string;
|
|
@@ -44,7 +44,7 @@ export declare const Tabs: import('react').ForwardRefExoticComponent<Omit<Omit<i
|
|
|
44
44
|
loading?: boolean | undefined;
|
|
45
45
|
fullWidth?: boolean | undefined;
|
|
46
46
|
size?: "sm" | "md" | "lg" | undefined;
|
|
47
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
47
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
48
48
|
} & {
|
|
49
49
|
iconOnly?: false | undefined;
|
|
50
50
|
"aria-label"?: string | undefined;
|
|
@@ -10,7 +10,7 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
10
10
|
loading?: boolean | undefined;
|
|
11
11
|
fullWidth?: boolean | undefined;
|
|
12
12
|
size?: "sm" | "md" | "lg" | undefined;
|
|
13
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
13
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
14
14
|
} & {
|
|
15
15
|
iconOnly: true;
|
|
16
16
|
"aria-label": string;
|
|
@@ -21,7 +21,7 @@ export declare const ScrollButton: React.ForwardRefExoticComponent<Omit<Omit<Omi
|
|
|
21
21
|
loading?: boolean | undefined;
|
|
22
22
|
fullWidth?: boolean | undefined;
|
|
23
23
|
size?: "sm" | "md" | "lg" | undefined;
|
|
24
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
24
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
25
25
|
} & {
|
|
26
26
|
iconOnly?: false | undefined;
|
|
27
27
|
"aria-label"?: string | undefined;
|
|
@@ -34,7 +34,7 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
34
34
|
loading?: boolean | undefined;
|
|
35
35
|
fullWidth?: boolean | undefined;
|
|
36
36
|
size?: "sm" | "md" | "lg" | undefined;
|
|
37
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
37
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
38
38
|
} & {
|
|
39
39
|
iconOnly: true;
|
|
40
40
|
"aria-label": string;
|
|
@@ -45,7 +45,7 @@ export declare const TextField: import('react').ForwardRefExoticComponent<Omit<i
|
|
|
45
45
|
loading?: boolean | undefined;
|
|
46
46
|
fullWidth?: boolean | undefined;
|
|
47
47
|
size?: "sm" | "md" | "lg" | undefined;
|
|
48
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
48
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
49
49
|
} & {
|
|
50
50
|
iconOnly?: false | undefined;
|
|
51
51
|
"aria-label"?: string | undefined;
|
|
@@ -11,7 +11,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
11
11
|
loading?: boolean | undefined;
|
|
12
12
|
fullWidth?: boolean | undefined;
|
|
13
13
|
size?: "sm" | "md" | "lg" | undefined;
|
|
14
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
14
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
15
15
|
} & {
|
|
16
16
|
iconOnly: true;
|
|
17
17
|
"aria-label": string;
|
|
@@ -22,7 +22,7 @@ export declare const Button: React.ForwardRefExoticComponent<Omit<Omit<Omit<Reac
|
|
|
22
22
|
loading?: boolean | undefined;
|
|
23
23
|
fullWidth?: boolean | undefined;
|
|
24
24
|
size?: "sm" | "md" | "lg" | undefined;
|
|
25
|
-
variant?: "text" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "
|
|
25
|
+
variant?: "text" | "text-negative" | "list-item" | "primary" | "secondary" | "destructive" | "tertiary-purple" | "expressive" | "primary-negative" | "secondary-negative" | "destructive-negative" | "tertiary-purple-negative" | "expressive-negative" | undefined;
|
|
26
26
|
} & {
|
|
27
27
|
iconOnly?: false | undefined;
|
|
28
28
|
"aria-label"?: string | undefined;
|
package/dist/main.cjs
CHANGED
|
@@ -43,6 +43,7 @@ const components_textField_index = require("./components/text-field/index.cjs");
|
|
|
43
43
|
const components_heading_heading = require("./components/heading/heading.cjs");
|
|
44
44
|
const components_visuallyHidden_visuallyHidden = require("./components/visually-hidden/visually-hidden.cjs");
|
|
45
45
|
const components_textSpacing_textSpacing = require("./components/text-spacing/text-spacing.cjs");
|
|
46
|
+
const components_container_container = require("./components/container/container.cjs");
|
|
46
47
|
const tokens_border_variables = require("./tokens/border/variables.cjs");
|
|
47
48
|
const tokens_breakpoint_variables = require("./tokens/breakpoint/variables.cjs");
|
|
48
49
|
const tokens_color_variables = require("./tokens/color/variables.cjs");
|
|
@@ -95,6 +96,7 @@ exports.TextField = components_textField_index.TextField;
|
|
|
95
96
|
exports.Heading = components_heading_heading.Heading;
|
|
96
97
|
exports.VisuallyHidden = components_visuallyHidden_visuallyHidden.VisuallyHidden;
|
|
97
98
|
exports.TextSpacing = components_textSpacing_textSpacing.TextSpacing;
|
|
99
|
+
exports.Container = components_container_container.Container;
|
|
98
100
|
exports.teddyBorderRadiusFull = tokens_border_variables.teddyBorderRadiusFull;
|
|
99
101
|
exports.teddyBorderRadiusLg = tokens_border_variables.teddyBorderRadiusLg;
|
|
100
102
|
exports.teddyBorderRadiusMd = tokens_border_variables.teddyBorderRadiusMd;
|
package/dist/main.js
CHANGED
|
@@ -41,6 +41,7 @@ import { TextField } from "./components/text-field/index.js";
|
|
|
41
41
|
import { Heading } from "./components/heading/heading.js";
|
|
42
42
|
import { VisuallyHidden } from "./components/visually-hidden/visually-hidden.js";
|
|
43
43
|
import { TextSpacing } from "./components/text-spacing/text-spacing.js";
|
|
44
|
+
import { Container } from "./components/container/container.js";
|
|
44
45
|
import { teddyBorderRadiusFull, teddyBorderRadiusLg, teddyBorderRadiusMd, teddyBorderRadiusSm, teddyBorderRadiusXs, teddyBorderWidthLg, teddyBorderWidthMd, teddyBorderWidthSm, teddyBorderWidthXs } from "./tokens/border/variables.js";
|
|
45
46
|
import { teddyBreakpointLg, teddyBreakpointMd, teddyBreakpointSm, teddyBreakpointXl } from "./tokens/breakpoint/variables.js";
|
|
46
47
|
import { teddyColorBackgroundInteractiveDestructive, teddyColorBackgroundInteractiveDestructiveActive, teddyColorBackgroundInteractiveDestructiveHover, teddyColorBackgroundInteractiveDisabled, teddyColorBackgroundInteractiveDisabledNegative, teddyColorBackgroundInteractiveExpressive, teddyColorBackgroundInteractiveExpressiveActive, teddyColorBackgroundInteractiveExpressiveHover, teddyColorBackgroundInteractiveExpressiveNegative, teddyColorBackgroundInteractiveExpressiveNegativeActive, teddyColorBackgroundInteractiveExpressiveNegativeHover, teddyColorBackgroundInteractiveInactive, teddyColorBackgroundInteractiveInactiveNegative, teddyColorBackgroundInteractivePrimary, teddyColorBackgroundInteractivePrimaryActive, teddyColorBackgroundInteractivePrimaryHover, teddyColorBackgroundInteractivePrimaryNegative, teddyColorBackgroundInteractivePrimaryNegativeActive, teddyColorBackgroundInteractivePrimaryNegativeHover, teddyColorBackgroundInteractiveReadOnly, teddyColorBackgroundInteractiveTransparent, teddyColorBackgroundInteractiveTransparentActive, teddyColorBackgroundInteractiveTransparentHover, teddyColorBackgroundInteractiveTransparentNegativeActive, teddyColorBackgroundInteractiveTransparentNegativeHover, teddyColorBackgroundPrimary, teddyColorBackgroundSecondary, teddyColorBackgroundStatusAttention, teddyColorBackgroundStatusError, teddyColorBackgroundStatusErrorStrong, teddyColorBackgroundStatusInfo, teddyColorBackgroundStatusInfoStrong, teddyColorBackgroundStatusNeutral, teddyColorBackgroundStatusSpecial, teddyColorBackgroundStatusSuccess, teddyColorBackgroundStatusSuccessStrong, teddyColorBackgroundStatusWarning, teddyColorBackgroundStatusWarningStrong, teddyColorBackgroundToneOnTonePrimary, teddyColorBackgroundToneOnToneQuaternary, teddyColorBackgroundToneOnToneSecondary, teddyColorBackgroundToneOnToneTertiary, teddyColorBeige100, teddyColorBeige200, teddyColorBeige300, teddyColorBeige400, teddyColorBeige50, teddyColorBeige500, teddyColorBeige600, teddyColorBeige700, teddyColorBeige800, teddyColorBeige900, teddyColorBeige950, teddyColorBlue100, teddyColorBlue200, teddyColorBlue300, teddyColorBlue400, teddyColorBlue50, teddyColorBlue500, teddyColorBlue600, teddyColorBlue700, teddyColorBlue800, teddyColorBlue900, teddyColorBlue950, teddyColorBorderInteractiveFocus, teddyColorBorderInteractivePrimary, teddyColorBorderInteractivePrimaryActive, teddyColorBorderInteractivePrimaryHover, teddyColorBorderInteractivePrimaryNegative, teddyColorBorderInteractivePrimaryNegativeActive, teddyColorBorderInteractivePrimaryNegativeHover, teddyColorBorderInteractiveSelected, teddyColorBorderInteractiveSubtle, teddyColorBorderInteractiveSubtleHover, teddyColorBorderMedium, teddyColorBorderMediumNegative, teddyColorBorderStatusError, teddyColorBorderStatusInfo, teddyColorBorderStatusSuccess, teddyColorBorderStatusWarning, teddyColorBorderStrong, teddyColorBorderStrongNegative, teddyColorBorderWeak, teddyColorBorderWeakNegative, teddyColorBrandBeige, teddyColorBrandCorePurple, teddyColorBrandDeepBeige, teddyColorBrandDeepPurple, teddyColorBrandLightBeige, teddyColorBrandLightPurple, teddyColorBrandOffBlack, teddyColorBrandWhite, teddyColorFunctionalBlack, teddyColorFunctionalTransparent, teddyColorFunctionalWhite, teddyColorGray100, teddyColorGray150, teddyColorGray200, teddyColorGray300, teddyColorGray400, teddyColorGray50, teddyColorGray500, teddyColorGray600, teddyColorGray700, teddyColorGray800, teddyColorGray850, teddyColorGray900, teddyColorGray950, teddyColorGreen100, teddyColorGreen200, teddyColorGreen300, teddyColorGreen400, teddyColorGreen50, teddyColorGreen500, teddyColorGreen600, teddyColorGreen700, teddyColorGreen800, teddyColorGreen900, teddyColorGreen950, teddyColorOrange100, teddyColorOrange200, teddyColorOrange300, teddyColorOrange400, teddyColorOrange50, teddyColorOrange500, teddyColorOrange600, teddyColorOrange700, teddyColorOrange800, teddyColorOrange900, teddyColorOrange950, teddyColorOverlayDefault, teddyColorPurple100, teddyColorPurple200, teddyColorPurple300, teddyColorPurple400, teddyColorPurple50, teddyColorPurple500, teddyColorPurple550, teddyColorPurple600, teddyColorPurple700, teddyColorPurple800, teddyColorPurple900, teddyColorPurple950, teddyColorRed100, teddyColorRed200, teddyColorRed300, teddyColorRed400, teddyColorRed50, teddyColorRed500, teddyColorRed600, teddyColorRed700, teddyColorRed800, teddyColorRed900, teddyColorRed950, teddyColorTeal100, teddyColorTeal200, teddyColorTeal300, teddyColorTeal400, teddyColorTeal50, teddyColorTeal500, teddyColorTeal600, teddyColorTeal700, teddyColorTeal800, teddyColorTeal900, teddyColorTeal950, teddyColorTextDefault, teddyColorTextDefaultNegative, teddyColorTextInteractiveOnDestructive, teddyColorTextInteractiveOnExpressive, teddyColorTextInteractiveOnExpressiveNegative, teddyColorTextInteractiveOnExpressiveNegativeActive, teddyColorTextInteractiveOnExpressiveNegativeHover, teddyColorTextInteractiveOnPrimary, teddyColorTextInteractiveOnPrimaryNegative, teddyColorTextInteractivePrimary, teddyColorTextInteractivePrimaryActive, teddyColorTextInteractivePrimaryHover, teddyColorTextInteractivePrimaryNegative, teddyColorTextInteractivePrimaryNegativeActive, teddyColorTextInteractivePrimaryNegativeHover, teddyColorTextInteractiveSelected, teddyColorTextMedium, teddyColorTextMediumNegative, teddyColorTextStatusAttention, teddyColorTextStatusDiscount, teddyColorTextStatusErrorMedium, teddyColorTextStatusErrorStrong, teddyColorTextStatusInfoMedium, teddyColorTextStatusInfoStrong, teddyColorTextStatusNeutral, teddyColorTextStatusSpecial, teddyColorTextStatusSuccessMedium, teddyColorTextStatusSuccessStrong, teddyColorTextStatusWarningMedium, teddyColorTextStatusWarningStrong, teddyColorTextToneOnTonePrimary, teddyColorTextToneOnToneSecondary, teddyColorTextToneOnToneTertiary, teddyColorTextWeak, teddyColorTextWeakNegative, teddyColorTransparentBlack100, teddyColorTransparentBlack150, teddyColorTransparentBlack200, teddyColorTransparentBlack300, teddyColorTransparentBlack400, teddyColorTransparentBlack50, teddyColorTransparentBlack500, teddyColorTransparentBlack600, teddyColorTransparentBlack700, teddyColorTransparentBlack800, teddyColorTransparentBlack850, teddyColorTransparentBlack900, teddyColorTransparentBlack950, teddyColorTransparentWhite100, teddyColorTransparentWhite150, teddyColorTransparentWhite200, teddyColorTransparentWhite300, teddyColorTransparentWhite400, teddyColorTransparentWhite50, teddyColorTransparentWhite500, teddyColorTransparentWhite600, teddyColorTransparentWhite700, teddyColorTransparentWhite800, teddyColorTransparentWhite850, teddyColorTransparentWhite900, teddyColorTransparentWhite950 } from "./tokens/color/variables.js";
|
|
@@ -60,6 +61,7 @@ export {
|
|
|
60
61
|
Card,
|
|
61
62
|
Chip,
|
|
62
63
|
ColorDot,
|
|
64
|
+
Container,
|
|
63
65
|
CounterBadge,
|
|
64
66
|
DatePicker,
|
|
65
67
|
Drawer,
|
package/dist/style.css
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
._teddy-
|
|
1
|
+
._teddy-breadcrumbs__list_8irth_1 {
|
|
2
2
|
display: flex;
|
|
3
3
|
align-items: center;
|
|
4
4
|
gap: var(--teddy-spacing-50);
|
|
5
5
|
font-size: var(--teddy-typography-scale-75);
|
|
6
6
|
list-style: none;
|
|
7
7
|
font-family: var(--teddy-typography-family-default);
|
|
8
|
+
padding: 0;
|
|
9
|
+
margin: 0;
|
|
8
10
|
}
|
|
9
|
-
._teddy-
|
|
11
|
+
._teddy-breadcrumbs__item_8irth_11 {
|
|
10
12
|
display: inline-grid;
|
|
11
13
|
align-items: center;
|
|
12
14
|
gap: var(--teddy-spacing-50);
|
|
@@ -17,69 +19,126 @@
|
|
|
17
19
|
white-space: nowrap;
|
|
18
20
|
text-overflow: ellipsis;
|
|
19
21
|
}
|
|
20
|
-
._teddy-
|
|
21
|
-
transition: color var(--teddy-motion-duration-100) ease;
|
|
22
|
+
._teddy-breadcrumbs__link_8irth_22 {
|
|
22
23
|
padding: var(--teddy-spacing-150) var(--teddy-spacing-25);
|
|
23
24
|
line-height: var(--teddy-typography-line-height-loose);
|
|
24
|
-
color: var(--teddy-color-text-interactive-primary);
|
|
25
25
|
}
|
|
26
|
-
._teddy-breadcrumbs__link--
|
|
26
|
+
._teddy-breadcrumbs__link--home_8irth_26 {
|
|
27
27
|
display: inline-flex;
|
|
28
28
|
align-items: center;
|
|
29
29
|
gap: var(--teddy-spacing-50);
|
|
30
30
|
}
|
|
31
|
-
._teddy-
|
|
31
|
+
._teddy-breadcrumbs__link_8irth_22:hover, ._teddy-breadcrumbs__link_8irth_22:active {
|
|
32
32
|
text-decoration-thickness: var(--teddy-border-width-sm);
|
|
33
33
|
text-underline-offset: var(--teddy-border-width-sm);
|
|
34
34
|
}
|
|
35
|
-
._teddy-
|
|
36
|
-
color: var(--teddy-color-text-interactive-primary-hover);
|
|
37
|
-
background: var(--teddy-color-background-interactive-transparent-hover);
|
|
38
|
-
}
|
|
39
|
-
._teddy-breadcrumbs__link_qwtmx_20:active {
|
|
40
|
-
color: var(--teddy-color-text-interactive-primary-active);
|
|
41
|
-
background: var(--teddy-color-background-interactive-transparent-active);
|
|
42
|
-
}
|
|
43
|
-
._teddy-breadcrumbs__link--negative_qwtmx_43 {
|
|
44
|
-
color: var(--teddy-color-text-interactive-primary-negative);
|
|
45
|
-
}
|
|
46
|
-
._teddy-breadcrumbs__link--negative_qwtmx_43:hover {
|
|
47
|
-
color: var(--teddy-color-text-interactive-primary-negative-hover);
|
|
48
|
-
background: var(--teddy-color-background-interactive-transparent-negative-hover);
|
|
49
|
-
}
|
|
50
|
-
._teddy-breadcrumbs__link--negative_qwtmx_43:active {
|
|
51
|
-
color: var(--teddy-color-text-interactive-primary-negative-active);
|
|
52
|
-
background: var(--teddy-color-background-interactive-transparent-negative-active);
|
|
53
|
-
}
|
|
54
|
-
._teddy-breadcrumbs__page_qwtmx_54 {
|
|
35
|
+
._teddy-breadcrumbs__page_8irth_35 {
|
|
55
36
|
font-weight: var(--teddy-typography-weight-medium);
|
|
56
37
|
color: var(--teddy-color-text-default);
|
|
57
38
|
text-overflow: ellipsis;
|
|
58
39
|
overflow: hidden;
|
|
59
40
|
}
|
|
60
|
-
._teddy-breadcrumbs__page--
|
|
41
|
+
._teddy-breadcrumbs__page--negative_8irth_41 {
|
|
61
42
|
color: var(--teddy-color-text-default-negative);
|
|
62
43
|
}
|
|
63
|
-
._teddy-
|
|
64
|
-
color: var(--teddy-color-text-
|
|
44
|
+
._teddy-breadcrumbs__separator_8irth_44 {
|
|
45
|
+
color: var(--teddy-color-text-interactive-primary);
|
|
65
46
|
font-weight: var(--teddy-typography-weight-normal);
|
|
66
47
|
}
|
|
67
|
-
._teddy-breadcrumbs__separator--
|
|
68
|
-
color: var(--teddy-color-text-
|
|
48
|
+
._teddy-breadcrumbs__separator--negative_8irth_48 {
|
|
49
|
+
color: var(--teddy-color-text-interactive-primary-negative);
|
|
69
50
|
}
|
|
70
51
|
@media (max-width: 600px) {
|
|
71
|
-
._teddy-
|
|
52
|
+
._teddy-breadcrumbs__item_8irth_11, ._teddy-breadcrumbs__separator_8irth_44 {
|
|
72
53
|
display: none;
|
|
73
54
|
}
|
|
74
|
-
._teddy-
|
|
55
|
+
._teddy-breadcrumbs__item_8irth_11:last-child {
|
|
75
56
|
display: inline-grid;
|
|
76
57
|
}
|
|
77
|
-
._teddy-
|
|
58
|
+
._teddy-breadcrumbs__item_8irth_11:nth-last-child(3) {
|
|
78
59
|
display: inline-grid;
|
|
79
60
|
}
|
|
80
|
-
._teddy-
|
|
61
|
+
._teddy-breadcrumbs__item_8irth_11:nth-last-child(3) ~ ._teddy-breadcrumbs__separator_8irth_44 {
|
|
81
62
|
display: inline-grid;
|
|
82
63
|
}
|
|
64
|
+
}@layer link {
|
|
65
|
+
._teddy-link_azi31_2 {
|
|
66
|
+
align-items: center;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
display: inline-flex;
|
|
69
|
+
gap: var(--teddy-spacing-50);
|
|
70
|
+
text-decoration: underline;
|
|
71
|
+
}
|
|
72
|
+
._teddy-link_azi31_2:focus, ._teddy-link_azi31_2:active {
|
|
73
|
+
outline: solid var(--teddy-border-width-sm) var(--teddy-color-border-interactive-focus);
|
|
74
|
+
outline-offset: var(--teddy-spacing-25);
|
|
75
|
+
}
|
|
76
|
+
._teddy-link_azi31_2:focus:not(:focus-visible) {
|
|
77
|
+
outline: 0;
|
|
78
|
+
}
|
|
79
|
+
._teddy-link--text_azi31_16, ._teddy-link--standalone_azi31_16, ._teddy-link--navigation_azi31_16 {
|
|
80
|
+
color: var(--teddy-color-text-interactive-primary);
|
|
81
|
+
}
|
|
82
|
+
._teddy-link--text_azi31_16:hover, ._teddy-link--standalone_azi31_16:hover, ._teddy-link--navigation_azi31_16:hover {
|
|
83
|
+
color: var(--teddy-color-text-interactive-primary-active);
|
|
84
|
+
background-color: var(--teddy-color-background-interactive-transparent-hover);
|
|
85
|
+
}
|
|
86
|
+
._teddy-link--text_azi31_16:active, ._teddy-link--standalone_azi31_16:active, ._teddy-link--navigation_azi31_16:active {
|
|
87
|
+
background-color: var(--teddy-color-background-interactive-transparent-active);
|
|
88
|
+
}
|
|
89
|
+
._teddy-link--text_azi31_16:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--standalone_azi31_16:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--navigation_azi31_16:visited:not(._teddy-link--disable-visited_azi31_26) {
|
|
90
|
+
color: var(--teddy-color-text-interactive-primary-active);
|
|
91
|
+
}
|
|
92
|
+
._teddy-link--text-negative_azi31_29, ._teddy-link--standalone-negative_azi31_29, ._teddy-link--navigation-negative_azi31_29 {
|
|
93
|
+
color: var(--teddy-color-text-interactive-primary-negative);
|
|
94
|
+
}
|
|
95
|
+
._teddy-link--text-negative_azi31_29:hover, ._teddy-link--standalone-negative_azi31_29:hover, ._teddy-link--navigation-negative_azi31_29:hover {
|
|
96
|
+
background-color: var(--teddy-color-background-interactive-transparent-negative-hover);
|
|
97
|
+
color: var(--teddy-color-text-interactive-primary-negative);
|
|
98
|
+
}
|
|
99
|
+
._teddy-link--text-negative_azi31_29:active, ._teddy-link--standalone-negative_azi31_29:active, ._teddy-link--navigation-negative_azi31_29:active {
|
|
100
|
+
background-color: var(--teddy-color-background-interactive-transparent-negative-active);
|
|
101
|
+
color: var(--teddy-color-text-interactive-primary-negative-active);
|
|
102
|
+
}
|
|
103
|
+
._teddy-link--text-negative_azi31_29:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--standalone-negative_azi31_29:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--navigation-negative_azi31_29:visited:not(._teddy-link--disable-visited_azi31_26) {
|
|
104
|
+
color: var(--teddy-color-text-interactive-primary-negative-active);
|
|
105
|
+
}
|
|
106
|
+
._teddy-link--standalone_azi31_16, ._teddy-link--standalone-negative_azi31_29 {
|
|
107
|
+
padding: var(--teddy-spacing-150) 0;
|
|
108
|
+
}
|
|
109
|
+
._teddy-link--navigation_azi31_16, ._teddy-link--navigation-negative_azi31_29 {
|
|
110
|
+
align-items: center;
|
|
111
|
+
background-color: var(--teddy-color-functional-transparent);
|
|
112
|
+
display: flex;
|
|
113
|
+
font-weight: var(--teddy-typography-weight-medium);
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
}
|
|
116
|
+
._teddy-link--navigation_azi31_16:active, ._teddy-link--navigation_azi31_16:hover, ._teddy-link--navigation-negative_azi31_29:active, ._teddy-link--navigation-negative_azi31_29:hover {
|
|
117
|
+
background-color: var(--teddy-color-functional-transparent);
|
|
118
|
+
text-decoration: underline;
|
|
119
|
+
}
|
|
120
|
+
._teddy-link--ensure-target-area_azi31_57 {
|
|
121
|
+
display: flex;
|
|
122
|
+
align-items: center;
|
|
123
|
+
min-height: var(--teddy-spacing-600);
|
|
124
|
+
min-width: var(--teddy-spacing-600);
|
|
125
|
+
}
|
|
126
|
+
._teddy-link--silent_azi31_63 {
|
|
127
|
+
background-color: inherit;
|
|
128
|
+
color: inherit;
|
|
129
|
+
height: 100%;
|
|
130
|
+
text-decoration: none;
|
|
131
|
+
}
|
|
132
|
+
._teddy-link--silent_azi31_63:hover, ._teddy-link--silent_azi31_63:focus, ._teddy-link--silent_azi31_63:active {
|
|
133
|
+
background-color: inherit;
|
|
134
|
+
color: inherit;
|
|
135
|
+
}
|
|
136
|
+
._teddy-link--silent_azi31_63 a:focus {
|
|
137
|
+
outline: 0;
|
|
138
|
+
}
|
|
139
|
+
._teddy-link--silent_azi31_63:is(._teddy-link--disable-visited_azi31_26):visited {
|
|
140
|
+
color: inherit;
|
|
141
|
+
}
|
|
83
142
|
}@layer icon {
|
|
84
143
|
._teddy-icon_1rwgf_2 {
|
|
85
144
|
display: inline;
|
|
@@ -1835,84 +1894,6 @@
|
|
|
1835
1894
|
._teddy-card__inset--right_141ee_239 {
|
|
1836
1895
|
margin-right: calc(var(--teddy-spacing-250) * -1);
|
|
1837
1896
|
}
|
|
1838
|
-
}@layer link {
|
|
1839
|
-
._teddy-link_azi31_2 {
|
|
1840
|
-
align-items: center;
|
|
1841
|
-
cursor: pointer;
|
|
1842
|
-
display: inline-flex;
|
|
1843
|
-
gap: var(--teddy-spacing-50);
|
|
1844
|
-
text-decoration: underline;
|
|
1845
|
-
}
|
|
1846
|
-
._teddy-link_azi31_2:focus, ._teddy-link_azi31_2:active {
|
|
1847
|
-
outline: solid var(--teddy-border-width-sm) var(--teddy-color-border-interactive-focus);
|
|
1848
|
-
outline-offset: var(--teddy-spacing-25);
|
|
1849
|
-
}
|
|
1850
|
-
._teddy-link_azi31_2:focus:not(:focus-visible) {
|
|
1851
|
-
outline: 0;
|
|
1852
|
-
}
|
|
1853
|
-
._teddy-link--text_azi31_16, ._teddy-link--standalone_azi31_16, ._teddy-link--navigation_azi31_16 {
|
|
1854
|
-
color: var(--teddy-color-text-interactive-primary);
|
|
1855
|
-
}
|
|
1856
|
-
._teddy-link--text_azi31_16:hover, ._teddy-link--standalone_azi31_16:hover, ._teddy-link--navigation_azi31_16:hover {
|
|
1857
|
-
color: var(--teddy-color-text-interactive-primary-active);
|
|
1858
|
-
background-color: var(--teddy-color-background-interactive-transparent-hover);
|
|
1859
|
-
}
|
|
1860
|
-
._teddy-link--text_azi31_16:active, ._teddy-link--standalone_azi31_16:active, ._teddy-link--navigation_azi31_16:active {
|
|
1861
|
-
background-color: var(--teddy-color-background-interactive-transparent-active);
|
|
1862
|
-
}
|
|
1863
|
-
._teddy-link--text_azi31_16:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--standalone_azi31_16:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--navigation_azi31_16:visited:not(._teddy-link--disable-visited_azi31_26) {
|
|
1864
|
-
color: var(--teddy-color-text-interactive-primary-active);
|
|
1865
|
-
}
|
|
1866
|
-
._teddy-link--text-negative_azi31_29, ._teddy-link--standalone-negative_azi31_29, ._teddy-link--navigation-negative_azi31_29 {
|
|
1867
|
-
color: var(--teddy-color-text-interactive-primary-negative);
|
|
1868
|
-
}
|
|
1869
|
-
._teddy-link--text-negative_azi31_29:hover, ._teddy-link--standalone-negative_azi31_29:hover, ._teddy-link--navigation-negative_azi31_29:hover {
|
|
1870
|
-
background-color: var(--teddy-color-background-interactive-transparent-negative-hover);
|
|
1871
|
-
color: var(--teddy-color-text-interactive-primary-negative);
|
|
1872
|
-
}
|
|
1873
|
-
._teddy-link--text-negative_azi31_29:active, ._teddy-link--standalone-negative_azi31_29:active, ._teddy-link--navigation-negative_azi31_29:active {
|
|
1874
|
-
background-color: var(--teddy-color-background-interactive-transparent-negative-active);
|
|
1875
|
-
color: var(--teddy-color-text-interactive-primary-negative-active);
|
|
1876
|
-
}
|
|
1877
|
-
._teddy-link--text-negative_azi31_29:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--standalone-negative_azi31_29:visited:not(._teddy-link--disable-visited_azi31_26), ._teddy-link--navigation-negative_azi31_29:visited:not(._teddy-link--disable-visited_azi31_26) {
|
|
1878
|
-
color: var(--teddy-color-text-interactive-primary-negative-active);
|
|
1879
|
-
}
|
|
1880
|
-
._teddy-link--standalone_azi31_16, ._teddy-link--standalone-negative_azi31_29 {
|
|
1881
|
-
padding: var(--teddy-spacing-150) 0;
|
|
1882
|
-
}
|
|
1883
|
-
._teddy-link--navigation_azi31_16, ._teddy-link--navigation-negative_azi31_29 {
|
|
1884
|
-
align-items: center;
|
|
1885
|
-
background-color: var(--teddy-color-functional-transparent);
|
|
1886
|
-
display: flex;
|
|
1887
|
-
font-weight: var(--teddy-typography-weight-medium);
|
|
1888
|
-
text-decoration: none;
|
|
1889
|
-
}
|
|
1890
|
-
._teddy-link--navigation_azi31_16:active, ._teddy-link--navigation_azi31_16:hover, ._teddy-link--navigation-negative_azi31_29:active, ._teddy-link--navigation-negative_azi31_29:hover {
|
|
1891
|
-
background-color: var(--teddy-color-functional-transparent);
|
|
1892
|
-
text-decoration: underline;
|
|
1893
|
-
}
|
|
1894
|
-
._teddy-link--ensure-target-area_azi31_57 {
|
|
1895
|
-
display: flex;
|
|
1896
|
-
align-items: center;
|
|
1897
|
-
min-height: var(--teddy-spacing-600);
|
|
1898
|
-
min-width: var(--teddy-spacing-600);
|
|
1899
|
-
}
|
|
1900
|
-
._teddy-link--silent_azi31_63 {
|
|
1901
|
-
background-color: inherit;
|
|
1902
|
-
color: inherit;
|
|
1903
|
-
height: 100%;
|
|
1904
|
-
text-decoration: none;
|
|
1905
|
-
}
|
|
1906
|
-
._teddy-link--silent_azi31_63:hover, ._teddy-link--silent_azi31_63:focus, ._teddy-link--silent_azi31_63:active {
|
|
1907
|
-
background-color: inherit;
|
|
1908
|
-
color: inherit;
|
|
1909
|
-
}
|
|
1910
|
-
._teddy-link--silent_azi31_63 a:focus {
|
|
1911
|
-
outline: 0;
|
|
1912
|
-
}
|
|
1913
|
-
._teddy-link--silent_azi31_63:is(._teddy-link--disable-visited_azi31_26):visited {
|
|
1914
|
-
color: inherit;
|
|
1915
|
-
}
|
|
1916
1897
|
}@layer heading, button, card, notification;
|
|
1917
1898
|
@layer notification {
|
|
1918
1899
|
._teddy-notification_1ref8_3 {
|
|
@@ -3344,6 +3325,8 @@
|
|
|
3344
3325
|
opacity: 1;
|
|
3345
3326
|
scale: 1;
|
|
3346
3327
|
}
|
|
3328
|
+
}._teddy-container_1jmq1_1 {
|
|
3329
|
+
box-sizing: border-box;
|
|
3347
3330
|
}@keyframes _teddy-fade-in_3n21u_1 {
|
|
3348
3331
|
from {
|
|
3349
3332
|
opacity: 0;
|
|
@@ -77,6 +77,9 @@ function extractProps(props) {
|
|
|
77
77
|
const currentLayout = stylings[key];
|
|
78
78
|
const currentLayoutKey = currentLayout.key;
|
|
79
79
|
const layoutProp = extractedProps[currentLayoutKey];
|
|
80
|
+
if (layoutProp === void 0) {
|
|
81
|
+
delete extractedProps[currentLayoutKey];
|
|
82
|
+
}
|
|
80
83
|
if (layoutProp) {
|
|
81
84
|
if (isResponsiveObject(layoutProp)) {
|
|
82
85
|
Object.entries(layoutProp).forEach(([bp, value]) => {
|
|
@@ -75,6 +75,9 @@ function extractProps(props) {
|
|
|
75
75
|
const currentLayout = stylings[key];
|
|
76
76
|
const currentLayoutKey = currentLayout.key;
|
|
77
77
|
const layoutProp = extractedProps[currentLayoutKey];
|
|
78
|
+
if (layoutProp === void 0) {
|
|
79
|
+
delete extractedProps[currentLayoutKey];
|
|
80
|
+
}
|
|
78
81
|
if (layoutProp) {
|
|
79
82
|
if (isResponsiveObject(layoutProp)) {
|
|
80
83
|
Object.entries(layoutProp).forEach(([bp, value]) => {
|
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"pnpm": ">=8"
|
|
21
21
|
},
|
|
22
22
|
"private": false,
|
|
23
|
-
"version": "0.0.
|
|
23
|
+
"version": "0.0.57",
|
|
24
24
|
"sideEffects": [
|
|
25
25
|
"**/*.css"
|
|
26
26
|
],
|
|
@@ -29,21 +29,20 @@
|
|
|
29
29
|
"react-dom": "^18.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@chromatic-com/storybook": "^1.
|
|
32
|
+
"@chromatic-com/storybook": "^1.8.0",
|
|
33
33
|
"@laynezh/vite-plugin-lib-assets": "^0.5.19",
|
|
34
|
-
"@storybook/addon-a11y": "^8.
|
|
35
|
-
"@storybook/addon-essentials": "^8.
|
|
36
|
-
"@storybook/addon-interactions": "^8.
|
|
37
|
-
"@storybook/addon-links": "^8.
|
|
38
|
-
"@storybook/addon-
|
|
39
|
-
"@storybook/
|
|
40
|
-
"@storybook/blocks": "^8.1.9",
|
|
34
|
+
"@storybook/addon-a11y": "^8.2.9",
|
|
35
|
+
"@storybook/addon-essentials": "^8.2.9",
|
|
36
|
+
"@storybook/addon-interactions": "^8.2.9",
|
|
37
|
+
"@storybook/addon-links": "^8.2.9",
|
|
38
|
+
"@storybook/addon-storysource": "^8.2.9",
|
|
39
|
+
"@storybook/blocks": "^8.2.9",
|
|
41
40
|
"@storybook/client-api": "^7.6.17",
|
|
42
|
-
"@storybook/manager-api": "^8.
|
|
43
|
-
"@storybook/react": "^8.
|
|
44
|
-
"@storybook/react-vite": "^8.
|
|
45
|
-
"@storybook/test": "^8.
|
|
46
|
-
"@storybook/theming": "^8.
|
|
41
|
+
"@storybook/manager-api": "^8.2.9",
|
|
42
|
+
"@storybook/react": "^8.2.9",
|
|
43
|
+
"@storybook/react-vite": "^8.2.9",
|
|
44
|
+
"@storybook/test": "^8.2.9",
|
|
45
|
+
"@storybook/theming": "^8.2.9",
|
|
47
46
|
"@types/fs-extra": "^11.0.4",
|
|
48
47
|
"@types/node": "^20.11.16",
|
|
49
48
|
"@types/react": "^18.2.53",
|
|
@@ -71,7 +70,7 @@
|
|
|
71
70
|
"react-router-dom": "^6.23.0",
|
|
72
71
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
73
72
|
"sass": "^1.70.0",
|
|
74
|
-
"storybook": "^8.
|
|
73
|
+
"storybook": "^8.2.9",
|
|
75
74
|
"style-dictionary": "^3.9.2",
|
|
76
75
|
"tsx": "^4.7.0",
|
|
77
76
|
"typescript": "^5.3.3",
|