@digital-b2c/coreui-kit 0.3.4 → 0.3.6

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/README.md CHANGED
@@ -1,52 +1,52 @@
1
- # CoreUI Kit
2
-
3
- A React‑based design system and component library.
4
-
5
- ## 🚀 Getting Started
6
-
7
- Install
8
-
9
- ```bash
10
- npm install
11
- ```
12
-
13
- Development
14
-
15
- - Run the build in watch mode
16
-
17
- ```bash
18
- npm run dev
19
- ```
20
-
21
- Start Storybook
22
-
23
- ```bash
24
- npm run storybook
25
- ```
26
-
27
- Run tests
28
-
29
- ```bash
30
- npm test
31
- ```
32
-
33
- Lint/format
34
-
35
- ```bash
36
- npm run lint
37
- ```
38
-
39
- ## 🛠️ Usage
40
-
41
- Import components in other projects:
42
-
43
- ```ts
44
- import '@digital-b2c/coreui-kit/styles.css'
45
-
46
- import { MiniSectionCta } from '@digital-b2c/coreui-kit'
47
-
48
- <MiniSectionCta>
49
- <MiniSectionCta.Title>Header</MiniSectionCta.Title>
50
- <MiniSectionCta.Subtitle>Description</MiniSectionCta.Subtitle>
51
- </MiniSectionCta>
52
- ```
1
+ # CoreUI Kit
2
+
3
+ A React‑based design system and component library.
4
+
5
+ ## 🚀 Getting Started
6
+
7
+ Install
8
+
9
+ ```bash
10
+ npm install
11
+ ```
12
+
13
+ Development
14
+
15
+ - Run the build in watch mode
16
+
17
+ ```bash
18
+ npm run dev
19
+ ```
20
+
21
+ Start Storybook
22
+
23
+ ```bash
24
+ npm run storybook
25
+ ```
26
+
27
+ Run tests
28
+
29
+ ```bash
30
+ npm test
31
+ ```
32
+
33
+ Lint/format
34
+
35
+ ```bash
36
+ npm run lint
37
+ ```
38
+
39
+ ## 🛠️ Usage
40
+
41
+ Import components in other projects:
42
+
43
+ ```ts
44
+ import '@digital-b2c/coreui-kit/styles.css'
45
+
46
+ import { MiniSectionCta } from '@digital-b2c/coreui-kit'
47
+
48
+ <MiniSectionCta>
49
+ <MiniSectionCta.Title>Header</MiniSectionCta.Title>
50
+ <MiniSectionCta.Subtitle>Description</MiniSectionCta.Subtitle>
51
+ </MiniSectionCta>
52
+ ```
package/dist/index.cjs CHANGED
@@ -890,11 +890,11 @@ var ContactModule_module_default = {
890
890
  container: "ContactModule_module_container",
891
891
  wrapper: "ContactModule_module_wrapper",
892
892
  content: "ContactModule_module_content",
893
- "cta-wrapper": "ContactModule_module_cta-wrapper",
894
- cta: "ContactModule_module_cta",
895
893
  title: "ContactModule_module_title",
896
894
  subtitle: "ContactModule_module_subtitle",
897
- image: "ContactModule_module_image"
895
+ "cta-wrapper": "ContactModule_module_cta-wrapper",
896
+ image: "ContactModule_module_image",
897
+ cta: "ContactModule_module_cta"
898
898
  };
899
899
  var ContactModule = ({
900
900
  className,
@@ -965,7 +965,7 @@ var HeroBannerSubtitle = ({ children }) => {
965
965
  // src/widgets/HeroBanner/HeroBanner.module.scss
966
966
  var HeroBanner_module_default = {
967
967
  heroBanner: "HeroBanner_module_heroBanner",
968
- mainHeroBanner: "HeroBanner_module_mainHeroBanner",
968
+ pageHeroBanner: "HeroBanner_module_pageHeroBanner",
969
969
  container: "HeroBanner_module_container",
970
970
  bannerPodcast: "HeroBanner_module_bannerPodcast",
971
971
  banner: "HeroBanner_module_banner",
@@ -1000,7 +1000,7 @@ var HeroBanner = ({
1000
1000
  const { is } = useViewPort_default();
1001
1001
  const isTabletBelow = is("tablet", "below");
1002
1002
  const isDesktopBelow = is("desktop", "below");
1003
- const vMainHeroBanner = variant === "mainHeroBanner";
1003
+ const vPageHeroBanner = variant === "pageHeroBanner";
1004
1004
  const vBannerPodcast = variant === "bannerPodcast";
1005
1005
  const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
1006
1006
  const slots = resolveCompoundSlots(children, {
@@ -1022,8 +1022,9 @@ var HeroBanner = ({
1022
1022
  {
1023
1023
  href: cta2.url,
1024
1024
  isExternal: cta2.isExternal,
1025
- variant: key % 2 ? vMainHeroBanner && !isTabletBelow ? "nofill" : "grey" : "primary",
1025
+ variant: key % 2 ? vPageHeroBanner && !isTabletBelow ? "nofill" : "grey" : "primary",
1026
1026
  fullWidth: isTabletBelow,
1027
+ logo: cta2.logo,
1027
1028
  children: cta2.label
1028
1029
  },
1029
1030
  key
@@ -1036,7 +1037,7 @@ var HeroBanner = ({
1036
1037
  __spreadValues({
1037
1038
  className: HeroBanner_module_default.brandsStrip,
1038
1039
  variant: "light",
1039
- size: isTabletBelow || vMainHeroBanner ? "small" : void 0,
1040
+ size: isTabletBelow || vPageHeroBanner ? "small" : void 0,
1040
1041
  animate: animated
1041
1042
  }, brands)
1042
1043
  ),
@@ -1283,7 +1284,7 @@ var Teaser5050WithCtaSubtitle = ({ children }) => {
1283
1284
  var Teaser5050WithCta_module_default = {
1284
1285
  teaser5050: "Teaser5050WithCta_module_teaser5050",
1285
1286
  container: "Teaser5050WithCta_module_container",
1286
- right: "Teaser5050WithCta_module_right",
1287
+ left: "Teaser5050WithCta_module_left",
1287
1288
  wrapper: "Teaser5050WithCta_module_wrapper",
1288
1289
  title: "Teaser5050WithCta_module_title",
1289
1290
  image: "Teaser5050WithCta_module_image",