@digital-b2c/coreui-kit 0.19.2 → 0.20.0
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 +21 -21
- package/README.md +52 -52
- package/dist/index.cjs +62 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +198 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +106 -95
- package/dist/index.d.ts +106 -95
- package/dist/index.mjs +62 -1
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +101 -101
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
|
@@ -5877,6 +5877,67 @@ var BrandsTab = (props) => {
|
|
|
5877
5877
|
|
|
5878
5878
|
// src/widgets/BrandsTab/index.tsx
|
|
5879
5879
|
var BrandsTab2 = Object.assign(BrandsTab, {});
|
|
5880
|
+
|
|
5881
|
+
// src/widgets/TimelineCards/TimelineCards.module.scss
|
|
5882
|
+
var TimelineCards_module_default = {
|
|
5883
|
+
"timeline-cards": "TimelineCards_module_timeline-cards",
|
|
5884
|
+
"timeline-steps": "TimelineCards_module_timeline-steps",
|
|
5885
|
+
"step-container": "TimelineCards_module_step-container",
|
|
5886
|
+
"step-content": "TimelineCards_module_step-content",
|
|
5887
|
+
"timeline-cards-container": "TimelineCards_module_timeline-cards-container",
|
|
5888
|
+
"timeline-card-item": "TimelineCards_module_timeline-card-item",
|
|
5889
|
+
card: "TimelineCards_module_card",
|
|
5890
|
+
"card-text": "TimelineCards_module_card-text",
|
|
5891
|
+
"timeline-cards-text": "TimelineCards_module_timeline-cards-text",
|
|
5892
|
+
container: "TimelineCards_module_container",
|
|
5893
|
+
wrapper: "TimelineCards_module_wrapper",
|
|
5894
|
+
"card-logo": "TimelineCards_module_card-logo",
|
|
5895
|
+
"step-divider": "TimelineCards_module_step-divider"
|
|
5896
|
+
};
|
|
5897
|
+
var TimelineCard = ({ text, logo }) => {
|
|
5898
|
+
return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx50__default.default(TimelineCards_module_default["card"]), children: [
|
|
5899
|
+
logo && /* @__PURE__ */ jsxRuntime.jsx(Picture, __spreadValues({ className: TimelineCards_module_default["card-logo"] }, logo)),
|
|
5900
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx50__default.default(TimelineCards_module_default["card-text"]), children: text })
|
|
5901
|
+
] });
|
|
5902
|
+
};
|
|
5903
|
+
var TimelineSteps = ({ length }) => {
|
|
5904
|
+
if (length === 0) return null;
|
|
5905
|
+
return /* @__PURE__ */ jsxRuntime.jsx("ol", { className: clsx50__default.default(TimelineCards_module_default["timeline-steps"]), children: Array.from({ length }).map((_, index) => {
|
|
5906
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(React72.Fragment, { children: [
|
|
5907
|
+
/* @__PURE__ */ jsxRuntime.jsxs("li", { className: clsx50__default.default(TimelineCards_module_default["step-container"]), children: [
|
|
5908
|
+
/* @__PURE__ */ jsxRuntime.jsx("span", { className: clsx50__default.default(TimelineCards_module_default["step-content"]), "aria-hidden": "true", children: index + 1 }),
|
|
5909
|
+
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: "sr-only", children: [
|
|
5910
|
+
"Step ",
|
|
5911
|
+
index + 1,
|
|
5912
|
+
" of ",
|
|
5913
|
+
length
|
|
5914
|
+
] })
|
|
5915
|
+
] }),
|
|
5916
|
+
index < length - 1 ? /* @__PURE__ */ jsxRuntime.jsx("li", { className: clsx50__default.default(TimelineCards_module_default["step-divider"]), role: "presentation" }) : null
|
|
5917
|
+
] }, index);
|
|
5918
|
+
}) });
|
|
5919
|
+
};
|
|
5920
|
+
var TimelineCards = ({ captionText, cards, className }) => {
|
|
5921
|
+
const slicedCards = cards == null ? void 0 : cards.slice(0, 3);
|
|
5922
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { className: clsx50__default.default(TimelineCards_module_default["timeline-cards"], className), children: /* @__PURE__ */ jsxRuntime.jsxs(Container, { className: clsx50__default.default(TimelineCards_module_default["container"]), children: [
|
|
5923
|
+
/* @__PURE__ */ jsxRuntime.jsxs("div", { className: clsx50__default.default(TimelineCards_module_default["wrapper"]), children: [
|
|
5924
|
+
/* @__PURE__ */ jsxRuntime.jsx(TimelineSteps, { length: (slicedCards == null ? void 0 : slicedCards.length) || 0 }),
|
|
5925
|
+
/* @__PURE__ */ jsxRuntime.jsx(Grid, { columns: 3, gap: 16, className: clsx50__default.default(TimelineCards_module_default["timeline-cards-container"]), children: slicedCards == null ? void 0 : slicedCards.map((card, index) => /* @__PURE__ */ jsxRuntime.jsx(
|
|
5926
|
+
GridItem,
|
|
5927
|
+
{
|
|
5928
|
+
colSpan: { md: 3 },
|
|
5929
|
+
className: clsx50__default.default(TimelineCards_module_default["timeline-card-item"]),
|
|
5930
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(TimelineCard, __spreadValues({}, card))
|
|
5931
|
+
},
|
|
5932
|
+
index
|
|
5933
|
+
)) })
|
|
5934
|
+
] }),
|
|
5935
|
+
captionText && /* @__PURE__ */ jsxRuntime.jsx("p", { className: clsx50__default.default(TimelineCards_module_default["timeline-cards-text"]), children: captionText })
|
|
5936
|
+
] }) });
|
|
5937
|
+
};
|
|
5938
|
+
|
|
5939
|
+
// src/widgets/TimelineCards/index.tsx
|
|
5940
|
+
var TimelineCards2 = Object.assign(TimelineCards, {});
|
|
5880
5941
|
function useIntersectionObserver({
|
|
5881
5942
|
animateOnce = false,
|
|
5882
5943
|
options = {}
|
|
@@ -5958,6 +6019,7 @@ exports.TextBody = TextBody2;
|
|
|
5958
6019
|
exports.TextCenterCtaInBottom = TextCenterCtaInBottom2;
|
|
5959
6020
|
exports.TextCenterWithMedia = TextCenterWithMedia2;
|
|
5960
6021
|
exports.TextEvent = TextEvent2;
|
|
6022
|
+
exports.TimelineCards = TimelineCards2;
|
|
5961
6023
|
exports.TwoColTextMenu = TwoColTextMenu;
|
|
5962
6024
|
exports.UpcomingEventCard = UpcomingEventCard;
|
|
5963
6025
|
exports.UserMenu = UserMenu;
|