sit-onyx 1.0.0-beta.231 → 1.0.0-beta.232
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/components/OnyxNavBar/OnyxNavBar.vue.d.ts +1 -1
- package/dist/components/OnyxNotificationCard/OnyxNotificationCard.vue.d.ts +1 -1
- package/dist/components/OnyxSidebar/modules/OnyxSidebarItem/OnyxSidebarItem.vue.d.ts +17 -0
- package/dist/components/OnyxSidebar/modules/OnyxSidebarItem/types.d.ts +9 -0
- package/dist/components/OnyxSidebar/modules/index.d.ts +2 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +459 -428
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type OnyxNavBarProps } from "./types";
|
|
2
2
|
type __VLS_Slots = {
|
|
3
3
|
/**
|
|
4
|
-
* [`OnyxNavItem`](/docs/navigation-modules-navitem--docs) components should be placed and nested here to build the navigation.
|
|
4
|
+
* [`OnyxNavItem`](/docs/navigation-navbar-modules-navitem--docs) components should be placed and nested here to build the navigation.
|
|
5
5
|
*/
|
|
6
6
|
default?: () => unknown;
|
|
7
7
|
/**
|
|
@@ -11,7 +11,7 @@ type __VLS_Slots = {
|
|
|
11
11
|
/**
|
|
12
12
|
* Optional custom header actions to display inside a flyout menu.
|
|
13
13
|
* Will only be shown when hovering the notification card or focussing via keyboard.
|
|
14
|
-
* You must only put [OnyxMenuItem](
|
|
14
|
+
* You must only put [OnyxMenuItem](https://storybook.onyx.schwarz/?path=/docs/navigation-navbar-modules-menuitem--docs) components here.
|
|
15
15
|
*/
|
|
16
16
|
headerActions?: unknown;
|
|
17
17
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { OnyxSidebarItemProps } from "./types";
|
|
2
|
+
type __VLS_Slots = {
|
|
3
|
+
/**
|
|
4
|
+
* Content of the sidebar item.
|
|
5
|
+
*/
|
|
6
|
+
default(): unknown;
|
|
7
|
+
};
|
|
8
|
+
declare const __VLS_component: import("vue").DefineComponent<OnyxSidebarItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<OnyxSidebarItemProps> & Readonly<{}>, {
|
|
9
|
+
active: boolean | "auto";
|
|
10
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DensityProp } from "../../../../composables/density";
|
|
2
|
+
import type { WithLinkProp } from "../../../OnyxRouterLink/types";
|
|
3
|
+
export type OnyxSidebarItemProps = DensityProp & WithLinkProp & {
|
|
4
|
+
/**
|
|
5
|
+
* Whether the item is currently active.
|
|
6
|
+
* If "auto" and a [router](https://onyx.schwarz/development/router.html) is provided, the active state will be determined automatically based on the current route. (only when `link` property is set).
|
|
7
|
+
*/
|
|
8
|
+
active?: boolean | "auto";
|
|
9
|
+
};
|