@cobre-npm/ds-v3 0.162.1 → 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.
@@ -612,6 +612,7 @@
612
612
  --cobre-header-v3-padding: 4px 0px 4px 0px;
613
613
  --cobre-header-v3-background: var(--cobre-white);
614
614
  --cobre-header-v3-height: 48px;
615
+ --cobre-header-v3-z-index: 100;
615
616
  }
616
617
 
617
618
  /**
@@ -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; on mobile it toggles a hamburger menu that renders the
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: string;
25
+ menuItemActive?: string;
26
+ openMenuLabel?: string;
27
+ closeMenuLabel?: string;
22
28
  }
23
- declare var __VLS_1: {}, __VLS_3: {};
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 __VLS_1) => any;
37
+ start?: (props: typeof __VLS_10) => any;
38
+ } & {
39
+ end?: (props: typeof __VLS_12) => any;
26
40
  } & {
27
- end?: (props: typeof __VLS_3) => any;
41
+ 'menu-start'?: (props: typeof __VLS_30) => any;
28
42
  };
29
- declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
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 groups
15
- * that expand on tap. Not used standalone — driven by CobreHeader.
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 const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/ds-v3",
3
- "version": "0.162.1",
3
+ "version": "0.163.0",
4
4
  "type": "module",
5
5
  "packageManager": "pnpm@11.0.4",
6
6
  "engines": {