@digital-b2c/coreui-kit 0.19.0 → 0.19.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/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
@@ -4554,7 +4554,8 @@ var TextEvent2 = Object.assign(TextEvent, {
4554
4554
  var TextBody_module_default = {
4555
4555
  textBody: "TextBody_module_textBody",
4556
4556
  body: "TextBody_module_body",
4557
- title: "TextBody_module_title"
4557
+ title: "TextBody_module_title",
4558
+ articleBigPadding: "TextBody_module_articleBigPadding"
4558
4559
  };
4559
4560
  var TextBodyTitle = ({ children }) => {
4560
4561
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
@@ -4572,17 +4573,24 @@ var TextBody = (props) => {
4572
4573
  const titleNode = (_a = slots.title) != null ? _a : title;
4573
4574
  const bodyNode = (_b = slots.body) != null ? _b : body;
4574
4575
  const isTableCenter = variant === "table-center";
4575
- return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx50__default.default(TextBody_module_default.textBody, className), children: [
4576
- titleNode && /* @__PURE__ */ jsxRuntime.jsx(
4577
- Text,
4578
- {
4579
- tag: isTableCenter ? "h4" : "h3",
4580
- className: clsx50__default.default(TextBody_module_default.title, isTableCenter ? "text-center" : titleAlign),
4581
- children: titleNode
4582
- }
4583
- ),
4584
- /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
4585
- ] });
4576
+ const isArticleBigPadding = variant === "ArticleBigPadding";
4577
+ return /* @__PURE__ */ jsxRuntime.jsxs(
4578
+ Container,
4579
+ {
4580
+ className: clsx50__default.default(TextBody_module_default.textBody, isArticleBigPadding && TextBody_module_default.articleBigPadding, className),
4581
+ children: [
4582
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx(
4583
+ Text,
4584
+ {
4585
+ tag: isTableCenter ? "h4" : "h3",
4586
+ className: clsx50__default.default(TextBody_module_default.title, isTableCenter ? "text-center" : titleAlign),
4587
+ children: titleNode
4588
+ }
4589
+ ),
4590
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
4591
+ ]
4592
+ }
4593
+ );
4586
4594
  };
4587
4595
 
4588
4596
  // src/widgets/TextBody/index.ts
@@ -5507,7 +5515,7 @@ var QuoteSectionBlock = ({ className, title, items = [] }) => {
5507
5515
  const [swiperInstance, setSwiperInstance] = React72.useState(null);
5508
5516
  const [activeIndex, setActiveIndex] = React72.useState(0);
5509
5517
  if (!items.length) return null;
5510
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx50__default.default(QuoteSectionBlock_module_default.quoteSectionBlock, className), children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.inner, children: [
5518
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx50__default.default(QuoteSectionBlock_module_default.quoteSectionBlock, className), children: /* @__PURE__ */ jsxRuntime.jsx(Container, { children: /* @__PURE__ */ jsxRuntime.jsxs("div", { className: QuoteSectionBlock_module_default.inner, children: [
5511
5519
  title && /* @__PURE__ */ jsxRuntime.jsx("h2", { className: QuoteSectionBlock_module_default.title, children: title }),
5512
5520
  /* @__PURE__ */ jsxRuntime.jsx("div", { className: QuoteSectionBlock_module_default.swiperContainer, children: /* @__PURE__ */ jsxRuntime.jsx(
5513
5521
  react$1.Swiper,
@@ -5547,7 +5555,7 @@ var QuoteSectionBlock = ({ className, title, items = [] }) => {
5547
5555
  },
5548
5556
  activeIndex
5549
5557
  )
5550
- ] }) });
5558
+ ] }) }) });
5551
5559
  };
5552
5560
 
5553
5561
  // src/widgets/PageLoader/PageLoader.module.scss