@cobre-npm/ds-v3 0.163.0 → 0.164.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/dist/cobre-ds-v3-lib.es.js +4134 -4127
- package/dist/style.css +1 -1
- package/dist/tokens/_components.scss +12 -0
- package/dist/types/components/organisms/CobreHeader/CobreHeader.vue.d.ts +3 -0
- package/dist/types/components/organisms/CobreHeader/components/Navbar.vue.d.ts +6 -3
- package/package.json +1 -1
|
@@ -613,6 +613,18 @@
|
|
|
613
613
|
--cobre-header-v3-background: var(--cobre-white);
|
|
614
614
|
--cobre-header-v3-height: 48px;
|
|
615
615
|
--cobre-header-v3-z-index: 100;
|
|
616
|
+
|
|
617
|
+
/* Mobile menu: same look as the desktop side menu. */
|
|
618
|
+
--cobre-header-menu-bg: var(--cobre-side-menu-bg);
|
|
619
|
+
--cobre-header-item-font-family: var(--cobre-font-family);
|
|
620
|
+
--cobre-header-item-font-size: var(--cobre-body-medium-fs);
|
|
621
|
+
--cobre-header-item-color: var(--cobre-side-menu-color);
|
|
622
|
+
--cobre-header-item-bg: var(--cobre-side-menu-item-bg);
|
|
623
|
+
--cobre-header-item-hover-bg: var(--cobre-side-menu-hover-bg);
|
|
624
|
+
--cobre-header-item-active-color: var(--cobre-side-menu-active-color);
|
|
625
|
+
--cobre-header-item-active-bg: var(--cobre-side-menu-active-bg);
|
|
626
|
+
--cobre-header-item-active-radius: var(--cobre-side-menu-item-radius);
|
|
627
|
+
--cobre-header-item-padding-x: 12px;
|
|
616
628
|
}
|
|
617
629
|
|
|
618
630
|
/**
|
|
@@ -4,6 +4,7 @@ interface Items {
|
|
|
4
4
|
icon?: string;
|
|
5
5
|
}
|
|
6
6
|
export interface MenuItem {
|
|
7
|
+
id?: string;
|
|
7
8
|
name: string;
|
|
8
9
|
path?: string;
|
|
9
10
|
icon?: string;
|
|
@@ -22,6 +23,7 @@ export interface MenuItem {
|
|
|
22
23
|
*/
|
|
23
24
|
interface Props {
|
|
24
25
|
menu: MenuItem[];
|
|
26
|
+
menuBottom?: MenuItem[];
|
|
25
27
|
menuItemActive?: string;
|
|
26
28
|
openMenuLabel?: string;
|
|
27
29
|
closeMenuLabel?: string;
|
|
@@ -49,6 +51,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps,
|
|
|
49
51
|
onSelectedOption?: ((...args: any[]) => any) | undefined;
|
|
50
52
|
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
51
53
|
}>, {
|
|
54
|
+
menuBottom: MenuItem[];
|
|
52
55
|
menuItemActive: string;
|
|
53
56
|
openMenuLabel: string;
|
|
54
57
|
closeMenuLabel: string;
|
|
@@ -4,20 +4,22 @@ interface SubItems {
|
|
|
4
4
|
path: string;
|
|
5
5
|
}
|
|
6
6
|
interface Menu {
|
|
7
|
+
id?: string;
|
|
7
8
|
name: string;
|
|
8
9
|
path?: string;
|
|
9
10
|
icon?: string;
|
|
10
|
-
highlight?: boolean;
|
|
11
11
|
subItems?: SubItems[];
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
14
|
* Navbar — the navigation list rendered inside CobreHeader's mobile menu.
|
|
15
|
-
* Renders each `menu` entry with its optional icon
|
|
16
|
-
*
|
|
15
|
+
* Renders each `menu` entry with its optional icon, using the same menu buttons as CobreSideMenu so
|
|
16
|
+
* hover, focus and active states match desktop; entries with subItems become collapsible groups that
|
|
17
|
+
* expand on tap. The optional `start` slot renders custom content above the list,
|
|
17
18
|
* inside the same scroll area. Not used standalone — driven by CobreHeader.
|
|
18
19
|
*/
|
|
19
20
|
interface Props {
|
|
20
21
|
menu: Menu[];
|
|
22
|
+
menuBottom?: Menu[];
|
|
21
23
|
itemActive: string;
|
|
22
24
|
isMobile: boolean;
|
|
23
25
|
handleClickSubItemOption: (event: {
|
|
@@ -35,6 +37,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
35
37
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
36
38
|
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
37
39
|
}>, {
|
|
40
|
+
menuBottom: Menu[];
|
|
38
41
|
itemActive: string;
|
|
39
42
|
isMobile: boolean;
|
|
40
43
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|