@digital-b2c/coreui-kit 0.5.1 → 0.5.3

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
@@ -929,7 +929,6 @@ var CardCollection_module_default = {
929
929
  wrapper: "CardCollection_module_wrapper",
930
930
  cardWrapper: "CardCollection_module_cardWrapper",
931
931
  threeCols: "CardCollection_module_threeCols",
932
- fourCols: "CardCollection_module_fourCols",
933
932
  examCard: "CardCollection_module_examCard",
934
933
  "reveal-wrapper": "CardCollection_module_reveal-wrapper",
935
934
  "reveal-inner": "CardCollection_module_reveal-inner",
@@ -1785,71 +1784,38 @@ var TextEvent2 = Object.assign(TextEvent, {
1785
1784
  Title: TextEventTitle,
1786
1785
  RichText: TextEventRichText
1787
1786
  });
1788
- var TextCenterCtaInBottomTitle = ({ children }) => {
1787
+
1788
+ // src/widgets/TextBody/TextBody.module.scss
1789
+ var TextBody_module_default = {
1790
+ textBody: "TextBody_module_textBody",
1791
+ body: "TextBody_module_body",
1792
+ title: "TextBody_module_title"
1793
+ };
1794
+ var TextBodyTitle = ({ children }) => {
1789
1795
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1790
1796
  };
1791
- var TextCenterCtaInBottomSubtitle = ({ children }) => {
1797
+ var TextBodyBody = ({ children }) => {
1792
1798
  return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
1793
1799
  };
1794
-
1795
- // src/widgets/TextCenterCtaInBottom/TextCenterCtaInBottom.module.scss
1796
- var TextCenterCtaInBottom_module_default = {
1797
- textCenterCta: "TextCenterCtaInBottom_module_textCenterCta",
1798
- container: "TextCenterCtaInBottom_module_container",
1799
- content: "TextCenterCtaInBottom_module_content",
1800
- title: "TextCenterCtaInBottom_module_title",
1801
- subtitle: "TextCenterCtaInBottom_module_subtitle",
1802
- ctaWrapper: "TextCenterCtaInBottom_module_ctaWrapper",
1803
- iconOnly: "TextCenterCtaInBottom_module_iconOnly",
1804
- cta: "TextCenterCtaInBottom_module_cta"
1805
- };
1806
- var TextCenterCtaInBottom = ({
1807
- className,
1808
- title,
1809
- subtitle,
1810
- ctas,
1811
- children
1812
- }) => {
1800
+ var TextBody = (props) => {
1813
1801
  var _a, _b;
1802
+ const { className, body, title, children } = props;
1814
1803
  const slots = resolveCompoundSlots(children, {
1815
- title: TextCenterCtaInBottomTitle,
1816
- subtitle: TextCenterCtaInBottomSubtitle
1804
+ title: TextBodyTitle,
1805
+ body: TextBodyBody
1817
1806
  });
1818
1807
  const titleNode = (_a = slots.title) != null ? _a : title;
1819
- const subtitleNode = (_b = slots.subtitle) != null ? _b : subtitle;
1820
- return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx19__default.default(TextCenterCtaInBottom_module_default.textCenterCta, className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: TextCenterCtaInBottom_module_default.container, children: [
1821
- /* @__PURE__ */ jsxRuntime.jsxs("div", { className: TextCenterCtaInBottom_module_default.content, children: [
1822
- titleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.title, children: titleNode }),
1823
- subtitleNode && /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextCenterCtaInBottom_module_default.subtitle, children: subtitleNode })
1824
- ] }),
1825
- (ctas == null ? void 0 : ctas.length) && /* @__PURE__ */ jsxRuntime.jsx(
1826
- "div",
1827
- {
1828
- className: clsx19__default.default(
1829
- TextCenterCtaInBottom_module_default.ctaWrapper,
1830
- ctas.every((cta) => !cta.label && cta.logo) && TextCenterCtaInBottom_module_default.iconOnly
1831
- ),
1832
- children: ctas.map((cta, key) => /* @__PURE__ */ jsxRuntime.jsx(
1833
- Button,
1834
- {
1835
- className: TextCenterCtaInBottom_module_default.cta,
1836
- variant: "secondary",
1837
- href: cta == null ? void 0 : cta.url,
1838
- isExternal: cta == null ? void 0 : cta.isExternal,
1839
- logo: cta.logo,
1840
- children: cta == null ? void 0 : cta.label
1841
- },
1842
- key
1843
- ))
1844
- }
1845
- )
1846
- ] }) });
1808
+ const bodyNode = (_b = slots.body) != null ? _b : body;
1809
+ return /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx19__default.default(TextBody_module_default.textBody, className), children: [
1810
+ titleNode && /* @__PURE__ */ jsxRuntime.jsx(Text, { tag: "h2", className: TextBody_module_default.title, children: titleNode }),
1811
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: TextBody_module_default.body, children: bodyNode })
1812
+ ] });
1847
1813
  };
1848
1814
 
1849
- // src/widgets/TextCenterCtaInBottom/index.ts
1850
- var TextCenterCtaInBottom2 = Object.assign(TextCenterCtaInBottom, {
1851
- Title: TextCenterCtaInBottomTitle,
1852
- Subtitle: TextCenterCtaInBottomSubtitle
1815
+ // src/widgets/TextBody/index.ts
1816
+ var TextBody2 = Object.assign(TextBody, {
1817
+ Title: TextBodyTitle,
1818
+ Body: TextBodyBody
1853
1819
  });
1854
1820
  function useIntersectionObserver({
1855
1821
  animateOnce = false,
@@ -1902,7 +1868,7 @@ exports.PracticeCard = PracticeCard;
1902
1868
  exports.PracticePathCards = PracticePathCards2;
1903
1869
  exports.Teaser5050With3Text = Teaser5050With3Text2;
1904
1870
  exports.Teaser5050WithCta = Teaser5050WithCta2;
1905
- exports.TextCenterCtaInBottom = TextCenterCtaInBottom2;
1871
+ exports.TextBody = TextBody2;
1906
1872
  exports.TextEvent = TextEvent2;
1907
1873
  exports.resolveCompoundSlots = resolveCompoundSlots;
1908
1874
  exports.svgs = svgs;