@asantemedia-org/leybold-design-system 1.0.11 → 1.0.12
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/index.esm.js +10 -120
- package/dist/index.esm.js.map +1 -1
- package/dist/index.esm.scss +0 -263
- package/dist/index.js +8 -119
- package/dist/index.js.map +1 -1
- package/dist/index.scss +0 -263
- package/dist/src/index.d.ts +0 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.esm.scss
CHANGED
|
@@ -633,269 +633,6 @@
|
|
|
633
633
|
.Button-module__button__icon--right___-pGHl {
|
|
634
634
|
order: 1;
|
|
635
635
|
}
|
|
636
|
-
@import "slick-carousel/slick/slick.css";
|
|
637
|
-
@import "slick-carousel/slick/slick-theme.css";
|
|
638
|
-
:root {
|
|
639
|
-
--leybold-red: #e2001a;
|
|
640
|
-
--leybold-black: #000000;
|
|
641
|
-
--leybold-white: #ffffff;
|
|
642
|
-
--leybold-blue-grey: #546672;
|
|
643
|
-
--leybold-white-aluminium: #dae0e3;
|
|
644
|
-
--leybold-window-gray: #99a1ab;
|
|
645
|
-
--leybold-light-grey: #c5c7c4;
|
|
646
|
-
--leybold-slate-gray: #4a4e54;
|
|
647
|
-
--leybold-anthracite-gray: #383e42;
|
|
648
|
-
--leybold-orange: #d18e56;
|
|
649
|
-
--leybold-yellow: #edd163;
|
|
650
|
-
--leybold-green: #6ea67b;
|
|
651
|
-
--leybold-purple: #732d5d;
|
|
652
|
-
--leybold-purple-gray: #945e67;
|
|
653
|
-
--leybold-blue: #2b4679;
|
|
654
|
-
--leybold-light-blue: #3f6a98;
|
|
655
|
-
--leybold-blue-green: #39788e;
|
|
656
|
-
--leybold-green-gray: #6d8f9f;
|
|
657
|
-
--color-primary: #e2001a;
|
|
658
|
-
--color-secondary: #546672;
|
|
659
|
-
--color-success: #6ea67b;
|
|
660
|
-
--color-danger: #e2001a;
|
|
661
|
-
--color-warning: #d18e56;
|
|
662
|
-
--color-info: #3f6a98;
|
|
663
|
-
--text-primary: #000000;
|
|
664
|
-
--text-secondary: #4a4e54;
|
|
665
|
-
--text-muted: #99a1ab;
|
|
666
|
-
--text-inverse: #ffffff;
|
|
667
|
-
--bg-primary: #ffffff;
|
|
668
|
-
--bg-secondary: #dae0e3;
|
|
669
|
-
--bg-dark: #383e42;
|
|
670
|
-
--border-color: #c5c7c4;
|
|
671
|
-
--border-color-dark: #4a4e54;
|
|
672
|
-
--font-family-base: Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
|
|
673
|
-
--h1-mobile-size: 32px;
|
|
674
|
-
--h1-mobile-line-height: 1.2;
|
|
675
|
-
--h2-mobile-size: 24px;
|
|
676
|
-
--h2-mobile-line-height: 1.2;
|
|
677
|
-
--h3-mobile-size: 18px;
|
|
678
|
-
--h3-mobile-line-height: 1.6;
|
|
679
|
-
--h4-mobile-size: 16px;
|
|
680
|
-
--h4-mobile-line-height: 1.55;
|
|
681
|
-
--h5-mobile-size: 14px;
|
|
682
|
-
--h5-mobile-line-height: 1.5;
|
|
683
|
-
--body-mobile-size: 14px;
|
|
684
|
-
--body-mobile-line-height: 1.5;
|
|
685
|
-
--h1-desktop-size: 55px;
|
|
686
|
-
--h1-desktop-line-height: 1.15;
|
|
687
|
-
--h1-desktop-letter-spacing: -0.02em;
|
|
688
|
-
--h2-desktop-size: 40px;
|
|
689
|
-
--h2-desktop-line-height: 1.2;
|
|
690
|
-
--h2-desktop-letter-spacing: -0.01em;
|
|
691
|
-
--h3-desktop-size: 32px;
|
|
692
|
-
--h3-desktop-line-height: 1.2;
|
|
693
|
-
--h4-desktop-size: 24px;
|
|
694
|
-
--h4-desktop-line-height: 1.2;
|
|
695
|
-
--h5-desktop-size: 18px;
|
|
696
|
-
--h5-desktop-line-height: 1.6;
|
|
697
|
-
--body-desktop-size: 18px;
|
|
698
|
-
--body-desktop-line-height: 1.6;
|
|
699
|
-
--text-lg-size: 27px;
|
|
700
|
-
--text-lg-line-height: 1.4;
|
|
701
|
-
--text-xl-size: 36px;
|
|
702
|
-
--text-xl-line-height: 1.4;
|
|
703
|
-
--text-xxl-size: 64px;
|
|
704
|
-
--text-xxl-line-height: 1;
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
.Carousel-module__carousel___hkXkF {
|
|
708
|
-
width: 100%;
|
|
709
|
-
background-color: #ffffff;
|
|
710
|
-
padding: 48px 24px;
|
|
711
|
-
}
|
|
712
|
-
@media (min-width: 768px) {
|
|
713
|
-
.Carousel-module__carousel___hkXkF {
|
|
714
|
-
padding: 86px 178px 56px;
|
|
715
|
-
}
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
.Carousel-module__carousel__header___IMcN5 {
|
|
719
|
-
display: flex;
|
|
720
|
-
flex-direction: column;
|
|
721
|
-
gap: 16px;
|
|
722
|
-
margin-bottom: 24px;
|
|
723
|
-
}
|
|
724
|
-
@media (min-width: 768px) {
|
|
725
|
-
.Carousel-module__carousel__header___IMcN5 {
|
|
726
|
-
flex-direction: row;
|
|
727
|
-
justify-content: space-between;
|
|
728
|
-
align-items: flex-start;
|
|
729
|
-
margin-bottom: 42px;
|
|
730
|
-
}
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
.Carousel-module__carousel__headerContent___9uU-H {
|
|
734
|
-
display: flex;
|
|
735
|
-
flex-direction: column;
|
|
736
|
-
gap: 16px;
|
|
737
|
-
max-width: 714px;
|
|
738
|
-
}
|
|
739
|
-
|
|
740
|
-
.Carousel-module__carousel__title___CCgcY {
|
|
741
|
-
font-family: var(--font-family-base);
|
|
742
|
-
font-weight: 700;
|
|
743
|
-
font-size: var(--h3-desktop-size);
|
|
744
|
-
line-height: 1.2;
|
|
745
|
-
color: #4a4e54;
|
|
746
|
-
margin: 0;
|
|
747
|
-
}
|
|
748
|
-
|
|
749
|
-
.Carousel-module__carousel__subtitle___aj4q1 {
|
|
750
|
-
font-family: var(--font-family-base);
|
|
751
|
-
font-weight: 400;
|
|
752
|
-
font-size: var(--body-desktop-size);
|
|
753
|
-
line-height: 1.6;
|
|
754
|
-
color: #4a4e54;
|
|
755
|
-
margin: 0;
|
|
756
|
-
}
|
|
757
|
-
|
|
758
|
-
.Carousel-module__carousel__slider___b27-P {
|
|
759
|
-
margin-bottom: 42px;
|
|
760
|
-
}
|
|
761
|
-
.Carousel-module__carousel__slider___b27-P .slick-list {
|
|
762
|
-
margin: 0 -10px;
|
|
763
|
-
}
|
|
764
|
-
.Carousel-module__carousel__slider___b27-P .slick-track {
|
|
765
|
-
display: flex;
|
|
766
|
-
}
|
|
767
|
-
.Carousel-module__carousel__slider___b27-P .slick-slide {
|
|
768
|
-
padding: 8px 10px;
|
|
769
|
-
flex-shrink: 0;
|
|
770
|
-
}
|
|
771
|
-
.Carousel-module__carousel__slider___b27-P .slick-slide > div {
|
|
772
|
-
height: 100%;
|
|
773
|
-
}
|
|
774
|
-
.Carousel-module__carousel__slider___b27-P .slick-slide.slick-cloned a, .Carousel-module__carousel__slider___b27-P .slick-slide.slick-cloned button {
|
|
775
|
-
visibility: hidden;
|
|
776
|
-
}
|
|
777
|
-
|
|
778
|
-
.Carousel-module__carousel__slideWrapper___PjXgD {
|
|
779
|
-
height: 100%;
|
|
780
|
-
}
|
|
781
|
-
|
|
782
|
-
.Carousel-module__carousel__card___lga-D {
|
|
783
|
-
display: block;
|
|
784
|
-
position: relative;
|
|
785
|
-
text-decoration: none;
|
|
786
|
-
height: 341px;
|
|
787
|
-
overflow: visible;
|
|
788
|
-
}
|
|
789
|
-
@media (min-width: 768px) {
|
|
790
|
-
.Carousel-module__carousel__card___lga-D {
|
|
791
|
-
height: 297px;
|
|
792
|
-
}
|
|
793
|
-
}
|
|
794
|
-
.Carousel-module__carousel__card___lga-D:focus-visible {
|
|
795
|
-
outline: 2px solid #000000;
|
|
796
|
-
outline-offset: 2px;
|
|
797
|
-
}
|
|
798
|
-
.Carousel-module__carousel__card___lga-D:hover .Carousel-module__carousel__cardContent___v0jc- {
|
|
799
|
-
box-shadow: 3px 6px 12px -3px rgba(0, 0, 0, 0.4);
|
|
800
|
-
}
|
|
801
|
-
.Carousel-module__carousel__card___lga-D:hover .Carousel-module__carousel__cardLink___PpTAC {
|
|
802
|
-
text-decoration: underline;
|
|
803
|
-
}
|
|
804
|
-
|
|
805
|
-
.Carousel-module__carousel__cardImageWrapper___aFqXD {
|
|
806
|
-
position: relative;
|
|
807
|
-
width: 100%;
|
|
808
|
-
height: 245px;
|
|
809
|
-
overflow: hidden;
|
|
810
|
-
}
|
|
811
|
-
@media (min-width: 768px) {
|
|
812
|
-
.Carousel-module__carousel__cardImageWrapper___aFqXD {
|
|
813
|
-
height: 216px;
|
|
814
|
-
}
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
.Carousel-module__carousel__cardImage___4MrRU {
|
|
818
|
-
width: 100%;
|
|
819
|
-
height: 100%;
|
|
820
|
-
-o-object-fit: cover;
|
|
821
|
-
object-fit: cover;
|
|
822
|
-
-o-object-position: center;
|
|
823
|
-
object-position: center;
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
.Carousel-module__carousel__cardContent___v0jc- {
|
|
827
|
-
position: absolute;
|
|
828
|
-
left: 20px;
|
|
829
|
-
bottom: 0;
|
|
830
|
-
width: calc(100% - 40px);
|
|
831
|
-
max-width: 300px;
|
|
832
|
-
background-color: #ffffff;
|
|
833
|
-
padding: 24px;
|
|
834
|
-
box-shadow: 3px 6px 8px -5px rgba(0, 0, 0, 0.3);
|
|
835
|
-
transition: box-shadow 0.2s ease-in-out;
|
|
836
|
-
}
|
|
837
|
-
@media (min-width: 768px) {
|
|
838
|
-
.Carousel-module__carousel__cardContent___v0jc- {
|
|
839
|
-
padding-left: 20px;
|
|
840
|
-
border-left: 4px solid #4a4e54;
|
|
841
|
-
max-width: 382px;
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
.Carousel-module__carousel__cardTitle___z-mMo {
|
|
846
|
-
font-family: var(--font-family-base);
|
|
847
|
-
font-weight: 700;
|
|
848
|
-
font-size: var(--h5-desktop-size);
|
|
849
|
-
line-height: 1.6;
|
|
850
|
-
color: #4a4e54;
|
|
851
|
-
margin: 0 0 8px;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
.Carousel-module__carousel__navigation___dMbcP {
|
|
855
|
-
display: flex;
|
|
856
|
-
justify-content: flex-end;
|
|
857
|
-
align-items: center;
|
|
858
|
-
}
|
|
859
|
-
@media (min-width: 768px) {
|
|
860
|
-
.Carousel-module__carousel__navigation___dMbcP {
|
|
861
|
-
justify-content: space-between;
|
|
862
|
-
}
|
|
863
|
-
}
|
|
864
|
-
|
|
865
|
-
.Carousel-module__carousel__arrows___uj5nF {
|
|
866
|
-
display: flex;
|
|
867
|
-
align-items: center;
|
|
868
|
-
gap: 20px;
|
|
869
|
-
}
|
|
870
|
-
|
|
871
|
-
.Carousel-module__carousel__dotsList___upZ7L {
|
|
872
|
-
display: flex;
|
|
873
|
-
align-items: center;
|
|
874
|
-
gap: 6px;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
.Carousel-module__carousel__dot___HwZc0 {
|
|
878
|
-
width: 10px;
|
|
879
|
-
height: 10px;
|
|
880
|
-
padding: 0;
|
|
881
|
-
background-color: #dae0e3;
|
|
882
|
-
border: none;
|
|
883
|
-
cursor: pointer;
|
|
884
|
-
transition: background-color 0.2s ease-in-out;
|
|
885
|
-
}
|
|
886
|
-
.Carousel-module__carousel__dot___HwZc0:hover {
|
|
887
|
-
background-color: rgb(188.9692307692, 199.6769230769, 205.0307692308);
|
|
888
|
-
}
|
|
889
|
-
.Carousel-module__carousel__dot___HwZc0:focus-visible {
|
|
890
|
-
outline: 2px solid #000000;
|
|
891
|
-
outline-offset: 2px;
|
|
892
|
-
}
|
|
893
|
-
.Carousel-module__carousel__dot--active___NxRvq {
|
|
894
|
-
background-color: #e2001a;
|
|
895
|
-
}
|
|
896
|
-
.Carousel-module__carousel__dot--active___NxRvq:hover {
|
|
897
|
-
background-color: #e2001a;
|
|
898
|
-
}
|
|
899
636
|
:root {
|
|
900
637
|
--leybold-red: #e2001a;
|
|
901
638
|
--leybold-black: #000000;
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var reactFontawesome = require('@fortawesome/react-fontawesome');
|
|
5
5
|
var freeSolidSvgIcons = require('@fortawesome/free-solid-svg-icons');
|
|
6
|
-
var Slider = require('react-slick');
|
|
7
6
|
var freeBrandsSvgIcons = require('@fortawesome/free-brands-svg-icons');
|
|
8
7
|
var edwardsvacuumDesignSystem = require('@asantemedia-org/edwardsvacuum-design-system');
|
|
9
8
|
|
|
@@ -17,7 +16,7 @@ function _extends() {
|
|
|
17
16
|
}, _extends.apply(null, arguments);
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
var styles$
|
|
19
|
+
var styles$g = {"button":"Button-module__button___18Bed","button--primary":"Button-module__button--primary___VuF-P","button--default":"Button-module__button--default___MDa35","button--disabled":"Button-module__button--disabled___IuOY8","button--secondary":"Button-module__button--secondary___lD5E3","button--solid-red":"Button-module__button--solid-red___YPpnL","button--solid-grey":"Button-module__button--solid-grey___oRbEy","button--solid-black":"Button-module__button--solid-black___1Ma5K","button--solid-white":"Button-module__button--solid-white___bE-Z0","button--outlined-red":"Button-module__button--outlined-red___cgZXa","button--outlined-grey":"Button-module__button--outlined-grey___xWGbB","button--outlined-black":"Button-module__button--outlined-black___qfX5o","button--outlined-white":"Button-module__button--outlined-white___QLXNP","button--link-text":"Button-module__button--link-text___R2kun","button__icon":"Button-module__button__icon___hlcHo","button--link-text-alt":"Button-module__button--link-text-alt___1p7wH","button--external-link":"Button-module__button--external-link___Mhxuk","button--carousel-arrow-left":"Button-module__button--carousel-arrow-left___Wx-Jo","button--carousel-arrow-right":"Button-module__button--carousel-arrow-right___3ZtgT","button__icon__default":"Button-module__button__icon__default___0qlF1","button__icon__hover":"Button-module__button__icon__hover___3xPGT","button--extra-small":"Button-module__button--extra-small___R0QTM","button--small":"Button-module__button--small___ADJQe","button--medium":"Button-module__button--medium___ZuR4Z","button--large":"Button-module__button--large___-FaV5","button__icon--left":"Button-module__button__icon--left___wMCeH","button__icon--right":"Button-module__button__icon--right___-pGHl"};
|
|
21
20
|
|
|
22
21
|
function getDefaultExportFromCjs (x) {
|
|
23
22
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
@@ -195,10 +194,10 @@ const Button = ({
|
|
|
195
194
|
const isIconOnly = variant === "carousel-arrow-left" || variant === "carousel-arrow-right";
|
|
196
195
|
const isCarouselLeft = variant === "carousel-arrow-left";
|
|
197
196
|
const isCarouselRight = variant === "carousel-arrow-right";
|
|
198
|
-
const buttonClasses = classNames(styles$
|
|
199
|
-
[styles$
|
|
197
|
+
const buttonClasses = classNames(styles$g.button, styles$g[`button--${cssVariant}`], styles$g[`button--${size}`], {
|
|
198
|
+
[styles$g["button--disabled"]]: disabled
|
|
200
199
|
}, className);
|
|
201
|
-
const iconClasses = classNames(styles$
|
|
200
|
+
const iconClasses = classNames(styles$g.button__icon, styles$g[`button__icon--${iconPosition}`]);
|
|
202
201
|
|
|
203
202
|
// Generate accessible label for icon-only buttons
|
|
204
203
|
const accessibleLabel = ariaLabel || (isIconOnly ? variant === "carousel-arrow-left" ? "Previous" : "Next" : undefined);
|
|
@@ -213,132 +212,23 @@ const Button = ({
|
|
|
213
212
|
className: iconClasses
|
|
214
213
|
}, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
|
|
215
214
|
icon: freeSolidSvgIcons.faArrowLeft,
|
|
216
|
-
className: styles$
|
|
215
|
+
className: styles$g.button__icon__default
|
|
217
216
|
}), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
|
|
218
217
|
icon: freeSolidSvgIcons.faArrowLeftLong,
|
|
219
|
-
className: styles$
|
|
218
|
+
className: styles$g.button__icon__hover
|
|
220
219
|
})), isCarouselRight && /*#__PURE__*/React.createElement("span", {
|
|
221
220
|
className: iconClasses
|
|
222
221
|
}, /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
|
|
223
222
|
icon: freeSolidSvgIcons.faArrowRight,
|
|
224
|
-
className: styles$
|
|
223
|
+
className: styles$g.button__icon__default
|
|
225
224
|
}), /*#__PURE__*/React.createElement(reactFontawesome.FontAwesomeIcon, {
|
|
226
225
|
icon: freeSolidSvgIcons.faArrowRightLong,
|
|
227
|
-
className: styles$
|
|
226
|
+
className: styles$g.button__icon__hover
|
|
228
227
|
})), !isIconOnly && iconElement && /*#__PURE__*/React.createElement("span", {
|
|
229
228
|
className: iconClasses
|
|
230
229
|
}, iconElement));
|
|
231
230
|
};
|
|
232
231
|
|
|
233
|
-
var styles$g = {"carousel":"Carousel-module__carousel___hkXkF","carousel__header":"Carousel-module__carousel__header___IMcN5","carousel__headerContent":"Carousel-module__carousel__headerContent___9uU-H","carousel__title":"Carousel-module__carousel__title___CCgcY","carousel__subtitle":"Carousel-module__carousel__subtitle___aj4q1","carousel__slider":"Carousel-module__carousel__slider___b27-P","carousel__slideWrapper":"Carousel-module__carousel__slideWrapper___PjXgD","carousel__card":"Carousel-module__carousel__card___lga-D","carousel__cardContent":"Carousel-module__carousel__cardContent___v0jc-","carousel__cardImageWrapper":"Carousel-module__carousel__cardImageWrapper___aFqXD","carousel__cardImage":"Carousel-module__carousel__cardImage___4MrRU","carousel__cardTitle":"Carousel-module__carousel__cardTitle___z-mMo","carousel__navigation":"Carousel-module__carousel__navigation___dMbcP","carousel__arrows":"Carousel-module__carousel__arrows___uj5nF","carousel__dotsList":"Carousel-module__carousel__dotsList___upZ7L","carousel__dot":"Carousel-module__carousel__dot___HwZc0","carousel__dot--active":"Carousel-module__carousel__dot--active___NxRvq"};
|
|
234
|
-
|
|
235
|
-
/**
|
|
236
|
-
* Carousel component for displaying multiple content cards in a sliding format.
|
|
237
|
-
* Supports responsive layouts with 3 cards on desktop and 1 card on mobile.
|
|
238
|
-
*/
|
|
239
|
-
const Carousel = ({
|
|
240
|
-
title,
|
|
241
|
-
subtitle,
|
|
242
|
-
buttonText,
|
|
243
|
-
buttonUrl,
|
|
244
|
-
cards,
|
|
245
|
-
showDots = true,
|
|
246
|
-
showArrows = true,
|
|
247
|
-
className
|
|
248
|
-
}) => {
|
|
249
|
-
const sliderRef = React.useRef(null);
|
|
250
|
-
const [currentSlide, setCurrentSlide] = React.useState(0);
|
|
251
|
-
|
|
252
|
-
// Uses document.documentElement.clientWidth to work correctly in iframes (Storybook)
|
|
253
|
-
const [isMobile, setIsMobile] = React.useState(() => {
|
|
254
|
-
if (typeof window !== 'undefined') {
|
|
255
|
-
return document.documentElement.clientWidth < 768;
|
|
256
|
-
}
|
|
257
|
-
return false;
|
|
258
|
-
});
|
|
259
|
-
React.useEffect(() => {
|
|
260
|
-
const handleResize = () => {
|
|
261
|
-
setIsMobile(document.documentElement.clientWidth < 768);
|
|
262
|
-
};
|
|
263
|
-
window.addEventListener('resize', handleResize);
|
|
264
|
-
return () => window.removeEventListener('resize', handleResize);
|
|
265
|
-
}, []);
|
|
266
|
-
const handlePrev = () => sliderRef.current?.slickPrev();
|
|
267
|
-
const handleNext = () => sliderRef.current?.slickNext();
|
|
268
|
-
const goToSlide = index => sliderRef.current?.slickGoTo(index);
|
|
269
|
-
const settings = {
|
|
270
|
-
dots: false,
|
|
271
|
-
infinite: true,
|
|
272
|
-
speed: 500,
|
|
273
|
-
slidesToShow: isMobile ? 1 : 3,
|
|
274
|
-
slidesToScroll: 1,
|
|
275
|
-
arrows: false,
|
|
276
|
-
beforeChange: (_, next) => setCurrentSlide(next)
|
|
277
|
-
};
|
|
278
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
279
|
-
className: classNames(styles$g.carousel, className)
|
|
280
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
281
|
-
className: styles$g.carousel__header
|
|
282
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
283
|
-
className: styles$g.carousel__headerContent
|
|
284
|
-
}, /*#__PURE__*/React.createElement("h2", {
|
|
285
|
-
className: styles$g.carousel__title
|
|
286
|
-
}, title), subtitle && /*#__PURE__*/React.createElement("p", {
|
|
287
|
-
className: styles$g.carousel__subtitle
|
|
288
|
-
}, subtitle)), buttonText && buttonUrl && /*#__PURE__*/React.createElement(Button, {
|
|
289
|
-
variant: "outlined-black",
|
|
290
|
-
onClick: () => window.location.href = buttonUrl,
|
|
291
|
-
style: {
|
|
292
|
-
minWidth: '215px',
|
|
293
|
-
minHeight: '56px'
|
|
294
|
-
}
|
|
295
|
-
}, buttonText)), /*#__PURE__*/React.createElement(Slider, _extends({
|
|
296
|
-
ref: sliderRef
|
|
297
|
-
}, settings, {
|
|
298
|
-
className: styles$g.carousel__slider
|
|
299
|
-
}), cards.map((card, index) => /*#__PURE__*/React.createElement("div", {
|
|
300
|
-
key: index,
|
|
301
|
-
className: styles$g.carousel__slideWrapper
|
|
302
|
-
}, /*#__PURE__*/React.createElement("a", {
|
|
303
|
-
href: card.linkUrl,
|
|
304
|
-
className: styles$g.carousel__card,
|
|
305
|
-
"aria-label": `${card.title} - ${card.linkText}`
|
|
306
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
307
|
-
className: styles$g.carousel__cardImageWrapper
|
|
308
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
309
|
-
src: card.imageUrl,
|
|
310
|
-
alt: card.imageAlt,
|
|
311
|
-
className: styles$g.carousel__cardImage
|
|
312
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
313
|
-
className: styles$g.carousel__cardContent
|
|
314
|
-
}, /*#__PURE__*/React.createElement("h3", {
|
|
315
|
-
className: styles$g.carousel__cardTitle
|
|
316
|
-
}, card.title), /*#__PURE__*/React.createElement(Button, {
|
|
317
|
-
variant: "link-text-alt",
|
|
318
|
-
icon: "arrow-right"
|
|
319
|
-
}, card.linkText)))))), /*#__PURE__*/React.createElement("div", {
|
|
320
|
-
className: styles$g.carousel__navigation
|
|
321
|
-
}, !isMobile && showDots && /*#__PURE__*/React.createElement("div", {
|
|
322
|
-
className: styles$g.carousel__dotsList
|
|
323
|
-
}, cards.map((_, index) => /*#__PURE__*/React.createElement("button", {
|
|
324
|
-
key: index,
|
|
325
|
-
type: "button",
|
|
326
|
-
className: classNames(styles$g.carousel__dot, currentSlide === index && styles$g['carousel__dot--active']),
|
|
327
|
-
onClick: () => goToSlide(index),
|
|
328
|
-
"aria-label": `Go to slide ${index + 1}`
|
|
329
|
-
}))), showArrows && /*#__PURE__*/React.createElement("div", {
|
|
330
|
-
className: styles$g.carousel__arrows
|
|
331
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
332
|
-
variant: "carousel-arrow-left",
|
|
333
|
-
onClick: handlePrev,
|
|
334
|
-
ariaLabel: "Previous"
|
|
335
|
-
}), /*#__PURE__*/React.createElement(Button, {
|
|
336
|
-
variant: "carousel-arrow-right",
|
|
337
|
-
onClick: handleNext,
|
|
338
|
-
ariaLabel: "Next"
|
|
339
|
-
}))));
|
|
340
|
-
};
|
|
341
|
-
|
|
342
232
|
var styles$f = {"footer":"Footer-module__footer___Oavyx","footer--mobile":"Footer-module__footer--mobile___9HQC-","footer__container":"Footer-module__footer__container___ohvnm","footer__links":"Footer-module__footer__links___DdVK8","footer__linkGroup":"Footer-module__footer__linkGroup___1B7JA","footer__linkList":"Footer-module__footer__linkList___j-DWF","footer__linkHeading":"Footer-module__footer__linkHeading___LtE6X","footer__link":"Footer-module__footer__link___G5HPW","footer__cta":"Footer-module__footer__cta___MRJLr","footer__socialIcons":"Footer-module__footer__socialIcons___j0aRp","footer__socialIcon":"Footer-module__footer__socialIcon___1uVTm","footer__countrySelector":"Footer-module__footer__countrySelector___pVtN5","footer__bottom":"Footer-module__footer__bottom___77bPL","footer__bottomLeft":"Footer-module__footer__bottomLeft___tlst1","footer__bottomLinks":"Footer-module__footer__bottomLinks___s22h7","footer__bottomLink":"Footer-module__footer__bottomLink___SLzwY","footer__copyright":"Footer-module__footer__copyright___4bZOF","footer__brandSection":"Footer-module__footer__brandSection___BBr5f","footer__logo":"Footer-module__footer__logo___mv-9M","footer__leftCol":"Footer-module__footer__leftCol___vmKNN","footer__motto":"Footer-module__footer__motto___QtB2m","footer__main":"Footer-module__footer__main___NSU9d","footer__badge":"Footer-module__footer__badge___faejb","footer__badgeIcon":"Footer-module__footer__badgeIcon___xJ519","footer__badgeText":"Footer-module__footer__badgeText___imXgG","footer__linkText":"Footer-module__footer__linkText___Gc18Z","footer__linkIcon":"Footer-module__footer__linkIcon___IZzJM","footer__countrySelectorIcon":"Footer-module__footer__countrySelectorIcon___hhEd4"};
|
|
343
233
|
|
|
344
234
|
/**
|
|
@@ -2333,7 +2223,6 @@ exports.AlgoliaDynamicSearchLeybold = AlgoliaDynamicSearchLeybold;
|
|
|
2333
2223
|
exports.AppliedFilterTag = AppliedFilterTag;
|
|
2334
2224
|
exports.AppliedFilters = AppliedFilters;
|
|
2335
2225
|
exports.Button = Button;
|
|
2336
|
-
exports.Carousel = Carousel;
|
|
2337
2226
|
exports.ContentCardHorizontal = ContentCardHorizontal;
|
|
2338
2227
|
exports.FederatedInstantResultsLayout = FederatedInstantResultsLayout;
|
|
2339
2228
|
exports.FederatedResultsView = FederatedResultsView;
|