@digital-b2c/coreui-kit 0.2.0 → 0.2.1

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/LICENSE.txt CHANGED
@@ -1,21 +1,21 @@
1
- MIT License
2
-
3
- Copyright (c) 2026 Luxottica
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Luxottica
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/index.cjs CHANGED
@@ -42,7 +42,10 @@ var __objRest = (source, exclude) => {
42
42
  };
43
43
 
44
44
  // src/components/Picture/Picture.module.scss
45
- var Picture_module_default = {};
45
+ var Picture_module_default = {
46
+ "image-desktop": "Picture_module_image-desktop",
47
+ "image-mobile": "Picture_module_image-mobile"
48
+ };
46
49
  var Picture = (_a) => {
47
50
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
48
51
  var _b2, _c;
@@ -317,7 +320,20 @@ var Icon = React__default.default.memo(
317
320
  Icon.displayName = "Icon";
318
321
 
319
322
  // src/components/Button/Button.module.scss
320
- var Button_module_default = {};
323
+ var Button_module_default = {
324
+ button: "Button_module_button",
325
+ fullWidth: "Button_module_fullWidth",
326
+ primary: "Button_module_primary",
327
+ secondary: "Button_module_secondary",
328
+ ghost: "Button_module_ghost",
329
+ nofill: "Button_module_nofill",
330
+ nofillblack: "Button_module_nofillblack",
331
+ grey: "Button_module_grey",
332
+ shiny: "Button_module_shiny",
333
+ rotateGradient: "Button_module_rotateGradient",
334
+ icon: "Button_module_icon",
335
+ logo: "Button_module_logo"
336
+ };
321
337
  var Button = (_a) => {
322
338
  var _b = _a, {
323
339
  className,
@@ -439,7 +455,22 @@ var useViewPort = () => {
439
455
  var useViewPort_default = useViewPort;
440
456
 
441
457
  // src/components/BrandsStrip/BrandsStrip.module.scss
442
- var BrandsStrip_module_default = {};
458
+ var BrandsStrip_module_default = {
459
+ brandsStrip: "BrandsStrip_module_brandsStrip",
460
+ light: "BrandsStrip_module_light",
461
+ dark: "BrandsStrip_module_dark",
462
+ small: "BrandsStrip_module_small",
463
+ logoWrapper: "BrandsStrip_module_logoWrapper",
464
+ container: "BrandsStrip_module_container",
465
+ title: "BrandsStrip_module_title",
466
+ blurred: "BrandsStrip_module_blurred",
467
+ logos: "BrandsStrip_module_logos",
468
+ marquee: "BrandsStrip_module_marquee",
469
+ scrollIndividual: "BrandsStrip_module_scrollIndividual",
470
+ paused: "BrandsStrip_module_paused",
471
+ logo: "BrandsStrip_module_logo",
472
+ cta: "BrandsStrip_module_cta"
473
+ };
443
474
  var BrandsStrip = ({
444
475
  className,
445
476
  variant = "light",
@@ -514,7 +545,9 @@ function resolveCompoundSlots(children, slots) {
514
545
  }
515
546
 
516
547
  // src/components/Card/Card.module.scss
517
- var Card_module_default = {};
548
+ var Card_module_default = {
549
+ card: "Card_module_card"
550
+ };
518
551
  var Card = ({ className, title, subtitle, cta, icon, children }) => {
519
552
  var _a, _b;
520
553
  const slots = resolveCompoundSlots(children, {
@@ -552,7 +585,11 @@ var CountingCardTitle = ({ children }) => {
552
585
  };
553
586
 
554
587
  // src/components/CountingCard/CountingCard.module.scss
555
- var CountingCard_module_default = {};
588
+ var CountingCard_module_default = {
589
+ "counting-card": "CountingCard_module_counting-card",
590
+ count: "CountingCard_module_count",
591
+ logo: "CountingCard_module_logo"
592
+ };
556
593
  var CountingCard = ({ className, title, count, image, children }) => {
557
594
  var _a;
558
595
  const slots = resolveCompoundSlots(children, {
@@ -580,7 +617,12 @@ var InfoCardSubtitle = ({ children }) => {
580
617
  };
581
618
 
582
619
  // src/components/InfoCard/InfoCard.module.scss
583
- var InfoCard_module_default = {};
620
+ var InfoCard_module_default = {
621
+ "info-card": "InfoCard_module_info-card",
622
+ header: "InfoCard_module_header",
623
+ badge: "InfoCard_module_badge",
624
+ hasIcon: "InfoCard_module_hasIcon"
625
+ };
584
626
  var InfoCard = ({ className, title, subtitle, icon, badge, children }) => {
585
627
  var _a, _b;
586
628
  const slots = resolveCompoundSlots(children, {
@@ -605,7 +647,15 @@ var InfoCard2 = Object.assign(InfoCard, {
605
647
  });
606
648
 
607
649
  // src/components/Pagination/Pagination.module.scss
608
- var Pagination_module_default = {};
650
+ var Pagination_module_default = {
651
+ pagination: "Pagination_module_pagination",
652
+ next: "Pagination_module_next",
653
+ prev: "Pagination_module_prev",
654
+ pages: "Pagination_module_pages",
655
+ page: "Pagination_module_page",
656
+ active: "Pagination_module_active",
657
+ number: "Pagination_module_number"
658
+ };
609
659
  var Pagination = ({
610
660
  className,
611
661
  totalPages,
@@ -686,14 +736,25 @@ var Pagination = ({
686
736
  };
687
737
 
688
738
  // src/components/primitives/Container/Container.module.scss
689
- var Container_module_default = {};
739
+ var Container_module_default = {
740
+ container: "Container_module_container"
741
+ };
690
742
  var Container = (_a) => {
691
743
  var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
692
744
  return /* @__PURE__ */ jsxRuntime.jsx("div", __spreadProps(__spreadValues({ className: clsx3__default.default(Container_module_default.container, className) }, props), { children }));
693
745
  };
694
746
 
695
747
  // src/components/PracticeCard/PracticeCard.module.scss
696
- var PracticeCard_module_default = {};
748
+ var PracticeCard_module_default = {
749
+ "practice-card": "PracticeCard_module_practice-card",
750
+ wrapper: "PracticeCard_module_wrapper",
751
+ background: "PracticeCard_module_background",
752
+ container: "PracticeCard_module_container",
753
+ title: "PracticeCard_module_title",
754
+ cta: "PracticeCard_module_cta",
755
+ ctaRest: "PracticeCard_module_ctaRest",
756
+ ctaHover: "PracticeCard_module_ctaHover"
757
+ };
697
758
  var PracticeCard = ({ className, title, cta, image }) => {
698
759
  const { url: href, isExternal } = cta != null ? cta : {};
699
760
  return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(PracticeCard_module_default["practice-card"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(
@@ -725,7 +786,13 @@ var CardCollectionSubtitle = ({ children }) => {
725
786
  };
726
787
 
727
788
  // src/widgets/CardCollection/CardCollection.module.scss
728
- var CardCollection_module_default = {};
789
+ var CardCollection_module_default = {
790
+ "card-collection": "CardCollection_module_card-collection",
791
+ content: "CardCollection_module_content",
792
+ wrapper: "CardCollection_module_wrapper",
793
+ threeCols: "CardCollection_module_threeCols",
794
+ examCard: "CardCollection_module_examCard"
795
+ };
729
796
  var CardCollection = ({
730
797
  className,
731
798
  variant = "default",
@@ -763,7 +830,16 @@ var ContactModuleSubtitle = ({ children }) => {
763
830
  };
764
831
 
765
832
  // src/widgets/ContactModule/ContactModule.module.scss
766
- var ContactModule_module_default = {};
833
+ var ContactModule_module_default = {
834
+ "contact-module": "ContactModule_module_contact-module",
835
+ container: "ContactModule_module_container",
836
+ wrapper: "ContactModule_module_wrapper",
837
+ content: "ContactModule_module_content",
838
+ "cta-wrapper": "ContactModule_module_cta-wrapper",
839
+ cta: "ContactModule_module_cta",
840
+ title: "ContactModule_module_title",
841
+ image: "ContactModule_module_image"
842
+ };
767
843
  var ContactModule = ({
768
844
  className,
769
845
  children,
@@ -807,9 +883,36 @@ var ContactModule2 = Object.assign(ContactModule, {
807
883
  Title: ContactModuleTitle,
808
884
  Subtitle: ContactModuleSubtitle
809
885
  });
886
+ var HeroBannerTitle = ({ children }) => {
887
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
888
+ };
889
+ var HeroBannerSubtitle = ({ children }) => {
890
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
891
+ };
810
892
 
811
893
  // src/widgets/HeroBanner/HeroBanner.module.scss
812
- var HeroBanner_module_default = {};
894
+ var HeroBanner_module_default = {
895
+ heroBanner: "HeroBanner_module_heroBanner",
896
+ mainHeroBanner: "HeroBanner_module_mainHeroBanner",
897
+ container: "HeroBanner_module_container",
898
+ bannerPodcast: "HeroBanner_module_bannerPodcast",
899
+ banner: "HeroBanner_module_banner",
900
+ text: "HeroBanner_module_text",
901
+ title: "HeroBanner_module_title",
902
+ subtitle: "HeroBanner_module_subtitle",
903
+ logoWrapper: "HeroBanner_module_logoWrapper",
904
+ logo: "HeroBanner_module_logo",
905
+ horizontalGradient: "HeroBanner_module_horizontalGradient",
906
+ lensCrafters: "HeroBanner_module_lensCrafters",
907
+ forEyes: "HeroBanner_module_forEyes",
908
+ optical: "HeroBanner_module_optical",
909
+ pearleVision: "HeroBanner_module_pearleVision",
910
+ ctaContainer: "HeroBanner_module_ctaContainer",
911
+ brandsStrip: "HeroBanner_module_brandsStrip",
912
+ backgroundImage: "HeroBanner_module_backgroundImage",
913
+ scrollDown: "HeroBanner_module_scrollDown",
914
+ arrow: "HeroBanner_module_arrow"
915
+ };
813
916
  var HeroBanner = ({
814
917
  className,
815
918
  variant = "pageHeroBanner",
@@ -818,22 +921,30 @@ var HeroBanner = ({
818
921
  backgroundImage,
819
922
  logo,
820
923
  cta,
821
- brands
924
+ brands,
925
+ children
822
926
  }) => {
927
+ var _a, _b;
823
928
  const { is } = useViewPort_default();
824
929
  const isTabletBelow = is("tablet", "below");
825
930
  const isDesktopBelow = is("desktop", "below");
826
931
  const vMainHeroBanner = variant === "mainHeroBanner";
827
932
  const vBannerPodcast = variant === "bannerPodcast";
828
933
  const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
934
+ const slots = resolveCompoundSlots(children, {
935
+ title: HeroBannerTitle,
936
+ subtitle: HeroBannerSubtitle
937
+ });
938
+ const titleNode = (_a = slots.title) != null ? _a : title;
939
+ const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
829
940
  return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx3__default.default(HeroBanner_module_default.heroBanner, HeroBanner_module_default[variant], className), children: [
830
941
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.container, children: [
831
942
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.banner, children: [
832
- (title || subtitle) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
833
- title && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: clsx3__default.default(HeroBanner_module_default.title, "h1"), children: title }),
834
- subtitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(HeroBanner_module_default.subtitle, "subtitle"), children: subtitle })
943
+ (titleNode || subtitleNode) && /* @__PURE__ */ jsxRuntime.jsxs("div", { className: HeroBanner_module_default.text, children: [
944
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx("h1", { className: clsx3__default.default(HeroBanner_module_default.title, "h1"), children: titleNode }),
945
+ subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx3__default.default(HeroBanner_module_default.subtitle, "subtitle"), children: subtitleNode })
835
946
  ] }),
836
- cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.map((cta2, key) => {
947
+ cta && cta.length > 0 && !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.ctaContainer, children: cta.slice(0, 2).map((cta2, key) => {
837
948
  return /* @__PURE__ */ jsxRuntime.jsx(
838
949
  Button,
839
950
  {
@@ -868,6 +979,12 @@ var HeroBanner = ({
868
979
  !vBannerPodcast && /* @__PURE__ */ jsxRuntime.jsx("div", { className: HeroBanner_module_default.scrollDown, children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "downChevronBlack", className: HeroBanner_module_default.arrow }) })
869
980
  ] });
870
981
  };
982
+
983
+ // src/widgets/HeroBanner/index.ts
984
+ var HeroBanner2 = Object.assign(HeroBanner, {
985
+ Title: HeroBannerTitle,
986
+ Subtitle: HeroBannerSubtitle
987
+ });
871
988
  var MiniBannerTitle = ({ children }) => {
872
989
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
873
990
  };
@@ -876,7 +993,12 @@ var MiniBannerSubtitle = ({ children }) => {
876
993
  };
877
994
 
878
995
  // src/widgets/MiniBanner/MiniBanner.module.scss
879
- var MiniBanner_module_default = {};
996
+ var MiniBanner_module_default = {
997
+ minibanner: "MiniBanner_module_minibanner",
998
+ background: "MiniBanner_module_background",
999
+ container: "MiniBanner_module_container",
1000
+ miniBannerNoBG: "MiniBanner_module_miniBannerNoBG"
1001
+ };
880
1002
  var MiniBanner = ({
881
1003
  className,
882
1004
  variant = "default",
@@ -916,7 +1038,17 @@ var MiniSectionCtaSubtitle = ({ children }) => {
916
1038
  };
917
1039
 
918
1040
  // src/widgets/MiniSectionCta/MiniSectionCta.module.scss
919
- var MiniSectionCta_module_default = {};
1041
+ var MiniSectionCta_module_default = {
1042
+ miniSectionCta: "MiniSectionCta_module_miniSectionCta",
1043
+ container: "MiniSectionCta_module_container",
1044
+ col: "MiniSectionCta_module_col",
1045
+ BgColorBlack: "MiniSectionCta_module_BgColorBlack",
1046
+ infoCallout: "MiniSectionCta_module_infoCallout",
1047
+ miniTextCenterCta: "MiniSectionCta_module_miniTextCenterCta",
1048
+ cta: "MiniSectionCta_module_cta",
1049
+ BgColorGrey: "MiniSectionCta_module_BgColorGrey",
1050
+ subtitle: "MiniSectionCta_module_subtitle"
1051
+ };
920
1052
  var MiniSectionCta = ({
921
1053
  className,
922
1054
  variant = "headerCTA",
@@ -967,7 +1099,16 @@ var PracticePathCardsTitle = ({ children }) => {
967
1099
  };
968
1100
 
969
1101
  // src/widgets/PracticePathCards/PracticePathCards.module.scss
970
- var PracticePathCards_module_default = {};
1102
+ var PracticePathCards_module_default = {
1103
+ "practice-path-cards": "PracticePathCards_module_practice-path-cards",
1104
+ container: "PracticePathCards_module_container",
1105
+ wrapper: "PracticePathCards_module_wrapper",
1106
+ ctaWrapper: "PracticePathCards_module_ctaWrapper",
1107
+ cta: "PracticePathCards_module_cta",
1108
+ content: "PracticePathCards_module_content",
1109
+ cards: "PracticePathCards_module_cards",
1110
+ card: "PracticePathCards_module_card"
1111
+ };
971
1112
  var PracticePathCards = ({
972
1113
  className,
973
1114
  children,
@@ -1019,7 +1160,14 @@ var Teaser5050With3TextTitle = ({ children }) => {
1019
1160
  };
1020
1161
 
1021
1162
  // src/widgets/Teaser5050With3Text/Teaser5050With3Text.module.scss
1022
- var Teaser5050With3Text_module_default = {};
1163
+ var Teaser5050With3Text_module_default = {
1164
+ "teaser5050-3text": "Teaser5050With3Text_module_teaser5050-3text",
1165
+ container: "Teaser5050With3Text_module_container",
1166
+ content: "Teaser5050With3Text_module_content",
1167
+ right: "Teaser5050With3Text_module_right",
1168
+ title: "Teaser5050With3Text_module_title",
1169
+ image: "Teaser5050With3Text_module_image"
1170
+ };
1023
1171
  var Teaser5050With3Text = ({
1024
1172
  className,
1025
1173
  variant = "left",
@@ -1046,15 +1194,23 @@ var Teaser5050With3Text = ({
1046
1194
  var Teaser5050With3Text2 = Object.assign(Teaser5050With3Text, {
1047
1195
  Title: Teaser5050With3TextTitle
1048
1196
  });
1049
-
1050
- // src/widgets/Teaser5050WithCta/Teaser5050WithCta.module.scss
1051
- var Teaser5050WithCta_module_default = {};
1052
1197
  var Teaser5050WithCtaTitle = ({ children }) => {
1053
1198
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1054
1199
  };
1055
1200
  var Teaser5050WithCtaSubtitle = ({ children }) => {
1056
1201
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1057
1202
  };
1203
+
1204
+ // src/widgets/Teaser5050WithCta/Teaser5050WithCta.module.scss
1205
+ var Teaser5050WithCta_module_default = {
1206
+ teaser5050: "Teaser5050WithCta_module_teaser5050",
1207
+ container: "Teaser5050WithCta_module_container",
1208
+ right: "Teaser5050WithCta_module_right",
1209
+ wrapper: "Teaser5050WithCta_module_wrapper",
1210
+ title: "Teaser5050WithCta_module_title",
1211
+ image: "Teaser5050WithCta_module_image",
1212
+ cta: "Teaser5050WithCta_module_cta"
1213
+ };
1058
1214
  var Teaser5050WithCta = ({
1059
1215
  className,
1060
1216
  variant = "left",
@@ -1092,6 +1248,12 @@ var Teaser5050WithCta = ({
1092
1248
  ] }) });
1093
1249
  };
1094
1250
 
1251
+ // src/widgets/Teaser5050WithCta/index.ts
1252
+ var Teaser5050WithCta2 = Object.assign(Teaser5050WithCta, {
1253
+ Title: Teaser5050WithCtaTitle,
1254
+ Subtitle: Teaser5050WithCtaSubtitle
1255
+ });
1256
+
1095
1257
  exports.Anchor = Anchor;
1096
1258
  exports.BrandsStrip = BrandsStrip;
1097
1259
  exports.Button = Button;
@@ -1101,7 +1263,7 @@ exports.ConditionalWrapper = ConditionalWrapper;
1101
1263
  exports.ContactModule = ContactModule2;
1102
1264
  exports.Container = Container;
1103
1265
  exports.CountingCard = CountingCard2;
1104
- exports.HeroBanner = HeroBanner;
1266
+ exports.HeroBanner = HeroBanner2;
1105
1267
  exports.Icon = Icon;
1106
1268
  exports.InfoCard = InfoCard2;
1107
1269
  exports.MiniBanner = MiniBanner2;
@@ -1111,7 +1273,7 @@ exports.Picture = Picture;
1111
1273
  exports.PracticeCard = PracticeCard;
1112
1274
  exports.PracticePathCards = PracticePathCards2;
1113
1275
  exports.Teaser5050With3Text = Teaser5050With3Text2;
1114
- exports.Teaser5050WithCta = Teaser5050WithCta;
1276
+ exports.Teaser5050WithCta = Teaser5050WithCta2;
1115
1277
  exports.svgs = svgs;
1116
1278
  //# sourceMappingURL=index.cjs.map
1117
1279
  //# sourceMappingURL=index.cjs.map