@telia/teddy 0.7.49 → 0.7.51

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.
@@ -86,17 +86,17 @@ const Root = React.forwardRef(
86
86
  "navigation-horizontal-small-centered",
87
87
  "navigation-horizontal-large"
88
88
  ].includes(layout ?? "");
89
- const customStyle = backgroundImageSrc ? imageGradient === "light" ? {
89
+ const customStyle = backgroundImageSrc ? imageGradient === "none" ? { backgroundImage: `url(${backgroundImageSrc})`, ...props.style } : imageGradient === "light" ? {
90
90
  backgroundImage: `
91
- linear-gradient(${tokens_color_variables.teddyColorTransparentWhite850} 0%,
92
- ${tokens_color_variables.teddyColorTransparentWhite800} 50%,
93
- ${tokens_color_variables.teddyColorTransparentWhite100} 100%),
91
+ linear-gradient(${tokens_color_variables.teddyColorTransparentWhite850} 0%,
92
+ ${tokens_color_variables.teddyColorTransparentWhite800} 50%,
93
+ ${tokens_color_variables.teddyColorTransparentWhite100} 100%),
94
94
  url(${backgroundImageSrc})`,
95
95
  ...props.style
96
96
  } : {
97
97
  backgroundImage: `
98
98
  linear-gradient(${tokens_color_variables.teddyColorTransparentBlack600} 0%,
99
- ${tokens_color_variables.teddyColorTransparentBlack200} 100%),
99
+ ${tokens_color_variables.teddyColorTransparentBlack200} 100%),
100
100
  url(${backgroundImageSrc})`,
101
101
  ...props.style
102
102
  } : props.style;
@@ -5,7 +5,7 @@ import { Variant } from './utils';
5
5
  export declare const rootClassName = "teddy-card";
6
6
  export declare const actionElementIdentifier = "teddy-card__action";
7
7
  export type Layout = 'navigation-vertical' | 'navigation-horizontal-small' | 'navigation-horizontal-small-centered' | 'navigation-horizontal-large' | 'rich-card' | 'rich-card-large' | 'default' | 'product';
8
- type Gradient = 'light' | 'dark' | 'default';
8
+ type Gradient = 'light' | 'dark' | 'default' | 'none';
9
9
  export type CardType = 'regular' | 'product';
10
10
  export declare const RootContext: React.Context<{
11
11
  buttonRef: React.RefObject<HTMLButtonElement>;
@@ -84,17 +84,17 @@ const Root = React__default.forwardRef(
84
84
  "navigation-horizontal-small-centered",
85
85
  "navigation-horizontal-large"
86
86
  ].includes(layout ?? "");
87
- const customStyle = backgroundImageSrc ? imageGradient === "light" ? {
87
+ const customStyle = backgroundImageSrc ? imageGradient === "none" ? { backgroundImage: `url(${backgroundImageSrc})`, ...props.style } : imageGradient === "light" ? {
88
88
  backgroundImage: `
89
- linear-gradient(${teddyColorTransparentWhite850} 0%,
90
- ${teddyColorTransparentWhite800} 50%,
91
- ${teddyColorTransparentWhite100} 100%),
89
+ linear-gradient(${teddyColorTransparentWhite850} 0%,
90
+ ${teddyColorTransparentWhite800} 50%,
91
+ ${teddyColorTransparentWhite100} 100%),
92
92
  url(${backgroundImageSrc})`,
93
93
  ...props.style
94
94
  } : {
95
95
  backgroundImage: `
96
96
  linear-gradient(${teddyColorTransparentBlack600} 0%,
97
- ${teddyColorTransparentBlack200} 100%),
97
+ ${teddyColorTransparentBlack200} 100%),
98
98
  url(${backgroundImageSrc})`,
99
99
  ...props.style
100
100
  } : props.style;
@@ -85,7 +85,7 @@ require("../container/container.cjs");
85
85
  require("../carousel/carousel-root.cjs");
86
86
  require("../slider/slider.cjs");
87
87
  require("../textarea/index.cjs");
88
- const modal_module = require("../../modal.module-BfeNqXoN.cjs");
88
+ const modal_module = require("../../modal.module-DC_f9KzI.cjs");
89
89
  const components_modal_modalImage = require("../modal/modal-image.cjs");
90
90
  const components_radioCardGroup_radioCardGroupIndicator = require("../radio-card-group/radio-card-group-indicator.cjs");
91
91
  const components_radioCardGroup_radioCardGroupItemBody = require("../radio-card-group/radio-card-group-item-body.cjs");
@@ -83,7 +83,7 @@ import "../container/container.js";
83
83
  import "../carousel/carousel-root.js";
84
84
  import "../slider/slider.js";
85
85
  import "../textarea/index.js";
86
- import { s as styles$4 } from "../../modal.module-DuP4in7f.js";
86
+ import { s as styles$4 } from "../../modal.module-1dzCSzkb.js";
87
87
  import { Image } from "../modal/modal-image.js";
88
88
  import { Indicator as Indicator$2 } from "../radio-card-group/radio-card-group-indicator.js";
89
89
  import { Body as Body$1 } from "../radio-card-group/radio-card-group-item-body.js";
@@ -67,6 +67,6 @@ require("../container/container.cjs");
67
67
  require("../carousel/carousel-root.cjs");
68
68
  require("../slider/slider.cjs");
69
69
  require("../textarea/index.cjs");
70
- require("../../modal.module-BfeNqXoN.cjs");
70
+ require("../../modal.module-DC_f9KzI.cjs");
71
71
  require("./modal-root.cjs");
72
72
  exports.Close = components_checkboxCardGroup_checkboxCardGroupIndicator.Close$1;
@@ -65,7 +65,7 @@ import "../container/container.js";
65
65
  import "../carousel/carousel-root.js";
66
66
  import "../slider/slider.js";
67
67
  import "../textarea/index.js";
68
- import "../../modal.module-DuP4in7f.js";
68
+ import "../../modal.module-1dzCSzkb.js";
69
69
  import "./modal-root.js";
70
70
  export {
71
71
  g as Close
@@ -5,7 +5,7 @@ const React = require("react");
5
5
  const DrawerPrimitive = require("@radix-ui/react-dialog");
6
6
  const components_flex_flex = require("../flex/flex.cjs");
7
7
  const clsx = require("clsx");
8
- const modal_module = require("../../modal.module-BfeNqXoN.cjs");
8
+ const modal_module = require("../../modal.module-DC_f9KzI.cjs");
9
9
  const components_modal_modalRoot = require("./modal-root.cjs");
10
10
  const components_modal_modalOverlay = require("./modal-overlay.cjs");
11
11
  function _interopNamespaceDefault(e) {
@@ -26,7 +26,7 @@ function _interopNamespaceDefault(e) {
26
26
  }
27
27
  const DrawerPrimitive__namespace = /* @__PURE__ */ _interopNamespaceDefault(DrawerPrimitive);
28
28
  const InnerContent = React.forwardRef(
29
- function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
29
+ function InnerContent2({ asChild, children, className, size, ...props }, forwardedRef) {
30
30
  const classes = clsx([modal_module.styles[`${components_modal_modalRoot.rootClassName}__scroll`]], className);
31
31
  const context = React.useContext(components_modal_modalRoot.RootContext);
32
32
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -34,7 +34,7 @@ const InnerContent = React.forwardRef(
34
34
  {
35
35
  ...props,
36
36
  ref: forwardedRef,
37
- className: clsx([modal_module.styles[`${components_modal_modalRoot.rootClassName}__content`]]),
37
+ className: clsx([modal_module.styles[`${components_modal_modalRoot.rootClassName}__content`], size && modal_module.styles[`${components_modal_modalRoot.rootClassName}__content--${size}`]]),
38
38
  asChild: true,
39
39
  children: /* @__PURE__ */ jsxRuntime.jsx(components_flex_flex.Flex, { children: /* @__PURE__ */ jsxRuntime.jsx(
40
40
  components_flex_flex.Flex,
@@ -42,7 +42,6 @@ const InnerContent = React.forwardRef(
42
42
  ...asChild ? { as: void 0, asChild } : {},
43
43
  direction: "column",
44
44
  align: "start",
45
- maxWidth: { md: "600px" },
46
45
  className: classes,
47
46
  ref: context.scrollRef,
48
47
  children
@@ -54,11 +53,11 @@ const InnerContent = React.forwardRef(
54
53
  );
55
54
  InnerContent.displayName = "InnerContent";
56
55
  const Content = React.forwardRef(
57
- ({ forceMount, ...contentProps }, forwardedRef) => {
56
+ ({ forceMount, size, ...contentProps }, forwardedRef) => {
58
57
  const hasOverlay = React.useContext(components_modal_modalOverlay.OverlayContext);
59
58
  if (!hasOverlay)
60
- return /* @__PURE__ */ jsxRuntime.jsx(components_modal_modalOverlay.Overlay, { forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps }) });
61
- return /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, ...contentProps });
59
+ return /* @__PURE__ */ jsxRuntime.jsx(components_modal_modalOverlay.Overlay, { forceMount, children: /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, size, ...contentProps }) });
60
+ return /* @__PURE__ */ jsxRuntime.jsx(InnerContent, { ref: forwardedRef, size, ...contentProps });
62
61
  }
63
62
  );
64
63
  Content.displayName = "Content";
@@ -1,7 +1,12 @@
1
1
  import { default as React } from 'react';
2
2
 
3
3
  import * as DialogPrimitive from '@radix-ui/react-dialog';
4
- type ContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content>;
5
- declare const Content: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
4
+ type Size = 'sm' | 'md' | 'lg';
5
+ type ContentProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Content> & {
6
+ size?: Size;
7
+ };
8
+ declare const Content: React.ForwardRefExoticComponent<Omit<DialogPrimitive.DialogContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
9
+ size?: Size | undefined;
10
+ } & React.RefAttributes<HTMLDivElement>>;
6
11
  export { Content };
7
12
  export type { ContentProps };
@@ -3,11 +3,11 @@ import React__default from "react";
3
3
  import * as DrawerPrimitive from "@radix-ui/react-dialog";
4
4
  import { Flex } from "../flex/flex.js";
5
5
  import clsx from "clsx";
6
- import { s as styles } from "../../modal.module-DuP4in7f.js";
6
+ import { s as styles } from "../../modal.module-1dzCSzkb.js";
7
7
  import { rootClassName, RootContext } from "./modal-root.js";
8
8
  import { OverlayContext, Overlay } from "./modal-overlay.js";
9
9
  const InnerContent = React__default.forwardRef(
10
- function InnerContent2({ asChild, children, className, ...props }, forwardedRef) {
10
+ function InnerContent2({ asChild, children, className, size, ...props }, forwardedRef) {
11
11
  const classes = clsx([styles[`${rootClassName}__scroll`]], className);
12
12
  const context = React__default.useContext(RootContext);
13
13
  return /* @__PURE__ */ jsx(
@@ -15,7 +15,7 @@ const InnerContent = React__default.forwardRef(
15
15
  {
16
16
  ...props,
17
17
  ref: forwardedRef,
18
- className: clsx([styles[`${rootClassName}__content`]]),
18
+ className: clsx([styles[`${rootClassName}__content`], size && styles[`${rootClassName}__content--${size}`]]),
19
19
  asChild: true,
20
20
  children: /* @__PURE__ */ jsx(Flex, { children: /* @__PURE__ */ jsx(
21
21
  Flex,
@@ -23,7 +23,6 @@ const InnerContent = React__default.forwardRef(
23
23
  ...asChild ? { as: void 0, asChild } : {},
24
24
  direction: "column",
25
25
  align: "start",
26
- maxWidth: { md: "600px" },
27
26
  className: classes,
28
27
  ref: context.scrollRef,
29
28
  children
@@ -35,11 +34,11 @@ const InnerContent = React__default.forwardRef(
35
34
  );
36
35
  InnerContent.displayName = "InnerContent";
37
36
  const Content = React__default.forwardRef(
38
- ({ forceMount, ...contentProps }, forwardedRef) => {
37
+ ({ forceMount, size, ...contentProps }, forwardedRef) => {
39
38
  const hasOverlay = React__default.useContext(OverlayContext);
40
39
  if (!hasOverlay)
41
- return /* @__PURE__ */ jsx(Overlay, { forceMount, children: /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, ...contentProps }) });
42
- return /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, ...contentProps });
40
+ return /* @__PURE__ */ jsx(Overlay, { forceMount, children: /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, size, ...contentProps }) });
41
+ return /* @__PURE__ */ jsx(InnerContent, { ref: forwardedRef, size, ...contentProps });
43
42
  }
44
43
  );
45
44
  Content.displayName = "Content";
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const components_flex_flex = require("../flex/flex.cjs");
6
6
  const clsx = require("clsx");
7
- const modal_module = require("../../modal.module-BfeNqXoN.cjs");
7
+ const modal_module = require("../../modal.module-DC_f9KzI.cjs");
8
8
  const components_modal_modalRoot = require("./modal-root.cjs");
9
9
  const GroupContext = React.createContext(false);
10
10
  const Group = React.forwardRef(
@@ -2,7 +2,7 @@ import { jsx } from "react/jsx-runtime";
2
2
  import React__default, { useEffect } from "react";
3
3
  import { Flex } from "../flex/flex.js";
4
4
  import clsx from "clsx";
5
- import { s as styles } from "../../modal.module-DuP4in7f.js";
5
+ import { s as styles } from "../../modal.module-1dzCSzkb.js";
6
6
  import { RootContext, rootClassName } from "./modal-root.js";
7
7
  const GroupContext = React__default.createContext(false);
8
8
  const Group = React__default.forwardRef(
@@ -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 modal_module = require("../../modal.module-BfeNqXoN.cjs");
6
+ const modal_module = require("../../modal.module-DC_f9KzI.cjs");
7
7
  const reactSlot = require("@radix-ui/react-slot");
8
8
  const utils_composeRefs = require("../../utils/composeRefs.cjs");
9
9
  const components_modal_modalRoot = require("./modal-root.cjs");
@@ -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 "../../modal.module-DuP4in7f.js";
4
+ import { s as styles } from "../../modal.module-1dzCSzkb.js";
5
5
  import { Slot } from "@radix-ui/react-slot";
6
6
  import { composeRefs } from "../../utils/composeRefs.js";
7
7
  import { rootClassName, RootContext } from "./modal-root.js";
@@ -4,7 +4,7 @@ const jsxRuntime = require("react/jsx-runtime");
4
4
  const React = require("react");
5
5
  const DrawerPrimitive = require("@radix-ui/react-dialog");
6
6
  const clsx = require("clsx");
7
- const modal_module = require("../../modal.module-BfeNqXoN.cjs");
7
+ const modal_module = require("../../modal.module-DC_f9KzI.cjs");
8
8
  const components_modal_modalRoot = require("./modal-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 * as DrawerPrimitive from "@radix-ui/react-dialog";
4
4
  import clsx from "clsx";
5
- import { s as styles } from "../../modal.module-DuP4in7f.js";
5
+ import { s as styles } from "../../modal.module-1dzCSzkb.js";
6
6
  import { rootClassName } from "./modal-root.js";
7
7
  const OverlayContext = React__default.createContext(false);
8
8
  const Overlay = React__default.forwardRef(
@@ -35,7 +35,6 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
35
35
  asChild: true;
36
36
  as?: undefined;
37
37
  } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
38
- asChild?: boolean | undefined;
39
38
  /**
40
39
  * Footer component displays the footer of the notification.
41
40
  *
@@ -44,11 +43,12 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
44
43
  * @example
45
44
  * <Notification.Footer">Notification Footer</Notification.Footer>
46
45
  */
46
+ asChild?: boolean | undefined;
47
47
  variant?: "beige" | "white" | "gray" | "purple-light" | "beige-light" | "purple-dark" | undefined;
48
48
  bordered?: boolean | undefined;
49
49
  shadow?: boolean | undefined;
50
50
  backgroundImageSrc?: string | undefined;
51
- imageGradient?: ("dark" | "light" | "default") | undefined;
51
+ imageGradient?: ("none" | "dark" | "light" | "default") | undefined;
52
52
  layout?: import('../card/card').Layout | undefined;
53
53
  } & import('react').RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<import('react').DetailedHTMLProps<import('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/radius').RadiusProps & 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 & {
54
54
  display?: import('../../utils/generate-styling').DisplayChildren | undefined;
@@ -59,7 +59,6 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
59
59
  as?: "span" | undefined;
60
60
  asChild?: false | undefined;
61
61
  } & Omit<import('react').DetailedHTMLProps<import('react').HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
62
- asChild?: boolean | undefined;
63
62
  /**
64
63
  * Footer component displays the footer of the notification.
65
64
  *
@@ -68,11 +67,12 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
68
67
  * @example
69
68
  * <Notification.Footer">Notification Footer</Notification.Footer>
70
69
  */
70
+ asChild?: boolean | undefined;
71
71
  variant?: "beige" | "white" | "gray" | "purple-light" | "beige-light" | "purple-dark" | undefined;
72
72
  bordered?: boolean | undefined;
73
73
  shadow?: boolean | undefined;
74
74
  backgroundImageSrc?: string | undefined;
75
- imageGradient?: ("dark" | "light" | "default") | undefined;
75
+ imageGradient?: ("none" | "dark" | "light" | "default") | undefined;
76
76
  layout?: import('../card/card').Layout | undefined;
77
77
  } & import('react').RefAttributes<HTMLDivElement>, "ref"> | Omit<Omit<Omit<import('react').DetailedHTMLProps<import('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/radius').RadiusProps & 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 & {
78
78
  display?: import('../../utils/generate-styling').DisplayChildren | undefined;
@@ -83,7 +83,6 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
83
83
  as: "div";
84
84
  asChild?: false | undefined;
85
85
  } & import('react').RefAttributes<HTMLDivElement>, "ref"> & {
86
- asChild?: boolean | undefined;
87
86
  /**
88
87
  * Footer component displays the footer of the notification.
89
88
  *
@@ -92,11 +91,12 @@ declare const Notification: import('react').ForwardRefExoticComponent<Omit<Omit<
92
91
  * @example
93
92
  * <Notification.Footer">Notification Footer</Notification.Footer>
94
93
  */
94
+ asChild?: boolean | undefined;
95
95
  variant?: "beige" | "white" | "gray" | "purple-light" | "beige-light" | "purple-dark" | undefined;
96
96
  bordered?: boolean | undefined;
97
97
  shadow?: boolean | undefined;
98
98
  backgroundImageSrc?: string | undefined;
99
- imageGradient?: ("dark" | "light" | "default") | undefined;
99
+ imageGradient?: ("none" | "dark" | "light" | "default") | undefined;
100
100
  layout?: import('../card/card').Layout | undefined;
101
101
  } & import('react').RefAttributes<HTMLDivElement>, "ref">, "variant" | "layout" | "as"> & {
102
102
  variant?: "error" | "warning" | "beige" | "gray" | "teal" | "information" | "success" | undefined;
@@ -34,7 +34,7 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<R
34
34
  bordered?: boolean | undefined;
35
35
  shadow?: boolean | undefined;
36
36
  backgroundImageSrc?: string | undefined;
37
- imageGradient?: ("dark" | "light" | "default") | undefined;
37
+ imageGradient?: ("none" | "dark" | "light" | "default") | undefined;
38
38
  layout?: import('../card/card').Layout | undefined;
39
39
  } & 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/radius').RadiusProps & 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 & {
40
40
  display?: import('../../utils/generate-styling').DisplayChildren | undefined;
@@ -50,7 +50,7 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<R
50
50
  bordered?: boolean | undefined;
51
51
  shadow?: boolean | undefined;
52
52
  backgroundImageSrc?: string | undefined;
53
- imageGradient?: ("dark" | "light" | "default") | undefined;
53
+ imageGradient?: ("none" | "dark" | "light" | "default") | undefined;
54
54
  layout?: import('../card/card').Layout | undefined;
55
55
  } & 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/radius').RadiusProps & 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 & {
56
56
  display?: import('../../utils/generate-styling').DisplayChildren | undefined;
@@ -66,7 +66,7 @@ export declare const Root: React.ForwardRefExoticComponent<Omit<Omit<Omit<Omit<R
66
66
  bordered?: boolean | undefined;
67
67
  shadow?: boolean | undefined;
68
68
  backgroundImageSrc?: string | undefined;
69
- imageGradient?: ("dark" | "light" | "default") | undefined;
69
+ imageGradient?: ("none" | "dark" | "light" | "default") | undefined;
70
70
  layout?: import('../card/card').Layout | undefined;
71
71
  } & React.RefAttributes<HTMLDivElement>, "ref">, "variant" | "layout" | "as"> & {
72
72
  /**
@@ -0,0 +1,23 @@
1
+ const styles = {
2
+ "teddy-modal__overlay": "_teddy-modal__overlay_mucyt_25",
3
+ "teddy-modal__content": "_teddy-modal__content_mucyt_37",
4
+ "teddy-modal__content--sm": "_teddy-modal__content--sm_mucyt_56",
5
+ "teddy-modal__content--md": "_teddy-modal__content--md_mucyt_61",
6
+ "teddy-modal__content--lg": "_teddy-modal__content--lg_mucyt_66",
7
+ "teddy-modal__scroll": "_teddy-modal__scroll_mucyt_70",
8
+ "teddy-modal__image": "_teddy-modal__image_mucyt_74",
9
+ "teddy-modal__close--floating": "_teddy-modal__close--floating_mucyt_84",
10
+ "teddy-modal__group": "_teddy-modal__group_mucyt_94",
11
+ "teddy-modal__group--title": "_teddy-modal__group--title_mucyt_98",
12
+ "teddy-modal__group--scroll": "_teddy-modal__group--scroll_mucyt_109",
13
+ "teddy-modal__group--action": "_teddy-modal__group--action_mucyt_118",
14
+ "modal-overlay-no-op": "_modal-overlay-no-op_mucyt_1",
15
+ "teddy-fade-in": "_teddy-fade-in_mucyt_1",
16
+ "teddy-fade-out": "_teddy-fade-out_mucyt_1",
17
+ "modal-content-show": "_modal-content-show_mucyt_1",
18
+ "modal-content-hide": "_modal-content-hide_mucyt_1",
19
+ "teddy-overlay-no-op": "_teddy-overlay-no-op_mucyt_1"
20
+ };
21
+ export {
22
+ styles as s
23
+ };
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ const styles = {
3
+ "teddy-modal__overlay": "_teddy-modal__overlay_mucyt_25",
4
+ "teddy-modal__content": "_teddy-modal__content_mucyt_37",
5
+ "teddy-modal__content--sm": "_teddy-modal__content--sm_mucyt_56",
6
+ "teddy-modal__content--md": "_teddy-modal__content--md_mucyt_61",
7
+ "teddy-modal__content--lg": "_teddy-modal__content--lg_mucyt_66",
8
+ "teddy-modal__scroll": "_teddy-modal__scroll_mucyt_70",
9
+ "teddy-modal__image": "_teddy-modal__image_mucyt_74",
10
+ "teddy-modal__close--floating": "_teddy-modal__close--floating_mucyt_84",
11
+ "teddy-modal__group": "_teddy-modal__group_mucyt_94",
12
+ "teddy-modal__group--title": "_teddy-modal__group--title_mucyt_98",
13
+ "teddy-modal__group--scroll": "_teddy-modal__group--scroll_mucyt_109",
14
+ "teddy-modal__group--action": "_teddy-modal__group--action_mucyt_118",
15
+ "modal-overlay-no-op": "_modal-overlay-no-op_mucyt_1",
16
+ "teddy-fade-in": "_teddy-fade-in_mucyt_1",
17
+ "teddy-fade-out": "_teddy-fade-out_mucyt_1",
18
+ "modal-content-show": "_modal-content-show_mucyt_1",
19
+ "modal-content-hide": "_modal-content-hide_mucyt_1",
20
+ "teddy-overlay-no-op": "_teddy-overlay-no-op_mucyt_1"
21
+ };
22
+ exports.styles = styles;
package/dist/style.css CHANGED
@@ -5800,7 +5800,7 @@
5800
5800
  }
5801
5801
  ._teddy-chip__indicator_69tae_83 {
5802
5802
  display: none;
5803
- }@keyframes _teddy-fade-in_1mjv8_1 {
5803
+ }@keyframes _teddy-fade-in_mucyt_1 {
5804
5804
  from {
5805
5805
  opacity: 0;
5806
5806
  }
@@ -5808,7 +5808,7 @@
5808
5808
  opacity: 1;
5809
5809
  }
5810
5810
  }
5811
- @keyframes _teddy-fade-out_1mjv8_1 {
5811
+ @keyframes _teddy-fade-out_mucyt_1 {
5812
5812
  from {
5813
5813
  opacity: 1;
5814
5814
  }
@@ -5816,7 +5816,7 @@
5816
5816
  opacity: 0;
5817
5817
  }
5818
5818
  }
5819
- @keyframes _teddy-overlay-no-op_1mjv8_1 {
5819
+ @keyframes _teddy-overlay-no-op_mucyt_1 {
5820
5820
  from {
5821
5821
  opacity: 1;
5822
5822
  }
@@ -5824,19 +5824,19 @@
5824
5824
  opacity: 1;
5825
5825
  }
5826
5826
  }
5827
- ._teddy-modal__overlay_1mjv8_25 {
5827
+ ._teddy-modal__overlay_mucyt_25 {
5828
5828
  position: fixed;
5829
5829
  inset: 0;
5830
5830
  display: grid;
5831
5831
  place-items: center;
5832
5832
  }
5833
- ._teddy-modal__overlay_1mjv8_25::before {
5833
+ ._teddy-modal__overlay_mucyt_25::before {
5834
5834
  position: fixed;
5835
5835
  content: "";
5836
5836
  inset: 0;
5837
5837
  background-color: var(--teddy-color-overlay-default);
5838
5838
  }
5839
- ._teddy-modal__content_1mjv8_37 {
5839
+ ._teddy-modal__content_mucyt_37 {
5840
5840
  background-color: var(--teddy-color-background-primary);
5841
5841
  box-shadow: var(--teddy-shadow-lg);
5842
5842
  position: relative;
@@ -5845,7 +5845,7 @@
5845
5845
  width: 100%;
5846
5846
  }
5847
5847
  @media (min-width: 600px) {
5848
- ._teddy-modal__content_1mjv8_37 {
5848
+ ._teddy-modal__content_mucyt_37 {
5849
5849
  max-width: 720px;
5850
5850
  max-height: 80%;
5851
5851
  min-height: 360px;
@@ -5854,11 +5854,26 @@
5854
5854
  border-radius: var(--teddy-border-radius-lg);
5855
5855
  }
5856
5856
  }
5857
- ._teddy-modal__scroll_1mjv8_55 {
5857
+ @media (min-width: 600px) {
5858
+ ._teddy-modal__content--sm_mucyt_56 {
5859
+ max-width: 480px;
5860
+ }
5861
+ }
5862
+ @media (min-width: 600px) {
5863
+ ._teddy-modal__content--md_mucyt_61 {
5864
+ max-width: 720px;
5865
+ }
5866
+ }
5867
+ @media (min-width: 600px) {
5868
+ ._teddy-modal__content--lg_mucyt_66 {
5869
+ max-width: 1000px;
5870
+ }
5871
+ }
5872
+ ._teddy-modal__scroll_mucyt_70 {
5858
5873
  overflow: auto;
5859
5874
  padding-inline: var(--teddy-spacing-300);
5860
5875
  }
5861
- ._teddy-modal__image_1mjv8_59 {
5876
+ ._teddy-modal__image_mucyt_74 {
5862
5877
  max-width: calc(100% + var(--teddy-spacing-300) * 2);
5863
5878
  height: auto;
5864
5879
  vertical-align: middle;
@@ -5868,41 +5883,41 @@
5868
5883
  shape-margin: 0.75rem;
5869
5884
  margin-inline: calc(var(--teddy-spacing-300) * -1);
5870
5885
  }
5871
- ._teddy-modal__close--floating_1mjv8_69 {
5886
+ ._teddy-modal__close--floating_mucyt_84 {
5872
5887
  position: absolute;
5873
5888
  top: var(--teddy-spacing-100);
5874
5889
  right: var(--teddy-spacing-100);
5875
5890
  }
5876
5891
  @media (max-width: 600px) {
5877
- ._teddy-modal__close--floating_1mjv8_69 {
5892
+ ._teddy-modal__close--floating_mucyt_84 {
5878
5893
  top: var(--teddy-spacing-50);
5879
5894
  }
5880
5895
  }
5881
- ._teddy-modal__group_1mjv8_79 {
5896
+ ._teddy-modal__group_mucyt_94 {
5882
5897
  width: 100%;
5883
5898
  margin-bottom: var(--teddy-spacing-200);
5884
5899
  }
5885
- ._teddy-modal__group--title_1mjv8_83 {
5900
+ ._teddy-modal__group--title_mucyt_98 {
5886
5901
  position: sticky;
5887
5902
  inset: 0 0 auto 0;
5888
5903
  background-color: var(--teddy-color-background-primary);
5889
5904
  padding-top: var(--teddy-spacing-300);
5890
5905
  }
5891
5906
  @media (max-width: 600px) {
5892
- ._teddy-modal__group--title_1mjv8_83 {
5907
+ ._teddy-modal__group--title_mucyt_98 {
5893
5908
  padding-top: var(--teddy-spacing-250);
5894
5909
  }
5895
5910
  }
5896
- ._teddy-modal__group--title_1mjv8_83._teddy-modal__group--scroll_1mjv8_94 {
5911
+ ._teddy-modal__group--title_mucyt_98._teddy-modal__group--scroll_mucyt_109 {
5897
5912
  padding-block: var(--teddy-spacing-200);
5898
5913
  }
5899
- ._teddy-modal__group--title_1mjv8_83._teddy-modal__group--scroll_1mjv8_94::before {
5914
+ ._teddy-modal__group--title_mucyt_98._teddy-modal__group--scroll_mucyt_109::before {
5900
5915
  content: "";
5901
5916
  position: absolute;
5902
5917
  inset: 0 calc(var(--teddy-spacing-300) * -1) 0 calc(var(--teddy-spacing-300) * -1);
5903
5918
  border-bottom: var(--teddy-border-width-xs) solid var(--teddy-color-border-weak);
5904
5919
  }
5905
- ._teddy-modal__group--action_1mjv8_103 {
5920
+ ._teddy-modal__group--action_mucyt_118 {
5906
5921
  height: 100%;
5907
5922
  position: sticky;
5908
5923
  inset: auto 0 0 0;
@@ -5910,7 +5925,7 @@
5910
5925
  padding: var(--teddy-spacing-200) 0 var(--teddy-spacing-300);
5911
5926
  background-color: var(--teddy-color-background-primary);
5912
5927
  }
5913
- ._teddy-modal__group--action_1mjv8_103._teddy-modal__group--scroll_1mjv8_94::before {
5928
+ ._teddy-modal__group--action_mucyt_118._teddy-modal__group--scroll_mucyt_109::before {
5914
5929
  content: "";
5915
5930
  position: absolute;
5916
5931
  inset: 0 calc(var(--teddy-spacing-300) * -1) 0 calc(var(--teddy-spacing-300) * -1);
@@ -5918,7 +5933,7 @@
5918
5933
  box-shadow: 0 0 20px 15px var(--teddy-color-background-primary);
5919
5934
  }
5920
5935
  @media (prefers-reduced-motion: no-preference) {
5921
- @keyframes _modal-overlay-no-op_1mjv8_1 {
5936
+ @keyframes _modal-overlay-no-op_mucyt_1 {
5922
5937
  from {
5923
5938
  opacity: 1;
5924
5939
  }
@@ -5926,7 +5941,7 @@
5926
5941
  opacity: 1;
5927
5942
  }
5928
5943
  }
5929
- @keyframes _modal-content-show_1mjv8_1 {
5944
+ @keyframes _modal-content-show_mucyt_1 {
5930
5945
  from {
5931
5946
  opacity: 0;
5932
5947
  transform: translateY(5px) scale(0.97);
@@ -5936,7 +5951,7 @@
5936
5951
  transform: translateY(0px) scale(1);
5937
5952
  }
5938
5953
  }
5939
- @keyframes _modal-content-hide_1mjv8_1 {
5954
+ @keyframes _modal-content-hide_mucyt_1 {
5940
5955
  from {
5941
5956
  opacity: 1;
5942
5957
  transform: translateY(0px) scale(1);
@@ -5946,25 +5961,25 @@
5946
5961
  transform: translateY(5px) scale(0.99);
5947
5962
  }
5948
5963
  }
5949
- ._teddy-modal__overlay_1mjv8_25 {
5964
+ ._teddy-modal__overlay_mucyt_25 {
5950
5965
  /* Keep the overlay mounted until the children have animated */
5951
5966
  }
5952
- ._teddy-modal__overlay_1mjv8_25:where([data-state=closed]) {
5953
- animation: _modal-overlay-no-op_1mjv8_1 250ms cubic-bezier(0.16, 1, 0.3, 1);
5967
+ ._teddy-modal__overlay_mucyt_25:where([data-state=closed]) {
5968
+ animation: _modal-overlay-no-op_mucyt_1 250ms cubic-bezier(0.16, 1, 0.3, 1);
5954
5969
  }
5955
- ._teddy-modal__overlay_1mjv8_25:where([data-state=open])::before {
5956
- animation: _teddy-fade-in_1mjv8_1 400ms cubic-bezier(0.16, 1, 0.3, 1);
5970
+ ._teddy-modal__overlay_mucyt_25:where([data-state=open])::before {
5971
+ animation: _teddy-fade-in_mucyt_1 400ms cubic-bezier(0.16, 1, 0.3, 1);
5957
5972
  }
5958
- ._teddy-modal__overlay_1mjv8_25:where([data-state=closed])::before {
5973
+ ._teddy-modal__overlay_mucyt_25:where([data-state=closed])::before {
5959
5974
  opacity: 0;
5960
- animation: _teddy-fade-out_1mjv8_1 250ms cubic-bezier(0.16, 1, 0.3, 1);
5975
+ animation: _teddy-fade-out_mucyt_1 250ms cubic-bezier(0.16, 1, 0.3, 1);
5961
5976
  }
5962
- ._teddy-modal__content_1mjv8_37:where([data-state=open]) {
5963
- animation: _modal-content-show_1mjv8_1 200ms cubic-bezier(0.16, 1, 0.3, 1);
5977
+ ._teddy-modal__content_mucyt_37:where([data-state=open]) {
5978
+ animation: _modal-content-show_mucyt_1 200ms cubic-bezier(0.16, 1, 0.3, 1);
5964
5979
  }
5965
- ._teddy-modal__content_1mjv8_37:where([data-state=closed]) {
5980
+ ._teddy-modal__content_mucyt_37:where([data-state=closed]) {
5966
5981
  opacity: 0;
5967
- animation: _modal-content-hide_1mjv8_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
5982
+ animation: _modal-content-hide_mucyt_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
5968
5983
  }
5969
5984
  }@layer heading, button, card, notification;
5970
5985
  @layer notification {
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "pnpm": ">=10"
21
21
  },
22
22
  "private": false,
23
- "version": "0.7.49",
23
+ "version": "0.7.51",
24
24
  "sideEffects": [
25
25
  "**/*.css",
26
26
  "**/*.svg"
@@ -44,7 +44,7 @@
44
44
  "@typescript-eslint/eslint-plugin": "6.20.0",
45
45
  "@typescript-eslint/parser": "6.20.0",
46
46
  "@vitejs/plugin-react-swc": "3.7.0",
47
- "axios": "1.13.5",
47
+ "axios": "1.15.0",
48
48
  "eslint": "8.57.0",
49
49
  "eslint-config-prettier": "9.1.0",
50
50
  "eslint-import-resolver-alias": "1.1.2",
@@ -1,19 +0,0 @@
1
- "use strict";
2
- const styles = {
3
- "teddy-modal__overlay": "_teddy-modal__overlay_1mjv8_25",
4
- "teddy-modal__content": "_teddy-modal__content_1mjv8_37",
5
- "teddy-modal__scroll": "_teddy-modal__scroll_1mjv8_55",
6
- "teddy-modal__image": "_teddy-modal__image_1mjv8_59",
7
- "teddy-modal__close--floating": "_teddy-modal__close--floating_1mjv8_69",
8
- "teddy-modal__group": "_teddy-modal__group_1mjv8_79",
9
- "teddy-modal__group--title": "_teddy-modal__group--title_1mjv8_83",
10
- "teddy-modal__group--scroll": "_teddy-modal__group--scroll_1mjv8_94",
11
- "teddy-modal__group--action": "_teddy-modal__group--action_1mjv8_103",
12
- "modal-overlay-no-op": "_modal-overlay-no-op_1mjv8_1",
13
- "teddy-fade-in": "_teddy-fade-in_1mjv8_1",
14
- "teddy-fade-out": "_teddy-fade-out_1mjv8_1",
15
- "modal-content-show": "_modal-content-show_1mjv8_1",
16
- "modal-content-hide": "_modal-content-hide_1mjv8_1",
17
- "teddy-overlay-no-op": "_teddy-overlay-no-op_1mjv8_1"
18
- };
19
- exports.styles = styles;
@@ -1,20 +0,0 @@
1
- const styles = {
2
- "teddy-modal__overlay": "_teddy-modal__overlay_1mjv8_25",
3
- "teddy-modal__content": "_teddy-modal__content_1mjv8_37",
4
- "teddy-modal__scroll": "_teddy-modal__scroll_1mjv8_55",
5
- "teddy-modal__image": "_teddy-modal__image_1mjv8_59",
6
- "teddy-modal__close--floating": "_teddy-modal__close--floating_1mjv8_69",
7
- "teddy-modal__group": "_teddy-modal__group_1mjv8_79",
8
- "teddy-modal__group--title": "_teddy-modal__group--title_1mjv8_83",
9
- "teddy-modal__group--scroll": "_teddy-modal__group--scroll_1mjv8_94",
10
- "teddy-modal__group--action": "_teddy-modal__group--action_1mjv8_103",
11
- "modal-overlay-no-op": "_modal-overlay-no-op_1mjv8_1",
12
- "teddy-fade-in": "_teddy-fade-in_1mjv8_1",
13
- "teddy-fade-out": "_teddy-fade-out_1mjv8_1",
14
- "modal-content-show": "_modal-content-show_1mjv8_1",
15
- "modal-content-hide": "_modal-content-hide_1mjv8_1",
16
- "teddy-overlay-no-op": "_teddy-overlay-no-op_1mjv8_1"
17
- };
18
- export {
19
- styles as s
20
- };