sit-onyx 1.0.0-beta.201 → 1.0.0-beta.203

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.
@@ -46,7 +46,7 @@ declare const __VLS_component: import("vue").DefineComponent<OnyxNavBarProps, {
46
46
  }, string, import("vue").PublicProps, Readonly<OnyxNavBarProps> & Readonly<{
47
47
  onNavigateBack?: ((event: MouseEvent) => any) | undefined;
48
48
  }>, {
49
- mobileBreakpoint: import("@sit-onyx/shared/breakpoints").OnyxBreakpoint | number;
49
+ mobile: boolean | import("@sit-onyx/shared/breakpoints").OnyxBreakpoint | number;
50
50
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
51
51
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
52
52
  export default _default;
@@ -0,0 +1,3 @@
1
+ import { type OnyxNavBarProps } from "./types";
2
+ declare const _default: import("vue").DefineComponent<OnyxNavBarProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxNavBarProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ export default _default;
@@ -13,13 +13,17 @@ export type OnyxNavBarProps = Pick<OnyxNavAppAreaProps, "appName" | "logoUrl"> &
13
13
  */
14
14
  appArea?: Omit<OnyxNavAppAreaProps, "appName" | "logoUrl">;
15
15
  /**
16
- * Breakpoint name when the nav bar should switch into mobile mode.
17
- * Will switch if **smaller** than the given breakpoint.
18
- * Can be either a pre-defined onyx breakpoint or custom width in pixels.
16
+ *
17
+ * Determines if and when the `OnyxNavBar` should render in mobile mode.
18
+ *
19
+ * `mobile` prop can be one of the following;
20
+ * - a `boolean`: The NavBar renders in mobile mode, when `true`.
21
+ * - a `OnyxBreakpoint`: The NavBar renders in mobile mode, when the current breakpoint matches or is smaller.
22
+ * - a `number`: The NavBar renders in mobile when the viewport width is smaller than the provided value.
19
23
  *
20
24
  * @see [onyx docs](https://onyx.schwarz/development/breakpoints.html) for more information.
21
25
  */
22
- mobileBreakpoint?: OnyxBreakpoint | number;
26
+ mobile?: boolean | OnyxBreakpoint | number;
23
27
  };
24
28
  /**
25
29
  * [Vue injection key](https://vuejs.org/guide/components/provide-inject) that is provided by the nav bar
@@ -13,4 +13,8 @@ export type OnyxNotificationCardProps = DensityProp & {
13
13
  * Whether the notification is unread / not acknowledged by the user yet.
14
14
  */
15
15
  unread?: boolean;
16
+ /**
17
+ * Optional icon to show.
18
+ */
19
+ icon?: string;
16
20
  };