@telia/teddy 0.0.36 → 0.0.37
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/badge/badge.cjs +10 -10
- package/dist/components/badge/badge.js +10 -10
- package/dist/components/card/card.cjs +18 -2
- package/dist/components/card/card.d.ts +2 -0
- package/dist/components/card/card.js +18 -2
- package/dist/components/drawer/drawer-close.cjs +1 -1
- package/dist/components/drawer/drawer-close.js +1 -1
- package/dist/components/drawer/drawer-content.cjs +2 -2
- package/dist/components/drawer/drawer-content.js +2 -2
- package/dist/components/drawer/drawer-description.cjs +1 -1
- package/dist/components/drawer/drawer-description.js +1 -1
- package/dist/components/drawer/drawer-footer.cjs +1 -1
- package/dist/components/drawer/drawer-footer.js +1 -1
- package/dist/components/drawer/drawer-overlay.cjs +1 -1
- package/dist/components/drawer/drawer-overlay.js +1 -1
- package/dist/components/drawer/drawer-title.cjs +1 -1
- package/dist/components/drawer/drawer-title.js +1 -1
- package/dist/components/expandable-card/expandable-card-root.cjs +15 -15
- package/dist/components/expandable-card/expandable-card-root.js +15 -15
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.cjs +9 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.d.ts +8 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.js +9 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.cjs +12 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.d.ts +7 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js +12 -0
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.cjs +52 -2
- package/dist/components/navigation-menu/global-navigation/global-navigation-my-pages.js +53 -3
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.d.ts +2 -1
- package/dist/components/navigation-menu/global-navigation/global-navigation-root.js +2 -2
- package/dist/components/notification/notification.d.ts +3 -0
- package/dist/drawer.module-BNPErv-x.js +16 -0
- package/dist/drawer.module-CTowTFmf.cjs +15 -0
- package/dist/style.css +95 -76
- package/package.json +1 -1
- package/dist/drawer.module-BPXo6-Q2.js +0 -15
- package/dist/drawer.module-_pUdp_M1.cjs +0 -14
|
@@ -7,16 +7,16 @@ const reactSlot = require("@radix-ui/react-slot");
|
|
|
7
7
|
require("../../assets/sprite.269ba410-teddy.svg");
|
|
8
8
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
9
|
const styles = {
|
|
10
|
-
"teddy-badge": "_teddy-
|
|
11
|
-
"teddy-badge--counter-badge": "_teddy-badge--counter-
|
|
12
|
-
"teddy-badge--alert-badge": "_teddy-badge--alert-
|
|
13
|
-
"teddy-badge--attention": "_teddy-badge--
|
|
14
|
-
"teddy-badge--special": "_teddy-badge--
|
|
15
|
-
"teddy-badge--neutral": "_teddy-badge--
|
|
16
|
-
"teddy-badge--information": "_teddy-badge--
|
|
17
|
-
"teddy-badge--success": "_teddy-badge--
|
|
18
|
-
"teddy-badge--warning": "_teddy-badge--
|
|
19
|
-
"teddy-badge--error": "_teddy-badge--
|
|
10
|
+
"teddy-badge": "_teddy-badge_wlyo5_1",
|
|
11
|
+
"teddy-badge--counter-badge": "_teddy-badge--counter-badge_wlyo5_13",
|
|
12
|
+
"teddy-badge--alert-badge": "_teddy-badge--alert-badge_wlyo5_23",
|
|
13
|
+
"teddy-badge--attention": "_teddy-badge--attention_wlyo5_33",
|
|
14
|
+
"teddy-badge--special": "_teddy-badge--special_wlyo5_40",
|
|
15
|
+
"teddy-badge--neutral": "_teddy-badge--neutral_wlyo5_44",
|
|
16
|
+
"teddy-badge--information": "_teddy-badge--information_wlyo5_52",
|
|
17
|
+
"teddy-badge--success": "_teddy-badge--success_wlyo5_60",
|
|
18
|
+
"teddy-badge--warning": "_teddy-badge--warning_wlyo5_68",
|
|
19
|
+
"teddy-badge--error": "_teddy-badge--error_wlyo5_76"
|
|
20
20
|
};
|
|
21
21
|
const rootClassName = "teddy-badge";
|
|
22
22
|
function getIcon(variant) {
|
|
@@ -5,16 +5,16 @@ import { Slottable, Slot } from "@radix-ui/react-slot";
|
|
|
5
5
|
import "../../assets/sprite.269ba410-teddy.svg";
|
|
6
6
|
import { Icon } from "../icon/icon.js";
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-badge": "_teddy-
|
|
9
|
-
"teddy-badge--counter-badge": "_teddy-badge--counter-
|
|
10
|
-
"teddy-badge--alert-badge": "_teddy-badge--alert-
|
|
11
|
-
"teddy-badge--attention": "_teddy-badge--
|
|
12
|
-
"teddy-badge--special": "_teddy-badge--
|
|
13
|
-
"teddy-badge--neutral": "_teddy-badge--
|
|
14
|
-
"teddy-badge--information": "_teddy-badge--
|
|
15
|
-
"teddy-badge--success": "_teddy-badge--
|
|
16
|
-
"teddy-badge--warning": "_teddy-badge--
|
|
17
|
-
"teddy-badge--error": "_teddy-badge--
|
|
8
|
+
"teddy-badge": "_teddy-badge_wlyo5_1",
|
|
9
|
+
"teddy-badge--counter-badge": "_teddy-badge--counter-badge_wlyo5_13",
|
|
10
|
+
"teddy-badge--alert-badge": "_teddy-badge--alert-badge_wlyo5_23",
|
|
11
|
+
"teddy-badge--attention": "_teddy-badge--attention_wlyo5_33",
|
|
12
|
+
"teddy-badge--special": "_teddy-badge--special_wlyo5_40",
|
|
13
|
+
"teddy-badge--neutral": "_teddy-badge--neutral_wlyo5_44",
|
|
14
|
+
"teddy-badge--information": "_teddy-badge--information_wlyo5_52",
|
|
15
|
+
"teddy-badge--success": "_teddy-badge--success_wlyo5_60",
|
|
16
|
+
"teddy-badge--warning": "_teddy-badge--warning_wlyo5_68",
|
|
17
|
+
"teddy-badge--error": "_teddy-badge--error_wlyo5_76"
|
|
18
18
|
};
|
|
19
19
|
const rootClassName = "teddy-badge";
|
|
20
20
|
function getIcon(variant) {
|
|
@@ -11,6 +11,7 @@ const components_button_button = require("../button/button.cjs");
|
|
|
11
11
|
const components_link_link = require("../link/link.cjs");
|
|
12
12
|
const tokens_spacing_variables = require("../../tokens/spacing/variables.cjs");
|
|
13
13
|
const components_grid_grid = require("../grid/grid.cjs");
|
|
14
|
+
const tokens_color_variables = require("../../tokens/color/variables.cjs");
|
|
14
15
|
const styles = {
|
|
15
16
|
"teddy-card": "_teddy-card_aok47_3",
|
|
16
17
|
"teddy-card__slot": "_teddy-card__slot_aok47_13",
|
|
@@ -47,7 +48,7 @@ const actionElementIdentifier = `${rootClassName}__action`;
|
|
|
47
48
|
const variantOptions = ["purple-light", "purple-dark", "gray", "white", "beige"];
|
|
48
49
|
const RootContext = React.createContext(void 0);
|
|
49
50
|
const Root = React.forwardRef(
|
|
50
|
-
({ className, children, shadow, backgroundImageSrc, layout, variant, bordered, ...props }, forwardRef) => {
|
|
51
|
+
({ className, children, shadow, backgroundImageSrc, imageGradient, layout, variant, bordered, ...props }, forwardRef) => {
|
|
51
52
|
const buttonRef = React.useRef(null);
|
|
52
53
|
const linkRef = React.useRef(null);
|
|
53
54
|
const classes = clsx(
|
|
@@ -57,17 +58,32 @@ const Root = React.forwardRef(
|
|
|
57
58
|
[styles[`${rootClassName}--border`]]: bordered,
|
|
58
59
|
[styles[`${rootClassName}--shadow`]]: shadow,
|
|
59
60
|
[styles[`${rootClassName}--background-image`]]: backgroundImageSrc,
|
|
61
|
+
[styles[`${rootClassName}--background-image--${layout}`]]: layout,
|
|
60
62
|
[styles[`${rootClassName}--layout`]]: layout,
|
|
61
63
|
[styles[`${rootClassName}--${layout}`]]: layout
|
|
62
64
|
},
|
|
63
65
|
className
|
|
64
66
|
);
|
|
67
|
+
const customStyle = backgroundImageSrc ? imageGradient === "light" ? {
|
|
68
|
+
backgroundImage: `
|
|
69
|
+
linear-gradient(${tokens_color_variables.teddyColorTransparentWhite850} 0%,
|
|
70
|
+
${tokens_color_variables.teddyColorTransparentWhite800} 50%,
|
|
71
|
+
${tokens_color_variables.teddyColorTransparentWhite100} 100%),
|
|
72
|
+
url(${backgroundImageSrc})`,
|
|
73
|
+
...props.style
|
|
74
|
+
} : {
|
|
75
|
+
backgroundImage: `
|
|
76
|
+
linear-gradient(${tokens_color_variables.teddyColorTransparentBlack600} 0%,
|
|
77
|
+
${tokens_color_variables.teddyColorTransparentBlack200} 100%),
|
|
78
|
+
url(${backgroundImageSrc})`,
|
|
79
|
+
...props.style
|
|
80
|
+
} : props.style;
|
|
65
81
|
return /* @__PURE__ */ jsxRuntime.jsx(RootContext.Provider, { value: { buttonRef, linkRef, variant, layout }, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
66
82
|
components_grid_grid.Grid,
|
|
67
83
|
{
|
|
68
84
|
...props,
|
|
69
85
|
className: classes,
|
|
70
|
-
style:
|
|
86
|
+
style: customStyle,
|
|
71
87
|
onClick: utils_composeEventHandlers.composeEventHandlers(props.onClick, (e) => {
|
|
72
88
|
var _a;
|
|
73
89
|
if (e.isDefaultPrevented())
|
|
@@ -8,6 +8,7 @@ import { Grid } from '../grid';
|
|
|
8
8
|
declare const variantOptions: readonly ["purple-light", "purple-dark", "gray", "white", "beige"];
|
|
9
9
|
type Variant = (typeof variantOptions)[number];
|
|
10
10
|
type Layout = 'navigation-vertical' | 'navigation-horizontal-small' | 'navigation-horizontal-large' | 'rich-card';
|
|
11
|
+
type Gradient = 'light' | 'dark';
|
|
11
12
|
/** -------------------------------------------------------------------------------------------------
|
|
12
13
|
* Root
|
|
13
14
|
* -----------------------------------------------------------------------------------------------*/
|
|
@@ -17,6 +18,7 @@ type RootProps = React.ComponentPropsWithoutRef<typeof Grid> & {
|
|
|
17
18
|
bordered?: boolean;
|
|
18
19
|
shadow?: boolean;
|
|
19
20
|
backgroundImageSrc?: string;
|
|
21
|
+
imageGradient?: Gradient;
|
|
20
22
|
layout?: Layout;
|
|
21
23
|
};
|
|
22
24
|
/** -------------------------------------------------------------------------------------------------
|
|
@@ -9,6 +9,7 @@ import { Button as Button$1 } from "../button/button.js";
|
|
|
9
9
|
import { Link as Link$1 } from "../link/link.js";
|
|
10
10
|
import { teddySpacing50 } from "../../tokens/spacing/variables.js";
|
|
11
11
|
import { Grid } from "../grid/grid.js";
|
|
12
|
+
import { teddyColorTransparentWhite850, teddyColorTransparentWhite800, teddyColorTransparentWhite100, teddyColorTransparentBlack600, teddyColorTransparentBlack200 } from "../../tokens/color/variables.js";
|
|
12
13
|
const styles = {
|
|
13
14
|
"teddy-card": "_teddy-card_aok47_3",
|
|
14
15
|
"teddy-card__slot": "_teddy-card__slot_aok47_13",
|
|
@@ -45,7 +46,7 @@ const actionElementIdentifier = `${rootClassName}__action`;
|
|
|
45
46
|
const variantOptions = ["purple-light", "purple-dark", "gray", "white", "beige"];
|
|
46
47
|
const RootContext = React__default.createContext(void 0);
|
|
47
48
|
const Root = React__default.forwardRef(
|
|
48
|
-
({ className, children, shadow, backgroundImageSrc, layout, variant, bordered, ...props }, forwardRef) => {
|
|
49
|
+
({ className, children, shadow, backgroundImageSrc, imageGradient, layout, variant, bordered, ...props }, forwardRef) => {
|
|
49
50
|
const buttonRef = React__default.useRef(null);
|
|
50
51
|
const linkRef = React__default.useRef(null);
|
|
51
52
|
const classes = clsx(
|
|
@@ -55,17 +56,32 @@ const Root = React__default.forwardRef(
|
|
|
55
56
|
[styles[`${rootClassName}--border`]]: bordered,
|
|
56
57
|
[styles[`${rootClassName}--shadow`]]: shadow,
|
|
57
58
|
[styles[`${rootClassName}--background-image`]]: backgroundImageSrc,
|
|
59
|
+
[styles[`${rootClassName}--background-image--${layout}`]]: layout,
|
|
58
60
|
[styles[`${rootClassName}--layout`]]: layout,
|
|
59
61
|
[styles[`${rootClassName}--${layout}`]]: layout
|
|
60
62
|
},
|
|
61
63
|
className
|
|
62
64
|
);
|
|
65
|
+
const customStyle = backgroundImageSrc ? imageGradient === "light" ? {
|
|
66
|
+
backgroundImage: `
|
|
67
|
+
linear-gradient(${teddyColorTransparentWhite850} 0%,
|
|
68
|
+
${teddyColorTransparentWhite800} 50%,
|
|
69
|
+
${teddyColorTransparentWhite100} 100%),
|
|
70
|
+
url(${backgroundImageSrc})`,
|
|
71
|
+
...props.style
|
|
72
|
+
} : {
|
|
73
|
+
backgroundImage: `
|
|
74
|
+
linear-gradient(${teddyColorTransparentBlack600} 0%,
|
|
75
|
+
${teddyColorTransparentBlack200} 100%),
|
|
76
|
+
url(${backgroundImageSrc})`,
|
|
77
|
+
...props.style
|
|
78
|
+
} : props.style;
|
|
63
79
|
return /* @__PURE__ */ jsx(RootContext.Provider, { value: { buttonRef, linkRef, variant, layout }, children: /* @__PURE__ */ jsx(
|
|
64
80
|
Grid,
|
|
65
81
|
{
|
|
66
82
|
...props,
|
|
67
83
|
className: classes,
|
|
68
|
-
style:
|
|
84
|
+
style: customStyle,
|
|
69
85
|
onClick: composeEventHandlers(props.onClick, (e) => {
|
|
70
86
|
var _a;
|
|
71
87
|
if (e.isDefaultPrevented())
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-CTowTFmf.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
require("../../assets/sprite.269ba410-teddy.svg");
|
|
10
10
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BNPErv-x.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
import "../../assets/sprite.269ba410-teddy.svg";
|
|
8
8
|
import { Icon } from "../icon/icon.js";
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-CTowTFmf.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
const components_drawer_drawerOverlay = require("./drawer-overlay.cjs");
|
|
10
10
|
const components_flex_flex = require("../flex/flex.cjs");
|
|
@@ -36,7 +36,7 @@ const InnerContent = React.forwardRef(
|
|
|
36
36
|
],
|
|
37
37
|
className
|
|
38
38
|
);
|
|
39
|
-
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Content, { ...props, ref: forwardedRef,
|
|
39
|
+
return /* @__PURE__ */ jsxRuntime.jsx(DrawerPrimitive__namespace.Content, { ...props, ref: forwardedRef, asChild: true, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { children }) });
|
|
40
40
|
}
|
|
41
41
|
);
|
|
42
42
|
const Content = React.forwardRef(
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BNPErv-x.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
import { OverlayContext, Overlay } from "./drawer-overlay.js";
|
|
8
8
|
import { Flex } from "../flex/flex.js";
|
|
@@ -17,7 +17,7 @@ const InnerContent = React__default.forwardRef(
|
|
|
17
17
|
],
|
|
18
18
|
className
|
|
19
19
|
);
|
|
20
|
-
return /* @__PURE__ */ jsx(DrawerPrimitive.Content, { ...props, ref: forwardedRef,
|
|
20
|
+
return /* @__PURE__ */ jsx(DrawerPrimitive.Content, { ...props, ref: forwardedRef, asChild: true, className: classes, children: /* @__PURE__ */ jsx(Flex, { children }) });
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
const Content = React__default.forwardRef(
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-CTowTFmf.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
const components_text_text = require("../text/text.cjs");
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BNPErv-x.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
import { Text } from "../text/text.js";
|
|
8
8
|
const DescriptionContext = React__default.createContext(false);
|
|
@@ -3,7 +3,7 @@ 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 drawer_module = require("../../drawer.module-
|
|
6
|
+
const drawer_module = require("../../drawer.module-CTowTFmf.cjs");
|
|
7
7
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
8
8
|
const components_flex_flex = require("../flex/flex.cjs");
|
|
9
9
|
const Footer = React.forwardRef(
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
|
-
import { s as styles } from "../../drawer.module-
|
|
4
|
+
import { s as styles } from "../../drawer.module-BNPErv-x.js";
|
|
5
5
|
import { rootClassName } from "./drawer-root.js";
|
|
6
6
|
import { Flex } from "../flex/flex.js";
|
|
7
7
|
const Footer = React__default.forwardRef(
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-CTowTFmf.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
function _interopNamespaceDefault(e) {
|
|
10
10
|
const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BNPErv-x.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
const OverlayContext = React__default.createContext(false);
|
|
8
8
|
const Overlay = React__default.forwardRef(
|
|
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
|
|
|
4
4
|
const React = require("react");
|
|
5
5
|
const clsx = require("clsx");
|
|
6
6
|
const DrawerPrimitive = require("@radix-ui/react-dialog");
|
|
7
|
-
const drawer_module = require("../../drawer.module-
|
|
7
|
+
const drawer_module = require("../../drawer.module-CTowTFmf.cjs");
|
|
8
8
|
const components_drawer_drawerRoot = require("./drawer-root.cjs");
|
|
9
9
|
const components_heading_heading = require("../heading/heading.cjs");
|
|
10
10
|
function _interopNamespaceDefault(e) {
|
|
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React__default from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as DrawerPrimitive from "@radix-ui/react-dialog";
|
|
5
|
-
import { s as styles } from "../../drawer.module-
|
|
5
|
+
import { s as styles } from "../../drawer.module-BNPErv-x.js";
|
|
6
6
|
import { rootClassName } from "./drawer-root.js";
|
|
7
7
|
import { Heading } from "../heading/heading.js";
|
|
8
8
|
const Title = React__default.forwardRef(
|
|
@@ -22,21 +22,21 @@ function _interopNamespaceDefault(e) {
|
|
|
22
22
|
}
|
|
23
23
|
const AccordionPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(AccordionPrimitive);
|
|
24
24
|
const styles = {
|
|
25
|
-
"teddy-expandable-card": "_teddy-expandable-
|
|
26
|
-
"teddy-expandable-card__item": "_teddy-expandable-
|
|
27
|
-
"teddy-expandable-card__trigger": "_teddy-expandable-
|
|
28
|
-
"teddy-expandable-card__indicator": "_teddy-expandable-
|
|
29
|
-
"teddy-expandable-card__hidden": "_teddy-expandable-
|
|
30
|
-
"teddy-expandable-card__line": "_teddy-expandable-
|
|
31
|
-
"teddy-expandable-card__content": "_teddy-expandable-
|
|
32
|
-
"teddy-expandable-card__description": "_teddy-expandable-
|
|
33
|
-
"teddy-expandable-card__price": "_teddy-expandable-
|
|
34
|
-
"teddy-expandable-card__header": "_teddy-expandable-
|
|
35
|
-
"teddy-expandable-card__slot": "_teddy-expandable-
|
|
36
|
-
"teddy-expandable-card__slot--
|
|
37
|
-
"teddy-expandable-card__slot--
|
|
38
|
-
"teddy-expandable-card__button--right": "_teddy-expandable-card__button--
|
|
39
|
-
"teddy-expandable-card__button--left": "_teddy-expandable-card__button--
|
|
25
|
+
"teddy-expandable-card": "_teddy-expandable-card_15whs_1",
|
|
26
|
+
"teddy-expandable-card__item": "_teddy-expandable-card__item_15whs_7",
|
|
27
|
+
"teddy-expandable-card__trigger": "_teddy-expandable-card__trigger_15whs_15",
|
|
28
|
+
"teddy-expandable-card__indicator": "_teddy-expandable-card__indicator_15whs_39",
|
|
29
|
+
"teddy-expandable-card__hidden": "_teddy-expandable-card__hidden_15whs_51",
|
|
30
|
+
"teddy-expandable-card__line": "_teddy-expandable-card__line_15whs_57",
|
|
31
|
+
"teddy-expandable-card__content": "_teddy-expandable-card__content_15whs_60",
|
|
32
|
+
"teddy-expandable-card__description": "_teddy-expandable-card__description_15whs_69",
|
|
33
|
+
"teddy-expandable-card__price": "_teddy-expandable-card__price_15whs_80",
|
|
34
|
+
"teddy-expandable-card__header": "_teddy-expandable-card__header_15whs_84",
|
|
35
|
+
"teddy-expandable-card__slot": "_teddy-expandable-card__slot_15whs_92",
|
|
36
|
+
"teddy-expandable-card__slot--bottom": "_teddy-expandable-card__slot--bottom_15whs_97",
|
|
37
|
+
"teddy-expandable-card__slot--center": "_teddy-expandable-card__slot--center_15whs_100",
|
|
38
|
+
"teddy-expandable-card__button--right": "_teddy-expandable-card__button--right_15whs_116",
|
|
39
|
+
"teddy-expandable-card__button--left": "_teddy-expandable-card__button--left_15whs_119"
|
|
40
40
|
};
|
|
41
41
|
const rootClassName = "teddy-expandable-card";
|
|
42
42
|
const Root = React.forwardRef(
|
|
@@ -3,21 +3,21 @@ import React__default from "react";
|
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
5
5
|
const styles = {
|
|
6
|
-
"teddy-expandable-card": "_teddy-expandable-
|
|
7
|
-
"teddy-expandable-card__item": "_teddy-expandable-
|
|
8
|
-
"teddy-expandable-card__trigger": "_teddy-expandable-
|
|
9
|
-
"teddy-expandable-card__indicator": "_teddy-expandable-
|
|
10
|
-
"teddy-expandable-card__hidden": "_teddy-expandable-
|
|
11
|
-
"teddy-expandable-card__line": "_teddy-expandable-
|
|
12
|
-
"teddy-expandable-card__content": "_teddy-expandable-
|
|
13
|
-
"teddy-expandable-card__description": "_teddy-expandable-
|
|
14
|
-
"teddy-expandable-card__price": "_teddy-expandable-
|
|
15
|
-
"teddy-expandable-card__header": "_teddy-expandable-
|
|
16
|
-
"teddy-expandable-card__slot": "_teddy-expandable-
|
|
17
|
-
"teddy-expandable-card__slot--
|
|
18
|
-
"teddy-expandable-card__slot--
|
|
19
|
-
"teddy-expandable-card__button--right": "_teddy-expandable-card__button--
|
|
20
|
-
"teddy-expandable-card__button--left": "_teddy-expandable-card__button--
|
|
6
|
+
"teddy-expandable-card": "_teddy-expandable-card_15whs_1",
|
|
7
|
+
"teddy-expandable-card__item": "_teddy-expandable-card__item_15whs_7",
|
|
8
|
+
"teddy-expandable-card__trigger": "_teddy-expandable-card__trigger_15whs_15",
|
|
9
|
+
"teddy-expandable-card__indicator": "_teddy-expandable-card__indicator_15whs_39",
|
|
10
|
+
"teddy-expandable-card__hidden": "_teddy-expandable-card__hidden_15whs_51",
|
|
11
|
+
"teddy-expandable-card__line": "_teddy-expandable-card__line_15whs_57",
|
|
12
|
+
"teddy-expandable-card__content": "_teddy-expandable-card__content_15whs_60",
|
|
13
|
+
"teddy-expandable-card__description": "_teddy-expandable-card__description_15whs_69",
|
|
14
|
+
"teddy-expandable-card__price": "_teddy-expandable-card__price_15whs_80",
|
|
15
|
+
"teddy-expandable-card__header": "_teddy-expandable-card__header_15whs_84",
|
|
16
|
+
"teddy-expandable-card__slot": "_teddy-expandable-card__slot_15whs_92",
|
|
17
|
+
"teddy-expandable-card__slot--bottom": "_teddy-expandable-card__slot--bottom_15whs_97",
|
|
18
|
+
"teddy-expandable-card__slot--center": "_teddy-expandable-card__slot--center_15whs_100",
|
|
19
|
+
"teddy-expandable-card__button--right": "_teddy-expandable-card__button--right_15whs_116",
|
|
20
|
+
"teddy-expandable-card__button--left": "_teddy-expandable-card__button--left_15whs_119"
|
|
21
21
|
};
|
|
22
22
|
const rootClassName = "teddy-expandable-card";
|
|
23
23
|
const Root = React__default.forwardRef(
|
package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.cjs
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("react/jsx-runtime");
|
|
4
|
+
require("react");
|
|
5
|
+
require("../navigation-menu.cjs");
|
|
6
|
+
const components_navigationMenu_globalNavigation_globalNavigationMyPages = require("./global-navigation-my-pages.cjs");
|
|
7
|
+
require("./utils.cjs");
|
|
8
|
+
require("../../box/box.cjs");
|
|
9
|
+
exports.DesktopSimplified = components_navigationMenu_globalNavigation_globalNavigationMyPages.DesktopSimplified;
|
package/dist/components/navigation-menu/global-navigation/global-navigation-desktop-simplified.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type DesktopProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
4
|
+
isSimplified?: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const DesktopSimplified: React.ForwardRefExoticComponent<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & {
|
|
7
|
+
isSimplified?: boolean | undefined;
|
|
8
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.cjs
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
require("react/jsx-runtime");
|
|
4
|
+
require("react");
|
|
5
|
+
const components_navigationMenu_globalNavigation_globalNavigationMyPages = require("./global-navigation-my-pages.cjs");
|
|
6
|
+
require("clsx");
|
|
7
|
+
require("../navigation-menu.cjs");
|
|
8
|
+
require("../../flex/flex.cjs");
|
|
9
|
+
require("../../box/box.cjs");
|
|
10
|
+
require("../../../assets/sprite.269ba410-teddy.svg");
|
|
11
|
+
require("../../icon/icon.cjs");
|
|
12
|
+
exports.MobileSimplified = components_navigationMenu_globalNavigation_globalNavigationMyPages.MobileSimplified;
|
package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
|
|
3
|
+
export type MobileProps = React.ComponentPropsWithoutRef<'div'>;
|
|
4
|
+
export declare function MobileSimplified(props: MobileProps): import("react/jsx-runtime").JSX.Element | null;
|
|
5
|
+
export declare namespace MobileSimplified {
|
|
6
|
+
var displayName: string;
|
|
7
|
+
}
|
package/dist/components/navigation-menu/global-navigation/global-navigation-mobile-simplified.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "react/jsx-runtime";
|
|
2
|
+
import "react";
|
|
3
|
+
import { d } from "./global-navigation-my-pages.js";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "../navigation-menu.js";
|
|
6
|
+
import "../../flex/flex.js";
|
|
7
|
+
import "../../box/box.js";
|
|
8
|
+
import "../../../assets/sprite.269ba410-teddy.svg";
|
|
9
|
+
import "../../icon/icon.js";
|
|
10
|
+
export {
|
|
11
|
+
d as MobileSimplified
|
|
12
|
+
};
|
|
@@ -327,6 +327,47 @@ function Mobile(props) {
|
|
|
327
327
|
] }) });
|
|
328
328
|
}
|
|
329
329
|
Mobile.displayName = "Mobile";
|
|
330
|
+
const DesktopSimplified = React.forwardRef(() => {
|
|
331
|
+
const rootContext = React.useContext(RootContext);
|
|
332
|
+
if (!rootContext)
|
|
333
|
+
return null;
|
|
334
|
+
const { setSelectedMenuItem, linkComponent: Link } = rootContext;
|
|
335
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
336
|
+
components_navigationMenu_globalNavigation_utils.LINKS.map((link) => /* @__PURE__ */ jsxRuntime.jsxs(components_navigationMenu_navigationMenu.NavigationMenu.List, { value: link.name, children: [
|
|
337
|
+
link.links.map((subLink) => /* @__PURE__ */ jsxRuntime.jsx(components_navigationMenu_navigationMenu.NavigationMenu.Item, { value: subLink.name, children: subLink.name === "Logo" && /* @__PURE__ */ jsxRuntime.jsx(components_navigationMenu_navigationMenu.NavigationMenu.Link, { asChild: true, variant: "button", children: subLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsxRuntime.jsx(Link, { href: subLink.link, onClick: () => setSelectedMenuItem(""), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
338
|
+
"img",
|
|
339
|
+
{
|
|
340
|
+
src: "https://cdn.voca.teliacompany.com/logo/Telia-primary-default-v2.svg",
|
|
341
|
+
draggable: "false",
|
|
342
|
+
alt: "Telia logo"
|
|
343
|
+
}
|
|
344
|
+
) }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: subLink.link, onClick: () => setSelectedMenuItem(""), children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
345
|
+
"img",
|
|
346
|
+
{
|
|
347
|
+
src: "https://cdn.voca.teliacompany.com/logo/Telia-primary-default-v2.svg",
|
|
348
|
+
draggable: "false",
|
|
349
|
+
alt: "Telia logo"
|
|
350
|
+
}
|
|
351
|
+
) }) }) }, subLink.name)),
|
|
352
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { ml: "auto" }),
|
|
353
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_navigationMenu_navigationMenu.NavigationMenu.Item, { children: /* @__PURE__ */ jsxRuntime.jsx(ShoppingCart, {}) })
|
|
354
|
+
] }, link.name)),
|
|
355
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_navigationMenu_navigationMenu.NavigationMenu.Viewport, { className: styles[`${rootClassName}__viewport`] })
|
|
356
|
+
] });
|
|
357
|
+
});
|
|
358
|
+
DesktopSimplified.displayName = "DesktopSimplified";
|
|
359
|
+
function MobileSimplified(props) {
|
|
360
|
+
const rootContext = React.useContext(RootContext);
|
|
361
|
+
if (!rootContext)
|
|
362
|
+
return null;
|
|
363
|
+
const { linkComponent: NavLink } = rootContext;
|
|
364
|
+
const classes = clsx([styles[`${rootClassName}__mobile`]], props.className);
|
|
365
|
+
return /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { ...props, className: classes, children: /* @__PURE__ */ jsxRuntime.jsxs(components_flex_flex.Flex, { flexGrow: "1", justify: "between", align: "center", gap: "200", children: [
|
|
366
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_box_box.Box, { flexShrink: "0", children: /* @__PURE__ */ jsxRuntime.jsx(components_navigationMenu_navigationMenu.NavigationMenu.Link, { asChild: true, variant: "button", children: rootContext.appKey === "open-pages" ? /* @__PURE__ */ jsxRuntime.jsx(NavLink, { href: "/", children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) : /* @__PURE__ */ jsxRuntime.jsx("a", { href: "/", children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) }) }),
|
|
367
|
+
/* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { flexBasis: "0", gap: { sm: "100", md: "200" }, children: /* @__PURE__ */ jsxRuntime.jsx(ShoppingCart, {}) })
|
|
368
|
+
] }) });
|
|
369
|
+
}
|
|
370
|
+
MobileSimplified.displayName = "MobileSimplified";
|
|
330
371
|
const rootClassName = "teddy-global-navigation";
|
|
331
372
|
const RootContext = React.createContext(null);
|
|
332
373
|
function Root({
|
|
@@ -341,6 +382,7 @@ function Root({
|
|
|
341
382
|
isCartOpen,
|
|
342
383
|
onCartOpenChange,
|
|
343
384
|
drawerSize = "md",
|
|
385
|
+
isSimplified,
|
|
344
386
|
...props
|
|
345
387
|
}) {
|
|
346
388
|
const [selectedMenuItem, setSelectedMenuItem] = React.useState(getInitialMenuItem());
|
|
@@ -380,8 +422,14 @@ function Root({
|
|
|
380
422
|
setSelectedMenuItem(v);
|
|
381
423
|
},
|
|
382
424
|
children: [
|
|
383
|
-
/* @__PURE__ */ jsxRuntime.
|
|
384
|
-
|
|
425
|
+
/* @__PURE__ */ jsxRuntime.jsxs(components_box_box.Box, { display: { sm: "none", lg: "block" }, children: [
|
|
426
|
+
isSimplified && /* @__PURE__ */ jsxRuntime.jsx(DesktopSimplified, {}),
|
|
427
|
+
!isSimplified && /* @__PURE__ */ jsxRuntime.jsx(Desktop, {})
|
|
428
|
+
] }),
|
|
429
|
+
/* @__PURE__ */ jsxRuntime.jsxs(components_box_box.Box, { display: { lg: "none" }, children: [
|
|
430
|
+
isSimplified && /* @__PURE__ */ jsxRuntime.jsx(MobileSimplified, {}),
|
|
431
|
+
!isSimplified && /* @__PURE__ */ jsxRuntime.jsx(Mobile, {})
|
|
432
|
+
] })
|
|
385
433
|
]
|
|
386
434
|
}
|
|
387
435
|
) })
|
|
@@ -419,8 +467,10 @@ function getInitialMenuItem() {
|
|
|
419
467
|
Root.displayName = "GlobalNavigation";
|
|
420
468
|
const GlobalNavigation = Root;
|
|
421
469
|
exports.Desktop = Desktop;
|
|
470
|
+
exports.DesktopSimplified = DesktopSimplified;
|
|
422
471
|
exports.GlobalNavigation = GlobalNavigation;
|
|
423
472
|
exports.Mobile = Mobile;
|
|
473
|
+
exports.MobileSimplified = MobileSimplified;
|
|
424
474
|
exports.MyPages = MyPages;
|
|
425
475
|
exports.Root = Root;
|
|
426
476
|
exports.RootContext = RootContext;
|
|
@@ -325,6 +325,47 @@ function Mobile(props) {
|
|
|
325
325
|
] }) });
|
|
326
326
|
}
|
|
327
327
|
Mobile.displayName = "Mobile";
|
|
328
|
+
const DesktopSimplified = React__default.forwardRef(() => {
|
|
329
|
+
const rootContext = React__default.useContext(RootContext);
|
|
330
|
+
if (!rootContext)
|
|
331
|
+
return null;
|
|
332
|
+
const { setSelectedMenuItem, linkComponent: Link2 } = rootContext;
|
|
333
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
334
|
+
LINKS.map((link) => /* @__PURE__ */ jsxs(NavigationMenu.List, { value: link.name, children: [
|
|
335
|
+
link.links.map((subLink) => /* @__PURE__ */ jsx(NavigationMenu.Item, { value: subLink.name, children: subLink.name === "Logo" && /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: subLink.appKey === rootContext.appKey || rootContext.appKey === "storybook" ? /* @__PURE__ */ jsx(Link2, { href: subLink.link, onClick: () => setSelectedMenuItem(""), children: /* @__PURE__ */ jsx(
|
|
336
|
+
"img",
|
|
337
|
+
{
|
|
338
|
+
src: "https://cdn.voca.teliacompany.com/logo/Telia-primary-default-v2.svg",
|
|
339
|
+
draggable: "false",
|
|
340
|
+
alt: "Telia logo"
|
|
341
|
+
}
|
|
342
|
+
) }) : /* @__PURE__ */ jsx("a", { href: subLink.link, onClick: () => setSelectedMenuItem(""), children: /* @__PURE__ */ jsx(
|
|
343
|
+
"img",
|
|
344
|
+
{
|
|
345
|
+
src: "https://cdn.voca.teliacompany.com/logo/Telia-primary-default-v2.svg",
|
|
346
|
+
draggable: "false",
|
|
347
|
+
alt: "Telia logo"
|
|
348
|
+
}
|
|
349
|
+
) }) }) }, subLink.name)),
|
|
350
|
+
/* @__PURE__ */ jsx(Box, { ml: "auto" }),
|
|
351
|
+
/* @__PURE__ */ jsx(NavigationMenu.Item, { children: /* @__PURE__ */ jsx(ShoppingCart, {}) })
|
|
352
|
+
] }, link.name)),
|
|
353
|
+
/* @__PURE__ */ jsx(NavigationMenu.Viewport, { className: styles[`${rootClassName}__viewport`] })
|
|
354
|
+
] });
|
|
355
|
+
});
|
|
356
|
+
DesktopSimplified.displayName = "DesktopSimplified";
|
|
357
|
+
function MobileSimplified(props) {
|
|
358
|
+
const rootContext = React__default.useContext(RootContext);
|
|
359
|
+
if (!rootContext)
|
|
360
|
+
return null;
|
|
361
|
+
const { linkComponent: NavLink } = rootContext;
|
|
362
|
+
const classes = clsx([styles[`${rootClassName}__mobile`]], props.className);
|
|
363
|
+
return /* @__PURE__ */ jsx(Flex, { ...props, className: classes, children: /* @__PURE__ */ jsxs(Flex, { flexGrow: "1", justify: "between", align: "center", gap: "200", children: [
|
|
364
|
+
/* @__PURE__ */ jsx(Box, { flexShrink: "0", children: /* @__PURE__ */ jsx(NavigationMenu.Link, { asChild: true, variant: "button", children: rootContext.appKey === "open-pages" ? /* @__PURE__ */ jsx(NavLink, { href: "/", children: /* @__PURE__ */ jsx(Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) : /* @__PURE__ */ jsx("a", { href: "/", children: /* @__PURE__ */ jsx(Icon, { size: "lg", name: "telia-logo", "aria-label": "Telia logo" }) }) }) }),
|
|
365
|
+
/* @__PURE__ */ jsx(Flex, { flexBasis: "0", gap: { sm: "100", md: "200" }, children: /* @__PURE__ */ jsx(ShoppingCart, {}) })
|
|
366
|
+
] }) });
|
|
367
|
+
}
|
|
368
|
+
MobileSimplified.displayName = "MobileSimplified";
|
|
328
369
|
const rootClassName = "teddy-global-navigation";
|
|
329
370
|
const RootContext = React__default.createContext(null);
|
|
330
371
|
function Root({
|
|
@@ -339,6 +380,7 @@ function Root({
|
|
|
339
380
|
isCartOpen,
|
|
340
381
|
onCartOpenChange,
|
|
341
382
|
drawerSize = "md",
|
|
383
|
+
isSimplified,
|
|
342
384
|
...props
|
|
343
385
|
}) {
|
|
344
386
|
const [selectedMenuItem, setSelectedMenuItem] = React__default.useState(getInitialMenuItem());
|
|
@@ -378,8 +420,14 @@ function Root({
|
|
|
378
420
|
setSelectedMenuItem(v);
|
|
379
421
|
},
|
|
380
422
|
children: [
|
|
381
|
-
/* @__PURE__ */
|
|
382
|
-
|
|
423
|
+
/* @__PURE__ */ jsxs(Box, { display: { sm: "none", lg: "block" }, children: [
|
|
424
|
+
isSimplified && /* @__PURE__ */ jsx(DesktopSimplified, {}),
|
|
425
|
+
!isSimplified && /* @__PURE__ */ jsx(Desktop, {})
|
|
426
|
+
] }),
|
|
427
|
+
/* @__PURE__ */ jsxs(Box, { display: { lg: "none" }, children: [
|
|
428
|
+
isSimplified && /* @__PURE__ */ jsx(MobileSimplified, {}),
|
|
429
|
+
!isSimplified && /* @__PURE__ */ jsx(Mobile, {})
|
|
430
|
+
] })
|
|
383
431
|
]
|
|
384
432
|
}
|
|
385
433
|
) })
|
|
@@ -425,6 +473,8 @@ export {
|
|
|
425
473
|
SearchField as S,
|
|
426
474
|
Search as a,
|
|
427
475
|
ShoppingCart as b,
|
|
428
|
-
|
|
476
|
+
DesktopSimplified as c,
|
|
477
|
+
MobileSimplified as d,
|
|
478
|
+
Root as e,
|
|
429
479
|
rootClassName as r
|
|
430
480
|
};
|
|
@@ -16,6 +16,7 @@ export type RootProps = React.ComponentPropsWithoutRef<'div'> & {
|
|
|
16
16
|
isCartOpen?: boolean;
|
|
17
17
|
onCartOpenChange?: (open: boolean) => void;
|
|
18
18
|
drawerSize: 'md' | 'lg';
|
|
19
|
+
isSimplified?: boolean;
|
|
19
20
|
};
|
|
20
21
|
type RootContext = {
|
|
21
22
|
selectedMenuItem: string | undefined;
|
|
@@ -26,7 +27,7 @@ type RootContext = {
|
|
|
26
27
|
setPathname: (v: string) => void;
|
|
27
28
|
} & Pick<RootProps, 'onSearchSubmit' | 'shoppingCart' | 'shoppingCartNumberOfItems' | 'loggedInUser' | 'appKey' | 'onLogoutClick' | 'linkComponent' | 'isCartOpen' | 'onCartOpenChange' | 'drawerSize'>;
|
|
28
29
|
export declare const RootContext: React.Context<RootContext | null>;
|
|
29
|
-
export declare function Root({ className, appKey, loggedInUser, linkComponent, onLogoutClick, shoppingCart, shoppingCartNumberOfItems, onSearchSubmit, isCartOpen, onCartOpenChange, drawerSize, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
30
|
+
export declare function Root({ className, appKey, loggedInUser, linkComponent, onLogoutClick, shoppingCart, shoppingCartNumberOfItems, onSearchSubmit, isCartOpen, onCartOpenChange, drawerSize, isSimplified, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
|
|
30
31
|
export declare namespace Root {
|
|
31
32
|
var displayName: string;
|
|
32
33
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import "clsx";
|
|
4
|
-
import {
|
|
4
|
+
import { e, R, r } from "./global-navigation-my-pages.js";
|
|
5
5
|
import "./utils.js";
|
|
6
6
|
import "../../box/box.js";
|
|
7
7
|
import "../navigation-menu.js";
|
|
8
8
|
export {
|
|
9
|
-
|
|
9
|
+
e as Root,
|
|
10
10
|
R as RootContext,
|
|
11
11
|
r as rootClassName
|
|
12
12
|
};
|
|
@@ -45,6 +45,7 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
45
45
|
bordered?: boolean | undefined;
|
|
46
46
|
shadow?: boolean | undefined;
|
|
47
47
|
backgroundImageSrc?: string | undefined;
|
|
48
|
+
imageGradient?: ("dark" | "light") | undefined;
|
|
48
49
|
layout?: ("navigation-vertical" | "navigation-horizontal-small" | "navigation-horizontal-large" | "rich-card") | undefined;
|
|
49
50
|
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
|
|
50
51
|
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
@@ -60,6 +61,7 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
60
61
|
bordered?: boolean | undefined;
|
|
61
62
|
shadow?: boolean | undefined;
|
|
62
63
|
backgroundImageSrc?: string | undefined;
|
|
64
|
+
imageGradient?: ("dark" | "light") | undefined;
|
|
63
65
|
layout?: ("navigation-vertical" | "navigation-horizontal-small" | "navigation-horizontal-large" | "rich-card") | undefined;
|
|
64
66
|
} & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, "ref"> & 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 & {
|
|
65
67
|
display?: import('../../utils/generate-styling').DisplayChildren | undefined;
|
|
@@ -75,6 +77,7 @@ declare const Notification: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<
|
|
|
75
77
|
bordered?: boolean | undefined;
|
|
76
78
|
shadow?: boolean | undefined;
|
|
77
79
|
backgroundImageSrc?: string | undefined;
|
|
80
|
+
imageGradient?: ("dark" | "light") | undefined;
|
|
78
81
|
layout?: ("navigation-vertical" | "navigation-horizontal-small" | "navigation-horizontal-large" | "rich-card") | undefined;
|
|
79
82
|
} & React.RefAttributes<HTMLDivElement>, "ref">, "as" | "variant"> & {
|
|
80
83
|
variant?: "error" | "warning" | "success" | "information" | undefined;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const styles = {
|
|
2
|
+
"teddy-drawer__overlay": "_teddy-drawer__overlay_ugum0_26",
|
|
3
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_ugum0_1",
|
|
4
|
+
"teddy-fade-in": "_teddy-fade-in_ugum0_1",
|
|
5
|
+
"teddy-fade-out": "_teddy-fade-out_ugum0_1",
|
|
6
|
+
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_ugum0_59",
|
|
7
|
+
"teddy-drawer__content": "_teddy-drawer__content_ugum0_65",
|
|
8
|
+
"teddy-drawer__title": "_teddy-drawer__title_ugum0_69",
|
|
9
|
+
"drawer-content-show": "_drawer-content-show_ugum0_1",
|
|
10
|
+
"drawer-content-hide": "_drawer-content-hide_ugum0_1",
|
|
11
|
+
"teddy-drawer__content--lg": "_teddy-drawer__content--lg_ugum0_99",
|
|
12
|
+
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_ugum0_104"
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
styles as s
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const styles = {
|
|
3
|
+
"teddy-drawer__overlay": "_teddy-drawer__overlay_ugum0_26",
|
|
4
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_ugum0_1",
|
|
5
|
+
"teddy-fade-in": "_teddy-fade-in_ugum0_1",
|
|
6
|
+
"teddy-fade-out": "_teddy-fade-out_ugum0_1",
|
|
7
|
+
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_ugum0_59",
|
|
8
|
+
"teddy-drawer__content": "_teddy-drawer__content_ugum0_65",
|
|
9
|
+
"teddy-drawer__title": "_teddy-drawer__title_ugum0_69",
|
|
10
|
+
"drawer-content-show": "_drawer-content-show_ugum0_1",
|
|
11
|
+
"drawer-content-hide": "_drawer-content-hide_ugum0_1",
|
|
12
|
+
"teddy-drawer__content--lg": "_teddy-drawer__content--lg_ugum0_99",
|
|
13
|
+
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_ugum0_104"
|
|
14
|
+
};
|
|
15
|
+
exports.styles = styles;
|
package/dist/style.css
CHANGED
|
@@ -30,12 +30,13 @@
|
|
|
30
30
|
._teddy-ribbon--iconPlacement-center_14u2k_22 svg {
|
|
31
31
|
align-self: center;
|
|
32
32
|
}
|
|
33
|
-
}._teddy-expandable-
|
|
33
|
+
}._teddy-expandable-card_15whs_1 {
|
|
34
34
|
display: flex;
|
|
35
35
|
flex-direction: column;
|
|
36
36
|
gap: var(--teddy-spacing-400);
|
|
37
|
+
position: relative;
|
|
37
38
|
}
|
|
38
|
-
._teddy-expandable-
|
|
39
|
+
._teddy-expandable-card__item_15whs_7 {
|
|
39
40
|
width: 100%;
|
|
40
41
|
display: flex;
|
|
41
42
|
flex-direction: column;
|
|
@@ -43,7 +44,7 @@
|
|
|
43
44
|
border: var(--teddy-border-width-xs) solid var(--teddy-color-border-weak);
|
|
44
45
|
box-shadow: var(--teddy-shadow-sm);
|
|
45
46
|
}
|
|
46
|
-
._teddy-expandable-
|
|
47
|
+
._teddy-expandable-card__trigger_15whs_15 {
|
|
47
48
|
border: unset;
|
|
48
49
|
display: flex;
|
|
49
50
|
flex-direction: column;
|
|
@@ -59,15 +60,15 @@
|
|
|
59
60
|
transition-property: background-color, color;
|
|
60
61
|
text-align: start;
|
|
61
62
|
}
|
|
62
|
-
._teddy-expandable-
|
|
63
|
+
._teddy-expandable-card__trigger_15whs_15:hover {
|
|
63
64
|
background-color: var(--teddy-color-background-interactive-transparent-hover);
|
|
64
65
|
}
|
|
65
66
|
@media (prefers-reduced-motion: no-preference) {
|
|
66
|
-
._teddy-expandable-
|
|
67
|
+
._teddy-expandable-card__trigger_15whs_15:active {
|
|
67
68
|
background-color: var(--teddy-color-background-interactive-transparent-active);
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
._teddy-expandable-
|
|
71
|
+
._teddy-expandable-card__trigger_15whs_15 ._teddy-expandable-card__indicator_15whs_39 {
|
|
71
72
|
flex-shrink: 0;
|
|
72
73
|
transform: rotate(0);
|
|
73
74
|
margin-left: var(--teddy-spacing-100);
|
|
@@ -75,76 +76,79 @@
|
|
|
75
76
|
min-height: var(--teddy-spacing-300);
|
|
76
77
|
}
|
|
77
78
|
@media (prefers-reduced-motion: no-preference) {
|
|
78
|
-
._teddy-expandable-
|
|
79
|
+
._teddy-expandable-card__trigger_15whs_15 ._teddy-expandable-card__indicator_15whs_39 {
|
|
79
80
|
transition: transform var(--teddy-motion-duration-300) var(--teddy-motion-easing-ease-in-out);
|
|
80
81
|
}
|
|
81
82
|
}
|
|
82
|
-
._teddy-expandable-
|
|
83
|
+
._teddy-expandable-card__trigger_15whs_15 ._teddy-expandable-card__hidden_15whs_51 {
|
|
83
84
|
width: 100%;
|
|
84
85
|
}
|
|
85
|
-
._teddy-expandable-
|
|
86
|
+
._teddy-expandable-card__trigger_15whs_15[data-state=open] {
|
|
86
87
|
padding-bottom: var(--teddy-spacing-0);
|
|
87
88
|
}
|
|
88
|
-
._teddy-expandable-
|
|
89
|
+
._teddy-expandable-card__trigger_15whs_15[data-state=open] ._teddy-expandable-card__line_15whs_57 {
|
|
89
90
|
margin-bottom: var(--teddy-spacing-0);
|
|
90
91
|
}
|
|
91
|
-
._teddy-expandable-
|
|
92
|
+
._teddy-expandable-card__trigger_15whs_15[data-state=open] ._teddy-expandable-card__content_15whs_60 {
|
|
92
93
|
padding-top: var(--teddy-spacing-200);
|
|
93
94
|
}
|
|
94
|
-
._teddy-expandable-
|
|
95
|
+
._teddy-expandable-card__trigger_15whs_15[data-state=open] ._teddy-expandable-card__indicator_15whs_39 {
|
|
95
96
|
transform: rotate(180deg);
|
|
96
97
|
}
|
|
97
|
-
._teddy-expandable-
|
|
98
|
+
._teddy-expandable-card__trigger_15whs_15[data-state=open] ._teddy-expandable-card__hidden_15whs_51 {
|
|
98
99
|
display: none;
|
|
99
100
|
}
|
|
100
|
-
._teddy-expandable-
|
|
101
|
+
._teddy-expandable-card__description_15whs_69 {
|
|
101
102
|
display: flex;
|
|
102
103
|
justify-content: space-between;
|
|
103
104
|
flex-grow: 1;
|
|
104
105
|
flex-direction: column;
|
|
105
106
|
}
|
|
106
107
|
@media (min-width: 600px) {
|
|
107
|
-
._teddy-expandable-
|
|
108
|
+
._teddy-expandable-card__description_15whs_69 {
|
|
108
109
|
flex-direction: row;
|
|
109
110
|
}
|
|
110
111
|
}
|
|
111
|
-
._teddy-expandable-
|
|
112
|
+
._teddy-expandable-card__price_15whs_80 {
|
|
112
113
|
display: flex;
|
|
113
114
|
align-items: center;
|
|
114
115
|
}
|
|
115
|
-
._teddy-expandable-
|
|
116
|
+
._teddy-expandable-card__header_15whs_84 {
|
|
116
117
|
display: flex;
|
|
117
118
|
width: 100%;
|
|
118
119
|
}
|
|
119
|
-
._teddy-expandable-
|
|
120
|
+
._teddy-expandable-card__line_15whs_57 {
|
|
120
121
|
border: 0;
|
|
121
122
|
border-top: var(--teddy-border-width-xs) solid var(--teddy-color-border-weak);
|
|
122
123
|
}
|
|
123
|
-
._teddy-expandable-
|
|
124
|
+
._teddy-expandable-card__slot_15whs_92 {
|
|
124
125
|
display: flex;
|
|
125
126
|
gap: var(--teddy-spacing-150);
|
|
126
|
-
transform: translateY(
|
|
127
|
+
transform: translateY(-50%);
|
|
128
|
+
}
|
|
129
|
+
._teddy-expandable-card__slot--bottom_15whs_97 {
|
|
130
|
+
transform: translateY(50%);
|
|
127
131
|
}
|
|
128
|
-
._teddy-expandable-card__slot--
|
|
129
|
-
transform: translate(-50%, -
|
|
132
|
+
._teddy-expandable-card__slot--center_15whs_100 {
|
|
133
|
+
transform: translate(-50%, -50%);
|
|
130
134
|
}
|
|
131
|
-
._teddy-expandable-card__slot--
|
|
132
|
-
transform: translate(-50%,
|
|
135
|
+
._teddy-expandable-card__slot--bottom_15whs_97._teddy-expandable-card__slot--center_15whs_100 {
|
|
136
|
+
transform: translate(-50%, 50%);
|
|
133
137
|
}
|
|
134
|
-
._teddy-expandable-
|
|
138
|
+
._teddy-expandable-card__content_15whs_60 {
|
|
135
139
|
overflow: hidden;
|
|
136
140
|
padding: var(--teddy-spacing-300);
|
|
137
141
|
}
|
|
138
|
-
._teddy-expandable-
|
|
142
|
+
._teddy-expandable-card__content_15whs_60[data-state=open] {
|
|
139
143
|
padding-top: var(--teddy-spacing-200);
|
|
140
144
|
}
|
|
141
|
-
._teddy-expandable-
|
|
145
|
+
._teddy-expandable-card__content_15whs_60 > *:not(:first-child) {
|
|
142
146
|
margin-top: var(--teddy-spacing-200);
|
|
143
147
|
}
|
|
144
|
-
._teddy-expandable-card__button--
|
|
148
|
+
._teddy-expandable-card__button--right_15whs_116 {
|
|
145
149
|
float: right;
|
|
146
150
|
}
|
|
147
|
-
._teddy-expandable-card__button--
|
|
151
|
+
._teddy-expandable-card__button--left_15whs_119 {
|
|
148
152
|
float: left;
|
|
149
153
|
}._teddy-spinner--xxs_ywden_1 {
|
|
150
154
|
height: var(--teddy-spacing-250);
|
|
@@ -1015,8 +1019,8 @@
|
|
|
1015
1019
|
right: 100%;
|
|
1016
1020
|
transform: rotate(180deg);
|
|
1017
1021
|
}
|
|
1018
|
-
}@layer reset, flex, button, link, drawer;
|
|
1019
|
-
@keyframes _teddy-fade-
|
|
1022
|
+
}@layer reset, flex, button, link, heading, drawer;
|
|
1023
|
+
@keyframes _teddy-fade-in_ugum0_1 {
|
|
1020
1024
|
from {
|
|
1021
1025
|
opacity: 0;
|
|
1022
1026
|
}
|
|
@@ -1024,7 +1028,7 @@
|
|
|
1024
1028
|
opacity: 1;
|
|
1025
1029
|
}
|
|
1026
1030
|
}
|
|
1027
|
-
@keyframes _teddy-fade-
|
|
1031
|
+
@keyframes _teddy-fade-out_ugum0_1 {
|
|
1028
1032
|
from {
|
|
1029
1033
|
opacity: 1;
|
|
1030
1034
|
}
|
|
@@ -1032,7 +1036,7 @@
|
|
|
1032
1036
|
opacity: 0;
|
|
1033
1037
|
}
|
|
1034
1038
|
}
|
|
1035
|
-
@keyframes _teddy-overlay-no-
|
|
1039
|
+
@keyframes _teddy-overlay-no-op_ugum0_1 {
|
|
1036
1040
|
from {
|
|
1037
1041
|
opacity: 1;
|
|
1038
1042
|
}
|
|
@@ -1040,53 +1044,64 @@
|
|
|
1040
1044
|
opacity: 1;
|
|
1041
1045
|
}
|
|
1042
1046
|
}
|
|
1043
|
-
._teddy-
|
|
1047
|
+
._teddy-drawer__overlay_ugum0_26 {
|
|
1044
1048
|
box-sizing: border-box;
|
|
1045
1049
|
}
|
|
1046
1050
|
@layer drawer {
|
|
1047
|
-
._teddy-
|
|
1051
|
+
._teddy-drawer__overlay_ugum0_26 {
|
|
1048
1052
|
box-sizing: border-box;
|
|
1049
1053
|
position: fixed;
|
|
1050
1054
|
inset: 0;
|
|
1055
|
+
display: grid;
|
|
1056
|
+
justify-items: end;
|
|
1051
1057
|
z-index: 40;
|
|
1052
1058
|
}
|
|
1053
1059
|
@media (prefers-reduced-motion: no-preference) {
|
|
1054
|
-
._teddy-
|
|
1060
|
+
._teddy-drawer__overlay_ugum0_26 {
|
|
1055
1061
|
/* Keep the overlay mounted until the children have animated */
|
|
1056
1062
|
}
|
|
1057
|
-
._teddy-
|
|
1058
|
-
animation: _teddy-overlay-no-
|
|
1063
|
+
._teddy-drawer__overlay_ugum0_26:where([data-state=closed]) {
|
|
1064
|
+
animation: _teddy-overlay-no-op_ugum0_1 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1059
1065
|
}
|
|
1060
|
-
._teddy-
|
|
1061
|
-
animation: _teddy-fade-
|
|
1066
|
+
._teddy-drawer__overlay_ugum0_26:where([data-state=open])::before {
|
|
1067
|
+
animation: _teddy-fade-in_ugum0_1 500ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1062
1068
|
}
|
|
1063
|
-
._teddy-
|
|
1064
|
-
animation: _teddy-fade-
|
|
1069
|
+
._teddy-drawer__overlay_ugum0_26:where([data-state=closed])::before {
|
|
1070
|
+
animation: _teddy-fade-out_ugum0_1 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1065
1071
|
}
|
|
1066
1072
|
}
|
|
1067
|
-
._teddy-
|
|
1073
|
+
._teddy-drawer__overlay_ugum0_26::before {
|
|
1068
1074
|
position: fixed;
|
|
1069
1075
|
content: "";
|
|
1070
1076
|
inset: 0;
|
|
1071
1077
|
background-color: var(--teddy-color-overlay-default);
|
|
1072
1078
|
}
|
|
1073
|
-
._teddy-drawer__overlay--
|
|
1079
|
+
._teddy-drawer__overlay--container_ugum0_59 {
|
|
1074
1080
|
position: absolute;
|
|
1075
1081
|
}
|
|
1076
|
-
._teddy-drawer__overlay--
|
|
1082
|
+
._teddy-drawer__overlay--container_ugum0_59::before {
|
|
1077
1083
|
position: absolute;
|
|
1078
1084
|
}
|
|
1079
|
-
._teddy-drawer__overlay--
|
|
1085
|
+
._teddy-drawer__overlay--container_ugum0_59 ._teddy-drawer__content_ugum0_65 {
|
|
1080
1086
|
position: absolute;
|
|
1087
|
+
inset: 0;
|
|
1088
|
+
}
|
|
1089
|
+
._teddy-drawer__title_ugum0_69 {
|
|
1090
|
+
position: sticky;
|
|
1091
|
+
padding-top: var(--teddy-spacing-300);
|
|
1092
|
+
background-color: var(--teddy-color-background-primary);
|
|
1093
|
+
top: -1.5rem;
|
|
1094
|
+
margin-top: -1.5rem;
|
|
1081
1095
|
}
|
|
1082
|
-
._teddy-
|
|
1096
|
+
._teddy-drawer__content_ugum0_65 {
|
|
1083
1097
|
background-color: var(--teddy-color-background-primary);
|
|
1084
1098
|
box-shadow: var(--teddy-shadow-lg);
|
|
1085
|
-
|
|
1086
|
-
overflow:
|
|
1087
|
-
|
|
1099
|
+
z-index: 40;
|
|
1100
|
+
overflow-y: auto;
|
|
1101
|
+
overflow-x: hidden;
|
|
1102
|
+
margin-left: auto;
|
|
1088
1103
|
box-sizing: border-box;
|
|
1089
|
-
padding: var(--teddy-spacing-300);
|
|
1104
|
+
padding: var(--teddy-spacing-300) var(--teddy-spacing-300);
|
|
1090
1105
|
display: flex;
|
|
1091
1106
|
flex-direction: column;
|
|
1092
1107
|
gap: var(--teddy-spacing-200);
|
|
@@ -1094,26 +1109,26 @@
|
|
|
1094
1109
|
min-width: min(100%, 400px);
|
|
1095
1110
|
}
|
|
1096
1111
|
@media (prefers-reduced-motion: no-preference) {
|
|
1097
|
-
._teddy-
|
|
1098
|
-
animation: _drawer-content-
|
|
1112
|
+
._teddy-drawer__content_ugum0_65:where([data-state=open]) {
|
|
1113
|
+
animation: _drawer-content-show_ugum0_1 450ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1099
1114
|
}
|
|
1100
|
-
._teddy-
|
|
1101
|
-
animation: _drawer-content-
|
|
1115
|
+
._teddy-drawer__content_ugum0_65:where([data-state=closed]) {
|
|
1116
|
+
animation: _drawer-content-hide_ugum0_1 350ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
1102
1117
|
}
|
|
1103
1118
|
}
|
|
1104
|
-
._teddy-drawer__content--
|
|
1119
|
+
._teddy-drawer__content--lg_ugum0_99 {
|
|
1105
1120
|
min-width: min(100%, 30rem);
|
|
1106
1121
|
width: 30vw;
|
|
1107
1122
|
max-width: initial;
|
|
1108
1123
|
}
|
|
1109
|
-
._teddy-drawer__close--
|
|
1110
|
-
position:
|
|
1124
|
+
._teddy-drawer__close--floating_ugum0_104 {
|
|
1125
|
+
position: fixed;
|
|
1111
1126
|
z-index: 2;
|
|
1112
1127
|
top: var(--teddy-spacing-200);
|
|
1113
1128
|
right: var(--teddy-spacing-200);
|
|
1114
1129
|
}
|
|
1115
1130
|
}
|
|
1116
|
-
@keyframes _drawer-content-
|
|
1131
|
+
@keyframes _drawer-content-show_ugum0_1 {
|
|
1117
1132
|
from {
|
|
1118
1133
|
transform: translateX(100%);
|
|
1119
1134
|
}
|
|
@@ -1121,7 +1136,7 @@
|
|
|
1121
1136
|
transform: translateX(0px);
|
|
1122
1137
|
}
|
|
1123
1138
|
}
|
|
1124
|
-
@keyframes _drawer-content-
|
|
1139
|
+
@keyframes _drawer-content-hide_ugum0_1 {
|
|
1125
1140
|
from {
|
|
1126
1141
|
transform: translateX(0px);
|
|
1127
1142
|
}
|
|
@@ -2578,7 +2593,7 @@
|
|
|
2578
2593
|
._teddy-field-error-text__indicator_1735t_12 {
|
|
2579
2594
|
color: var(--teddy-color-text-status-error-medium);
|
|
2580
2595
|
line-height: var(--teddy-typography-line-height-tight);
|
|
2581
|
-
}._teddy-
|
|
2596
|
+
}._teddy-badge_wlyo5_1 {
|
|
2582
2597
|
font-family: var(--teddy-typography-family-default);
|
|
2583
2598
|
font-weight: var(--teddy-typography-weight-medium);
|
|
2584
2599
|
font-size: var(--teddy-typography-scale-75);
|
|
@@ -2590,13 +2605,17 @@
|
|
|
2590
2605
|
align-items: center;
|
|
2591
2606
|
gap: var(--teddy-spacing-50);
|
|
2592
2607
|
}
|
|
2593
|
-
._teddy-badge--counter-
|
|
2608
|
+
._teddy-badge--counter-badge_wlyo5_13 {
|
|
2594
2609
|
padding: var(--teddy-spacing-10) var(--teddy-spacing-50);
|
|
2610
|
+
box-sizing: border-box;
|
|
2595
2611
|
border-radius: var(--teddy-spacing-100);
|
|
2596
2612
|
font-size: var(--teddy-typography-scale-50);
|
|
2597
2613
|
line-height: var(--teddy-typography-line-height-tight);
|
|
2614
|
+
min-width: var(--teddy-spacing-200);
|
|
2615
|
+
justify-content: center;
|
|
2616
|
+
text-align: center;
|
|
2598
2617
|
}
|
|
2599
|
-
._teddy-badge--alert-
|
|
2618
|
+
._teddy-badge--alert-badge_wlyo5_23 {
|
|
2600
2619
|
display: block;
|
|
2601
2620
|
padding: 0;
|
|
2602
2621
|
min-height: initial;
|
|
@@ -2606,54 +2625,54 @@
|
|
|
2606
2625
|
height: var(--teddy-spacing-100);
|
|
2607
2626
|
border: var(--teddy-border-width-sm) solid;
|
|
2608
2627
|
}
|
|
2609
|
-
._teddy-badge--
|
|
2628
|
+
._teddy-badge--attention_wlyo5_33 {
|
|
2610
2629
|
background-color: var(--teddy-color-background-status-attention);
|
|
2611
2630
|
color: var(--teddy-color-text-status-attention);
|
|
2612
2631
|
}
|
|
2613
|
-
._teddy-badge--
|
|
2632
|
+
._teddy-badge--attention_wlyo5_33._teddy-badge--alert-badge_wlyo5_23 {
|
|
2614
2633
|
border-color: var(--teddy-color-background-status-special);
|
|
2615
2634
|
}
|
|
2616
|
-
._teddy-badge--
|
|
2635
|
+
._teddy-badge--special_wlyo5_40 {
|
|
2617
2636
|
background-color: var(--teddy-color-background-status-special);
|
|
2618
2637
|
color: var(--teddy-color-text-status-special);
|
|
2619
2638
|
}
|
|
2620
|
-
._teddy-badge--
|
|
2639
|
+
._teddy-badge--neutral_wlyo5_44 {
|
|
2621
2640
|
background-color: var(--teddy-color-background-status-neutral);
|
|
2622
2641
|
color: var(--teddy-color-text-status-neutral);
|
|
2623
2642
|
}
|
|
2624
|
-
._teddy-badge--
|
|
2643
|
+
._teddy-badge--neutral_wlyo5_44._teddy-badge--alert-badge_wlyo5_23 {
|
|
2625
2644
|
background-color: var(--teddy-color-text-status-neutral);
|
|
2626
2645
|
border-color: var(--teddy-color-background-status-neutral);
|
|
2627
2646
|
}
|
|
2628
|
-
._teddy-badge--
|
|
2647
|
+
._teddy-badge--information_wlyo5_52 {
|
|
2629
2648
|
background-color: var(--teddy-color-background-status-info-strong);
|
|
2630
2649
|
color: var(--teddy-color-text-status-info-strong);
|
|
2631
2650
|
}
|
|
2632
|
-
._teddy-badge--
|
|
2651
|
+
._teddy-badge--information_wlyo5_52._teddy-badge--alert-badge_wlyo5_23 {
|
|
2633
2652
|
background-color: var(--teddy-color-text-status-info-strong);
|
|
2634
2653
|
border-color: var(--teddy-color-background-status-info-strong);
|
|
2635
2654
|
}
|
|
2636
|
-
._teddy-badge--
|
|
2655
|
+
._teddy-badge--success_wlyo5_60 {
|
|
2637
2656
|
background-color: var(--teddy-color-background-status-success-strong);
|
|
2638
2657
|
color: var(--teddy-color-text-status-success-strong);
|
|
2639
2658
|
}
|
|
2640
|
-
._teddy-badge--
|
|
2659
|
+
._teddy-badge--success_wlyo5_60._teddy-badge--alert-badge_wlyo5_23 {
|
|
2641
2660
|
background-color: var(--teddy-color-text-status-success-strong);
|
|
2642
2661
|
border-color: var(--teddy-color-background-status-success-strong);
|
|
2643
2662
|
}
|
|
2644
|
-
._teddy-badge--
|
|
2663
|
+
._teddy-badge--warning_wlyo5_68 {
|
|
2645
2664
|
background-color: var(--teddy-color-background-status-warning-strong);
|
|
2646
2665
|
color: var(--teddy-color-text-status-warning-strong);
|
|
2647
2666
|
}
|
|
2648
|
-
._teddy-badge--
|
|
2667
|
+
._teddy-badge--warning_wlyo5_68._teddy-badge--alert-badge_wlyo5_23 {
|
|
2649
2668
|
background-color: var(--teddy-color-text-status-warning-strong);
|
|
2650
2669
|
border-color: var(--teddy-color-background-status-warning-strong);
|
|
2651
2670
|
}
|
|
2652
|
-
._teddy-badge--
|
|
2671
|
+
._teddy-badge--error_wlyo5_76 {
|
|
2653
2672
|
background-color: var(--teddy-color-background-status-error-strong);
|
|
2654
2673
|
color: var(--teddy-color-text-status-error-strong);
|
|
2655
2674
|
}
|
|
2656
|
-
._teddy-badge--
|
|
2675
|
+
._teddy-badge--error_wlyo5_76._teddy-badge--alert-badge_wlyo5_23 {
|
|
2657
2676
|
background-color: var(--teddy-color-text-status-error-strong);
|
|
2658
2677
|
border-color: var(--teddy-color-background-status-error-strong);
|
|
2659
2678
|
}@layer heading, link, accordion;
|
package/package.json
CHANGED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
const styles = {
|
|
2
|
-
"teddy-drawer__overlay": "_teddy-drawer__overlay_xphhg_26",
|
|
3
|
-
"teddy-overlay-no-op": "_teddy-overlay-no-op_xphhg_1",
|
|
4
|
-
"teddy-fade-in": "_teddy-fade-in_xphhg_1",
|
|
5
|
-
"teddy-fade-out": "_teddy-fade-out_xphhg_1",
|
|
6
|
-
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_xphhg_57",
|
|
7
|
-
"teddy-drawer__content": "_teddy-drawer__content_xphhg_63",
|
|
8
|
-
"drawer-content-show": "_drawer-content-show_xphhg_1",
|
|
9
|
-
"drawer-content-hide": "_drawer-content-hide_xphhg_1",
|
|
10
|
-
"teddy-drawer__content--lg": "_teddy-drawer__content--lg_xphhg_88",
|
|
11
|
-
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_xphhg_93"
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
styles as s
|
|
15
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
const styles = {
|
|
3
|
-
"teddy-drawer__overlay": "_teddy-drawer__overlay_xphhg_26",
|
|
4
|
-
"teddy-overlay-no-op": "_teddy-overlay-no-op_xphhg_1",
|
|
5
|
-
"teddy-fade-in": "_teddy-fade-in_xphhg_1",
|
|
6
|
-
"teddy-fade-out": "_teddy-fade-out_xphhg_1",
|
|
7
|
-
"teddy-drawer__overlay--container": "_teddy-drawer__overlay--container_xphhg_57",
|
|
8
|
-
"teddy-drawer__content": "_teddy-drawer__content_xphhg_63",
|
|
9
|
-
"drawer-content-show": "_drawer-content-show_xphhg_1",
|
|
10
|
-
"drawer-content-hide": "_drawer-content-hide_xphhg_1",
|
|
11
|
-
"teddy-drawer__content--lg": "_teddy-drawer__content--lg_xphhg_88",
|
|
12
|
-
"teddy-drawer__close--floating": "_teddy-drawer__close--floating_xphhg_93"
|
|
13
|
-
};
|
|
14
|
-
exports.styles = styles;
|