@kopexa/sidebar 17.1.74 → 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.
- package/dist/chunk-3L2F566G.mjs +147 -0
- package/dist/chunk-CMYTESJM.mjs +274 -0
- package/dist/chunk-EIXUCY5M.mjs +458 -0
- package/dist/chunk-PZFEB2PM.mjs +109 -0
- package/dist/chunk-SDMGFB6V.mjs +14 -0
- package/dist/chunk-WA2NSEYE.mjs +41 -0
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +984 -2
- package/dist/index.mjs +56 -1
- package/dist/v2/app-shell.d.mts +43 -0
- package/dist/v2/app-shell.d.ts +43 -0
- package/dist/v2/app-shell.js +147 -0
- package/dist/v2/app-shell.mjs +19 -0
- package/dist/v2/components.d.mts +78 -0
- package/dist/v2/components.d.ts +78 -0
- package/dist/v2/components.js +504 -0
- package/dist/v2/components.mjs +32 -0
- package/dist/v2/context.d.mts +81 -0
- package/dist/v2/context.d.ts +81 -0
- package/dist/v2/context.js +167 -0
- package/dist/v2/context.mjs +10 -0
- package/dist/v2/from-config.d.mts +12 -0
- package/dist/v2/from-config.d.ts +12 -0
- package/dist/v2/from-config.js +691 -0
- package/dist/v2/from-config.mjs +11 -0
- package/dist/v2/index.d.mts +47 -0
- package/dist/v2/index.d.ts +47 -0
- package/dist/v2/index.js +1011 -0
- package/dist/v2/index.mjs +59 -0
- package/dist/v2/types.d.mts +80 -0
- package/dist/v2/types.d.ts +80 -0
- package/dist/v2/types.js +38 -0
- package/dist/v2/types.mjs +9 -0
- package/package.json +11 -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 };
|