@telia/teddy 0.1.3 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/card/card-carousel.cjs +4 -0
- package/dist/components/card/card-carousel.d.ts +2 -1
- package/dist/components/card/card-carousel.js +5 -1
- package/dist/components/card/card.cjs +51 -51
- package/dist/components/card/card.js +51 -51
- package/dist/components/carousel/carousel-root.cjs +5 -2
- package/dist/components/carousel/carousel-root.d.ts +2 -1
- package/dist/components/carousel/carousel-root.js +6 -3
- package/dist/style.css +113 -114
- package/package.json +1 -1
|
@@ -10,6 +10,7 @@ const utils_breakpointToNumber = require("../../utils/breakpointToNumber.cjs");
|
|
|
10
10
|
const tokens_breakpoint_variables = require("../../tokens/breakpoint/variables.cjs");
|
|
11
11
|
const ImageSlider = React.forwardRef(
|
|
12
12
|
({
|
|
13
|
+
sliderRef,
|
|
13
14
|
settings,
|
|
14
15
|
variants,
|
|
15
16
|
className,
|
|
@@ -22,9 +23,12 @@ const ImageSlider = React.forwardRef(
|
|
|
22
23
|
const [selectedSlide, setSelectedSlide] = React.useState((settings == null ? void 0 : settings.initialSlide) || 0);
|
|
23
24
|
const rootCarouselClass = `${components_card_card.rootClassName}__carousel`;
|
|
24
25
|
const classes = clsx([components_card_card.styles[rootCarouselClass]], className);
|
|
26
|
+
const internalSliderRef = React.useRef(null);
|
|
27
|
+
const innerSliderRef = sliderRef || internalSliderRef;
|
|
25
28
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { ref: forwardRef, className: classes, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
26
29
|
components_carousel_carouselRoot.Carousel,
|
|
27
30
|
{
|
|
31
|
+
sliderRef: innerSliderRef,
|
|
28
32
|
size: "sm",
|
|
29
33
|
onClickNext,
|
|
30
34
|
onClickPrev,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Settings } from 'react-slick';
|
|
2
|
+
import { default as Slider, Settings } from 'react-slick';
|
|
3
3
|
|
|
4
4
|
export type ImageSliderVariant = {
|
|
5
5
|
color: string;
|
|
@@ -10,6 +10,7 @@ export interface ImageSliderProps {
|
|
|
10
10
|
children: React.ReactNode;
|
|
11
11
|
className?: string;
|
|
12
12
|
settings?: Settings;
|
|
13
|
+
sliderRef?: React.RefObject<Slider>;
|
|
13
14
|
onClick?: () => void;
|
|
14
15
|
onClickNext?: () => void;
|
|
15
16
|
onClickPrev?: () => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import React__default, { useState } from "react";
|
|
2
|
+
import React__default, { useState, useRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import { s as styles, rootClassName } from "./card.js";
|
|
5
5
|
import { Carousel } from "../carousel/carousel-root.js";
|
|
@@ -8,6 +8,7 @@ import { breakpointToNumber } from "../../utils/breakpointToNumber.js";
|
|
|
8
8
|
import { teddyBreakpointMd } from "../../tokens/breakpoint/variables.js";
|
|
9
9
|
const ImageSlider = React__default.forwardRef(
|
|
10
10
|
({
|
|
11
|
+
sliderRef,
|
|
11
12
|
settings,
|
|
12
13
|
variants,
|
|
13
14
|
className,
|
|
@@ -20,9 +21,12 @@ const ImageSlider = React__default.forwardRef(
|
|
|
20
21
|
const [selectedSlide, setSelectedSlide] = useState((settings == null ? void 0 : settings.initialSlide) || 0);
|
|
21
22
|
const rootCarouselClass = `${rootClassName}__carousel`;
|
|
22
23
|
const classes = clsx([styles[rootCarouselClass]], className);
|
|
24
|
+
const internalSliderRef = useRef(null);
|
|
25
|
+
const innerSliderRef = sliderRef || internalSliderRef;
|
|
23
26
|
return /* @__PURE__ */ jsx("div", { ref: forwardRef, className: classes, children: /* @__PURE__ */ jsx(
|
|
24
27
|
Carousel,
|
|
25
28
|
{
|
|
29
|
+
sliderRef: innerSliderRef,
|
|
26
30
|
size: "sm",
|
|
27
31
|
onClickNext,
|
|
28
32
|
onClickPrev,
|
|
@@ -7,57 +7,57 @@ const utils_composeEventHandlers = require("../../utils/composeEventHandlers.cjs
|
|
|
7
7
|
const components_grid_grid = require("../grid/grid.cjs");
|
|
8
8
|
const tokens_color_variables = require("../../tokens/color/variables.cjs");
|
|
9
9
|
const styles = {
|
|
10
|
-
"teddy-card": "_teddy-
|
|
11
|
-
"teddy-card__slot": "_teddy-
|
|
12
|
-
"teddy-card__slot--bottom": "_teddy-card__slot--
|
|
13
|
-
"teddy-card__slot--center": "_teddy-card__slot--
|
|
14
|
-
"teddy-card__slot--no-translate": "_teddy-card__slot--no-
|
|
15
|
-
"teddy-card--shadow": "_teddy-card--
|
|
16
|
-
"teddy-card__action": "_teddy-
|
|
17
|
-
"teddy-card__action--disabled": "_teddy-card__action--
|
|
18
|
-
"teddy-card--border": "_teddy-card--
|
|
19
|
-
"teddy-card--layout": "_teddy-card--
|
|
20
|
-
"teddy-card__illustration": "_teddy-
|
|
21
|
-
"teddy-card__carousel": "_teddy-
|
|
22
|
-
"teddy-card__content": "_teddy-
|
|
23
|
-
"teddy-card__heading": "_teddy-
|
|
24
|
-
"teddy-card__action-wrapper": "_teddy-card__action-
|
|
25
|
-
"teddy-card__footer": "_teddy-
|
|
26
|
-
"teddy-card__overline": "_teddy-
|
|
27
|
-
"teddy-card__description": "_teddy-
|
|
28
|
-
"teddy-card__color-dots": "_teddy-card__color-
|
|
29
|
-
"teddy-card__availability": "_teddy-
|
|
30
|
-
"teddy-card__price": "_teddy-
|
|
31
|
-
"teddy-card--default": "_teddy-card--
|
|
32
|
-
"teddy-card--navigation-vertical": "_teddy-card--navigation-
|
|
33
|
-
"teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-
|
|
34
|
-
"teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-
|
|
35
|
-
"teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-
|
|
36
|
-
"teddy-card--rich-card": "_teddy-card--rich-
|
|
37
|
-
"teddy-card--rich-card-large": "_teddy-card--rich-card-
|
|
38
|
-
"teddy-card__line": "_teddy-
|
|
39
|
-
"teddy-card--purple-light": "_teddy-card--purple-
|
|
40
|
-
"teddy-card--purple-dark": "_teddy-card--purple-
|
|
41
|
-
"teddy-card--white": "_teddy-card--
|
|
42
|
-
"teddy-card--gray": "_teddy-card--
|
|
43
|
-
"teddy-card--beige": "_teddy-card--
|
|
44
|
-
"teddy-card--product": "_teddy-card--
|
|
45
|
-
"teddy-card__price--big": "_teddy-card__price--
|
|
46
|
-
"teddy-card__image--as-background": "_teddy-card__image--as-
|
|
47
|
-
"teddy-card--background-image": "_teddy-card--background-
|
|
48
|
-
"teddy-card__illustration--rounded": "_teddy-card__illustration--
|
|
49
|
-
"teddy-card__inset": "_teddy-
|
|
50
|
-
"teddy-card__inset--top": "_teddy-card__inset--
|
|
51
|
-
"teddy-card__inset--left": "_teddy-card__inset--
|
|
52
|
-
"teddy-card__inset--right": "_teddy-card__inset--
|
|
53
|
-
"teddy-card__inset--bottom": "_teddy-card__inset--
|
|
54
|
-
"teddy-card__availability--badge": "_teddy-card__availability--
|
|
55
|
-
"teddy-card__availability--success": "_teddy-card__availability--
|
|
56
|
-
"teddy-card__availability--warning": "_teddy-card__availability--
|
|
57
|
-
"teddy-card__availability--error": "_teddy-card__availability--
|
|
58
|
-
"teddy-card__availability--special": "_teddy-card__availability--
|
|
59
|
-
"teddy-card__availability--neutral": "_teddy-card__availability--
|
|
60
|
-
"teddy-card__availability--information": "_teddy-card__availability--
|
|
10
|
+
"teddy-card": "_teddy-card_2ns77_3",
|
|
11
|
+
"teddy-card__slot": "_teddy-card__slot_2ns77_13",
|
|
12
|
+
"teddy-card__slot--bottom": "_teddy-card__slot--bottom_2ns77_16",
|
|
13
|
+
"teddy-card__slot--center": "_teddy-card__slot--center_2ns77_19",
|
|
14
|
+
"teddy-card__slot--no-translate": "_teddy-card__slot--no-translate_2ns77_25",
|
|
15
|
+
"teddy-card--shadow": "_teddy-card--shadow_2ns77_44",
|
|
16
|
+
"teddy-card__action": "_teddy-card__action_2ns77_47",
|
|
17
|
+
"teddy-card__action--disabled": "_teddy-card__action--disabled_2ns77_47",
|
|
18
|
+
"teddy-card--border": "_teddy-card--border_2ns77_54",
|
|
19
|
+
"teddy-card--layout": "_teddy-card--layout_2ns77_57",
|
|
20
|
+
"teddy-card__illustration": "_teddy-card__illustration_2ns77_57",
|
|
21
|
+
"teddy-card__carousel": "_teddy-card__carousel_2ns77_60",
|
|
22
|
+
"teddy-card__content": "_teddy-card__content_2ns77_63",
|
|
23
|
+
"teddy-card__heading": "_teddy-card__heading_2ns77_66",
|
|
24
|
+
"teddy-card__action-wrapper": "_teddy-card__action-wrapper_2ns77_69",
|
|
25
|
+
"teddy-card__footer": "_teddy-card__footer_2ns77_72",
|
|
26
|
+
"teddy-card__overline": "_teddy-card__overline_2ns77_75",
|
|
27
|
+
"teddy-card__description": "_teddy-card__description_2ns77_78",
|
|
28
|
+
"teddy-card__color-dots": "_teddy-card__color-dots_2ns77_81",
|
|
29
|
+
"teddy-card__availability": "_teddy-card__availability_2ns77_84",
|
|
30
|
+
"teddy-card__price": "_teddy-card__price_2ns77_87",
|
|
31
|
+
"teddy-card--default": "_teddy-card--default_2ns77_90",
|
|
32
|
+
"teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_2ns77_95",
|
|
33
|
+
"teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_2ns77_115",
|
|
34
|
+
"teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-centered_2ns77_127",
|
|
35
|
+
"teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_2ns77_149",
|
|
36
|
+
"teddy-card--rich-card": "_teddy-card--rich-card_2ns77_161",
|
|
37
|
+
"teddy-card--rich-card-large": "_teddy-card--rich-card-large_2ns77_180",
|
|
38
|
+
"teddy-card__line": "_teddy-card__line_2ns77_212",
|
|
39
|
+
"teddy-card--purple-light": "_teddy-card--purple-light_2ns77_216",
|
|
40
|
+
"teddy-card--purple-dark": "_teddy-card--purple-dark_2ns77_230",
|
|
41
|
+
"teddy-card--white": "_teddy-card--white_2ns77_249",
|
|
42
|
+
"teddy-card--gray": "_teddy-card--gray_2ns77_263",
|
|
43
|
+
"teddy-card--beige": "_teddy-card--beige_2ns77_277",
|
|
44
|
+
"teddy-card--product": "_teddy-card--product_2ns77_291",
|
|
45
|
+
"teddy-card__price--big": "_teddy-card__price--big_2ns77_364",
|
|
46
|
+
"teddy-card__image--as-background": "_teddy-card__image--as-background_2ns77_367",
|
|
47
|
+
"teddy-card--background-image": "_teddy-card--background-image_2ns77_373",
|
|
48
|
+
"teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_2ns77_378",
|
|
49
|
+
"teddy-card__inset": "_teddy-card__inset_2ns77_382",
|
|
50
|
+
"teddy-card__inset--top": "_teddy-card__inset--top_2ns77_385",
|
|
51
|
+
"teddy-card__inset--left": "_teddy-card__inset--left_2ns77_388",
|
|
52
|
+
"teddy-card__inset--right": "_teddy-card__inset--right_2ns77_391",
|
|
53
|
+
"teddy-card__inset--bottom": "_teddy-card__inset--bottom_2ns77_394",
|
|
54
|
+
"teddy-card__availability--badge": "_teddy-card__availability--badge_2ns77_409",
|
|
55
|
+
"teddy-card__availability--success": "_teddy-card__availability--success_2ns77_412",
|
|
56
|
+
"teddy-card__availability--warning": "_teddy-card__availability--warning_2ns77_415",
|
|
57
|
+
"teddy-card__availability--error": "_teddy-card__availability--error_2ns77_418",
|
|
58
|
+
"teddy-card__availability--special": "_teddy-card__availability--special_2ns77_421",
|
|
59
|
+
"teddy-card__availability--neutral": "_teddy-card__availability--neutral_2ns77_424",
|
|
60
|
+
"teddy-card__availability--information": "_teddy-card__availability--information_2ns77_427"
|
|
61
61
|
};
|
|
62
62
|
const rootClassName = "teddy-card";
|
|
63
63
|
const actionElementIdentifier = `${rootClassName}__action`;
|
|
@@ -5,57 +5,57 @@ import { composeEventHandlers } from "../../utils/composeEventHandlers.js";
|
|
|
5
5
|
import { Grid } from "../grid/grid.js";
|
|
6
6
|
import { teddyColorTransparentWhite850, teddyColorTransparentWhite800, teddyColorTransparentWhite100, teddyColorTransparentBlack600, teddyColorTransparentBlack200 } from "../../tokens/color/variables.js";
|
|
7
7
|
const styles = {
|
|
8
|
-
"teddy-card": "_teddy-
|
|
9
|
-
"teddy-card__slot": "_teddy-
|
|
10
|
-
"teddy-card__slot--bottom": "_teddy-card__slot--
|
|
11
|
-
"teddy-card__slot--center": "_teddy-card__slot--
|
|
12
|
-
"teddy-card__slot--no-translate": "_teddy-card__slot--no-
|
|
13
|
-
"teddy-card--shadow": "_teddy-card--
|
|
14
|
-
"teddy-card__action": "_teddy-
|
|
15
|
-
"teddy-card__action--disabled": "_teddy-card__action--
|
|
16
|
-
"teddy-card--border": "_teddy-card--
|
|
17
|
-
"teddy-card--layout": "_teddy-card--
|
|
18
|
-
"teddy-card__illustration": "_teddy-
|
|
19
|
-
"teddy-card__carousel": "_teddy-
|
|
20
|
-
"teddy-card__content": "_teddy-
|
|
21
|
-
"teddy-card__heading": "_teddy-
|
|
22
|
-
"teddy-card__action-wrapper": "_teddy-card__action-
|
|
23
|
-
"teddy-card__footer": "_teddy-
|
|
24
|
-
"teddy-card__overline": "_teddy-
|
|
25
|
-
"teddy-card__description": "_teddy-
|
|
26
|
-
"teddy-card__color-dots": "_teddy-card__color-
|
|
27
|
-
"teddy-card__availability": "_teddy-
|
|
28
|
-
"teddy-card__price": "_teddy-
|
|
29
|
-
"teddy-card--default": "_teddy-card--
|
|
30
|
-
"teddy-card--navigation-vertical": "_teddy-card--navigation-
|
|
31
|
-
"teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-
|
|
32
|
-
"teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-
|
|
33
|
-
"teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-
|
|
34
|
-
"teddy-card--rich-card": "_teddy-card--rich-
|
|
35
|
-
"teddy-card--rich-card-large": "_teddy-card--rich-card-
|
|
36
|
-
"teddy-card__line": "_teddy-
|
|
37
|
-
"teddy-card--purple-light": "_teddy-card--purple-
|
|
38
|
-
"teddy-card--purple-dark": "_teddy-card--purple-
|
|
39
|
-
"teddy-card--white": "_teddy-card--
|
|
40
|
-
"teddy-card--gray": "_teddy-card--
|
|
41
|
-
"teddy-card--beige": "_teddy-card--
|
|
42
|
-
"teddy-card--product": "_teddy-card--
|
|
43
|
-
"teddy-card__price--big": "_teddy-card__price--
|
|
44
|
-
"teddy-card__image--as-background": "_teddy-card__image--as-
|
|
45
|
-
"teddy-card--background-image": "_teddy-card--background-
|
|
46
|
-
"teddy-card__illustration--rounded": "_teddy-card__illustration--
|
|
47
|
-
"teddy-card__inset": "_teddy-
|
|
48
|
-
"teddy-card__inset--top": "_teddy-card__inset--
|
|
49
|
-
"teddy-card__inset--left": "_teddy-card__inset--
|
|
50
|
-
"teddy-card__inset--right": "_teddy-card__inset--
|
|
51
|
-
"teddy-card__inset--bottom": "_teddy-card__inset--
|
|
52
|
-
"teddy-card__availability--badge": "_teddy-card__availability--
|
|
53
|
-
"teddy-card__availability--success": "_teddy-card__availability--
|
|
54
|
-
"teddy-card__availability--warning": "_teddy-card__availability--
|
|
55
|
-
"teddy-card__availability--error": "_teddy-card__availability--
|
|
56
|
-
"teddy-card__availability--special": "_teddy-card__availability--
|
|
57
|
-
"teddy-card__availability--neutral": "_teddy-card__availability--
|
|
58
|
-
"teddy-card__availability--information": "_teddy-card__availability--
|
|
8
|
+
"teddy-card": "_teddy-card_2ns77_3",
|
|
9
|
+
"teddy-card__slot": "_teddy-card__slot_2ns77_13",
|
|
10
|
+
"teddy-card__slot--bottom": "_teddy-card__slot--bottom_2ns77_16",
|
|
11
|
+
"teddy-card__slot--center": "_teddy-card__slot--center_2ns77_19",
|
|
12
|
+
"teddy-card__slot--no-translate": "_teddy-card__slot--no-translate_2ns77_25",
|
|
13
|
+
"teddy-card--shadow": "_teddy-card--shadow_2ns77_44",
|
|
14
|
+
"teddy-card__action": "_teddy-card__action_2ns77_47",
|
|
15
|
+
"teddy-card__action--disabled": "_teddy-card__action--disabled_2ns77_47",
|
|
16
|
+
"teddy-card--border": "_teddy-card--border_2ns77_54",
|
|
17
|
+
"teddy-card--layout": "_teddy-card--layout_2ns77_57",
|
|
18
|
+
"teddy-card__illustration": "_teddy-card__illustration_2ns77_57",
|
|
19
|
+
"teddy-card__carousel": "_teddy-card__carousel_2ns77_60",
|
|
20
|
+
"teddy-card__content": "_teddy-card__content_2ns77_63",
|
|
21
|
+
"teddy-card__heading": "_teddy-card__heading_2ns77_66",
|
|
22
|
+
"teddy-card__action-wrapper": "_teddy-card__action-wrapper_2ns77_69",
|
|
23
|
+
"teddy-card__footer": "_teddy-card__footer_2ns77_72",
|
|
24
|
+
"teddy-card__overline": "_teddy-card__overline_2ns77_75",
|
|
25
|
+
"teddy-card__description": "_teddy-card__description_2ns77_78",
|
|
26
|
+
"teddy-card__color-dots": "_teddy-card__color-dots_2ns77_81",
|
|
27
|
+
"teddy-card__availability": "_teddy-card__availability_2ns77_84",
|
|
28
|
+
"teddy-card__price": "_teddy-card__price_2ns77_87",
|
|
29
|
+
"teddy-card--default": "_teddy-card--default_2ns77_90",
|
|
30
|
+
"teddy-card--navigation-vertical": "_teddy-card--navigation-vertical_2ns77_95",
|
|
31
|
+
"teddy-card--navigation-horizontal-small": "_teddy-card--navigation-horizontal-small_2ns77_115",
|
|
32
|
+
"teddy-card--navigation-horizontal-small-centered": "_teddy-card--navigation-horizontal-small-centered_2ns77_127",
|
|
33
|
+
"teddy-card--navigation-horizontal-large": "_teddy-card--navigation-horizontal-large_2ns77_149",
|
|
34
|
+
"teddy-card--rich-card": "_teddy-card--rich-card_2ns77_161",
|
|
35
|
+
"teddy-card--rich-card-large": "_teddy-card--rich-card-large_2ns77_180",
|
|
36
|
+
"teddy-card__line": "_teddy-card__line_2ns77_212",
|
|
37
|
+
"teddy-card--purple-light": "_teddy-card--purple-light_2ns77_216",
|
|
38
|
+
"teddy-card--purple-dark": "_teddy-card--purple-dark_2ns77_230",
|
|
39
|
+
"teddy-card--white": "_teddy-card--white_2ns77_249",
|
|
40
|
+
"teddy-card--gray": "_teddy-card--gray_2ns77_263",
|
|
41
|
+
"teddy-card--beige": "_teddy-card--beige_2ns77_277",
|
|
42
|
+
"teddy-card--product": "_teddy-card--product_2ns77_291",
|
|
43
|
+
"teddy-card__price--big": "_teddy-card__price--big_2ns77_364",
|
|
44
|
+
"teddy-card__image--as-background": "_teddy-card__image--as-background_2ns77_367",
|
|
45
|
+
"teddy-card--background-image": "_teddy-card--background-image_2ns77_373",
|
|
46
|
+
"teddy-card__illustration--rounded": "_teddy-card__illustration--rounded_2ns77_378",
|
|
47
|
+
"teddy-card__inset": "_teddy-card__inset_2ns77_382",
|
|
48
|
+
"teddy-card__inset--top": "_teddy-card__inset--top_2ns77_385",
|
|
49
|
+
"teddy-card__inset--left": "_teddy-card__inset--left_2ns77_388",
|
|
50
|
+
"teddy-card__inset--right": "_teddy-card__inset--right_2ns77_391",
|
|
51
|
+
"teddy-card__inset--bottom": "_teddy-card__inset--bottom_2ns77_394",
|
|
52
|
+
"teddy-card__availability--badge": "_teddy-card__availability--badge_2ns77_409",
|
|
53
|
+
"teddy-card__availability--success": "_teddy-card__availability--success_2ns77_412",
|
|
54
|
+
"teddy-card__availability--warning": "_teddy-card__availability--warning_2ns77_415",
|
|
55
|
+
"teddy-card__availability--error": "_teddy-card__availability--error_2ns77_418",
|
|
56
|
+
"teddy-card__availability--special": "_teddy-card__availability--special_2ns77_421",
|
|
57
|
+
"teddy-card__availability--neutral": "_teddy-card__availability--neutral_2ns77_424",
|
|
58
|
+
"teddy-card__availability--information": "_teddy-card__availability--information_2ns77_427"
|
|
59
59
|
};
|
|
60
60
|
const rootClassName = "teddy-card";
|
|
61
61
|
const actionElementIdentifier = `${rootClassName}__action`;
|
|
@@ -41,8 +41,11 @@ const Carousel = ({
|
|
|
41
41
|
onClick = () => void 0,
|
|
42
42
|
navigationIcon,
|
|
43
43
|
settings,
|
|
44
|
-
size = "lg"
|
|
44
|
+
size = "lg",
|
|
45
|
+
sliderRef
|
|
45
46
|
}) => {
|
|
47
|
+
const internalSliderRef = React.useRef(null);
|
|
48
|
+
const innerSliderRef = sliderRef || internalSliderRef;
|
|
46
49
|
const computedSettings = {
|
|
47
50
|
responsive: [],
|
|
48
51
|
centerMode: false,
|
|
@@ -64,7 +67,7 @@ const Carousel = ({
|
|
|
64
67
|
[styles[`${rootClassName}--${size}`]]: size,
|
|
65
68
|
[className]: className
|
|
66
69
|
}),
|
|
67
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(SliderComponent, { ...computedSettings, children: React.Children.map(filteredChildren, (child) => {
|
|
70
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(SliderComponent, { ref: innerSliderRef, ...computedSettings, children: React.Children.map(filteredChildren, (child) => {
|
|
68
71
|
return /* @__PURE__ */ jsxRuntime.jsx("div", { onClick, className: clsx(styles[`${rootClassName}__item`]), children: child });
|
|
69
72
|
}) })
|
|
70
73
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import { Settings } from 'react-slick';
|
|
2
|
+
import { default as Slider, Settings } from 'react-slick';
|
|
3
3
|
import { IconName } from '../icon';
|
|
4
4
|
|
|
5
5
|
export type CarouselProps = {
|
|
@@ -8,6 +8,7 @@ export type CarouselProps = {
|
|
|
8
8
|
navigationIcon?: IconName;
|
|
9
9
|
settings?: Settings;
|
|
10
10
|
size?: 'sm' | 'lg';
|
|
11
|
+
sliderRef?: React.RefObject<Slider>;
|
|
11
12
|
onClickNext?: () => void;
|
|
12
13
|
onClickPrev?: () => void;
|
|
13
14
|
onClick?: (e: React.MouseEvent<HTMLDivElement>) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import React__default from "react";
|
|
2
|
+
import React__default, { useRef } from "react";
|
|
3
3
|
import clsx from "clsx";
|
|
4
4
|
import Slider from "react-slick";
|
|
5
5
|
import "../../assets/sprite.269ba410-teddy.svg";
|
|
@@ -39,8 +39,11 @@ const Carousel = ({
|
|
|
39
39
|
onClick = () => void 0,
|
|
40
40
|
navigationIcon,
|
|
41
41
|
settings,
|
|
42
|
-
size = "lg"
|
|
42
|
+
size = "lg",
|
|
43
|
+
sliderRef
|
|
43
44
|
}) => {
|
|
45
|
+
const internalSliderRef = useRef(null);
|
|
46
|
+
const innerSliderRef = sliderRef || internalSliderRef;
|
|
44
47
|
const computedSettings = {
|
|
45
48
|
responsive: [],
|
|
46
49
|
centerMode: false,
|
|
@@ -62,7 +65,7 @@ const Carousel = ({
|
|
|
62
65
|
[styles[`${rootClassName}--${size}`]]: size,
|
|
63
66
|
[className]: className
|
|
64
67
|
}),
|
|
65
|
-
children: /* @__PURE__ */ jsx(SliderComponent, { ...computedSettings, children: React__default.Children.map(filteredChildren, (child) => {
|
|
68
|
+
children: /* @__PURE__ */ jsx(SliderComponent, { ref: innerSliderRef, ...computedSettings, children: React__default.Children.map(filteredChildren, (child) => {
|
|
66
69
|
return /* @__PURE__ */ jsx("div", { onClick, className: clsx(styles[`${rootClassName}__item`]), children: child });
|
|
67
70
|
}) })
|
|
68
71
|
}
|
package/dist/style.css
CHANGED
|
@@ -2521,32 +2521,32 @@
|
|
|
2521
2521
|
}
|
|
2522
2522
|
}@layer heading, flex, grid, button, card;
|
|
2523
2523
|
@layer card {
|
|
2524
|
-
._teddy-
|
|
2524
|
+
._teddy-card_2ns77_3 {
|
|
2525
2525
|
border-radius: var(--teddy-border-radius-md);
|
|
2526
2526
|
padding: var(--teddy-spacing-250);
|
|
2527
2527
|
position: relative;
|
|
2528
2528
|
}
|
|
2529
2529
|
@media (prefers-reduced-motion: no-preference) {
|
|
2530
|
-
._teddy-
|
|
2530
|
+
._teddy-card_2ns77_3 {
|
|
2531
2531
|
transition: background-color var(--teddy-motion-duration-300) ease;
|
|
2532
2532
|
}
|
|
2533
2533
|
}
|
|
2534
|
-
._teddy-
|
|
2534
|
+
._teddy-card__slot_2ns77_13 {
|
|
2535
2535
|
transform: translateY(-50%);
|
|
2536
2536
|
}
|
|
2537
|
-
._teddy-card__slot--
|
|
2537
|
+
._teddy-card__slot--bottom_2ns77_16 {
|
|
2538
2538
|
transform: translateY(50%);
|
|
2539
2539
|
}
|
|
2540
|
-
._teddy-card__slot--
|
|
2540
|
+
._teddy-card__slot--center_2ns77_19 {
|
|
2541
2541
|
transform: translate(-50%, -50%);
|
|
2542
2542
|
}
|
|
2543
|
-
._teddy-card__slot--
|
|
2543
|
+
._teddy-card__slot--bottom_2ns77_16._teddy-card__slot--center_2ns77_19 {
|
|
2544
2544
|
transform: translate(-50%, 50%);
|
|
2545
2545
|
}
|
|
2546
|
-
._teddy-card__slot--no-
|
|
2546
|
+
._teddy-card__slot--no-translate_2ns77_25 {
|
|
2547
2547
|
transform: initial;
|
|
2548
2548
|
}
|
|
2549
|
-
._teddy-
|
|
2549
|
+
._teddy-card_2ns77_3::before {
|
|
2550
2550
|
content: "";
|
|
2551
2551
|
display: block;
|
|
2552
2552
|
position: absolute;
|
|
@@ -2557,95 +2557,95 @@
|
|
|
2557
2557
|
box-shadow: var(--teddy-shadow-sm);
|
|
2558
2558
|
}
|
|
2559
2559
|
@media (prefers-reduced-motion: no-preference) {
|
|
2560
|
-
._teddy-
|
|
2560
|
+
._teddy-card_2ns77_3::before {
|
|
2561
2561
|
transition: var(--teddy-motion-duration-300) ease;
|
|
2562
2562
|
transition-property: opacity, box-shadow;
|
|
2563
2563
|
}
|
|
2564
2564
|
}
|
|
2565
|
-
._teddy-card--
|
|
2565
|
+
._teddy-card--shadow_2ns77_44::before {
|
|
2566
2566
|
opacity: 1;
|
|
2567
2567
|
}
|
|
2568
|
-
._teddy-
|
|
2568
|
+
._teddy-card_2ns77_3:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2569
2569
|
cursor: pointer;
|
|
2570
2570
|
}
|
|
2571
|
-
._teddy-
|
|
2571
|
+
._teddy-card_2ns77_3:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)):hover:not(:has(button:hover), :has(a:hover)):has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47))::before {
|
|
2572
2572
|
opacity: 1;
|
|
2573
2573
|
box-shadow: var(--teddy-shadow-md);
|
|
2574
2574
|
}
|
|
2575
|
-
._teddy-card--
|
|
2575
|
+
._teddy-card--border_2ns77_54 {
|
|
2576
2576
|
border: var(--teddy-border-width-xs) solid transparent;
|
|
2577
2577
|
}
|
|
2578
|
-
._teddy-card--
|
|
2578
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__illustration_2ns77_57 {
|
|
2579
2579
|
grid-area: illustration;
|
|
2580
2580
|
}
|
|
2581
|
-
._teddy-card--
|
|
2581
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__carousel_2ns77_60 {
|
|
2582
2582
|
grid-area: carousel;
|
|
2583
2583
|
}
|
|
2584
|
-
._teddy-card--
|
|
2584
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__content_2ns77_63 {
|
|
2585
2585
|
grid-area: content;
|
|
2586
2586
|
}
|
|
2587
|
-
._teddy-card--
|
|
2587
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__heading_2ns77_66 {
|
|
2588
2588
|
grid-area: heading;
|
|
2589
2589
|
}
|
|
2590
|
-
._teddy-card--
|
|
2590
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__action-wrapper_2ns77_69 {
|
|
2591
2591
|
grid-area: action;
|
|
2592
2592
|
}
|
|
2593
|
-
._teddy-card--
|
|
2593
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__footer_2ns77_72 {
|
|
2594
2594
|
grid-area: footer;
|
|
2595
2595
|
}
|
|
2596
|
-
._teddy-card--
|
|
2596
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__overline_2ns77_75 {
|
|
2597
2597
|
grid-area: overline;
|
|
2598
2598
|
}
|
|
2599
|
-
._teddy-card--
|
|
2599
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__description_2ns77_78 {
|
|
2600
2600
|
grid-area: description;
|
|
2601
2601
|
}
|
|
2602
|
-
._teddy-card--
|
|
2602
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__color-dots_2ns77_81 {
|
|
2603
2603
|
grid-area: colors;
|
|
2604
2604
|
}
|
|
2605
|
-
._teddy-card--
|
|
2605
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__availability_2ns77_84 {
|
|
2606
2606
|
grid-area: availability;
|
|
2607
2607
|
}
|
|
2608
|
-
._teddy-card--
|
|
2608
|
+
._teddy-card--layout_2ns77_57 ._teddy-card__price_2ns77_87 {
|
|
2609
2609
|
grid-area: price;
|
|
2610
2610
|
}
|
|
2611
|
-
._teddy-card--
|
|
2611
|
+
._teddy-card--default_2ns77_90 {
|
|
2612
2612
|
display: flex;
|
|
2613
2613
|
flex-direction: column;
|
|
2614
2614
|
gap: var(--teddy-spacing-200);
|
|
2615
2615
|
}
|
|
2616
|
-
._teddy-card--navigation-
|
|
2616
|
+
._teddy-card--navigation-vertical_2ns77_95 {
|
|
2617
2617
|
grid-template-rows: auto auto 1fr auto;
|
|
2618
2618
|
justify-items: start;
|
|
2619
2619
|
justify-content: stretch;
|
|
2620
2620
|
align-items: baseline;
|
|
2621
2621
|
grid-template-areas: "illustration" "heading" "content" "action";
|
|
2622
2622
|
}
|
|
2623
|
-
._teddy-card--navigation-
|
|
2623
|
+
._teddy-card--navigation-vertical_2ns77_95 ._teddy-card__illustration_2ns77_57 {
|
|
2624
2624
|
margin-bottom: var(--teddy-spacing-200);
|
|
2625
2625
|
}
|
|
2626
|
-
._teddy-card--navigation-
|
|
2626
|
+
._teddy-card--navigation-vertical_2ns77_95 ._teddy-card__content_2ns77_63 {
|
|
2627
2627
|
margin-bottom: var(--teddy-spacing-200);
|
|
2628
2628
|
}
|
|
2629
|
-
._teddy-card--navigation-
|
|
2629
|
+
._teddy-card--navigation-vertical_2ns77_95 ._teddy-card__heading_2ns77_66 {
|
|
2630
2630
|
margin-bottom: var(--teddy-spacing-100);
|
|
2631
2631
|
}
|
|
2632
|
-
._teddy-card--navigation-
|
|
2632
|
+
._teddy-card--navigation-vertical_2ns77_95 ._teddy-card__action-wrapper_2ns77_69 {
|
|
2633
2633
|
margin-top: auto;
|
|
2634
2634
|
justify-self: end;
|
|
2635
2635
|
}
|
|
2636
|
-
._teddy-card--navigation-horizontal-
|
|
2636
|
+
._teddy-card--navigation-horizontal-small_2ns77_115 {
|
|
2637
2637
|
grid-template-columns: auto 1fr auto;
|
|
2638
2638
|
grid-template-rows: auto 1fr;
|
|
2639
2639
|
grid-template-areas: "illustration heading action" "illustration content action";
|
|
2640
2640
|
column-gap: var(--teddy-spacing-200);
|
|
2641
2641
|
}
|
|
2642
|
-
._teddy-card--navigation-horizontal-
|
|
2642
|
+
._teddy-card--navigation-horizontal-small_2ns77_115 ._teddy-card__heading_2ns77_66 {
|
|
2643
2643
|
margin-bottom: var(--teddy-spacing-100);
|
|
2644
2644
|
}
|
|
2645
|
-
._teddy-card--navigation-horizontal-
|
|
2645
|
+
._teddy-card--navigation-horizontal-small_2ns77_115 ._teddy-card__action-wrapper_2ns77_69 {
|
|
2646
2646
|
margin-top: auto;
|
|
2647
2647
|
}
|
|
2648
|
-
._teddy-card--navigation-horizontal-small-
|
|
2648
|
+
._teddy-card--navigation-horizontal-small-centered_2ns77_127 {
|
|
2649
2649
|
width: 100%;
|
|
2650
2650
|
max-width: 26rem;
|
|
2651
2651
|
grid-template-columns: auto 1fr auto;
|
|
@@ -2654,299 +2654,298 @@
|
|
|
2654
2654
|
align-items: center;
|
|
2655
2655
|
column-gap: var(--teddy-spacing-200);
|
|
2656
2656
|
}
|
|
2657
|
-
._teddy-card--navigation-horizontal-small-
|
|
2657
|
+
._teddy-card--navigation-horizontal-small-centered_2ns77_127 ._teddy-card__content_2ns77_63 {
|
|
2658
2658
|
margin-top: var(--teddy-spacing-200);
|
|
2659
2659
|
}
|
|
2660
|
-
._teddy-card--navigation-horizontal-small-
|
|
2660
|
+
._teddy-card--navigation-horizontal-small-centered_2ns77_127 ._teddy-card__action-wrapper_2ns77_69 {
|
|
2661
2661
|
margin: 0;
|
|
2662
2662
|
}
|
|
2663
|
-
._teddy-card--navigation-horizontal-small-
|
|
2663
|
+
._teddy-card--navigation-horizontal-small-centered_2ns77_127 ._teddy-card__illustration_2ns77_57 {
|
|
2664
2664
|
max-height: 80px;
|
|
2665
2665
|
max-width: 100px;
|
|
2666
2666
|
}
|
|
2667
|
-
._teddy-card--navigation-horizontal-small-
|
|
2667
|
+
._teddy-card--navigation-horizontal-small-centered_2ns77_127 ._teddy-card__illustration_2ns77_57 img {
|
|
2668
2668
|
object-fit: contain;
|
|
2669
2669
|
}
|
|
2670
|
-
._teddy-card--navigation-horizontal-
|
|
2670
|
+
._teddy-card--navigation-horizontal-large_2ns77_149 {
|
|
2671
2671
|
grid-template-columns: 1fr auto;
|
|
2672
2672
|
grid-template-rows: auto auto 1fr;
|
|
2673
2673
|
grid-template-areas: "illustration action" "heading action" "content action";
|
|
2674
2674
|
column-gap: var(--teddy-spacing-200);
|
|
2675
2675
|
}
|
|
2676
|
-
._teddy-card--navigation-horizontal-
|
|
2676
|
+
._teddy-card--navigation-horizontal-large_2ns77_149 ._teddy-card__heading_2ns77_66 {
|
|
2677
2677
|
margin-bottom: var(--teddy-spacing-100);
|
|
2678
2678
|
}
|
|
2679
|
-
._teddy-card--navigation-horizontal-
|
|
2679
|
+
._teddy-card--navigation-horizontal-large_2ns77_149 ._teddy-card__action-wrapper_2ns77_69 {
|
|
2680
2680
|
margin-top: auto;
|
|
2681
2681
|
}
|
|
2682
|
-
._teddy-card--rich-
|
|
2682
|
+
._teddy-card--rich-card_2ns77_161 {
|
|
2683
2683
|
justify-items: start;
|
|
2684
2684
|
align-items: baseline;
|
|
2685
2685
|
grid-template-rows: auto auto 1fr auto;
|
|
2686
2686
|
grid-template-areas: "illustration" "heading" "content" "action";
|
|
2687
2687
|
}
|
|
2688
|
-
._teddy-card--rich-
|
|
2688
|
+
._teddy-card--rich-card_2ns77_161 ._teddy-card__illustration_2ns77_57 {
|
|
2689
2689
|
margin-bottom: var(--teddy-spacing-200);
|
|
2690
2690
|
}
|
|
2691
|
-
._teddy-card--rich-
|
|
2691
|
+
._teddy-card--rich-card_2ns77_161 ._teddy-card__content_2ns77_63 {
|
|
2692
2692
|
margin-bottom: var(--teddy-spacing-200);
|
|
2693
2693
|
}
|
|
2694
|
-
._teddy-card--rich-
|
|
2694
|
+
._teddy-card--rich-card_2ns77_161 ._teddy-card__heading_2ns77_66 {
|
|
2695
2695
|
margin-bottom: var(--teddy-spacing-100);
|
|
2696
2696
|
}
|
|
2697
|
-
._teddy-card--rich-
|
|
2697
|
+
._teddy-card--rich-card_2ns77_161 ._teddy-card__action-wrapper_2ns77_69 {
|
|
2698
2698
|
margin-top: auto;
|
|
2699
2699
|
}
|
|
2700
2700
|
@media (max-width: 800px) {
|
|
2701
|
-
._teddy-card--rich-card-
|
|
2701
|
+
._teddy-card--rich-card-large_2ns77_180 {
|
|
2702
2702
|
align-items: baseline;
|
|
2703
2703
|
grid-template-rows: auto auto 1fr auto;
|
|
2704
2704
|
grid-template-areas: "illustration" "heading" "content" "action";
|
|
2705
2705
|
}
|
|
2706
2706
|
}
|
|
2707
|
-
._teddy-card--rich-card-
|
|
2707
|
+
._teddy-card--rich-card-large_2ns77_180 ._teddy-card__illustration_2ns77_57 img {
|
|
2708
2708
|
object-fit: cover;
|
|
2709
2709
|
}
|
|
2710
2710
|
@media (min-width: 801px) {
|
|
2711
|
-
._teddy-card--rich-card-
|
|
2711
|
+
._teddy-card--rich-card-large_2ns77_180 ._teddy-card__illustration_2ns77_57 {
|
|
2712
2712
|
grid-column-start: 1;
|
|
2713
2713
|
margin-right: var(--teddy-spacing-600);
|
|
2714
2714
|
}
|
|
2715
2715
|
}
|
|
2716
|
-
._teddy-card--rich-card-
|
|
2716
|
+
._teddy-card--rich-card-large_2ns77_180 ._teddy-card__content_2ns77_63 {
|
|
2717
2717
|
margin-top: 2rem;
|
|
2718
2718
|
}
|
|
2719
2719
|
@media (min-width: 801px) {
|
|
2720
|
-
._teddy-card--rich-card-
|
|
2720
|
+
._teddy-card--rich-card-large_2ns77_180 ._teddy-card__content_2ns77_63 {
|
|
2721
2721
|
grid-column-start: 2;
|
|
2722
2722
|
margin-top: 0;
|
|
2723
2723
|
align-content: center;
|
|
2724
2724
|
}
|
|
2725
2725
|
}
|
|
2726
|
-
._teddy-card--rich-card-
|
|
2726
|
+
._teddy-card--rich-card-large_2ns77_180 ._teddy-card__action_2ns77_47 {
|
|
2727
2727
|
margin-top: var(--teddy-spacing-200);
|
|
2728
2728
|
}
|
|
2729
|
-
._teddy-card--rich-card-
|
|
2729
|
+
._teddy-card--rich-card-large_2ns77_180 ._teddy-card__heading_2ns77_66 {
|
|
2730
2730
|
margin-top: var(--teddy-spacing-100);
|
|
2731
2731
|
margin-bottom: var(--teddy-spacing-100);
|
|
2732
2732
|
}
|
|
2733
|
-
._teddy-
|
|
2733
|
+
._teddy-card__line_2ns77_212 {
|
|
2734
2734
|
border: 0;
|
|
2735
2735
|
border-top: var(--teddy-border-width-xs) solid var(--teddy-color-border-weak);
|
|
2736
2736
|
}
|
|
2737
|
-
._teddy-card--purple-
|
|
2737
|
+
._teddy-card--purple-light_2ns77_216 {
|
|
2738
2738
|
background-color: var(--teddy-color-background-interactive-primary-negative);
|
|
2739
2739
|
color: var(--teddy-color-text-default);
|
|
2740
2740
|
border-color: var(--teddy-color-background-interactive-primary-negative);
|
|
2741
2741
|
}
|
|
2742
|
-
._teddy-card--purple-
|
|
2742
|
+
._teddy-card--purple-light_2ns77_216:hover:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2743
2743
|
background-color: var(--teddy-color-background-interactive-primary-negative-hover);
|
|
2744
2744
|
}
|
|
2745
|
-
._teddy-card--purple-
|
|
2745
|
+
._teddy-card--purple-light_2ns77_216:active:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2746
2746
|
background-color: var(--teddy-color-background-interactive-primary-negative-active);
|
|
2747
2747
|
}
|
|
2748
|
-
._teddy-card--purple-
|
|
2748
|
+
._teddy-card--purple-light_2ns77_216:has(._teddy-card__action--disabled_2ns77_47) {
|
|
2749
2749
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
2750
2750
|
}
|
|
2751
|
-
._teddy-card--purple-
|
|
2751
|
+
._teddy-card--purple-dark_2ns77_230 {
|
|
2752
2752
|
background-color: var(--teddy-color-brand-deep-purple);
|
|
2753
2753
|
color: var(--teddy-color-text-default-negative);
|
|
2754
2754
|
border-color: var(--teddy-color-brand-deep-purple);
|
|
2755
2755
|
}
|
|
2756
|
-
._teddy-card--purple-
|
|
2756
|
+
._teddy-card--purple-dark_2ns77_230:hover:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2757
2757
|
background-color: var(--teddy-color-background-interactive-transparent-negative-hover);
|
|
2758
2758
|
}
|
|
2759
|
-
._teddy-card--purple-
|
|
2759
|
+
._teddy-card--purple-dark_2ns77_230:active:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2760
2760
|
background-color: var(--teddy-color-background-interactive-transparent-negative-active);
|
|
2761
2761
|
}
|
|
2762
|
-
._teddy-card--purple-
|
|
2762
|
+
._teddy-card--purple-dark_2ns77_230:has(._teddy-card__action--disabled_2ns77_47) {
|
|
2763
2763
|
color: var(--teddy-color-text-default);
|
|
2764
2764
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
2765
2765
|
}
|
|
2766
|
-
._teddy-card--purple-
|
|
2766
|
+
._teddy-card--purple-dark_2ns77_230:has(._teddy-card__action--disabled_2ns77_47) ._teddy-card__action_2ns77_47 {
|
|
2767
2767
|
color: var(--teddy-color-text-weak);
|
|
2768
2768
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
2769
2769
|
}
|
|
2770
|
-
._teddy-card--
|
|
2770
|
+
._teddy-card--white_2ns77_249 {
|
|
2771
2771
|
background-color: var(--teddy-color-brand-white);
|
|
2772
2772
|
color: var(--teddy-color-text-default);
|
|
2773
2773
|
border-color: var(--teddy-color-border-interactive-subtle);
|
|
2774
2774
|
}
|
|
2775
|
-
._teddy-card--
|
|
2775
|
+
._teddy-card--white_2ns77_249:hover:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2776
2776
|
background-color: var(--teddy-color-background-interactive-transparent-hover);
|
|
2777
2777
|
}
|
|
2778
|
-
._teddy-card--
|
|
2778
|
+
._teddy-card--white_2ns77_249:active:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2779
2779
|
background-color: var(--teddy-color-background-interactive-transparent-active);
|
|
2780
2780
|
}
|
|
2781
|
-
._teddy-card--
|
|
2781
|
+
._teddy-card--white_2ns77_249:has(._teddy-card__action--disabled_2ns77_47) {
|
|
2782
2782
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
2783
2783
|
}
|
|
2784
|
-
._teddy-card--
|
|
2784
|
+
._teddy-card--gray_2ns77_263 {
|
|
2785
2785
|
background-color: var(--teddy-color-background-secondary);
|
|
2786
2786
|
color: var(--teddy-color-text-default);
|
|
2787
2787
|
border-color: var(--teddy-color-border-interactive-subtle);
|
|
2788
2788
|
}
|
|
2789
|
-
._teddy-card--
|
|
2789
|
+
._teddy-card--gray_2ns77_263:hover:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2790
2790
|
background-color: var(--teddy-color-gray-100);
|
|
2791
2791
|
}
|
|
2792
|
-
._teddy-card--
|
|
2792
|
+
._teddy-card--gray_2ns77_263:active:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2793
2793
|
background-color: var(--teddy-color-gray-200);
|
|
2794
2794
|
}
|
|
2795
|
-
._teddy-card--
|
|
2795
|
+
._teddy-card--gray_2ns77_263:has(._teddy-card__action--disabled_2ns77_47) {
|
|
2796
2796
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
2797
2797
|
}
|
|
2798
|
-
._teddy-card--
|
|
2798
|
+
._teddy-card--beige_2ns77_277 {
|
|
2799
2799
|
background-color: var(--teddy-color-beige-100);
|
|
2800
2800
|
color: var(--teddy-color-text-default);
|
|
2801
2801
|
border-color: var(--teddy-color-beige-300);
|
|
2802
2802
|
}
|
|
2803
|
-
._teddy-card--
|
|
2803
|
+
._teddy-card--beige_2ns77_277:hover:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2804
2804
|
background-color: var(--teddy-color-beige-200);
|
|
2805
2805
|
}
|
|
2806
|
-
._teddy-card--
|
|
2806
|
+
._teddy-card--beige_2ns77_277:active:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2807
2807
|
background-color: var(--teddy-color-beige-300);
|
|
2808
2808
|
}
|
|
2809
|
-
._teddy-card--
|
|
2809
|
+
._teddy-card--beige_2ns77_277:has(._teddy-card__action--disabled_2ns77_47) {
|
|
2810
2810
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
2811
2811
|
}
|
|
2812
|
-
._teddy-card--
|
|
2812
|
+
._teddy-card--product_2ns77_291 {
|
|
2813
2813
|
grid-template-columns: minmax(0, 100%);
|
|
2814
2814
|
grid-template-rows: auto auto auto auto auto auto auto 1fr auto auto;
|
|
2815
2815
|
grid-template-areas: "illustration" "carousel" "overline" "heading" "colors" "description" "content" "price" "action" "availability";
|
|
2816
|
-
background-color: var(--teddy-color-brand-white);
|
|
2817
2816
|
color: var(--teddy-color-text-default);
|
|
2818
2817
|
border-color: var(--teddy-color-border-interactive-subtle);
|
|
2819
2818
|
padding-top: var(--teddy-spacing-400);
|
|
2820
2819
|
padding-bottom: var(--teddy-spacing-100);
|
|
2821
2820
|
width: 100%;
|
|
2822
2821
|
}
|
|
2823
|
-
._teddy-card--
|
|
2822
|
+
._teddy-card--product_2ns77_291:hover:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2824
2823
|
background-color: var(--teddy-color-brand-white);
|
|
2825
2824
|
outline: var(--teddy-border-width-sm) solid var(--teddy-color-border-interactive-primary);
|
|
2826
2825
|
outline-offset: calc(var(--teddy-border-width-sm) * -1);
|
|
2827
2826
|
}
|
|
2828
|
-
._teddy-card--
|
|
2827
|
+
._teddy-card--product_2ns77_291:active:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)) {
|
|
2829
2828
|
-webkit-tap-highlight-color: transparent;
|
|
2830
2829
|
}
|
|
2831
|
-
._teddy-card--
|
|
2830
|
+
._teddy-card--product_2ns77_291:active:has(._teddy-card__action_2ns77_47:not(._teddy-card__action--disabled_2ns77_47)):not(:has(._teddy-card__carousel_2ns77_60:active)) {
|
|
2832
2831
|
background-color: var(--teddy-color-background-interactive-transparent-active);
|
|
2833
2832
|
}
|
|
2834
|
-
._teddy-card--
|
|
2833
|
+
._teddy-card--product_2ns77_291:has(._teddy-card__action--disabled_2ns77_47) {
|
|
2835
2834
|
background-color: var(--teddy-color-background-interactive-disabled);
|
|
2836
2835
|
}
|
|
2837
|
-
._teddy-card--
|
|
2836
|
+
._teddy-card--product_2ns77_291 ._teddy-card__action-wrapper_2ns77_69 {
|
|
2838
2837
|
margin-bottom: var(--teddy-spacing-200);
|
|
2839
2838
|
}
|
|
2840
|
-
._teddy-card--
|
|
2839
|
+
._teddy-card--product_2ns77_291 ._teddy-card__illustration_2ns77_57 {
|
|
2841
2840
|
height: 180px;
|
|
2842
2841
|
display: grid;
|
|
2843
2842
|
place-items: center;
|
|
2844
2843
|
place-self: center;
|
|
2845
2844
|
margin-bottom: var(--teddy-spacing-400);
|
|
2846
2845
|
}
|
|
2847
|
-
._teddy-card--
|
|
2846
|
+
._teddy-card--product_2ns77_291 ._teddy-card__illustration_2ns77_57 img {
|
|
2848
2847
|
max-width: 200px;
|
|
2849
2848
|
max-height: 180px;
|
|
2850
2849
|
object-fit: contain;
|
|
2851
2850
|
}
|
|
2852
|
-
._teddy-card--
|
|
2851
|
+
._teddy-card--product_2ns77_291 ._teddy-card__carousel_2ns77_60 .slick-dots li {
|
|
2853
2852
|
min-width: 12px;
|
|
2854
2853
|
width: initial !important;
|
|
2855
2854
|
margin: 0 0.25rem !important;
|
|
2856
2855
|
}
|
|
2857
|
-
._teddy-card--
|
|
2856
|
+
._teddy-card--product_2ns77_291 ._teddy-card__carousel_2ns77_60 .slick-dots .slick-active {
|
|
2858
2857
|
min-width: 24px;
|
|
2859
2858
|
width: initial !important;
|
|
2860
2859
|
}
|
|
2861
|
-
._teddy-card--
|
|
2860
|
+
._teddy-card--product_2ns77_291 ._teddy-card__overline_2ns77_75 {
|
|
2862
2861
|
margin-bottom: var(--teddy-spacing-50);
|
|
2863
2862
|
}
|
|
2864
|
-
._teddy-card--
|
|
2863
|
+
._teddy-card--product_2ns77_291 ._teddy-card__heading_2ns77_66 {
|
|
2865
2864
|
margin-bottom: var(--teddy-spacing-200);
|
|
2866
2865
|
}
|
|
2867
2866
|
@media (min-width: 600px) {
|
|
2868
|
-
._teddy-card--
|
|
2867
|
+
._teddy-card--product_2ns77_291 ._teddy-card__heading_2ns77_66 {
|
|
2869
2868
|
min-height: 60px;
|
|
2870
2869
|
}
|
|
2871
2870
|
}
|
|
2872
|
-
._teddy-card--
|
|
2871
|
+
._teddy-card--product_2ns77_291 ._teddy-card__description_2ns77_78 {
|
|
2873
2872
|
margin-bottom: var(--teddy-spacing-200);
|
|
2874
2873
|
}
|
|
2875
|
-
._teddy-card--
|
|
2874
|
+
._teddy-card--product_2ns77_291 ._teddy-card__content_2ns77_63 {
|
|
2876
2875
|
margin-bottom: var(--teddy-spacing-200);
|
|
2877
2876
|
}
|
|
2878
|
-
._teddy-card--
|
|
2877
|
+
._teddy-card--product_2ns77_291 ._teddy-card__action_2ns77_47 {
|
|
2879
2878
|
margin-top: auto;
|
|
2880
2879
|
margin-left: auto;
|
|
2881
2880
|
justify-self: end;
|
|
2882
2881
|
}
|
|
2883
|
-
._teddy-card--
|
|
2882
|
+
._teddy-card--product_2ns77_291 ._teddy-card__price_2ns77_87 {
|
|
2884
2883
|
display: flex;
|
|
2885
2884
|
}
|
|
2886
|
-
._teddy-card--
|
|
2885
|
+
._teddy-card--product_2ns77_291 ._teddy-card__price--big_2ns77_364 {
|
|
2887
2886
|
font-size: var(--teddy-typography-scale-200);
|
|
2888
2887
|
}
|
|
2889
|
-
._teddy-
|
|
2888
|
+
._teddy-card_2ns77_3:has(._teddy-card__image--as-background_2ns77_367) {
|
|
2890
2889
|
background-color: transparent;
|
|
2891
2890
|
}
|
|
2892
|
-
._teddy-
|
|
2891
|
+
._teddy-card__heading_2ns77_66 {
|
|
2893
2892
|
color: inherit;
|
|
2894
2893
|
}
|
|
2895
|
-
._teddy-card--background-
|
|
2894
|
+
._teddy-card--background-image_2ns77_373 {
|
|
2896
2895
|
background-repeat: no-repeat;
|
|
2897
2896
|
background-size: cover;
|
|
2898
2897
|
background-position: center;
|
|
2899
2898
|
}
|
|
2900
|
-
._teddy-card__illustration--
|
|
2899
|
+
._teddy-card__illustration--rounded_2ns77_378 {
|
|
2901
2900
|
border-radius: inherit;
|
|
2902
2901
|
overflow: hidden;
|
|
2903
2902
|
}
|
|
2904
|
-
._teddy-
|
|
2903
|
+
._teddy-card__inset_2ns77_382 {
|
|
2905
2904
|
overflow: hidden;
|
|
2906
2905
|
}
|
|
2907
|
-
._teddy-card__inset--
|
|
2906
|
+
._teddy-card__inset--top_2ns77_385 {
|
|
2908
2907
|
margin-top: calc(var(--teddy-spacing-250) * -1);
|
|
2909
2908
|
}
|
|
2910
|
-
._teddy-card__inset--
|
|
2909
|
+
._teddy-card__inset--top_2ns77_385._teddy-card__inset--left_2ns77_388 {
|
|
2911
2910
|
border-top-left-radius: inherit;
|
|
2912
2911
|
}
|
|
2913
|
-
._teddy-card__inset--
|
|
2912
|
+
._teddy-card__inset--top_2ns77_385._teddy-card__inset--right_2ns77_391 {
|
|
2914
2913
|
border-top-right-radius: inherit;
|
|
2915
2914
|
}
|
|
2916
|
-
._teddy-card__inset--
|
|
2915
|
+
._teddy-card__inset--bottom_2ns77_394 {
|
|
2917
2916
|
margin-bottom: calc(var(--teddy-spacing-250) * -1);
|
|
2918
2917
|
}
|
|
2919
|
-
._teddy-card__inset--
|
|
2918
|
+
._teddy-card__inset--bottom_2ns77_394._teddy-card__inset--left_2ns77_388 {
|
|
2920
2919
|
border-bottom-left-radius: inherit;
|
|
2921
2920
|
}
|
|
2922
|
-
._teddy-card__inset--
|
|
2921
|
+
._teddy-card__inset--bottom_2ns77_394._teddy-card__inset--right_2ns77_391 {
|
|
2923
2922
|
border-bottom-right-radius: inherit;
|
|
2924
2923
|
}
|
|
2925
|
-
._teddy-card__inset--
|
|
2924
|
+
._teddy-card__inset--left_2ns77_388 {
|
|
2926
2925
|
margin-left: calc(var(--teddy-spacing-250) * -1);
|
|
2927
2926
|
}
|
|
2928
|
-
._teddy-card__inset--
|
|
2927
|
+
._teddy-card__inset--right_2ns77_391 {
|
|
2929
2928
|
margin-right: calc(var(--teddy-spacing-250) * -1);
|
|
2930
2929
|
}
|
|
2931
|
-
._teddy-card__availability--
|
|
2930
|
+
._teddy-card__availability--badge_2ns77_409 {
|
|
2932
2931
|
margin-right: var(--teddy-spacing-150);
|
|
2933
2932
|
}
|
|
2934
|
-
._teddy-card__availability--
|
|
2933
|
+
._teddy-card__availability--success_2ns77_412 {
|
|
2935
2934
|
color: var(--teddy-color-text-status-success-strong);
|
|
2936
2935
|
}
|
|
2937
|
-
._teddy-card__availability--
|
|
2936
|
+
._teddy-card__availability--warning_2ns77_415 {
|
|
2938
2937
|
color: var(--teddy-color-text-status-warning-strong);
|
|
2939
2938
|
}
|
|
2940
|
-
._teddy-card__availability--
|
|
2939
|
+
._teddy-card__availability--error_2ns77_418 {
|
|
2941
2940
|
color: var(--teddy-color-text-status-error-strong);
|
|
2942
2941
|
}
|
|
2943
|
-
._teddy-card__availability--
|
|
2942
|
+
._teddy-card__availability--special_2ns77_421 {
|
|
2944
2943
|
color: var(--teddy-color-text-status-special);
|
|
2945
2944
|
}
|
|
2946
|
-
._teddy-card__availability--
|
|
2945
|
+
._teddy-card__availability--neutral_2ns77_424 {
|
|
2947
2946
|
color: var(--teddy-color-text-status-neutral);
|
|
2948
2947
|
}
|
|
2949
|
-
._teddy-card__availability--
|
|
2948
|
+
._teddy-card__availability--information_2ns77_427 {
|
|
2950
2949
|
color: var(--teddy-color-text-status-info-strong);
|
|
2951
2950
|
}
|
|
2952
2951
|
}._teddy-badge_wlyo5_1 {
|