@sxo/component-admin 0.0.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/README.md +14 -0
- package/dist/components/AdminStyles.d.ts +109 -0
- package/dist/headless.d.ts +32 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +195 -0
- package/package.json +52 -0
package/README.md
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
export interface StatCardOptions {
|
|
2
|
+
variant?: 'simple' | 'bordered' | 'solid';
|
|
3
|
+
color?: 'primary' | 'success' | 'warning' | 'error' | 'info';
|
|
4
|
+
}
|
|
5
|
+
export declare function getStatCardClasses(options?: StatCardOptions): {
|
|
6
|
+
container: string;
|
|
7
|
+
title: string;
|
|
8
|
+
value: string;
|
|
9
|
+
trend: string;
|
|
10
|
+
};
|
|
11
|
+
export interface KanbanOptions {
|
|
12
|
+
columns?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function getKanbanClasses(options?: KanbanOptions): {
|
|
15
|
+
board: string;
|
|
16
|
+
column: string;
|
|
17
|
+
columnHeader: string;
|
|
18
|
+
columnTitle: string;
|
|
19
|
+
columnBadge: string;
|
|
20
|
+
itemList: string;
|
|
21
|
+
item: string;
|
|
22
|
+
itemTitle: string;
|
|
23
|
+
itemDesc: string;
|
|
24
|
+
itemFooter: string;
|
|
25
|
+
avatarGroup: string;
|
|
26
|
+
};
|
|
27
|
+
export declare function getDescriptionClasses(): {
|
|
28
|
+
container: string;
|
|
29
|
+
header: string;
|
|
30
|
+
title: string;
|
|
31
|
+
grid: string;
|
|
32
|
+
item: string;
|
|
33
|
+
label: string;
|
|
34
|
+
content: string;
|
|
35
|
+
};
|
|
36
|
+
export declare function getShellClasses(): {
|
|
37
|
+
layout: string;
|
|
38
|
+
sidebar: string;
|
|
39
|
+
sidebarCollapsed: string;
|
|
40
|
+
sidebarHeader: string;
|
|
41
|
+
sidebarContent: string;
|
|
42
|
+
sidebarFooter: string;
|
|
43
|
+
navItem: string;
|
|
44
|
+
navItemActive: string;
|
|
45
|
+
main: string;
|
|
46
|
+
header: string;
|
|
47
|
+
content: string;
|
|
48
|
+
};
|
|
49
|
+
export declare function getLoginClasses(variant?: 'split' | 'centered'): {
|
|
50
|
+
container: string;
|
|
51
|
+
card: string;
|
|
52
|
+
title: string;
|
|
53
|
+
subtitle: string;
|
|
54
|
+
form: string;
|
|
55
|
+
footer: string;
|
|
56
|
+
} | {
|
|
57
|
+
container: string;
|
|
58
|
+
left: string;
|
|
59
|
+
right: string;
|
|
60
|
+
card: string;
|
|
61
|
+
title: string;
|
|
62
|
+
subtitle: string;
|
|
63
|
+
form: string;
|
|
64
|
+
footer: string;
|
|
65
|
+
};
|
|
66
|
+
export declare function getResultClasses(status?: 'success' | 'error' | 'info' | 'warning' | '404' | '500'): {
|
|
67
|
+
container: string;
|
|
68
|
+
icon: {
|
|
69
|
+
base: string;
|
|
70
|
+
success: string;
|
|
71
|
+
error: string;
|
|
72
|
+
info: string;
|
|
73
|
+
warning: string;
|
|
74
|
+
'404': string;
|
|
75
|
+
'500': string;
|
|
76
|
+
};
|
|
77
|
+
title: string;
|
|
78
|
+
subtitle: string;
|
|
79
|
+
extra: string;
|
|
80
|
+
content: string;
|
|
81
|
+
};
|
|
82
|
+
export declare function getPageHeaderClasses(): {
|
|
83
|
+
container: string;
|
|
84
|
+
breadcrumb: string;
|
|
85
|
+
heading: string;
|
|
86
|
+
left: string;
|
|
87
|
+
title: string;
|
|
88
|
+
subtitle: string;
|
|
89
|
+
extra: string;
|
|
90
|
+
footer: string;
|
|
91
|
+
};
|
|
92
|
+
export declare function getQueryFilterClasses(): {
|
|
93
|
+
container: string;
|
|
94
|
+
grid: string;
|
|
95
|
+
actions: string;
|
|
96
|
+
};
|
|
97
|
+
export declare function getStepFormClasses(): {
|
|
98
|
+
container: string;
|
|
99
|
+
steps: string;
|
|
100
|
+
stepLine: string;
|
|
101
|
+
stepItem: string;
|
|
102
|
+
stepCircle: string;
|
|
103
|
+
stepActive: string;
|
|
104
|
+
stepPending: string;
|
|
105
|
+
stepCompleted: string;
|
|
106
|
+
stepTitle: string;
|
|
107
|
+
content: string;
|
|
108
|
+
footer: string;
|
|
109
|
+
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export interface KanbanItem {
|
|
2
|
+
id: string;
|
|
3
|
+
title: string;
|
|
4
|
+
description?: string;
|
|
5
|
+
tags?: string[];
|
|
6
|
+
assignee?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface KanbanColumn {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
items: KanbanItem[];
|
|
12
|
+
}
|
|
13
|
+
export declare function useKanban(initialColumns: KanbanColumn[]): {
|
|
14
|
+
columns: KanbanColumn[];
|
|
15
|
+
moveItem: (itemId: string, fromColId: string, toColId: string, newIndex: number) => void;
|
|
16
|
+
};
|
|
17
|
+
export declare function useDashboard(data: any): {
|
|
18
|
+
stats: any;
|
|
19
|
+
charts: any;
|
|
20
|
+
};
|
|
21
|
+
export declare function useShell(initialCollapsed?: boolean): {
|
|
22
|
+
readonly isCollapsed: boolean;
|
|
23
|
+
toggle: () => void;
|
|
24
|
+
subscribe: (l: (collapsed: boolean) => void) => () => boolean;
|
|
25
|
+
};
|
|
26
|
+
export declare function useSteps(total: number, initial?: number): {
|
|
27
|
+
readonly current: number;
|
|
28
|
+
next: () => void;
|
|
29
|
+
prev: () => void;
|
|
30
|
+
goTo: (step: number) => void;
|
|
31
|
+
subscribe: (l: (step: number) => void) => () => boolean;
|
|
32
|
+
};
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function i(t){return{columns:t,moveItem:(n,s,o,l)=>{console.log(`Moving item ${n} from ${s} to ${o} at index ${l}`)}}}function a(t){const r=t.stats||[],e=t.charts||[];return{stats:r,charts:e}}function c(t=!1){let r=t;const e=new Set;return{get isCollapsed(){return r},toggle:()=>{r=!r,e.forEach(n=>n(r))},subscribe:n=>(e.add(n),()=>e.delete(n))}}function d(t,r=0){let e=r;const n=new Set;return{get current(){return e},next:()=>{e<t-1&&(e++,n.forEach(s=>s(e)))},prev:()=>{e>0&&(e--,n.forEach(s=>s(e)))},goTo:s=>{s>=0&&s<t&&(e=s,n.forEach(o=>o(e)))},subscribe:s=>(n.add(s),()=>n.delete(s))}}function u(t={}){const{variant:r="bordered",color:e="primary"}=t,n={base:"p-6 rounded-xl transition-all duration-300",bordered:"border border-neutral-200 bg-white shadow-sm hover:shadow-md",simple:"bg-transparent",solid:"text-white shadow-lg"},s={primary:"bg-primary",success:"bg-success",warning:"bg-warning",error:"bg-error",info:"bg-info"};return{container:[n.base,r==="solid"?s[e]:n[r]].join(" "),title:"text-sm font-medium opacity-60 mb-2 uppercase tracking-wider",value:"text-3xl font-bold mb-1",trend:"text-xs font-semibold flex items-center gap-1"}}function b(t={}){return{board:"flex gap-6 overflow-x-auto pb-4 h-full min-h-[500px]",column:"flex-shrink-0 w-80 bg-neutral-50 rounded-xl flex flex-col max-h-full border border-neutral-100",columnHeader:"p-4 flex items-center justify-between sticky top-0 bg-neutral-50 rounded-t-xl",columnTitle:"font-bold text-sm flex items-center gap-2",columnBadge:"px-2 py-0.5 rounded-full bg-neutral-200 text-[10px] font-bold",itemList:"p-3 space-y-3 overflow-y-auto flex-1",item:"bg-white p-4 rounded-lg shadow-sm border border-neutral-200 hover:border-primary transition-colors cursor-grab active:cursor-grabbing",itemTitle:"font-medium text-sm mb-2",itemDesc:"text-xs opacity-60 line-clamp-2",itemFooter:"mt-4 pt-3 border-t border-neutral-50 flex items-center justify-between",avatarGroup:"flex -space-x-2"}}function m(){return{container:"w-full",header:"mb-6 flex items-center justify-between",title:"text-lg font-bold",grid:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-y-6 gap-x-12",item:"flex flex-col gap-1",label:"text-sm opacity-50 font-medium",content:"text-sm font-semibold"}}function f(){return{layout:"flex h-screen overflow-hidden bg-neutral-50",sidebar:"fixed inset-y-0 left-0 z-50 w-64 bg-neutral-900 text-white transition-transform duration-300 lg:static lg:translate-x-0",sidebarCollapsed:"-translate-x-full",sidebarHeader:"flex items-center h-16 px-6 border-b border-white/10",sidebarContent:"flex-1 overflow-y-auto py-6",sidebarFooter:"p-4 border-t border-white/10",navItem:"flex items-center gap-3 px-6 py-3 text-sm font-medium transition-colors hover:bg-white/5 opacity-70 hover:opacity-100",navItemActive:"bg-primary text-white opacity-100",main:"flex-1 flex flex-col min-w-0 overflow-hidden",header:"flex items-center justify-between h-16 px-8 bg-white border-b border-neutral-200 shadow-sm",content:"flex-1 overflow-y-auto p-8"}}function x(t="centered"){const r={container:"min-h-screen flex items-center justify-center bg-neutral-50",card:"w-full max-w-md p-8 bg-white rounded-2xl shadow-xl border border-neutral-100",title:"text-3xl font-bold text-center mb-2",subtitle:"text-center opacity-50 text-sm mb-8",form:"space-y-6",footer:"mt-8 text-center text-sm opacity-50"};return t==="split"?{...r,container:"min-h-screen flex",left:"hidden lg:flex flex-1 bg-primary items-center justify-center p-12 text-white",right:"flex-1 flex items-center justify-center p-8 bg-white",card:"w-full max-w-md"}:r}function g(t="info"){return{container:"flex flex-col items-center justify-center p-12 text-center",icon:{base:"text-6xl mb-6",success:"text-success",error:"text-error",info:"text-info",warning:"text-warning",404:"text-neutral-400",500:"text-error"},title:"text-2xl font-bold mb-2",subtitle:"text-sm opacity-50 mb-8 max-w-md",extra:"flex gap-4",content:"mt-8 p-6 bg-neutral-50 rounded-lg w-full max-w-2xl text-left"}}function p(){return{container:"pb-6 mb-6 border-b border-neutral-100 bg-white",breadcrumb:"text-xs opacity-40 mb-3 flex items-center gap-2",heading:"flex items-center justify-between",left:"flex items-center gap-4",title:"text-xl font-bold",subtitle:"text-sm opacity-50 ml-3 border-l border-neutral-200 pl-3",extra:"flex items-center gap-3",footer:"mt-4"}}function h(){return{container:"p-6 bg-white rounded-xl border border-neutral-100 shadow-sm mb-6",grid:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",actions:"mt-6 pt-6 border-t border-neutral-50 flex items-center justify-end gap-3"}}function w(){return{container:"max-w-3xl mx-auto py-8",steps:"flex items-center justify-between mb-12 relative",stepLine:"absolute top-4 left-0 right-0 h-0.5 bg-neutral-100 -z-10",stepItem:"flex flex-col items-center gap-2 bg-white px-4",stepCircle:"w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold border-2 transition-colors",stepActive:"border-primary bg-primary text-white",stepPending:"border-neutral-200 bg-white text-neutral-400",stepCompleted:"border-success bg-success text-white",stepTitle:"text-xs font-medium",content:"bg-white p-8 rounded-xl border border-neutral-100 shadow-sm",footer:"mt-8 flex items-center justify-center gap-4"}}exports.getDescriptionClasses=m;exports.getKanbanClasses=b;exports.getLoginClasses=x;exports.getPageHeaderClasses=p;exports.getQueryFilterClasses=h;exports.getResultClasses=g;exports.getShellClasses=f;exports.getStatCardClasses=u;exports.getStepFormClasses=w;exports.useDashboard=a;exports.useKanban=i;exports.useShell=c;exports.useSteps=d;
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
function a(t) {
|
|
2
|
+
return {
|
|
3
|
+
columns: t,
|
|
4
|
+
moveItem: (n, o, s, l) => {
|
|
5
|
+
console.log(`Moving item ${n} from ${o} to ${s} at index ${l}`);
|
|
6
|
+
}
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
function c(t) {
|
|
10
|
+
const r = t.stats || [], e = t.charts || [];
|
|
11
|
+
return {
|
|
12
|
+
stats: r,
|
|
13
|
+
charts: e
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
function d(t = !1) {
|
|
17
|
+
let r = t;
|
|
18
|
+
const e = /* @__PURE__ */ new Set();
|
|
19
|
+
return {
|
|
20
|
+
get isCollapsed() {
|
|
21
|
+
return r;
|
|
22
|
+
},
|
|
23
|
+
toggle: () => {
|
|
24
|
+
r = !r, e.forEach((n) => n(r));
|
|
25
|
+
},
|
|
26
|
+
subscribe: (n) => (e.add(n), () => e.delete(n))
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function u(t, r = 0) {
|
|
30
|
+
let e = r;
|
|
31
|
+
const n = /* @__PURE__ */ new Set();
|
|
32
|
+
return {
|
|
33
|
+
get current() {
|
|
34
|
+
return e;
|
|
35
|
+
},
|
|
36
|
+
next: () => {
|
|
37
|
+
e < t - 1 && (e++, n.forEach((o) => o(e)));
|
|
38
|
+
},
|
|
39
|
+
prev: () => {
|
|
40
|
+
e > 0 && (e--, n.forEach((o) => o(e)));
|
|
41
|
+
},
|
|
42
|
+
goTo: (o) => {
|
|
43
|
+
o >= 0 && o < t && (e = o, n.forEach((s) => s(e)));
|
|
44
|
+
},
|
|
45
|
+
subscribe: (o) => (n.add(o), () => n.delete(o))
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
function x(t = {}) {
|
|
49
|
+
const { variant: r = "bordered", color: e = "primary" } = t, n = {
|
|
50
|
+
base: "p-6 rounded-xl transition-all duration-300",
|
|
51
|
+
bordered: "border border-neutral-200 bg-white shadow-sm hover:shadow-md",
|
|
52
|
+
simple: "bg-transparent",
|
|
53
|
+
solid: "text-white shadow-lg"
|
|
54
|
+
}, o = {
|
|
55
|
+
primary: "bg-primary",
|
|
56
|
+
success: "bg-success",
|
|
57
|
+
warning: "bg-warning",
|
|
58
|
+
error: "bg-error",
|
|
59
|
+
info: "bg-info"
|
|
60
|
+
};
|
|
61
|
+
return {
|
|
62
|
+
container: [
|
|
63
|
+
n.base,
|
|
64
|
+
r === "solid" ? o[e] : n[r]
|
|
65
|
+
].join(" "),
|
|
66
|
+
title: "text-sm font-medium opacity-60 mb-2 uppercase tracking-wider",
|
|
67
|
+
value: "text-3xl font-bold mb-1",
|
|
68
|
+
trend: "text-xs font-semibold flex items-center gap-1"
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
function b(t = {}) {
|
|
72
|
+
return {
|
|
73
|
+
board: "flex gap-6 overflow-x-auto pb-4 h-full min-h-[500px]",
|
|
74
|
+
column: "flex-shrink-0 w-80 bg-neutral-50 rounded-xl flex flex-col max-h-full border border-neutral-100",
|
|
75
|
+
columnHeader: "p-4 flex items-center justify-between sticky top-0 bg-neutral-50 rounded-t-xl",
|
|
76
|
+
columnTitle: "font-bold text-sm flex items-center gap-2",
|
|
77
|
+
columnBadge: "px-2 py-0.5 rounded-full bg-neutral-200 text-[10px] font-bold",
|
|
78
|
+
itemList: "p-3 space-y-3 overflow-y-auto flex-1",
|
|
79
|
+
item: "bg-white p-4 rounded-lg shadow-sm border border-neutral-200 hover:border-primary transition-colors cursor-grab active:cursor-grabbing",
|
|
80
|
+
itemTitle: "font-medium text-sm mb-2",
|
|
81
|
+
itemDesc: "text-xs opacity-60 line-clamp-2",
|
|
82
|
+
itemFooter: "mt-4 pt-3 border-t border-neutral-50 flex items-center justify-between",
|
|
83
|
+
avatarGroup: "flex -space-x-2"
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
function f() {
|
|
87
|
+
return {
|
|
88
|
+
container: "w-full",
|
|
89
|
+
header: "mb-6 flex items-center justify-between",
|
|
90
|
+
title: "text-lg font-bold",
|
|
91
|
+
grid: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-y-6 gap-x-12",
|
|
92
|
+
item: "flex flex-col gap-1",
|
|
93
|
+
label: "text-sm opacity-50 font-medium",
|
|
94
|
+
content: "text-sm font-semibold"
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
function m() {
|
|
98
|
+
return {
|
|
99
|
+
layout: "flex h-screen overflow-hidden bg-neutral-50",
|
|
100
|
+
sidebar: "fixed inset-y-0 left-0 z-50 w-64 bg-neutral-900 text-white transition-transform duration-300 lg:static lg:translate-x-0",
|
|
101
|
+
sidebarCollapsed: "-translate-x-full",
|
|
102
|
+
sidebarHeader: "flex items-center h-16 px-6 border-b border-white/10",
|
|
103
|
+
sidebarContent: "flex-1 overflow-y-auto py-6",
|
|
104
|
+
sidebarFooter: "p-4 border-t border-white/10",
|
|
105
|
+
navItem: "flex items-center gap-3 px-6 py-3 text-sm font-medium transition-colors hover:bg-white/5 opacity-70 hover:opacity-100",
|
|
106
|
+
navItemActive: "bg-primary text-white opacity-100",
|
|
107
|
+
main: "flex-1 flex flex-col min-w-0 overflow-hidden",
|
|
108
|
+
header: "flex items-center justify-between h-16 px-8 bg-white border-b border-neutral-200 shadow-sm",
|
|
109
|
+
content: "flex-1 overflow-y-auto p-8"
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
function g(t = "centered") {
|
|
113
|
+
const r = {
|
|
114
|
+
container: "min-h-screen flex items-center justify-center bg-neutral-50",
|
|
115
|
+
card: "w-full max-w-md p-8 bg-white rounded-2xl shadow-xl border border-neutral-100",
|
|
116
|
+
title: "text-3xl font-bold text-center mb-2",
|
|
117
|
+
subtitle: "text-center opacity-50 text-sm mb-8",
|
|
118
|
+
form: "space-y-6",
|
|
119
|
+
footer: "mt-8 text-center text-sm opacity-50"
|
|
120
|
+
};
|
|
121
|
+
return t === "split" ? {
|
|
122
|
+
...r,
|
|
123
|
+
container: "min-h-screen flex",
|
|
124
|
+
left: "hidden lg:flex flex-1 bg-primary items-center justify-center p-12 text-white",
|
|
125
|
+
right: "flex-1 flex items-center justify-center p-8 bg-white",
|
|
126
|
+
card: "w-full max-w-md"
|
|
127
|
+
} : r;
|
|
128
|
+
}
|
|
129
|
+
function p(t = "info") {
|
|
130
|
+
return {
|
|
131
|
+
container: "flex flex-col items-center justify-center p-12 text-center",
|
|
132
|
+
icon: {
|
|
133
|
+
base: "text-6xl mb-6",
|
|
134
|
+
success: "text-success",
|
|
135
|
+
error: "text-error",
|
|
136
|
+
info: "text-info",
|
|
137
|
+
warning: "text-warning",
|
|
138
|
+
404: "text-neutral-400",
|
|
139
|
+
500: "text-error"
|
|
140
|
+
},
|
|
141
|
+
title: "text-2xl font-bold mb-2",
|
|
142
|
+
subtitle: "text-sm opacity-50 mb-8 max-w-md",
|
|
143
|
+
extra: "flex gap-4",
|
|
144
|
+
content: "mt-8 p-6 bg-neutral-50 rounded-lg w-full max-w-2xl text-left"
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
function h() {
|
|
148
|
+
return {
|
|
149
|
+
container: "pb-6 mb-6 border-b border-neutral-100 bg-white",
|
|
150
|
+
breadcrumb: "text-xs opacity-40 mb-3 flex items-center gap-2",
|
|
151
|
+
heading: "flex items-center justify-between",
|
|
152
|
+
left: "flex items-center gap-4",
|
|
153
|
+
title: "text-xl font-bold",
|
|
154
|
+
subtitle: "text-sm opacity-50 ml-3 border-l border-neutral-200 pl-3",
|
|
155
|
+
extra: "flex items-center gap-3",
|
|
156
|
+
footer: "mt-4"
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function w() {
|
|
160
|
+
return {
|
|
161
|
+
container: "p-6 bg-white rounded-xl border border-neutral-100 shadow-sm mb-6",
|
|
162
|
+
grid: "grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-6",
|
|
163
|
+
actions: "mt-6 pt-6 border-t border-neutral-50 flex items-center justify-end gap-3"
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
function y() {
|
|
167
|
+
return {
|
|
168
|
+
container: "max-w-3xl mx-auto py-8",
|
|
169
|
+
steps: "flex items-center justify-between mb-12 relative",
|
|
170
|
+
stepLine: "absolute top-4 left-0 right-0 h-0.5 bg-neutral-100 -z-10",
|
|
171
|
+
stepItem: "flex flex-col items-center gap-2 bg-white px-4",
|
|
172
|
+
stepCircle: "w-8 h-8 rounded-full flex items-center justify-center text-sm font-bold border-2 transition-colors",
|
|
173
|
+
stepActive: "border-primary bg-primary text-white",
|
|
174
|
+
stepPending: "border-neutral-200 bg-white text-neutral-400",
|
|
175
|
+
stepCompleted: "border-success bg-success text-white",
|
|
176
|
+
stepTitle: "text-xs font-medium",
|
|
177
|
+
content: "bg-white p-8 rounded-xl border border-neutral-100 shadow-sm",
|
|
178
|
+
footer: "mt-8 flex items-center justify-center gap-4"
|
|
179
|
+
};
|
|
180
|
+
}
|
|
181
|
+
export {
|
|
182
|
+
f as getDescriptionClasses,
|
|
183
|
+
b as getKanbanClasses,
|
|
184
|
+
g as getLoginClasses,
|
|
185
|
+
h as getPageHeaderClasses,
|
|
186
|
+
w as getQueryFilterClasses,
|
|
187
|
+
p as getResultClasses,
|
|
188
|
+
m as getShellClasses,
|
|
189
|
+
x as getStatCardClasses,
|
|
190
|
+
y as getStepFormClasses,
|
|
191
|
+
c as useDashboard,
|
|
192
|
+
a as useKanban,
|
|
193
|
+
d as useShell,
|
|
194
|
+
u as useSteps
|
|
195
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sxo/component-admin",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "Admin dashboard components and layouts for SXO.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"sxo",
|
|
7
|
+
"design-system",
|
|
8
|
+
"ui",
|
|
9
|
+
"components"
|
|
10
|
+
],
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"author": "sxo team",
|
|
13
|
+
"main": "./dist/index.cjs",
|
|
14
|
+
"module": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"import": "./dist/index.js",
|
|
20
|
+
"require": "./dist/index.cjs"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"dependencies": {
|
|
27
|
+
"@sxo/design": "0.0.0",
|
|
28
|
+
"@sxo/ui": "0.0.0"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/doki-land/sxo-engine.git",
|
|
33
|
+
"directory": "packages/component-admin"
|
|
34
|
+
},
|
|
35
|
+
"bugs": {
|
|
36
|
+
"url": "https://github.com/doki-land/sxo-engine/issues"
|
|
37
|
+
},
|
|
38
|
+
"homepage": "https://github.com/doki-land/sxo-engine/tree/main/packages/component-admin#readme",
|
|
39
|
+
"publishConfig": {
|
|
40
|
+
"access": "public"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"vite": "^5.0.0",
|
|
44
|
+
"vite-plugin-dts": "^4.0.0",
|
|
45
|
+
"typescript": "^5.0.0"
|
|
46
|
+
},
|
|
47
|
+
"type": "module",
|
|
48
|
+
"scripts": {
|
|
49
|
+
"build": "vite build",
|
|
50
|
+
"dev": "vite build --watch"
|
|
51
|
+
}
|
|
52
|
+
}
|