nicklabs-ui 1.0.1 → 1.0.2
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/index.mjs +251 -291
- package/dist/nicklabs-ui.css +1 -1
- package/dist/reset.css +40 -0
- package/dist/src/components/NAlert.vue.d.ts +3 -0
- package/dist/src/components/NButton.vue.d.ts +25 -0
- package/dist/src/components/NCheckbox.vue.d.ts +35 -0
- package/dist/src/components/NCode.vue.d.ts +8 -0
- package/dist/src/components/NDatePicker.vue.d.ts +26 -0
- package/dist/src/components/NEmpty.vue.d.ts +19 -0
- package/dist/src/components/NFileSelect.vue.d.ts +18 -0
- package/dist/src/components/NForm.vue.d.ts +30 -0
- package/dist/src/components/NInput.vue.d.ts +32 -0
- package/dist/src/components/NList.vue.d.ts +71 -0
- package/dist/src/components/NLoading.vue.d.ts +21 -0
- package/dist/src/components/NModal.vue.d.ts +31 -0
- package/dist/src/components/NSelect.vue.d.ts +26 -0
- package/dist/src/components/NSwitch.vue.d.ts +20 -0
- package/dist/src/components/NTable.vue.d.ts +54 -0
- package/dist/src/components/NTag.vue.d.ts +24 -0
- package/dist/src/components/NTextarea.vue.d.ts +32 -0
- package/dist/src/components/NToast.vue.d.ts +3 -0
- package/dist/src/components/NTooltip.vue.d.ts +20 -0
- package/dist/src/composables/useAlert.d.ts +12 -0
- package/dist/src/composables/useDisclosure.d.ts +1 -0
- package/dist/src/composables/useSidebarManager.d.ts +6 -0
- package/dist/src/composables/useToast.d.ts +11 -0
- package/dist/src/index.d.ts +28 -0
- package/dist/src/layouts/NBreadcrumb.vue.d.ts +5 -0
- package/dist/src/layouts/NCard.vue.d.ts +17 -0
- package/dist/src/layouts/NHeroSection.vue.d.ts +17 -0
- package/dist/src/layouts/NLayout.vue.d.ts +38 -0
- package/dist/src/layouts/NLoginLayout.vue.d.ts +19 -0
- package/dist/src/layouts/NNavigation.vue.d.ts +15 -0
- package/dist/src/layouts/NPaginate.vue.d.ts +12 -0
- package/dist/src/layouts/NSideFilter.vue.d.ts +13 -0
- package/dist/src/layouts/NSidebar.vue.d.ts +13 -0
- package/dist/variables.css +103 -0
- package/package.json +10 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
size?: PaddingSize;
|
|
3
|
+
radius?: RadiusSize;
|
|
4
|
+
};
|
|
5
|
+
declare var __VLS_1: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_1) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
icon?: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
declare var __VLS_14: {};
|
|
6
|
+
type __VLS_Slots = {} & {
|
|
7
|
+
default?: (props: typeof __VLS_14) => any;
|
|
8
|
+
};
|
|
9
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
10
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
13
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
14
|
+
new (): {
|
|
15
|
+
$slots: S;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import "../variables.css";
|
|
2
|
+
import "../reset.css";
|
|
3
|
+
import "@fontsource/open-sans/400.css";
|
|
4
|
+
import "@fontsource/open-sans/500.css";
|
|
5
|
+
import "@fontsource/open-sans/600.css";
|
|
6
|
+
import "@fontsource/poppins/400.css";
|
|
7
|
+
import "@fontsource/poppins/500.css";
|
|
8
|
+
import "@fontsource/poppins/600.css";
|
|
9
|
+
import "@fontsource/poppins/700.css";
|
|
10
|
+
type __VLS_Props = {
|
|
11
|
+
isShowSidebar?: boolean;
|
|
12
|
+
menus: {
|
|
13
|
+
icon: string;
|
|
14
|
+
title: string;
|
|
15
|
+
children?: {
|
|
16
|
+
icon: string;
|
|
17
|
+
title: string;
|
|
18
|
+
route: string;
|
|
19
|
+
}[];
|
|
20
|
+
}[];
|
|
21
|
+
};
|
|
22
|
+
declare var __VLS_9: {};
|
|
23
|
+
type __VLS_Slots = {} & {
|
|
24
|
+
default?: (props: typeof __VLS_9) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
27
|
+
logout: () => any;
|
|
28
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
+
onLogout?: (() => any) | undefined;
|
|
30
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
31
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
32
|
+
declare const _default: typeof __VLS_export;
|
|
33
|
+
export default _default;
|
|
34
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
35
|
+
new (): {
|
|
36
|
+
$slots: S;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
backgroundImage?: string;
|
|
3
|
+
logo?: string;
|
|
4
|
+
title?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
};
|
|
7
|
+
declare var __VLS_7: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_7) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_base: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
13
|
+
declare const _default: typeof __VLS_export;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isShowSidebar?: boolean;
|
|
3
|
+
isShowFullscreen?: boolean;
|
|
4
|
+
isShowUser?: boolean;
|
|
5
|
+
isShowLogoutButton?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
8
|
+
logout: () => any;
|
|
9
|
+
toggleSidebar: () => any;
|
|
10
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
11
|
+
onLogout?: (() => any) | undefined;
|
|
12
|
+
onToggleSidebar?: (() => any) | undefined;
|
|
13
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
14
|
+
declare const _default: typeof __VLS_export;
|
|
15
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
totalItems: number;
|
|
3
|
+
pageSize: number;
|
|
4
|
+
maxPageButtons: number;
|
|
5
|
+
}
|
|
6
|
+
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
7
|
+
onPageChange: (page: number) => any;
|
|
8
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
+
onOnPageChange?: ((page: number) => any) | undefined;
|
|
10
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
11
|
+
declare const _default: typeof __VLS_export;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
open: boolean;
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
5
|
+
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
6
|
+
close: () => any;
|
|
7
|
+
"update:open": (open: boolean) => any;
|
|
8
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<Props> & Readonly<{
|
|
9
|
+
onClose?: (() => any) | undefined;
|
|
10
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
isOpen?: boolean;
|
|
3
|
+
menus: Menu[];
|
|
4
|
+
};
|
|
5
|
+
declare const __VLS_export: import("vue", { with: { "resolution-mode": "import" } }).DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, import("vue", { with: { "resolution-mode": "import" } }).ComponentOptionsMixin, {} & {
|
|
6
|
+
"update:isOpen": (value: boolean) => any;
|
|
7
|
+
logout: () => any;
|
|
8
|
+
}, string, import("vue", { with: { "resolution-mode": "import" } }).PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
9
|
+
"onUpdate:isOpen"?: ((value: boolean) => any) | undefined;
|
|
10
|
+
onLogout?: (() => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import("vue", { with: { "resolution-mode": "import" } }).ComponentProvideOptions, false, {}, any>;
|
|
12
|
+
declare const _default: typeof __VLS_export;
|
|
13
|
+
export default _default;
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--primary-color: #2563EB;
|
|
3
|
+
--primary-hover: #1D4ED8;
|
|
4
|
+
--primary-light: #EFF6FF;
|
|
5
|
+
|
|
6
|
+
--secondary-color: #64748B;
|
|
7
|
+
|
|
8
|
+
--bg-body: #F4F9FF;
|
|
9
|
+
--bg-gradient: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
|
|
10
|
+
|
|
11
|
+
--surface-glass: rgba(255, 255, 255, 0.7);
|
|
12
|
+
--surface-glass-hover: rgba(255, 255, 255, 0.85);
|
|
13
|
+
--surface-glass-border: rgba(255, 255, 255, 0.5);
|
|
14
|
+
--surface-solid: #FFFFFF;
|
|
15
|
+
|
|
16
|
+
--text-main: #1E293B;
|
|
17
|
+
--text-secondary: #475569;
|
|
18
|
+
--text-muted: #94A3B8;
|
|
19
|
+
--text-inverse: #FFFFFF;
|
|
20
|
+
|
|
21
|
+
--slate-50: #F8FAFC;
|
|
22
|
+
--slate-100: #F1F5F9;
|
|
23
|
+
--slate-200: #E2E8F0;
|
|
24
|
+
--slate-300: #CBD5E1;
|
|
25
|
+
--slate-400: #94A3B8;
|
|
26
|
+
--slate-500: #64748B;
|
|
27
|
+
--slate-600: #475569;
|
|
28
|
+
|
|
29
|
+
--border-color: var(--slate-200);
|
|
30
|
+
|
|
31
|
+
--error-color: #EF4444;
|
|
32
|
+
--error-light: #FEF2F2;
|
|
33
|
+
--success-color: #10B981;
|
|
34
|
+
--warning-color: #F59E0B;
|
|
35
|
+
--info-color: #3B82F6;
|
|
36
|
+
|
|
37
|
+
--header-height: 64px;
|
|
38
|
+
--sidebar-logo-height: 84px;
|
|
39
|
+
--sidebar-width: 70px;
|
|
40
|
+
--sidebar-width-open: 260px;
|
|
41
|
+
|
|
42
|
+
--shadow-glass: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
|
|
43
|
+
|
|
44
|
+
--radius-sm: 4px;
|
|
45
|
+
--radius-md: 8px;
|
|
46
|
+
--radius-lg: 12px;
|
|
47
|
+
--radius-xl: 16px;
|
|
48
|
+
|
|
49
|
+
--blur-amount: 12px;
|
|
50
|
+
|
|
51
|
+
--transition-fast: 0.15s ease;
|
|
52
|
+
--transition-normal: 0.3s ease;
|
|
53
|
+
|
|
54
|
+
--font-heading: 'Poppins', sans-serif;
|
|
55
|
+
--font-body: 'Open Sans', sans-serif;
|
|
56
|
+
|
|
57
|
+
--drawer-border: var(--slate-200);
|
|
58
|
+
|
|
59
|
+
--scrollbar-width: 6px;
|
|
60
|
+
--scrollbar-height: 6px;
|
|
61
|
+
--scrollbar-track-background-color: var(--slate-100);
|
|
62
|
+
--scrollbar-thumb-background-color: var(--slate-300);
|
|
63
|
+
--scrollbar-thumb-hover-background-color: var(--slate-400);
|
|
64
|
+
--scrollbar-thumb-border-radius: 10px;
|
|
65
|
+
|
|
66
|
+
--button-background-color: var(--surface-glass);
|
|
67
|
+
|
|
68
|
+
--button-primary-background-color: var(--primary-color);
|
|
69
|
+
--button-primary-text-color: #FFFFFF;
|
|
70
|
+
--button-primary-hover-background-color: var(--primary-hover);
|
|
71
|
+
--button-primary-hover-text-color: #FFFFFF;
|
|
72
|
+
|
|
73
|
+
--button-error-background-color: var(--error-light);
|
|
74
|
+
--button-error-text-color: var(--error-color);
|
|
75
|
+
--button-error-hover-background-color: #FEE2E2;
|
|
76
|
+
--button-error-hover-text-color: var(--error-color);
|
|
77
|
+
|
|
78
|
+
--button-success-background-color: #DCFCE7;
|
|
79
|
+
--button-success-text-color: #166534;
|
|
80
|
+
--button-success-hover-background-color: #BBF7D0;
|
|
81
|
+
--button-success-hover-text-color: #166534;
|
|
82
|
+
|
|
83
|
+
--button-warning-background-color: #FEF3C7;
|
|
84
|
+
--button-warning-text-color: #92400E;
|
|
85
|
+
--button-warning-hover-background-color: #FDE68A;
|
|
86
|
+
--button-warning-hover-text-color: #92400E;
|
|
87
|
+
|
|
88
|
+
--button-info-background-color: #3B82F6;
|
|
89
|
+
--button-info-text-color: #FFFFFF;
|
|
90
|
+
--button-info-hover-background-color: #2563EB;
|
|
91
|
+
--button-info-hover-text-color: #FFFFFF;
|
|
92
|
+
|
|
93
|
+
--button-default-background-color: var(--slate-200);
|
|
94
|
+
--button-default-text-color: var(--slate-600);
|
|
95
|
+
--button-default-hover-background-color: var(--slate-300);
|
|
96
|
+
--button-default-hover-text-color: var(--slate-600);
|
|
97
|
+
|
|
98
|
+
--input-focus-ring: var(--primary-color);
|
|
99
|
+
--input-border-color: var(--slate-300);
|
|
100
|
+
--input-bg: var(--surface-solid);
|
|
101
|
+
--input-disabled-bg: var(--slate-100);
|
|
102
|
+
--input-disabled-text: var(--slate-400);
|
|
103
|
+
}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nicklabs-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
7
|
-
"types": "./dist/index.d.ts",
|
|
7
|
+
"types": "./dist/src/index.d.ts",
|
|
8
8
|
"files": [
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
@@ -13,6 +13,12 @@
|
|
|
13
13
|
"types": "./dist/src/index.d.ts",
|
|
14
14
|
"import": "./dist/index.mjs",
|
|
15
15
|
"require": "./dist/index.cjs"
|
|
16
|
+
},
|
|
17
|
+
"./reset.css": {
|
|
18
|
+
"default": "./dist/reset.css"
|
|
19
|
+
},
|
|
20
|
+
"./variables.css": {
|
|
21
|
+
"default": "./dist/variables.css"
|
|
16
22
|
}
|
|
17
23
|
},
|
|
18
24
|
"peerDependencies": {
|
|
@@ -34,9 +40,9 @@
|
|
|
34
40
|
"nicklabs-utils": "1.0.2"
|
|
35
41
|
},
|
|
36
42
|
"scripts": {
|
|
37
|
-
"build": "vite build",
|
|
43
|
+
"build": "vite build && rimraf node_modules/.tmp && vue-tsc --project tsconfig.build.json --pretty",
|
|
38
44
|
"dev": "vite build --watch",
|
|
39
|
-
"type-check": "rimraf node_modules/.tmp && vue-tsc --project tsconfig.build.json --pretty",
|
|
45
|
+
"type-check": "rimraf node_modules/.tmp && vue-tsc --project tsconfig.build.json --noEmit --pretty",
|
|
40
46
|
"build-pron": "pnpm run build && pnpm run type-check"
|
|
41
47
|
}
|
|
42
48
|
}
|