briq-ui 0.0.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 +1 -0
- package/dist/Demo.d.ts +2 -0
- package/dist/briq-ui.css +1 -0
- package/dist/briq-ui.js +8213 -0
- package/dist/briq-ui.js.map +1 -0
- package/dist/briq-ui.umd.cjs +15 -0
- package/dist/briq-ui.umd.cjs.map +1 -0
- package/dist/components/Alert.d.ts +9 -0
- package/dist/components/Button.d.ts +7 -0
- package/dist/components/Card.d.ts +9 -0
- package/dist/components/Input.d.ts +9 -0
- package/dist/components/Layout.d.ts +15 -0
- package/dist/components/Modal.d.ts +12 -0
- package/dist/components/Sidebar.d.ts +28 -0
- package/dist/components/Stats.d.ts +16 -0
- package/dist/index.d.ts +8 -0
- package/dist/main.d.ts +0 -0
- package/package.json +46 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface InputProps extends React.InputHTMLAttributes<HTMLInputElement> {
|
|
3
|
+
label?: string;
|
|
4
|
+
error?: string;
|
|
5
|
+
icon?: React.ReactNode;
|
|
6
|
+
containerClassName?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Input: React.FC<InputProps>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface LayoutProps {
|
|
3
|
+
children: React.ReactNode;
|
|
4
|
+
sidebar: React.ReactNode;
|
|
5
|
+
topActions?: React.ReactNode;
|
|
6
|
+
mobileLogo?: {
|
|
7
|
+
src: string;
|
|
8
|
+
label: string;
|
|
9
|
+
};
|
|
10
|
+
onMenuClick?: () => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
contentContainerClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const Layout: React.FC<LayoutProps>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
interface ModalProps {
|
|
3
|
+
isOpen: boolean;
|
|
4
|
+
onClose: () => void;
|
|
5
|
+
title: string;
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
onSubmit?: () => void;
|
|
8
|
+
submitText?: string;
|
|
9
|
+
width?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const Modal: React.FC<ModalProps>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
export interface NavItem {
|
|
4
|
+
label: string;
|
|
5
|
+
to: string;
|
|
6
|
+
icon: LucideIcon;
|
|
7
|
+
}
|
|
8
|
+
interface SidebarProps {
|
|
9
|
+
isOpen: boolean;
|
|
10
|
+
onClose: () => void;
|
|
11
|
+
navItems: NavItem[];
|
|
12
|
+
currentPath: string;
|
|
13
|
+
onNavigate: (to: string) => void;
|
|
14
|
+
logo?: {
|
|
15
|
+
src: string;
|
|
16
|
+
alt: string;
|
|
17
|
+
label: string;
|
|
18
|
+
};
|
|
19
|
+
footer?: React.ReactNode;
|
|
20
|
+
user?: {
|
|
21
|
+
name: string;
|
|
22
|
+
email: string;
|
|
23
|
+
avatarUrl: string;
|
|
24
|
+
};
|
|
25
|
+
onLogout?: () => void;
|
|
26
|
+
}
|
|
27
|
+
export declare const Sidebar: React.FC<SidebarProps>;
|
|
28
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { LucideIcon } from 'lucide-react';
|
|
3
|
+
interface StatItem {
|
|
4
|
+
icon: LucideIcon;
|
|
5
|
+
label: string;
|
|
6
|
+
value: string | number;
|
|
7
|
+
description?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
}
|
|
10
|
+
interface StatsProps {
|
|
11
|
+
items: StatItem[];
|
|
12
|
+
columns?: 1 | 2 | 3 | 4;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const Stats: React.FC<StatsProps>;
|
|
16
|
+
export {};
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export * from './components/Button';
|
|
2
|
+
export * from './components/Input';
|
|
3
|
+
export * from './components/Card';
|
|
4
|
+
export * from './components/Alert';
|
|
5
|
+
export * from './components/Modal';
|
|
6
|
+
export * from './components/Stats';
|
|
7
|
+
export * from './components/Sidebar';
|
|
8
|
+
export * from './components/Layout';
|
package/dist/main.d.ts
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "briq-ui",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"files": [
|
|
6
|
+
"dist"
|
|
7
|
+
],
|
|
8
|
+
"main": "./dist/briq-ui.umd.cjs",
|
|
9
|
+
"module": "./dist/briq-ui.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"import": "./dist/briq-ui.js",
|
|
14
|
+
"require": "./dist/briq-ui.umd.cjs",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./style.css": "./dist/style.css"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"dev": "vite",
|
|
21
|
+
"build": "tsc && vite build",
|
|
22
|
+
"lint": "eslint .",
|
|
23
|
+
"preview": "vite preview"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"react": ">=18",
|
|
27
|
+
"react-dom": ">=18"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"clsx": "^2.1.1",
|
|
31
|
+
"framer-motion": "^12.23.26",
|
|
32
|
+
"lucide-react": "^0.475.0",
|
|
33
|
+
"tailwind-merge": "^3.4.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@types/react": "^18.3.5",
|
|
37
|
+
"@types/react-dom": "^18.3.0",
|
|
38
|
+
"@vitejs/plugin-react": "^4.3.1",
|
|
39
|
+
"autoprefixer": "^10.4.21",
|
|
40
|
+
"postcss": "^8.5.4",
|
|
41
|
+
"tailwindcss": "^3.4.17",
|
|
42
|
+
"typescript": "^5.5.3",
|
|
43
|
+
"vite": "^7.0.6",
|
|
44
|
+
"vite-plugin-dts": "^4.3.0"
|
|
45
|
+
}
|
|
46
|
+
}
|