@jameskabz/nextcraft-ui 0.5.0 → 0.6.1
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/README.md +94 -0
- package/dist/chunk-6F7FN2ZF.js +671 -0
- package/dist/chunk-6F7FN2ZF.js.map +1 -0
- package/dist/chunk-7Q4Z47HT.js +657 -0
- package/dist/chunk-7Q4Z47HT.js.map +1 -0
- package/dist/chunk-7SKDTIEK.js +49 -0
- package/dist/chunk-7SKDTIEK.js.map +1 -0
- package/dist/chunk-FEFH5O5K.js +49 -0
- package/dist/chunk-FEFH5O5K.js.map +1 -0
- package/dist/chunk-M2EKVXB6.js +127 -0
- package/dist/chunk-M2EKVXB6.js.map +1 -0
- package/dist/chunk-SBLIF6UU.js +1029 -0
- package/dist/chunk-SBLIF6UU.js.map +1 -0
- package/dist/chunk-VQ6T3HIX.js +9 -0
- package/dist/chunk-VQ6T3HIX.js.map +1 -0
- package/dist/chunk-YVZL4GET.js +328 -0
- package/dist/chunk-YVZL4GET.js.map +1 -0
- package/dist/chunk-ZRV4Y374.js +582 -0
- package/dist/chunk-ZRV4Y374.js.map +1 -0
- package/dist/craft/components.cjs +1838 -0
- package/dist/craft/components.cjs.map +1 -0
- package/dist/craft/components.d.cts +369 -0
- package/dist/craft/components.d.ts +369 -0
- package/dist/craft/components.js +78 -0
- package/dist/craft/components.js.map +1 -0
- package/dist/craft/forms.cjs +1376 -0
- package/dist/craft/forms.cjs.map +1 -0
- package/dist/craft/forms.d.cts +101 -0
- package/dist/craft/forms.d.ts +101 -0
- package/dist/craft/forms.js +14 -0
- package/dist/craft/forms.js.map +1 -0
- package/dist/craft/layout.cjs +410 -0
- package/dist/craft/layout.cjs.map +1 -0
- package/dist/craft/layout.d.cts +170 -0
- package/dist/craft/layout.d.ts +170 -0
- package/dist/craft/layout.js +27 -0
- package/dist/craft/layout.js.map +1 -0
- package/dist/craft/table.cjs +662 -0
- package/dist/craft/table.cjs.map +1 -0
- package/dist/craft/table.d.cts +99 -0
- package/dist/craft/table.d.ts +99 -0
- package/dist/craft/table.js +15 -0
- package/dist/craft/table.js.map +1 -0
- package/dist/craft/theme.cjs +166 -0
- package/dist/craft/theme.cjs.map +1 -0
- package/dist/craft/theme.d.cts +10 -0
- package/dist/craft/theme.d.ts +10 -0
- package/dist/craft/theme.js +12 -0
- package/dist/craft/theme.js.map +1 -0
- package/dist/index.cjs +1000 -299
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -499
- package/dist/index.d.ts +10 -499
- package/dist/index.js +81 -2689
- package/dist/index.js.map +1 -1
- package/dist/styles.css +124 -0
- package/dist/theme-context-EVI9PfKv.d.cts +22 -0
- package/dist/theme-context-EVI9PfKv.d.ts +22 -0
- package/package.json +28 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
3
|
+
|
|
4
|
+
type AppShellProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
5
|
+
sidebar?: React.ReactNode;
|
|
6
|
+
topNav?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
declare function AppShell({ className, sidebar, topNav, children, ...props }: AppShellProps): react_jsx_runtime.JSX.Element;
|
|
9
|
+
|
|
10
|
+
type LayoutIconName = string;
|
|
11
|
+
type LayoutBreadcrumbItem = {
|
|
12
|
+
label: string;
|
|
13
|
+
href?: string;
|
|
14
|
+
};
|
|
15
|
+
type LayoutSidebarItem = {
|
|
16
|
+
label: string;
|
|
17
|
+
href?: string;
|
|
18
|
+
icon?: LayoutIconName;
|
|
19
|
+
active?: boolean;
|
|
20
|
+
};
|
|
21
|
+
type LayoutConfig = {
|
|
22
|
+
sidebar?: {
|
|
23
|
+
title?: string;
|
|
24
|
+
items: LayoutSidebarItem[];
|
|
25
|
+
footerText?: string;
|
|
26
|
+
};
|
|
27
|
+
header?: {
|
|
28
|
+
title?: string;
|
|
29
|
+
breadcrumb?: LayoutBreadcrumbItem[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
declare const layoutConfigSchema: {
|
|
33
|
+
readonly $schema: "https://json-schema.org/draft/2020-12/schema";
|
|
34
|
+
readonly title: "Nextcraft UI Layout Config";
|
|
35
|
+
readonly type: "object";
|
|
36
|
+
readonly additionalProperties: false;
|
|
37
|
+
readonly properties: {
|
|
38
|
+
readonly sidebar: {
|
|
39
|
+
readonly type: "object";
|
|
40
|
+
readonly additionalProperties: false;
|
|
41
|
+
readonly properties: {
|
|
42
|
+
readonly title: {
|
|
43
|
+
readonly type: "string";
|
|
44
|
+
};
|
|
45
|
+
readonly footerText: {
|
|
46
|
+
readonly type: "string";
|
|
47
|
+
};
|
|
48
|
+
readonly items: {
|
|
49
|
+
readonly type: "array";
|
|
50
|
+
readonly items: {
|
|
51
|
+
readonly type: "object";
|
|
52
|
+
readonly additionalProperties: false;
|
|
53
|
+
readonly properties: {
|
|
54
|
+
readonly label: {
|
|
55
|
+
readonly type: "string";
|
|
56
|
+
};
|
|
57
|
+
readonly href: {
|
|
58
|
+
readonly type: "string";
|
|
59
|
+
};
|
|
60
|
+
readonly icon: {
|
|
61
|
+
readonly type: "string";
|
|
62
|
+
};
|
|
63
|
+
readonly active: {
|
|
64
|
+
readonly type: "boolean";
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
readonly required: readonly ["label"];
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly required: readonly ["items"];
|
|
72
|
+
};
|
|
73
|
+
readonly header: {
|
|
74
|
+
readonly type: "object";
|
|
75
|
+
readonly additionalProperties: false;
|
|
76
|
+
readonly properties: {
|
|
77
|
+
readonly title: {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
};
|
|
80
|
+
readonly breadcrumb: {
|
|
81
|
+
readonly type: "array";
|
|
82
|
+
readonly items: {
|
|
83
|
+
readonly type: "object";
|
|
84
|
+
readonly additionalProperties: false;
|
|
85
|
+
readonly properties: {
|
|
86
|
+
readonly label: {
|
|
87
|
+
readonly type: "string";
|
|
88
|
+
};
|
|
89
|
+
readonly href: {
|
|
90
|
+
readonly type: "string";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
readonly required: readonly ["label"];
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
type AppTemplateProps = {
|
|
102
|
+
config: LayoutConfig;
|
|
103
|
+
headerActions?: React.ReactNode;
|
|
104
|
+
headerBreadcrumb?: React.ReactNode;
|
|
105
|
+
sidebarFooter?: React.ReactNode;
|
|
106
|
+
resolveIcon?: (name: string) => React.ReactNode;
|
|
107
|
+
icons?: Record<string, React.ReactNode>;
|
|
108
|
+
activePath?: string;
|
|
109
|
+
getActivePath?: () => string | undefined;
|
|
110
|
+
lucideFallback?: boolean;
|
|
111
|
+
children: React.ReactNode;
|
|
112
|
+
};
|
|
113
|
+
declare function AppTemplate({ config, headerActions, headerBreadcrumb, sidebarFooter, resolveIcon, icons, activePath, getActivePath, lucideFallback, children, }: AppTemplateProps): react_jsx_runtime.JSX.Element;
|
|
114
|
+
|
|
115
|
+
type SidebarItem = {
|
|
116
|
+
label: React.ReactNode;
|
|
117
|
+
href?: string;
|
|
118
|
+
icon?: React.ReactNode;
|
|
119
|
+
active?: boolean;
|
|
120
|
+
};
|
|
121
|
+
type SidebarProps = React.HTMLAttributes<HTMLElement> & {
|
|
122
|
+
title?: React.ReactNode;
|
|
123
|
+
items: SidebarItem[];
|
|
124
|
+
footer?: React.ReactNode;
|
|
125
|
+
};
|
|
126
|
+
declare function Sidebar({ className, title, items, footer, ...props }: SidebarProps): react_jsx_runtime.JSX.Element;
|
|
127
|
+
|
|
128
|
+
type TopNavProps = React.HTMLAttributes<HTMLElement> & {
|
|
129
|
+
title?: React.ReactNode;
|
|
130
|
+
actions?: React.ReactNode;
|
|
131
|
+
breadcrumb?: React.ReactNode;
|
|
132
|
+
};
|
|
133
|
+
declare function TopNav({ className, title, actions, breadcrumb, ...props }: TopNavProps): react_jsx_runtime.JSX.Element;
|
|
134
|
+
|
|
135
|
+
type PageHeaderProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
136
|
+
title: React.ReactNode;
|
|
137
|
+
description?: React.ReactNode;
|
|
138
|
+
actions?: React.ReactNode;
|
|
139
|
+
};
|
|
140
|
+
declare function PageHeader({ className, title, description, actions, ...props }: PageHeaderProps): react_jsx_runtime.JSX.Element;
|
|
141
|
+
|
|
142
|
+
type BreadcrumbItem = {
|
|
143
|
+
label: React.ReactNode;
|
|
144
|
+
href?: string;
|
|
145
|
+
};
|
|
146
|
+
type BreadcrumbsProps = React.HTMLAttributes<HTMLElement> & {
|
|
147
|
+
items: BreadcrumbItem[];
|
|
148
|
+
};
|
|
149
|
+
declare function Breadcrumbs({ className, items, ...props }: BreadcrumbsProps): react_jsx_runtime.JSX.Element;
|
|
150
|
+
|
|
151
|
+
type AuthLayoutProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
152
|
+
title?: React.ReactNode;
|
|
153
|
+
description?: React.ReactNode;
|
|
154
|
+
footer?: React.ReactNode;
|
|
155
|
+
graphic?: React.ReactNode;
|
|
156
|
+
};
|
|
157
|
+
declare function AuthLayout({ className, title, description, footer, graphic, children, ...props }: AuthLayoutProps): react_jsx_runtime.JSX.Element;
|
|
158
|
+
|
|
159
|
+
type ContainerProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
160
|
+
size?: "sm" | "md" | "lg" | "xl";
|
|
161
|
+
};
|
|
162
|
+
declare function Container({ className, size, ...props }: ContainerProps): react_jsx_runtime.JSX.Element;
|
|
163
|
+
|
|
164
|
+
type GridProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
165
|
+
columns?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
166
|
+
gap?: "sm" | "md" | "lg" | "xl";
|
|
167
|
+
};
|
|
168
|
+
declare function Grid({ className, columns, gap, ...props }: GridProps): react_jsx_runtime.JSX.Element;
|
|
169
|
+
|
|
170
|
+
export { AppShell, type AppShellProps, AppTemplate, type AppTemplateProps, AuthLayout, type AuthLayoutProps, type BreadcrumbItem, Breadcrumbs, type BreadcrumbsProps, Container, type ContainerProps, Grid, type GridProps, type LayoutBreadcrumbItem, type LayoutConfig, type LayoutIconName, type LayoutSidebarItem, PageHeader, type PageHeaderProps, Sidebar, type SidebarItem, type SidebarProps, TopNav, type TopNavProps, layoutConfigSchema };
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AppShell,
|
|
3
|
+
AppTemplate,
|
|
4
|
+
AuthLayout,
|
|
5
|
+
Breadcrumbs,
|
|
6
|
+
Container,
|
|
7
|
+
Grid,
|
|
8
|
+
PageHeader,
|
|
9
|
+
Sidebar,
|
|
10
|
+
TopNav,
|
|
11
|
+
layoutConfigSchema
|
|
12
|
+
} from "../chunk-YVZL4GET.js";
|
|
13
|
+
import "../chunk-FEFH5O5K.js";
|
|
14
|
+
import "../chunk-VQ6T3HIX.js";
|
|
15
|
+
export {
|
|
16
|
+
AppShell,
|
|
17
|
+
AppTemplate,
|
|
18
|
+
AuthLayout,
|
|
19
|
+
Breadcrumbs,
|
|
20
|
+
Container,
|
|
21
|
+
Grid,
|
|
22
|
+
PageHeader,
|
|
23
|
+
Sidebar,
|
|
24
|
+
TopNav,
|
|
25
|
+
layoutConfigSchema
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=layout.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|