@digital-b2c/coreui-kit 0.2.0 → 0.2.2

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.mjs CHANGED
@@ -35,7 +35,10 @@ var __objRest = (source, exclude) => {
35
35
  };
36
36
 
37
37
  // src/components/Picture/Picture.module.scss
38
- var Picture_module_default = {};
38
+ var Picture_module_default = {
39
+ "image-desktop": "Picture_module_image-desktop",
40
+ "image-mobile": "Picture_module_image-mobile"
41
+ };
39
42
  var Picture = (_a) => {
40
43
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
41
44
  var _b2, _c;
@@ -310,7 +313,20 @@ var Icon = React.memo(
310
313
  Icon.displayName = "Icon";
311
314
 
312
315
  // src/components/Button/Button.module.scss
313
- var Button_module_default = {};
316
+ var Button_module_default = {
317
+ button: "Button_module_button",
318
+ fullWidth: "Button_module_fullWidth",
319
+ primary: "Button_module_primary",
320
+ secondary: "Button_module_secondary",
321
+ ghost: "Button_module_ghost",
322
+ nofill: "Button_module_nofill",
323
+ nofillblack: "Button_module_nofillblack",
324
+ grey: "Button_module_grey",
325
+ shiny: "Button_module_shiny",
326
+ rotateGradient: "Button_module_rotateGradient",
327
+ icon: "Button_module_icon",
328
+ logo: "Button_module_logo"
329
+ };
314
330
  var Button = (_a) => {
315
331
  var _b = _a, {
316
332
  className,
@@ -432,7 +448,22 @@ var useViewPort = () => {
432
448
  var useViewPort_default = useViewPort;
433
449
 
434
450
  // src/components/BrandsStrip/BrandsStrip.module.scss
435
- var BrandsStrip_module_default = {};
451
+ var BrandsStrip_module_default = {
452
+ brandsStrip: "BrandsStrip_module_brandsStrip",
453
+ light: "BrandsStrip_module_light",
454
+ dark: "BrandsStrip_module_dark",
455
+ small: "BrandsStrip_module_small",
456
+ logoWrapper: "BrandsStrip_module_logoWrapper",
457
+ container: "BrandsStrip_module_container",
458
+ title: "BrandsStrip_module_title",
459
+ blurred: "BrandsStrip_module_blurred",
460
+ logos: "BrandsStrip_module_logos",
461
+ marquee: "BrandsStrip_module_marquee",
462
+ scrollIndividual: "BrandsStrip_module_scrollIndividual",
463
+ paused: "BrandsStrip_module_paused",
464
+ logo: "BrandsStrip_module_logo",
465
+ cta: "BrandsStrip_module_cta"
466
+ };
436
467
  var BrandsStrip = ({
437
468
  className,
438
469
  variant = "light",
@@ -507,7 +538,9 @@ function resolveCompoundSlots(children, slots) {
507
538
  }
508
539
 
509
540
  // src/components/Card/Card.module.scss
510
- var Card_module_default = {};
541
+ var Card_module_default = {
542
+ card: "Card_module_card"
543
+ };
511
544
  var Card = ({ className, title, subtitle, cta, icon, children }) => {
512
545
  var _a, _b;
513
546
  const slots = resolveCompoundSlots(children, {
@@ -545,7 +578,11 @@ var CountingCardTitle = ({ children }) => {
545
578
  };
546
579
 
547
580
  // src/components/CountingCard/CountingCard.module.scss
548
- var CountingCard_module_default = {};
581
+ var CountingCard_module_default = {
582
+ "counting-card": "CountingCard_module_counting-card",
583
+ count: "CountingCard_module_count",
584
+ logo: "CountingCard_module_logo"
585
+ };
549
586
  var CountingCard = ({ className, title, count, image, children }) => {
550
587
  var _a;
551
588
  const slots = resolveCompoundSlots(children, {
@@ -573,7 +610,12 @@ var InfoCardSubtitle = ({ children }) => {
573
610
  };
574
611
 
575
612
  // src/components/InfoCard/InfoCard.module.scss
576
- var InfoCard_module_default = {};
613
+ var InfoCard_module_default = {
614
+ "info-card": "InfoCard_module_info-card",
615
+ header: "InfoCard_module_header",
616
+ badge: "InfoCard_module_badge",
617
+ hasIcon: "InfoCard_module_hasIcon"
618
+ };
577
619
  var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
578
620
  var _a, _b;
579
621
  const slots = resolveCompoundSlots(children, {
@@ -598,7 +640,15 @@ var InfoCard2 = Object.assign(InfoCard, {
598
640
  });
599
641
 
600
642
  // src/components/Pagination/Pagination.module.scss
601
- var Pagination_module_default = {};
643
+ var Pagination_module_default = {
644
+ pagination: "Pagination_module_pagination",
645
+ next: "Pagination_module_next",
646
+ prev: "Pagination_module_prev",
647
+ pages: "Pagination_module_pages",
648
+ page: "Pagination_module_page",
649
+ active: "Pagination_module_active",
650
+ number: "Pagination_module_number"
651
+ };
602
652
  var Pagination = ({
603
653
  className,
604
654
  totalPages,
@@ -679,14 +729,25 @@ var Pagination = ({
679
729
  };
680
730
 
681
731
  // src/components/primitives/Container/Container.module.scss
682
- var Container_module_default = {};
732
+ var Container_module_default = {
733
+ container: "Container_module_container"
734
+ };
683
735
  var Container = (_a) => {
684
736
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
685
737
  return /* @__PURE__ */ jsx("div", __spreadProps(__spreadValues({ className: clsx3(Container_module_default.container, className) }, props), { children }));
686
738
  };
687
739
 
688
740
  // src/components/PracticeCard/PracticeCard.module.scss
689
- var PracticeCard_module_default = {};
741
+ var PracticeCard_module_default = {
742
+ "practice-card": "PracticeCard_module_practice-card",
743
+ wrapper: "PracticeCard_module_wrapper",
744
+ background: "PracticeCard_module_background",
745
+ container: "PracticeCard_module_container",
746
+ title: "PracticeCard_module_title",
747
+ cta: "PracticeCard_module_cta",
748
+ ctaRest: "PracticeCard_module_ctaRest",
749
+ ctaHover: "PracticeCard_module_ctaHover"
750
+ };
690
751
  var PracticeCard = ({ className, title, cta, image }) => {
691
752
  const { url: href, isExternal } = cta != null ? cta : {};
692
753
  return /* @__PURE__ */ jsx("div", { className: clsx3(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxs(
@@ -718,7 +779,13 @@ var CardCollectionSubtitle = ({ children }) => {
718
779
  };
719
780
 
720
781
  // src/widgets/CardCollection/CardCollection.module.scss
721
- var CardCollection_module_default = {};
782
+ var CardCollection_module_default = {
783
+ "card-collection": "CardCollection_module_card-collection",
784
+ content: "CardCollection_module_content",
785
+ wrapper: "CardCollection_module_wrapper",
786
+ threeCols: "CardCollection_module_threeCols",
787
+ examCard: "CardCollection_module_examCard"
788
+ };
722
789
  var CardCollection = ({
723
790
  className,
724
791
  variant = "default",
@@ -756,7 +823,16 @@ var ContactModuleSubtitle = ({ children }) => {
756
823
  };
757
824
 
758
825
  // src/widgets/ContactModule/ContactModule.module.scss
759
- var ContactModule_module_default = {};
826
+ var ContactModule_module_default = {
827
+ "contact-module": "ContactModule_module_contact-module",
828
+ container: "ContactModule_module_container",
829
+ wrapper: "ContactModule_module_wrapper",
830
+ content: "ContactModule_module_content",
831
+ "cta-wrapper": "ContactModule_module_cta-wrapper",
832
+ cta: "ContactModule_module_cta",
833
+ title: "ContactModule_module_title",
834
+ image: "ContactModule_module_image"
835
+ };
760
836
  var ContactModule = ({
761
837
  className,
762
838
  children,
@@ -800,9 +876,36 @@ var ContactModule2 = Object.assign(ContactModule, {
800
876
  Title: ContactModuleTitle,
801
877
  Subtitle: ContactModuleSubtitle
802
878
  });
879
+ var HeroBannerTitle = ({ children }) => {
880
+ return /* @__PURE__ */ jsx(Fragment, { children });
881
+ };
882
+ var HeroBannerSubtitle = ({ children }) => {
883
+ return /* @__PURE__ */ jsx(Fragment, { children });
884
+ };
803
885
 
804
886
  // src/widgets/HeroBanner/HeroBanner.module.scss
805
- var HeroBanner_module_default = {};
887
+ var HeroBanner_module_default = {
888
+ heroBanner: "HeroBanner_module_heroBanner",
889
+ mainHeroBanner: "HeroBanner_module_mainHeroBanner",
890
+ container: "HeroBanner_module_container",
891
+ bannerPodcast: "HeroBanner_module_bannerPodcast",
892
+ banner: "HeroBanner_module_banner",
893
+ text: "HeroBanner_module_text",
894
+ title: "HeroBanner_module_title",
895
+ subtitle: "HeroBanner_module_subtitle",
896
+ logoWrapper: "HeroBanner_module_logoWrapper",
897
+ logo: "HeroBanner_module_logo",
898
+ horizontalGradient: "HeroBanner_module_horizontalGradient",
899
+ lensCrafters: "HeroBanner_module_lensCrafters",
900
+ forEyes: "HeroBanner_module_forEyes",
901
+ optical: "HeroBanner_module_optical",
902
+ pearleVision: "HeroBanner_module_pearleVision",
903
+ ctaContainer: "HeroBanner_module_ctaContainer",
904
+ brandsStrip: "HeroBanner_module_brandsStrip",
905
+ backgroundImage: "HeroBanner_module_backgroundImage",
906
+ scrollDown: "HeroBanner_module_scrollDown",
907
+ arrow: "HeroBanner_module_arrow"
908
+ };
806
909
  var HeroBanner = ({
807
910
  className,
808
911
  variant = "pageHeroBanner",
@@ -811,22 +914,30 @@ var HeroBanner = ({
811
914
  backgroundImage,
812
915
  logo,
813
916
  cta,
814
- brands
917
+ brands,
918
+ children
815
919
  }) => {
920
+ var _a, _b;
816
921
  const { is } = useViewPort_default();
817
922
  const isTabletBelow = is("tablet", "below");
818
923
  const isDesktopBelow = is("desktop", "below");
819
924
  const vMainHeroBanner = variant === "mainHeroBanner";
820
925
  const vBannerPodcast = variant === "bannerPodcast";
821
926
  const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
927
+ const slots = resolveCompoundSlots(children, {
928
+ title: HeroBannerTitle,
929
+ subtitle: HeroBannerSubtitle
930
+ });
931
+ const titleNode = (_a = slots.title) != null ? _a : title;
932
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
822
933
  return /* @__PURE__ */ jsxs("div", { className: clsx3(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
823
934
  /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.container, children: [
824
935
  /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.banner, children: [
825
- (title || subtitle) && /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.text, children: [
826
- title && /* @__PURE__ */ jsx("h1", { className: clsx3(HeroBanner_module_default.title, "h1"), children: title }),
827
- subtitle && /* @__PURE__ */ jsx("div", { className: clsx3(HeroBanner_module_default.subtitle, "subtitle"), children: subtitle })
936
+ (titleNode || subtitleNode) && /* @__PURE__ */ jsxs("div", { className: HeroBanner_module_default.text, children: [
937
+ titleNode && /* @__PURE__ */ jsx("h1", { className: clsx3(HeroBanner_module_default.title, "h1"), children: titleNode }),
938
+ subtitleNode && /* @__PURE__ */ jsx("div", { className: clsx3(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
828
939
  ] }),
829
- cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.map((cta2, key) => {
940
+ cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
830
941
  return /* @__PURE__ */ jsx(
831
942
  Button,
832
943
  {
@@ -861,6 +972,12 @@ var HeroBanner = ({
861
972
  !vBannerPodcast && /* @__PURE__ */ jsx("div", { className: HeroBanner_module_default.scrollDown, children: /* @__PURE__ */ jsx(Icon, { type: "downChevronBlack", className: HeroBanner_module_default.arrow }) })
862
973
  ] });
863
974
  };
975
+
976
+ // src/widgets/HeroBanner/index.ts
977
+ var HeroBanner2 = Object.assign(HeroBanner, {
978
+ Title: HeroBannerTitle,
979
+ Subtitle: HeroBannerSubtitle
980
+ });
864
981
  var MiniBannerTitle = ({ children }) => {
865
982
  return /* @__PURE__ */ jsx(Fragment, { children });
866
983
  };
@@ -869,7 +986,12 @@ var MiniBannerSubtitle = ({ children }) => {
869
986
  };
870
987
 
871
988
  // src/widgets/MiniBanner/MiniBanner.module.scss
872
- var MiniBanner_module_default = {};
989
+ var MiniBanner_module_default = {
990
+ minibanner: "MiniBanner_module_minibanner",
991
+ background: "MiniBanner_module_background",
992
+ container: "MiniBanner_module_container",
993
+ miniBannerNoBG: "MiniBanner_module_miniBannerNoBG"
994
+ };
873
995
  var MiniBanner = ({
874
996
  className,
875
997
  variant = "default",
@@ -909,7 +1031,17 @@ var MiniSectionCtaSubtitle = ({ children }) => {
909
1031
  };
910
1032
 
911
1033
  // src/widgets/MiniSectionCta/MiniSectionCta.module.scss
912
- var MiniSectionCta_module_default = {};
1034
+ var MiniSectionCta_module_default = {
1035
+ miniSectionCta: "MiniSectionCta_module_miniSectionCta",
1036
+ container: "MiniSectionCta_module_container",
1037
+ col: "MiniSectionCta_module_col",
1038
+ BgColorBlack: "MiniSectionCta_module_BgColorBlack",
1039
+ infoCallout: "MiniSectionCta_module_infoCallout",
1040
+ miniTextCenterCta: "MiniSectionCta_module_miniTextCenterCta",
1041
+ cta: "MiniSectionCta_module_cta",
1042
+ BgColorGrey: "MiniSectionCta_module_BgColorGrey",
1043
+ subtitle: "MiniSectionCta_module_subtitle"
1044
+ };
913
1045
  var MiniSectionCta = ({
914
1046
  className,
915
1047
  variant = "headerCTA",
@@ -960,7 +1092,16 @@ var PracticePathCardsTitle = ({ children }) => {
960
1092
  };
961
1093
 
962
1094
  // src/widgets/PracticePathCards/PracticePathCards.module.scss
963
- var PracticePathCards_module_default = {};
1095
+ var PracticePathCards_module_default = {
1096
+ "practice-path-cards": "PracticePathCards_module_practice-path-cards",
1097
+ container: "PracticePathCards_module_container",
1098
+ wrapper: "PracticePathCards_module_wrapper",
1099
+ ctaWrapper: "PracticePathCards_module_ctaWrapper",
1100
+ cta: "PracticePathCards_module_cta",
1101
+ content: "PracticePathCards_module_content",
1102
+ cards: "PracticePathCards_module_cards",
1103
+ card: "PracticePathCards_module_card"
1104
+ };
964
1105
  var PracticePathCards = ({
965
1106
  className,
966
1107
  children,
@@ -1012,7 +1153,14 @@ var Teaser5050With3TextTitle = ({ children }) => {
1012
1153
  };
1013
1154
 
1014
1155
  // src/widgets/Teaser5050With3Text/Teaser5050With3Text.module.scss
1015
- var Teaser5050With3Text_module_default = {};
1156
+ var Teaser5050With3Text_module_default = {
1157
+ "teaser5050-3text": "Teaser5050With3Text_module_teaser5050-3text",
1158
+ container: "Teaser5050With3Text_module_container",
1159
+ content: "Teaser5050With3Text_module_content",
1160
+ right: "Teaser5050With3Text_module_right",
1161
+ title: "Teaser5050With3Text_module_title",
1162
+ image: "Teaser5050With3Text_module_image"
1163
+ };
1016
1164
  var Teaser5050With3Text = ({
1017
1165
  className,
1018
1166
  variant = "left",
@@ -1039,15 +1187,23 @@ var Teaser5050With3Text = ({
1039
1187
  var Teaser5050With3Text2 = Object.assign(Teaser5050With3Text, {
1040
1188
  Title: Teaser5050With3TextTitle
1041
1189
  });
1042
-
1043
- // src/widgets/Teaser5050WithCta/Teaser5050WithCta.module.scss
1044
- var Teaser5050WithCta_module_default = {};
1045
1190
  var Teaser5050WithCtaTitle = ({ children }) => {
1046
1191
  return /* @__PURE__ */ jsx(Fragment, { children });
1047
1192
  };
1048
1193
  var Teaser5050WithCtaSubtitle = ({ children }) => {
1049
1194
  return /* @__PURE__ */ jsx(Fragment, { children });
1050
1195
  };
1196
+
1197
+ // src/widgets/Teaser5050WithCta/Teaser5050WithCta.module.scss
1198
+ var Teaser5050WithCta_module_default = {
1199
+ teaser5050: "Teaser5050WithCta_module_teaser5050",
1200
+ container: "Teaser5050WithCta_module_container",
1201
+ right: "Teaser5050WithCta_module_right",
1202
+ wrapper: "Teaser5050WithCta_module_wrapper",
1203
+ title: "Teaser5050WithCta_module_title",
1204
+ image: "Teaser5050WithCta_module_image",
1205
+ cta: "Teaser5050WithCta_module_cta"
1206
+ };
1051
1207
  var Teaser5050WithCta = ({
1052
1208
  className,
1053
1209
  variant = "left",
@@ -1085,6 +1241,12 @@ var Teaser5050WithCta = ({
1085
1241
  ] }) });
1086
1242
  };
1087
1243
 
1088
- export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, HeroBanner, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta, svgs };
1244
+ // src/widgets/Teaser5050WithCta/index.ts
1245
+ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
1246
+ Title: Teaser5050WithCtaTitle,
1247
+ Subtitle: Teaser5050WithCtaSubtitle
1248
+ });
1249
+
1250
+ export { Anchor, BrandsStrip, Button, Card2 as Card, CardCollection2 as CardCollection, ConditionalWrapper, ContactModule2 as ContactModule, Container, CountingCard2 as CountingCard, HeroBanner2 as HeroBanner, Icon, InfoCard2 as InfoCard, MiniBanner2 as MiniBanner, MiniSectionCta2 as MiniSectionCta, Pagination, Picture, PracticeCard, PracticePathCards2 as PracticePathCards, Teaser5050With3Text2 as Teaser5050With3Text, Teaser5050WithCta2 as Teaser5050WithCta, svgs };
1089
1251
  //# sourceMappingURL=index.mjs.map
1090
1252
  //# sourceMappingURL=index.mjs.map