@telia/teddy 0.0.82 → 0.0.83
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.
|
@@ -6,12 +6,11 @@ const clsx = require("clsx");
|
|
|
6
6
|
const Slider = require("react-slick");
|
|
7
7
|
require("../../assets/sprite.269ba410-teddy.svg");
|
|
8
8
|
const components_icon_icon = require("../icon/icon.cjs");
|
|
9
|
-
const tokens_color_variables = require("../../tokens/color/variables.cjs");
|
|
10
9
|
const styles = {
|
|
11
|
-
"teddy-carousel": "_teddy-
|
|
12
|
-
"teddy-carousel__arrow": "_teddy-
|
|
13
|
-
"teddy-carousel__item": "_teddy-
|
|
14
|
-
"teddy-carousel--sm": "_teddy-carousel--
|
|
10
|
+
"teddy-carousel": "_teddy-carousel_1pdex_2",
|
|
11
|
+
"teddy-carousel__arrow": "_teddy-carousel__arrow_1pdex_9",
|
|
12
|
+
"teddy-carousel__item": "_teddy-carousel__item_1pdex_21",
|
|
13
|
+
"teddy-carousel--sm": "_teddy-carousel--sm_1pdex_99"
|
|
15
14
|
};
|
|
16
15
|
const rootClassName = "teddy-carousel";
|
|
17
16
|
const CustomArrow = ({
|
|
@@ -31,7 +30,7 @@ const CustomArrow = ({
|
|
|
31
30
|
onClick();
|
|
32
31
|
handleClick();
|
|
33
32
|
},
|
|
34
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: icon,
|
|
33
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(components_icon_icon.Icon, { name: icon, size: "md" })
|
|
35
34
|
}
|
|
36
35
|
);
|
|
37
36
|
const Carousel = ({
|
|
@@ -4,12 +4,11 @@ import clsx from "clsx";
|
|
|
4
4
|
import Slider from "react-slick";
|
|
5
5
|
import "../../assets/sprite.269ba410-teddy.svg";
|
|
6
6
|
import { Icon } from "../icon/icon.js";
|
|
7
|
-
import { teddyColorTextInteractivePrimary } from "../../tokens/color/variables.js";
|
|
8
7
|
const styles = {
|
|
9
|
-
"teddy-carousel": "_teddy-
|
|
10
|
-
"teddy-carousel__arrow": "_teddy-
|
|
11
|
-
"teddy-carousel__item": "_teddy-
|
|
12
|
-
"teddy-carousel--sm": "_teddy-carousel--
|
|
8
|
+
"teddy-carousel": "_teddy-carousel_1pdex_2",
|
|
9
|
+
"teddy-carousel__arrow": "_teddy-carousel__arrow_1pdex_9",
|
|
10
|
+
"teddy-carousel__item": "_teddy-carousel__item_1pdex_21",
|
|
11
|
+
"teddy-carousel--sm": "_teddy-carousel--sm_1pdex_99"
|
|
13
12
|
};
|
|
14
13
|
const rootClassName = "teddy-carousel";
|
|
15
14
|
const CustomArrow = ({
|
|
@@ -29,7 +28,7 @@ const CustomArrow = ({
|
|
|
29
28
|
onClick();
|
|
30
29
|
handleClick();
|
|
31
30
|
},
|
|
32
|
-
children: /* @__PURE__ */ jsx(Icon, { name: icon,
|
|
31
|
+
children: /* @__PURE__ */ jsx(Icon, { name: icon, size: "md" })
|
|
33
32
|
}
|
|
34
33
|
);
|
|
35
34
|
const Carousel = ({
|
package/dist/style.css
CHANGED
|
@@ -3568,14 +3568,14 @@
|
|
|
3568
3568
|
--teddy-color-brand-core-purple: var(--teddy-color-purple-550);
|
|
3569
3569
|
--teddy-color-brand-deep-purple: var(--teddy-color-purple-900);
|
|
3570
3570
|
}
|
|
3571
|
-
._teddy-
|
|
3571
|
+
._teddy-carousel_1pdex_2 {
|
|
3572
3572
|
width: 100%;
|
|
3573
3573
|
min-width: 10rem;
|
|
3574
3574
|
max-width: 15rem;
|
|
3575
3575
|
height: 288px;
|
|
3576
3576
|
margin: 0 auto 2rem;
|
|
3577
3577
|
}
|
|
3578
|
-
._teddy-
|
|
3578
|
+
._teddy-carousel__arrow_1pdex_9 {
|
|
3579
3579
|
display: flex;
|
|
3580
3580
|
justify-content: center;
|
|
3581
3581
|
align-items: center;
|
|
@@ -3583,23 +3583,26 @@
|
|
|
3583
3583
|
width: 3rem;
|
|
3584
3584
|
height: 3rem;
|
|
3585
3585
|
border-radius: 2rem;
|
|
3586
|
+
transition-duration: var(--teddy-motion-duration-100);
|
|
3587
|
+
transition-timing-function: var(--teddy-motion-easing-ease-in-out);
|
|
3588
|
+
transition-property: background-color, color;
|
|
3586
3589
|
}
|
|
3587
|
-
._teddy-
|
|
3590
|
+
._teddy-carousel__item_1pdex_21 {
|
|
3588
3591
|
display: flex !important;
|
|
3589
3592
|
justify-content: center;
|
|
3590
3593
|
}
|
|
3591
|
-
._teddy-
|
|
3592
|
-
._teddy-
|
|
3594
|
+
._teddy-carousel_1pdex_2 .slick-prev:before,
|
|
3595
|
+
._teddy-carousel_1pdex_2 .slick-next:before {
|
|
3593
3596
|
content: "";
|
|
3594
3597
|
}
|
|
3595
|
-
._teddy-
|
|
3598
|
+
._teddy-carousel_1pdex_2 .slick-disabled {
|
|
3596
3599
|
cursor: initial;
|
|
3597
3600
|
opacity: 0.3;
|
|
3598
3601
|
}
|
|
3599
|
-
._teddy-
|
|
3602
|
+
._teddy-carousel_1pdex_2 .slick-track {
|
|
3600
3603
|
display: flex;
|
|
3601
3604
|
}
|
|
3602
|
-
._teddy-
|
|
3605
|
+
._teddy-carousel_1pdex_2 .slick-slide > div {
|
|
3603
3606
|
display: grid;
|
|
3604
3607
|
place-items: center;
|
|
3605
3608
|
width: 80%;
|
|
@@ -3607,68 +3610,82 @@
|
|
|
3607
3610
|
height: 260px;
|
|
3608
3611
|
padding: 0px;
|
|
3609
3612
|
}
|
|
3610
|
-
._teddy-
|
|
3613
|
+
._teddy-carousel_1pdex_2 .slick-slide img {
|
|
3611
3614
|
max-width: 10rem;
|
|
3612
3615
|
max-height: 12.5rem;
|
|
3613
3616
|
object-fit: contain;
|
|
3614
3617
|
width: 100%;
|
|
3615
3618
|
height: 100%;
|
|
3616
3619
|
}
|
|
3617
|
-
._teddy-
|
|
3620
|
+
._teddy-carousel_1pdex_2 .slick-next {
|
|
3618
3621
|
right: 0;
|
|
3622
|
+
color: var(--teddy-color-purple-700);
|
|
3619
3623
|
}
|
|
3620
|
-
._teddy-
|
|
3624
|
+
._teddy-carousel_1pdex_2 .slick-prev {
|
|
3621
3625
|
left: 0;
|
|
3626
|
+
color: var(--teddy-color-purple-700);
|
|
3627
|
+
}
|
|
3628
|
+
._teddy-carousel_1pdex_2 .slick-prev:focus-visible,
|
|
3629
|
+
._teddy-carousel_1pdex_2 .slick-prev:active,
|
|
3630
|
+
._teddy-carousel_1pdex_2 .slick-next:active,
|
|
3631
|
+
._teddy-carousel_1pdex_2 .slick-next:focus-visible {
|
|
3632
|
+
color: var(--teddy-color-text-interactive-primary-active);
|
|
3633
|
+
background-color: var(--teddy-color-border-interactive-primary-negative-hover);
|
|
3634
|
+
}
|
|
3635
|
+
._teddy-carousel_1pdex_2 .slick-prev:hover,
|
|
3636
|
+
._teddy-carousel_1pdex_2 .slick-next:hover {
|
|
3637
|
+
color: var(--teddy-color-text-interactive-primary-hover);
|
|
3638
|
+
background-color: var(--teddy-color-background-interactive-transparent-hover);
|
|
3622
3639
|
}
|
|
3623
|
-
._teddy-
|
|
3640
|
+
._teddy-carousel_1pdex_2 .slick-dots {
|
|
3624
3641
|
bottom: -2rem;
|
|
3625
3642
|
margin: 0;
|
|
3626
3643
|
padding: 0;
|
|
3627
3644
|
}
|
|
3628
|
-
._teddy-
|
|
3645
|
+
._teddy-carousel_1pdex_2 .slick-dots button {
|
|
3629
3646
|
width: 24px;
|
|
3630
3647
|
height: 24px;
|
|
3631
3648
|
}
|
|
3632
|
-
._teddy-
|
|
3649
|
+
._teddy-carousel_1pdex_2 .slick-dots button:before {
|
|
3633
3650
|
width: 24px;
|
|
3634
3651
|
height: 24px;
|
|
3635
3652
|
}
|
|
3636
|
-
._teddy-
|
|
3653
|
+
._teddy-carousel_1pdex_2 .slick-dots button:hover:before {
|
|
3637
3654
|
color: var(--teddy-color-purple-700);
|
|
3638
3655
|
}
|
|
3639
|
-
._teddy-
|
|
3656
|
+
._teddy-carousel_1pdex_2 .slick-dots .slick-active button:before {
|
|
3640
3657
|
color: var(--teddy-color-purple-700);
|
|
3641
3658
|
}
|
|
3642
|
-
._teddy-
|
|
3659
|
+
._teddy-carousel_1pdex_2 .slick-dots li {
|
|
3643
3660
|
width: 24px;
|
|
3644
3661
|
height: 24px;
|
|
3645
3662
|
margin: 0;
|
|
3646
3663
|
padding: 0;
|
|
3647
3664
|
}
|
|
3648
|
-
._teddy-
|
|
3665
|
+
._teddy-carousel_1pdex_2 .slick-dots li button:before {
|
|
3649
3666
|
font-size: 1rem;
|
|
3650
3667
|
}
|
|
3651
|
-
._teddy-carousel--
|
|
3668
|
+
._teddy-carousel--sm_1pdex_99 {
|
|
3652
3669
|
height: 180px;
|
|
3653
3670
|
}
|
|
3654
|
-
._teddy-carousel--
|
|
3671
|
+
._teddy-carousel--sm_1pdex_99 .slick-slide > div {
|
|
3655
3672
|
height: 170px;
|
|
3656
3673
|
}
|
|
3657
|
-
._teddy-carousel--
|
|
3674
|
+
._teddy-carousel--sm_1pdex_99 .slick-slide img {
|
|
3658
3675
|
max-width: 8rem;
|
|
3659
3676
|
max-height: 10rem;
|
|
3660
3677
|
}
|
|
3661
|
-
._teddy-carousel--
|
|
3662
|
-
right: 0.5rem;
|
|
3678
|
+
._teddy-carousel--sm_1pdex_99 .slick-next {
|
|
3679
|
+
right: -0.5rem;
|
|
3663
3680
|
}
|
|
3664
|
-
._teddy-carousel--
|
|
3665
|
-
left: 0.5rem;
|
|
3681
|
+
._teddy-carousel--sm_1pdex_99 .slick-prev {
|
|
3682
|
+
left: -0.5rem;
|
|
3666
3683
|
}
|
|
3667
3684
|
@media (min-width: 600px) {
|
|
3668
|
-
._teddy-carousel--
|
|
3685
|
+
._teddy-carousel--sm_1pdex_99 .slick-next {
|
|
3669
3686
|
right: 0rem;
|
|
3670
3687
|
}
|
|
3671
|
-
._teddy-carousel--
|
|
3688
|
+
._teddy-carousel--sm_1pdex_99 .slick-prev {
|
|
3672
3689
|
left: 0rem;
|
|
3673
3690
|
}
|
|
3674
3691
|
}@layer heading, button, card, notification;
|