@digital-b2c/coreui-kit 0.3.4 → 0.3.5
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 +8 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +4 -4
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs +8 -6
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +96 -96
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
|
@@ -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
|
-
|
|
968
|
+
pageHeroBanner: "HeroBanner_module_pageHeroBanner",
|
|
969
969
|
container: "HeroBanner_module_container",
|
|
970
970
|
bannerPodcast: "HeroBanner_module_bannerPodcast",
|
|
971
971
|
banner: "HeroBanner_module_banner",
|
|
@@ -983,7 +983,8 @@ var HeroBanner_module_default = {
|
|
|
983
983
|
brandsStrip: "HeroBanner_module_brandsStrip",
|
|
984
984
|
backgroundImage: "HeroBanner_module_backgroundImage",
|
|
985
985
|
scrollDown: "HeroBanner_module_scrollDown",
|
|
986
|
-
arrow: "HeroBanner_module_arrow"
|
|
986
|
+
arrow: "HeroBanner_module_arrow",
|
|
987
|
+
mainHeroBanner: "HeroBanner_module_mainHeroBanner"
|
|
987
988
|
};
|
|
988
989
|
var HeroBanner = ({
|
|
989
990
|
className,
|
|
@@ -1000,7 +1001,7 @@ var HeroBanner = ({
|
|
|
1000
1001
|
const { is } = useViewPort_default();
|
|
1001
1002
|
const isTabletBelow = is("tablet", "below");
|
|
1002
1003
|
const isDesktopBelow = is("desktop", "below");
|
|
1003
|
-
const
|
|
1004
|
+
const vPageHeroBanner = variant === "pageHeroBanner";
|
|
1004
1005
|
const vBannerPodcast = variant === "bannerPodcast";
|
|
1005
1006
|
const animated = brands && brands.logos && brands.logos.length >= 4 && isDesktopBelow;
|
|
1006
1007
|
const slots = resolveCompoundSlots(children, {
|
|
@@ -1022,8 +1023,9 @@ var HeroBanner = ({
|
|
|
1022
1023
|
{
|
|
1023
1024
|
href: cta2.url,
|
|
1024
1025
|
isExternal: cta2.isExternal,
|
|
1025
|
-
variant: key % 2 ?
|
|
1026
|
+
variant: key % 2 ? vPageHeroBanner && !isTabletBelow ? "nofill" : "grey" : "primary",
|
|
1026
1027
|
fullWidth: isTabletBelow,
|
|
1028
|
+
logo: cta2.logo,
|
|
1027
1029
|
children: cta2.label
|
|
1028
1030
|
},
|
|
1029
1031
|
key
|
|
@@ -1036,7 +1038,7 @@ var HeroBanner = ({
|
|
|
1036
1038
|
__spreadValues({
|
|
1037
1039
|
className: HeroBanner_module_default.brandsStrip,
|
|
1038
1040
|
variant: "light",
|
|
1039
|
-
size: isTabletBelow ||
|
|
1041
|
+
size: isTabletBelow || vPageHeroBanner ? "small" : void 0,
|
|
1040
1042
|
animate: animated
|
|
1041
1043
|
}, brands)
|
|
1042
1044
|
),
|
|
@@ -1283,7 +1285,7 @@ var Teaser5050WithCtaSubtitle = ({ children }) => {
|
|
|
1283
1285
|
var Teaser5050WithCta_module_default = {
|
|
1284
1286
|
teaser5050: "Teaser5050WithCta_module_teaser5050",
|
|
1285
1287
|
container: "Teaser5050WithCta_module_container",
|
|
1286
|
-
|
|
1288
|
+
left: "Teaser5050WithCta_module_left",
|
|
1287
1289
|
wrapper: "Teaser5050WithCta_module_wrapper",
|
|
1288
1290
|
title: "Teaser5050WithCta_module_title",
|
|
1289
1291
|
image: "Teaser5050WithCta_module_image",
|