@digital-b2c/coreui-kit 0.15.8 → 0.15.10
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 +18 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +17 -3
- package/dist/index.css.map +1 -1
- package/dist/index.mjs +18 -16
- package/dist/index.mjs.map +1 -1
- package/dist/types/global.d.ts +25 -25
- package/package.json +100 -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
|
@@ -1995,14 +1995,15 @@ var UserMenu_module_default = {
|
|
|
1995
1995
|
userButton: "UserMenu_module_userButton",
|
|
1996
1996
|
userMenuWrapper: "UserMenu_module_userMenuWrapper",
|
|
1997
1997
|
fullWidth: "UserMenu_module_fullWidth",
|
|
1998
|
+
userInner: "UserMenu_module_userInner",
|
|
1998
1999
|
userChevron: "UserMenu_module_userChevron",
|
|
1999
2000
|
userChevronOpen: "UserMenu_module_userChevronOpen",
|
|
2001
|
+
userChevronUp: "UserMenu_module_userChevronUp",
|
|
2000
2002
|
userMenu: "UserMenu_module_userMenu",
|
|
2001
2003
|
userMenuUp: "UserMenu_module_userMenuUp",
|
|
2002
2004
|
userMenuItem: "UserMenu_module_userMenuItem",
|
|
2003
2005
|
userMenuItemDanger: "UserMenu_module_userMenuItemDanger",
|
|
2004
2006
|
userAvatar: "UserMenu_module_userAvatar",
|
|
2005
|
-
userInner: "UserMenu_module_userInner",
|
|
2006
2007
|
userLabel: "UserMenu_module_userLabel"
|
|
2007
2008
|
};
|
|
2008
2009
|
var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
@@ -2079,7 +2080,7 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2079
2080
|
/* @__PURE__ */ jsxRuntime.jsxs(
|
|
2080
2081
|
Button,
|
|
2081
2082
|
{
|
|
2082
|
-
variant: "
|
|
2083
|
+
variant: "secondary",
|
|
2083
2084
|
type: "button",
|
|
2084
2085
|
className: UserMenu_module_default.userButton,
|
|
2085
2086
|
"aria-haspopup": "menu",
|
|
@@ -2091,7 +2092,17 @@ var UserMenu = ({ user, className, dropUp, fullWidth }) => {
|
|
|
2091
2092
|
avatar,
|
|
2092
2093
|
/* @__PURE__ */ jsxRuntime.jsxs("span", { className: UserMenu_module_default.userInner, children: [
|
|
2093
2094
|
/* @__PURE__ */ jsxRuntime.jsx("span", { className: UserMenu_module_default.userLabel, children: user.label }),
|
|
2094
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2095
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
2096
|
+
"span",
|
|
2097
|
+
{
|
|
2098
|
+
className: clsx47__default.default(
|
|
2099
|
+
UserMenu_module_default.userChevron,
|
|
2100
|
+
dropUp && UserMenu_module_default.userChevronUp,
|
|
2101
|
+
isOpen && UserMenu_module_default.userChevronOpen
|
|
2102
|
+
),
|
|
2103
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "downChevronBlack", size: 13, "aria-hidden": "true" })
|
|
2104
|
+
}
|
|
2105
|
+
)
|
|
2095
2106
|
] })
|
|
2096
2107
|
]
|
|
2097
2108
|
}
|
|
@@ -3203,6 +3214,7 @@ var Navigation_module_default = {
|
|
|
3203
3214
|
Navigation: "Navigation_module_Navigation",
|
|
3204
3215
|
mainBar: "Navigation_module_mainBar",
|
|
3205
3216
|
navTabLink: "Navigation_module_navTabLink",
|
|
3217
|
+
navTabTrigger: "Navigation_module_navTabTrigger",
|
|
3206
3218
|
navTabActive: "Navigation_module_navTabActive",
|
|
3207
3219
|
inner: "Navigation_module_inner",
|
|
3208
3220
|
topRow: "Navigation_module_topRow",
|
|
@@ -3212,7 +3224,6 @@ var Navigation_module_default = {
|
|
|
3212
3224
|
bottomRow: "Navigation_module_bottomRow",
|
|
3213
3225
|
navTabs: "Navigation_module_navTabs",
|
|
3214
3226
|
navTab: "Navigation_module_navTab",
|
|
3215
|
-
navTabTrigger: "Navigation_module_navTabTrigger",
|
|
3216
3227
|
navTabTriggerOpen: "Navigation_module_navTabTriggerOpen",
|
|
3217
3228
|
dropdownPanel: "Navigation_module_dropdownPanel",
|
|
3218
3229
|
dropdownInner: "Navigation_module_dropdownInner",
|
|
@@ -3325,8 +3336,7 @@ var NavigationDesktop = ({
|
|
|
3325
3336
|
openIndex,
|
|
3326
3337
|
onOpen,
|
|
3327
3338
|
onScheduleClose,
|
|
3328
|
-
baseId
|
|
3329
|
-
isTransparent = false
|
|
3339
|
+
baseId
|
|
3330
3340
|
}) => {
|
|
3331
3341
|
const pathname = useActivePath();
|
|
3332
3342
|
if (!(navItems == null ? void 0 : navItems.length)) return null;
|
|
@@ -3389,14 +3399,7 @@ var NavigationDesktop = ({
|
|
|
3389
3399
|
onKeyDown: (e) => handleTriggerKeyDown(e, index),
|
|
3390
3400
|
children: [
|
|
3391
3401
|
/* @__PURE__ */ jsxRuntime.jsx("span", { children: item.title }),
|
|
3392
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
3393
|
-
Icon,
|
|
3394
|
-
{
|
|
3395
|
-
type: isTransparent ? "downChevronWhite" : "downChevronBlack",
|
|
3396
|
-
size: 24,
|
|
3397
|
-
"aria-hidden": "true"
|
|
3398
|
-
}
|
|
3399
|
-
)
|
|
3402
|
+
/* @__PURE__ */ jsxRuntime.jsx(Icon, { type: "downChevronBlack", size: 24, "aria-hidden": "true" })
|
|
3400
3403
|
]
|
|
3401
3404
|
}
|
|
3402
3405
|
) }, index);
|
|
@@ -3906,8 +3909,7 @@ var Navigation2 = (props) => {
|
|
|
3906
3909
|
openIndex,
|
|
3907
3910
|
onOpen: openDropdown,
|
|
3908
3911
|
onScheduleClose: scheduleClose,
|
|
3909
|
-
baseId
|
|
3910
|
-
isTransparent
|
|
3912
|
+
baseId
|
|
3911
3913
|
}
|
|
3912
3914
|
),
|
|
3913
3915
|
!isExternal && /* @__PURE__ */ jsxRuntime.jsx(
|