@telia/teddy 0.0.64 → 0.0.65
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.
|
@@ -131,21 +131,21 @@ const RadioCardGroup = Object.assign(components_radioCardGroup_radioCardGroupRoo
|
|
|
131
131
|
Body
|
|
132
132
|
});
|
|
133
133
|
const styles$2 = {
|
|
134
|
-
"teddy-modal__overlay": "_teddy-
|
|
135
|
-
"teddy-modal__content": "_teddy-
|
|
136
|
-
"teddy-modal__scroll": "_teddy-
|
|
137
|
-
"teddy-modal__image": "_teddy-
|
|
138
|
-
"teddy-modal__close--floating": "_teddy-modal__close--
|
|
139
|
-
"teddy-modal__group": "_teddy-
|
|
140
|
-
"teddy-modal__group--title": "_teddy-modal__group--
|
|
141
|
-
"teddy-modal__group--scroll": "_teddy-modal__group--
|
|
142
|
-
"teddy-modal__group--action": "_teddy-modal__group--
|
|
143
|
-
"modal-overlay-no-op": "_modal-overlay-no-
|
|
144
|
-
"teddy-fade-in": "_teddy-fade-
|
|
145
|
-
"teddy-fade-out": "_teddy-fade-
|
|
146
|
-
"modal-content-show": "_modal-content-
|
|
147
|
-
"modal-content-hide": "_modal-content-
|
|
148
|
-
"teddy-overlay-no-op": "_teddy-overlay-no-
|
|
134
|
+
"teddy-modal__overlay": "_teddy-modal__overlay_1o004_25",
|
|
135
|
+
"teddy-modal__content": "_teddy-modal__content_1o004_37",
|
|
136
|
+
"teddy-modal__scroll": "_teddy-modal__scroll_1o004_55",
|
|
137
|
+
"teddy-modal__image": "_teddy-modal__image_1o004_59",
|
|
138
|
+
"teddy-modal__close--floating": "_teddy-modal__close--floating_1o004_69",
|
|
139
|
+
"teddy-modal__group": "_teddy-modal__group_1o004_79",
|
|
140
|
+
"teddy-modal__group--title": "_teddy-modal__group--title_1o004_83",
|
|
141
|
+
"teddy-modal__group--scroll": "_teddy-modal__group--scroll_1o004_94",
|
|
142
|
+
"teddy-modal__group--action": "_teddy-modal__group--action_1o004_103",
|
|
143
|
+
"modal-overlay-no-op": "_modal-overlay-no-op_1o004_1",
|
|
144
|
+
"teddy-fade-in": "_teddy-fade-in_1o004_1",
|
|
145
|
+
"teddy-fade-out": "_teddy-fade-out_1o004_1",
|
|
146
|
+
"modal-content-show": "_modal-content-show_1o004_1",
|
|
147
|
+
"modal-content-hide": "_modal-content-hide_1o004_1",
|
|
148
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_1o004_1"
|
|
149
149
|
};
|
|
150
150
|
const rootClassName$2 = "teddy-modal";
|
|
151
151
|
const RootContext$1 = React.createContext({
|
|
@@ -110,21 +110,21 @@ const RadioCardGroup = Object.assign(Root$3, {
|
|
|
110
110
|
Body
|
|
111
111
|
});
|
|
112
112
|
const styles$2 = {
|
|
113
|
-
"teddy-modal__overlay": "_teddy-
|
|
114
|
-
"teddy-modal__content": "_teddy-
|
|
115
|
-
"teddy-modal__scroll": "_teddy-
|
|
116
|
-
"teddy-modal__image": "_teddy-
|
|
117
|
-
"teddy-modal__close--floating": "_teddy-modal__close--
|
|
118
|
-
"teddy-modal__group": "_teddy-
|
|
119
|
-
"teddy-modal__group--title": "_teddy-modal__group--
|
|
120
|
-
"teddy-modal__group--scroll": "_teddy-modal__group--
|
|
121
|
-
"teddy-modal__group--action": "_teddy-modal__group--
|
|
122
|
-
"modal-overlay-no-op": "_modal-overlay-no-
|
|
123
|
-
"teddy-fade-in": "_teddy-fade-
|
|
124
|
-
"teddy-fade-out": "_teddy-fade-
|
|
125
|
-
"modal-content-show": "_modal-content-
|
|
126
|
-
"modal-content-hide": "_modal-content-
|
|
127
|
-
"teddy-overlay-no-op": "_teddy-overlay-no-
|
|
113
|
+
"teddy-modal__overlay": "_teddy-modal__overlay_1o004_25",
|
|
114
|
+
"teddy-modal__content": "_teddy-modal__content_1o004_37",
|
|
115
|
+
"teddy-modal__scroll": "_teddy-modal__scroll_1o004_55",
|
|
116
|
+
"teddy-modal__image": "_teddy-modal__image_1o004_59",
|
|
117
|
+
"teddy-modal__close--floating": "_teddy-modal__close--floating_1o004_69",
|
|
118
|
+
"teddy-modal__group": "_teddy-modal__group_1o004_79",
|
|
119
|
+
"teddy-modal__group--title": "_teddy-modal__group--title_1o004_83",
|
|
120
|
+
"teddy-modal__group--scroll": "_teddy-modal__group--scroll_1o004_94",
|
|
121
|
+
"teddy-modal__group--action": "_teddy-modal__group--action_1o004_103",
|
|
122
|
+
"modal-overlay-no-op": "_modal-overlay-no-op_1o004_1",
|
|
123
|
+
"teddy-fade-in": "_teddy-fade-in_1o004_1",
|
|
124
|
+
"teddy-fade-out": "_teddy-fade-out_1o004_1",
|
|
125
|
+
"modal-content-show": "_modal-content-show_1o004_1",
|
|
126
|
+
"modal-content-hide": "_modal-content-hide_1o004_1",
|
|
127
|
+
"teddy-overlay-no-op": "_teddy-overlay-no-op_1o004_1"
|
|
128
128
|
};
|
|
129
129
|
const rootClassName$2 = "teddy-modal";
|
|
130
130
|
const RootContext$1 = React__default.createContext({
|
package/dist/style.css
CHANGED
|
@@ -3540,7 +3540,7 @@
|
|
|
3540
3540
|
margin-bottom: 0;
|
|
3541
3541
|
}._teddy-container_1jmq1_1 {
|
|
3542
3542
|
box-sizing: border-box;
|
|
3543
|
-
}@keyframes _teddy-fade-
|
|
3543
|
+
}@keyframes _teddy-fade-in_1o004_1 {
|
|
3544
3544
|
from {
|
|
3545
3545
|
opacity: 0;
|
|
3546
3546
|
}
|
|
@@ -3548,7 +3548,7 @@
|
|
|
3548
3548
|
opacity: 1;
|
|
3549
3549
|
}
|
|
3550
3550
|
}
|
|
3551
|
-
@keyframes _teddy-fade-
|
|
3551
|
+
@keyframes _teddy-fade-out_1o004_1 {
|
|
3552
3552
|
from {
|
|
3553
3553
|
opacity: 1;
|
|
3554
3554
|
}
|
|
@@ -3556,7 +3556,7 @@
|
|
|
3556
3556
|
opacity: 0;
|
|
3557
3557
|
}
|
|
3558
3558
|
}
|
|
3559
|
-
@keyframes _teddy-overlay-no-
|
|
3559
|
+
@keyframes _teddy-overlay-no-op_1o004_1 {
|
|
3560
3560
|
from {
|
|
3561
3561
|
opacity: 1;
|
|
3562
3562
|
}
|
|
@@ -3564,19 +3564,19 @@
|
|
|
3564
3564
|
opacity: 1;
|
|
3565
3565
|
}
|
|
3566
3566
|
}
|
|
3567
|
-
._teddy-
|
|
3567
|
+
._teddy-modal__overlay_1o004_25 {
|
|
3568
3568
|
position: fixed;
|
|
3569
3569
|
inset: 0;
|
|
3570
3570
|
display: grid;
|
|
3571
3571
|
place-items: center;
|
|
3572
3572
|
}
|
|
3573
|
-
._teddy-
|
|
3573
|
+
._teddy-modal__overlay_1o004_25::before {
|
|
3574
3574
|
position: fixed;
|
|
3575
3575
|
content: "";
|
|
3576
3576
|
inset: 0;
|
|
3577
3577
|
background-color: var(--teddy-color-overlay-default);
|
|
3578
3578
|
}
|
|
3579
|
-
._teddy-
|
|
3579
|
+
._teddy-modal__content_1o004_37 {
|
|
3580
3580
|
background-color: var(--teddy-color-background-primary);
|
|
3581
3581
|
box-shadow: var(--teddy-shadow-lg);
|
|
3582
3582
|
position: relative;
|
|
@@ -3585,7 +3585,7 @@
|
|
|
3585
3585
|
width: 100%;
|
|
3586
3586
|
}
|
|
3587
3587
|
@media (min-width: 600px) {
|
|
3588
|
-
._teddy-
|
|
3588
|
+
._teddy-modal__content_1o004_37 {
|
|
3589
3589
|
max-width: 720px;
|
|
3590
3590
|
max-height: 80%;
|
|
3591
3591
|
min-height: 360px;
|
|
@@ -3594,11 +3594,11 @@
|
|
|
3594
3594
|
border-radius: var(--teddy-border-radius-lg);
|
|
3595
3595
|
}
|
|
3596
3596
|
}
|
|
3597
|
-
._teddy-
|
|
3597
|
+
._teddy-modal__scroll_1o004_55 {
|
|
3598
3598
|
overflow: auto;
|
|
3599
3599
|
padding-inline: var(--teddy-spacing-300);
|
|
3600
3600
|
}
|
|
3601
|
-
._teddy-
|
|
3601
|
+
._teddy-modal__image_1o004_59 {
|
|
3602
3602
|
max-width: calc(100% + var(--teddy-spacing-300) * 2);
|
|
3603
3603
|
height: auto;
|
|
3604
3604
|
vertical-align: middle;
|
|
@@ -3608,39 +3608,51 @@
|
|
|
3608
3608
|
shape-margin: 0.75rem;
|
|
3609
3609
|
margin-inline: calc(var(--teddy-spacing-300) * -1);
|
|
3610
3610
|
}
|
|
3611
|
-
._teddy-modal__close--
|
|
3611
|
+
._teddy-modal__close--floating_1o004_69 {
|
|
3612
3612
|
position: absolute;
|
|
3613
3613
|
top: var(--teddy-spacing-100);
|
|
3614
3614
|
right: var(--teddy-spacing-100);
|
|
3615
3615
|
}
|
|
3616
|
-
|
|
3616
|
+
@media (max-width: 600px) {
|
|
3617
|
+
._teddy-modal__close--floating_1o004_69 {
|
|
3618
|
+
top: var(--teddy-spacing-50);
|
|
3619
|
+
}
|
|
3620
|
+
}
|
|
3621
|
+
._teddy-modal__group_1o004_79 {
|
|
3617
3622
|
width: 100%;
|
|
3618
3623
|
margin-bottom: var(--teddy-spacing-200);
|
|
3619
3624
|
}
|
|
3620
|
-
._teddy-modal__group--
|
|
3625
|
+
._teddy-modal__group--title_1o004_83 {
|
|
3621
3626
|
position: sticky;
|
|
3622
3627
|
inset: 0 0 auto 0;
|
|
3623
3628
|
background-color: var(--teddy-color-background-primary);
|
|
3624
|
-
padding-top: var(--teddy-spacing-
|
|
3629
|
+
padding-top: var(--teddy-spacing-300);
|
|
3630
|
+
}
|
|
3631
|
+
@media (max-width: 600px) {
|
|
3632
|
+
._teddy-modal__group--title_1o004_83 {
|
|
3633
|
+
padding-top: var(--teddy-spacing-250);
|
|
3634
|
+
}
|
|
3625
3635
|
}
|
|
3626
|
-
._teddy-modal__group--
|
|
3636
|
+
._teddy-modal__group--title_1o004_83._teddy-modal__group--scroll_1o004_94 {
|
|
3627
3637
|
padding-block: var(--teddy-spacing-200);
|
|
3628
3638
|
}
|
|
3629
|
-
._teddy-modal__group--
|
|
3639
|
+
._teddy-modal__group--title_1o004_83._teddy-modal__group--scroll_1o004_94::before {
|
|
3630
3640
|
content: "";
|
|
3631
3641
|
position: absolute;
|
|
3632
3642
|
inset: 0 calc(var(--teddy-spacing-300) * -1) 0 calc(var(--teddy-spacing-300) * -1);
|
|
3633
3643
|
border-bottom: var(--teddy-border-width-xs) solid var(--teddy-color-border-weak);
|
|
3634
3644
|
}
|
|
3635
|
-
._teddy-modal__group--
|
|
3645
|
+
._teddy-modal__group--action_1o004_103 {
|
|
3636
3646
|
height: 100%;
|
|
3637
3647
|
position: sticky;
|
|
3638
3648
|
inset: auto 0 0 0;
|
|
3639
3649
|
margin: var(--teddy-spacing-200) 0 0;
|
|
3640
|
-
padding
|
|
3650
|
+
padding: var(--teddy-spacing-200) var(--teddy-spacing-300) var(--teddy-spacing-300);
|
|
3641
3651
|
background-color: var(--teddy-color-background-primary);
|
|
3652
|
+
width: calc(100% + var(--teddy-spacing-300) * 2);
|
|
3653
|
+
margin-left: calc(var(--teddy-spacing-300) * -1);
|
|
3642
3654
|
}
|
|
3643
|
-
._teddy-modal__group--
|
|
3655
|
+
._teddy-modal__group--action_1o004_103._teddy-modal__group--scroll_1o004_94::before {
|
|
3644
3656
|
content: "";
|
|
3645
3657
|
position: absolute;
|
|
3646
3658
|
inset: 0 calc(var(--teddy-spacing-300) * -1) 0 calc(var(--teddy-spacing-300) * -1);
|
|
@@ -3648,7 +3660,7 @@
|
|
|
3648
3660
|
box-shadow: 0 0 20px 15px var(--teddy-color-background-primary);
|
|
3649
3661
|
}
|
|
3650
3662
|
@media (prefers-reduced-motion: no-preference) {
|
|
3651
|
-
@keyframes _modal-overlay-no-
|
|
3663
|
+
@keyframes _modal-overlay-no-op_1o004_1 {
|
|
3652
3664
|
from {
|
|
3653
3665
|
opacity: 1;
|
|
3654
3666
|
}
|
|
@@ -3656,7 +3668,7 @@
|
|
|
3656
3668
|
opacity: 1;
|
|
3657
3669
|
}
|
|
3658
3670
|
}
|
|
3659
|
-
@keyframes _modal-content-
|
|
3671
|
+
@keyframes _modal-content-show_1o004_1 {
|
|
3660
3672
|
from {
|
|
3661
3673
|
opacity: 0;
|
|
3662
3674
|
transform: translateY(5px) scale(0.97);
|
|
@@ -3666,7 +3678,7 @@
|
|
|
3666
3678
|
transform: translateY(0px) scale(1);
|
|
3667
3679
|
}
|
|
3668
3680
|
}
|
|
3669
|
-
@keyframes _modal-content-
|
|
3681
|
+
@keyframes _modal-content-hide_1o004_1 {
|
|
3670
3682
|
from {
|
|
3671
3683
|
opacity: 1;
|
|
3672
3684
|
transform: translateY(0px) scale(1);
|
|
@@ -3676,23 +3688,23 @@
|
|
|
3676
3688
|
transform: translateY(5px) scale(0.99);
|
|
3677
3689
|
}
|
|
3678
3690
|
}
|
|
3679
|
-
._teddy-
|
|
3691
|
+
._teddy-modal__overlay_1o004_25 {
|
|
3680
3692
|
/* Keep the overlay mounted until the children have animated */
|
|
3681
3693
|
}
|
|
3682
|
-
._teddy-
|
|
3683
|
-
animation: _modal-overlay-no-
|
|
3694
|
+
._teddy-modal__overlay_1o004_25:where([data-state=closed]) {
|
|
3695
|
+
animation: _modal-overlay-no-op_1o004_1 250ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3684
3696
|
}
|
|
3685
|
-
._teddy-
|
|
3686
|
-
animation: _teddy-fade-
|
|
3697
|
+
._teddy-modal__overlay_1o004_25:where([data-state=open])::before {
|
|
3698
|
+
animation: _teddy-fade-in_1o004_1 400ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3687
3699
|
}
|
|
3688
|
-
._teddy-
|
|
3689
|
-
animation: _teddy-fade-
|
|
3700
|
+
._teddy-modal__overlay_1o004_25:where([data-state=closed])::before {
|
|
3701
|
+
animation: _teddy-fade-out_1o004_1 250ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3690
3702
|
}
|
|
3691
|
-
._teddy-
|
|
3692
|
-
animation: _modal-content-
|
|
3703
|
+
._teddy-modal__content_1o004_37:where([data-state=open]) {
|
|
3704
|
+
animation: _modal-content-show_1o004_1 200ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3693
3705
|
}
|
|
3694
|
-
._teddy-
|
|
3695
|
-
animation: _modal-content-
|
|
3706
|
+
._teddy-modal__content_1o004_37:where([data-state=closed]) {
|
|
3707
|
+
animation: _modal-content-hide_1o004_1 150ms cubic-bezier(0.16, 1, 0.3, 1);
|
|
3696
3708
|
}
|
|
3697
3709
|
}._teddy-navigation-menu_11898_1 {
|
|
3698
3710
|
--item-gap: var(--teddy-spacing-200);
|