@kopexa/sidebar 17.1.73 → 17.2.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.
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ "use client";
3
+ import {
4
+ SidebarV2FromConfig
5
+ } from "../chunk-CMYTESJM.mjs";
6
+ import "../chunk-EIXUCY5M.mjs";
7
+ import "../chunk-SDMGFB6V.mjs";
8
+ import "../chunk-3L2F566G.mjs";
9
+ export {
10
+ SidebarV2FromConfig
11
+ };
@@ -0,0 +1,47 @@
1
+ export { AppShell, AppShellAside, AppShellHeader, AppShellMain, AppShellPanelContent, AppShellPanelContentProps, AppShellRoot } from './app-shell.mjs';
2
+ import { SidebarV2Inset, SidebarV2Trigger, SidebarV2Rail, SidebarV2RailItem, SidebarV2RailLink, SidebarV2RailSpacer, SidebarV2Workspace, SidebarV2Panel, SidebarV2PanelItems, SidebarV2PanelLeaf, SidebarV2PanelGroup, SidebarV2PanelLabel } from './components.mjs';
3
+ export { SidebarV2WorkspaceProps } from './components.mjs';
4
+ import { SidebarV2Provider } from './context.mjs';
5
+ export { SidebarV2ContextValue, SidebarV2ProviderProps, SidebarV2Tone, useSidebarV2 } from './context.mjs';
6
+ import { SidebarV2FromConfig } from './from-config.mjs';
7
+ export { SidebarV2FromConfigProps } from './from-config.mjs';
8
+ export { SidebarV2Icon, SidebarV2LinkProps, SidebarV2Nav, SidebarV2PanelItem, SidebarV2RailEntry, SidebarV2SubItem } from './types.mjs';
9
+ import 'react';
10
+ import 'react/jsx-runtime';
11
+ import '@kopexa/button';
12
+
13
+ /**
14
+ * SidebarV2 — icon rail + expandable panel navigation context + primitives.
15
+ *
16
+ * The callable is the provider; sub-components hang off it as a namespace
17
+ * (assembled via direct assignment — never Object.assign, which breaks RSC
18
+ * client-reference proxies under "use client"/"use server").
19
+ *
20
+ * Layout is owned by <AppShell> (grid + zones).
21
+ *
22
+ * @example
23
+ * <SidebarV2 tone="light" activeHref={pathname} renderLink={(p) => <Link {...p} />}>
24
+ * <AppShell>
25
+ * <AppShell.Header>…</AppShell.Header>
26
+ * <SidebarV2.FromConfig items={nav} header={<SidebarV2.Workspace … />} />
27
+ * <AppShell.Main>{children}</AppShell.Main>
28
+ * </AppShell>
29
+ * </SidebarV2>
30
+ */
31
+ declare const SidebarV2: typeof SidebarV2Provider & {
32
+ FromConfig: typeof SidebarV2FromConfig;
33
+ Inset: typeof SidebarV2Inset;
34
+ Trigger: typeof SidebarV2Trigger;
35
+ Rail: typeof SidebarV2Rail;
36
+ RailItem: typeof SidebarV2RailItem;
37
+ RailLink: typeof SidebarV2RailLink;
38
+ RailSpacer: typeof SidebarV2RailSpacer;
39
+ Workspace: typeof SidebarV2Workspace;
40
+ Panel: typeof SidebarV2Panel;
41
+ PanelItems: typeof SidebarV2PanelItems;
42
+ PanelLeaf: typeof SidebarV2PanelLeaf;
43
+ PanelGroup: typeof SidebarV2PanelGroup;
44
+ PanelLabel: typeof SidebarV2PanelLabel;
45
+ };
46
+
47
+ export { SidebarV2, SidebarV2FromConfig, SidebarV2Inset, SidebarV2Panel, SidebarV2PanelGroup, SidebarV2PanelItems, SidebarV2PanelLabel, SidebarV2PanelLeaf, SidebarV2Provider, SidebarV2Rail, SidebarV2RailItem, SidebarV2RailLink, SidebarV2RailSpacer, SidebarV2Trigger, SidebarV2Workspace };
@@ -0,0 +1,47 @@
1
+ export { AppShell, AppShellAside, AppShellHeader, AppShellMain, AppShellPanelContent, AppShellPanelContentProps, AppShellRoot } from './app-shell.js';
2
+ import { SidebarV2Inset, SidebarV2Trigger, SidebarV2Rail, SidebarV2RailItem, SidebarV2RailLink, SidebarV2RailSpacer, SidebarV2Workspace, SidebarV2Panel, SidebarV2PanelItems, SidebarV2PanelLeaf, SidebarV2PanelGroup, SidebarV2PanelLabel } from './components.js';
3
+ export { SidebarV2WorkspaceProps } from './components.js';
4
+ import { SidebarV2Provider } from './context.js';
5
+ export { SidebarV2ContextValue, SidebarV2ProviderProps, SidebarV2Tone, useSidebarV2 } from './context.js';
6
+ import { SidebarV2FromConfig } from './from-config.js';
7
+ export { SidebarV2FromConfigProps } from './from-config.js';
8
+ export { SidebarV2Icon, SidebarV2LinkProps, SidebarV2Nav, SidebarV2PanelItem, SidebarV2RailEntry, SidebarV2SubItem } from './types.js';
9
+ import 'react';
10
+ import 'react/jsx-runtime';
11
+ import '@kopexa/button';
12
+
13
+ /**
14
+ * SidebarV2 — icon rail + expandable panel navigation context + primitives.
15
+ *
16
+ * The callable is the provider; sub-components hang off it as a namespace
17
+ * (assembled via direct assignment — never Object.assign, which breaks RSC
18
+ * client-reference proxies under "use client"/"use server").
19
+ *
20
+ * Layout is owned by <AppShell> (grid + zones).
21
+ *
22
+ * @example
23
+ * <SidebarV2 tone="light" activeHref={pathname} renderLink={(p) => <Link {...p} />}>
24
+ * <AppShell>
25
+ * <AppShell.Header>…</AppShell.Header>
26
+ * <SidebarV2.FromConfig items={nav} header={<SidebarV2.Workspace … />} />
27
+ * <AppShell.Main>{children}</AppShell.Main>
28
+ * </AppShell>
29
+ * </SidebarV2>
30
+ */
31
+ declare const SidebarV2: typeof SidebarV2Provider & {
32
+ FromConfig: typeof SidebarV2FromConfig;
33
+ Inset: typeof SidebarV2Inset;
34
+ Trigger: typeof SidebarV2Trigger;
35
+ Rail: typeof SidebarV2Rail;
36
+ RailItem: typeof SidebarV2RailItem;
37
+ RailLink: typeof SidebarV2RailLink;
38
+ RailSpacer: typeof SidebarV2RailSpacer;
39
+ Workspace: typeof SidebarV2Workspace;
40
+ Panel: typeof SidebarV2Panel;
41
+ PanelItems: typeof SidebarV2PanelItems;
42
+ PanelLeaf: typeof SidebarV2PanelLeaf;
43
+ PanelGroup: typeof SidebarV2PanelGroup;
44
+ PanelLabel: typeof SidebarV2PanelLabel;
45
+ };
46
+
47
+ export { SidebarV2, SidebarV2FromConfig, SidebarV2Inset, SidebarV2Panel, SidebarV2PanelGroup, SidebarV2PanelItems, SidebarV2PanelLabel, SidebarV2PanelLeaf, SidebarV2Provider, SidebarV2Rail, SidebarV2RailItem, SidebarV2RailLink, SidebarV2RailSpacer, SidebarV2Trigger, SidebarV2Workspace };