@cobre-npm/ds-v3 0.162.2 → 0.163.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 +5101 -4985
- package/dist/style.css +1 -1
- package/dist/tokens/_components.scss +1 -0
- package/dist/types/components/organisms/CobreHeader/CobreHeader.vue.d.ts +28 -8
- package/dist/types/components/organisms/CobreHeader/components/Navbar.vue.d.ts +15 -3
- package/package.json +1 -1
|
@@ -11,27 +11,47 @@ export interface MenuItem {
|
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* CobreHeader — top application bar for the Cobre platform.
|
|
14
|
-
* Use as the page header;
|
|
14
|
+
* Use as the page header; below 992px it toggles a hamburger menu that renders the
|
|
15
15
|
* `menu` entries via the Navbar component. For the persistent desktop side
|
|
16
16
|
* navigation use CobreSideMenu instead.
|
|
17
|
-
* Provides `start` (left, e.g. logo) and `end` (right, e.g. avatar/actions) slots
|
|
17
|
+
* Provides `start` (left, e.g. logo) and `end` (right, e.g. avatar/actions) slots, plus
|
|
18
|
+
* `menu-start` to place custom content (e.g. a workspace selector) above the mobile menu entries;
|
|
19
|
+
* it receives a `close` function that closes the menu.
|
|
20
|
+
* The open state is exposed as `v-model:open`. The menu closes on Escape, on overlay click,
|
|
21
|
+
* on selecting an entry and when the viewport reaches the 992px breakpoint.
|
|
18
22
|
*/
|
|
19
23
|
interface Props {
|
|
20
24
|
menu: MenuItem[];
|
|
21
|
-
menuItemActive
|
|
25
|
+
menuItemActive?: string;
|
|
26
|
+
openMenuLabel?: string;
|
|
27
|
+
closeMenuLabel?: string;
|
|
22
28
|
}
|
|
23
|
-
|
|
29
|
+
type __VLS_Props = Props;
|
|
30
|
+
type __VLS_PublicProps = __VLS_Props & {
|
|
31
|
+
'open'?: boolean;
|
|
32
|
+
};
|
|
33
|
+
declare var __VLS_10: {}, __VLS_12: {}, __VLS_30: {
|
|
34
|
+
close: () => void;
|
|
35
|
+
};
|
|
24
36
|
type __VLS_Slots = {} & {
|
|
25
|
-
start?: (props: typeof
|
|
37
|
+
start?: (props: typeof __VLS_10) => any;
|
|
38
|
+
} & {
|
|
39
|
+
end?: (props: typeof __VLS_12) => any;
|
|
26
40
|
} & {
|
|
27
|
-
|
|
41
|
+
'menu-start'?: (props: typeof __VLS_30) => any;
|
|
28
42
|
};
|
|
29
|
-
declare const __VLS_component: import("vue").DefineComponent<
|
|
43
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {
|
|
44
|
+
close: () => void;
|
|
45
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
46
|
selectedOption: (...args: any[]) => void;
|
|
31
|
-
|
|
47
|
+
"update:open": (value: boolean) => void;
|
|
48
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
32
49
|
onSelectedOption?: ((...args: any[]) => any) | undefined;
|
|
50
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
33
51
|
}>, {
|
|
34
52
|
menuItemActive: string;
|
|
53
|
+
openMenuLabel: string;
|
|
54
|
+
closeMenuLabel: string;
|
|
35
55
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
36
56
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
37
57
|
export default _default;
|
|
@@ -6,13 +6,15 @@ interface SubItems {
|
|
|
6
6
|
interface Menu {
|
|
7
7
|
name: string;
|
|
8
8
|
path?: string;
|
|
9
|
+
icon?: string;
|
|
9
10
|
highlight?: boolean;
|
|
10
11
|
subItems?: SubItems[];
|
|
11
12
|
}
|
|
12
13
|
/**
|
|
13
14
|
* Navbar — the navigation list rendered inside CobreHeader's mobile menu.
|
|
14
|
-
* Renders each `menu` entry; entries with subItems become collapsible
|
|
15
|
-
* that expand on tap.
|
|
15
|
+
* Renders each `menu` entry with its optional icon; entries with subItems become collapsible
|
|
16
|
+
* groups that expand on tap. The optional `start` slot renders custom content above the list,
|
|
17
|
+
* inside the same scroll area. Not used standalone — driven by CobreHeader.
|
|
16
18
|
*/
|
|
17
19
|
interface Props {
|
|
18
20
|
menu: Menu[];
|
|
@@ -24,7 +26,11 @@ interface Props {
|
|
|
24
26
|
path: string;
|
|
25
27
|
}, menuItem?: SubItems) => void;
|
|
26
28
|
}
|
|
27
|
-
declare
|
|
29
|
+
declare var __VLS_1: {};
|
|
30
|
+
type __VLS_Slots = {} & {
|
|
31
|
+
start?: (props: typeof __VLS_1) => any;
|
|
32
|
+
};
|
|
33
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
34
|
clickOption: (...args: any[]) => void;
|
|
29
35
|
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
30
36
|
onClickOption?: ((...args: any[]) => any) | undefined;
|
|
@@ -32,4 +38,10 @@ declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, imp
|
|
|
32
38
|
itemActive: string;
|
|
33
39
|
isMobile: boolean;
|
|
34
40
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
35
42
|
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|