@digital-b2c/coreui-kit 0.21.11 → 0.22.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/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
@@ -3474,8 +3474,10 @@ var MiniSectionCta_module_default = {
3474
3474
  infoCallout: "MiniSectionCta_module_infoCallout",
3475
3475
  subtitle: "MiniSectionCta_module_subtitle",
3476
3476
  miniTextCenterCta: "MiniSectionCta_module_miniTextCenterCta",
3477
+ bgGradientGrey: "MiniSectionCta_module_bgGradientGrey",
3477
3478
  light: "MiniSectionCta_module_light",
3478
3479
  gray: "MiniSectionCta_module_gray",
3480
+ gradientGrey: "MiniSectionCta_module_gradientGrey",
3479
3481
  dark: "MiniSectionCta_module_dark",
3480
3482
  cta: "MiniSectionCta_module_cta",
3481
3483
  BgColorGrey: "MiniSectionCta_module_BgColorGrey"
@@ -3504,6 +3506,7 @@ var MiniSectionCta = ({
3504
3506
  className: clsx52__default.default(MiniSectionCta_module_default.miniSectionCta, MiniSectionCta_module_default[variant], theme && MiniSectionCta_module_default[theme], className),
3505
3507
  style: __spreadValues({}, hasModuleStyles && {
3506
3508
  "--custom-background-color": moduleStyles.backgroundColor,
3509
+ "--custom-mobile-background-color": moduleStyles.mobileBackgroundColor,
3507
3510
  "--custom-color": moduleStyles.color
3508
3511
  }),
3509
3512
  children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: MiniSectionCta_module_default.wrapper, children: [
@@ -3523,7 +3526,7 @@ var MiniSectionCta = ({
3523
3526
  className: MiniSectionCta_module_default.cta,
3524
3527
  href: cta.url,
3525
3528
  isExternal: cta.isExternal,
3526
- variant: variant === "BgColorBlack" ? "shiny" : "primary",
3529
+ variant: variant === "BgColorBlack" ? "shiny" : variant === "bgGradientGrey" ? "secondary" : "primary",
3527
3530
  icon: variant === "miniTextCenterCta" ? "tiltedRightWhite" : void 0,
3528
3531
  children: cta.label
3529
3532
  }
@@ -5714,6 +5717,8 @@ var TextCenterWithMedia2 = Object.assign(TextCenterWithMedia, {
5714
5717
 
5715
5718
  // src/widgets/QuoteSectionBlock/QuoteSectionBlock.module.scss
5716
5719
  var QuoteSectionBlock_module_default = {
5720
+ bodyText: "QuoteSectionBlock_module_bodyText",
5721
+ displayName: "QuoteSectionBlock_module_displayName",
5717
5722
  quoteSectionBlock: "QuoteSectionBlock_module_quoteSectionBlock",
5718
5723
  inner: "QuoteSectionBlock_module_inner",
5719
5724
  title: "QuoteSectionBlock_module_title",
@@ -5721,11 +5726,9 @@ var QuoteSectionBlock_module_default = {
5721
5726
  swiperContainerFullWidth: "QuoteSectionBlock_module_swiperContainerFullWidth",
5722
5727
  card: "QuoteSectionBlock_module_card",
5723
5728
  quoteLogo: "QuoteSectionBlock_module_quoteLogo",
5724
- bodyText: "QuoteSectionBlock_module_bodyText",
5725
5729
  attribution: "QuoteSectionBlock_module_attribution",
5730
+ attributionRight: "QuoteSectionBlock_module_attributionRight",
5726
5731
  displayPhoto: "QuoteSectionBlock_module_displayPhoto",
5727
- displayName: "QuoteSectionBlock_module_displayName",
5728
- displaySubName: "QuoteSectionBlock_module_displaySubName",
5729
5732
  attributionText: "QuoteSectionBlock_module_attributionText",
5730
5733
  jobTitleLogo: "QuoteSectionBlock_module_jobTitleLogo",
5731
5734
  controls: "QuoteSectionBlock_module_controls"
@@ -5752,20 +5755,15 @@ var QuoteSectionBlock = ({
5752
5755
  onSlideChange: (swiper) => setActiveIndex(swiper.activeIndex),
5753
5756
  children: items.map((item, index) => /* @__PURE__ */ jsxRuntime.jsx(react$1.SwiperSlide, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.card, children: [
5754
5757
  /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "quote", className: QuoteSectionBlock_module_default.quoteLogo }),
5755
- (item == null ? void 0 : item.bodyText) && /* @__PURE__ */ jsxRuntime.jsx("p", { className: QuoteSectionBlock_module_default.bodyText, children: item.bodyText }),
5758
+ (item == null ? void 0 : item.bodyText) && /* @__PURE__ */ jsxRuntime.jsx("div", { className: QuoteSectionBlock_module_default.bodyText, children: item.bodyText }),
5756
5759
  /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.attribution, children: [
5757
- (item == null ? void 0 : item.displayPhoto) && /* @__PURE__ */ jsxRuntime.jsx(
5758
- "img",
5759
- {
5760
- src: item.displayPhoto,
5761
- alt: item.displayName,
5762
- className: QuoteSectionBlock_module_default.displayPhoto
5763
- }
5764
- ),
5765
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.attributionText, children: [
5766
- (item == null ? void 0 : item.displayName) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: QuoteSectionBlock_module_default.displayName, children: item.displayName }),
5767
- (item == null ? void 0 : item.displaySubName) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: QuoteSectionBlock_module_default.displaySubName, children: item.displaySubName }),
5768
- (item == null ? void 0 : item.jobTitleLogo) && /* @__PURE__ */ jsxRuntime.jsx("img", { src: item.jobTitleLogo, alt: "", className: QuoteSectionBlock_module_default.jobTitleLogo })
5760
+ (item == null ? void 0 : item.displayPhoto) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, item.displayPhoto), { className: QuoteSectionBlock_module_default.displayPhoto })),
5761
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.attributionRight, children: [
5762
+ /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.attributionText, children: [
5763
+ (item == null ? void 0 : item.displayName) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: QuoteSectionBlock_module_default.displayName, children: item.displayName }),
5764
+ (item == null ? void 0 : item.jobTitle) && /* @__PURE__ */ jsxRuntime.jsx("span", { className: QuoteSectionBlock_module_default.jobTitle, children: item.jobTitle })
5765
+ ] }),
5766
+ (item == null ? void 0 : item.jobTitleLogo) && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadProps(__spreadValues({}, item.jobTitleLogo), { className: QuoteSectionBlock_module_default.jobTitleLogo }))
5769
5767
  ] })
5770
5768
  ] })
5771
5769
  ] }) }, index))