@llmnative/react 1.19.0 → 1.19.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/README.md +4 -2
- package/dist/index.css +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +150 -139
- package/dist/index.mjs.map +1 -1
- package/dist/logHeader-Busbc8OO.mjs.map +1 -1
- package/dist/logHeader-CUsdmGAo.js +2 -0
- package/dist/{logHeader-CbzOhx-u.js.map → logHeader-CUsdmGAo.js.map} +1 -1
- package/dist/vite.js +2 -2
- package/dist/vite.js.map +1 -1
- package/dist/vite.mjs +1 -1
- package/dist/vite.mjs.map +1 -1
- package/llms-full.txt +1140 -0
- package/llms.txt +82 -0
- package/package.json +48 -43
- package/scripts/cli/setup-project.js +60 -36
- package/templates/_shared/layouts/Default.tsx +23 -0
- package/templates/_shared/sections/Footer.tsx +9 -0
- package/templates/_shared/sections/Header.tsx +24 -0
- package/templates/_shared/sections/PageHeader.tsx +10 -0
- package/templates/_shared/sections/Sidebar.tsx +22 -0
- package/templates/admin/conf/menu.ts +14 -0
- package/templates/admin/data/mockData.ts +21 -0
- package/templates/admin/pages/home/HomePage.tsx +32 -0
- package/templates/admin/pages/roles/RolesPage.tsx +25 -0
- package/templates/admin/pages/settings/SettingsPage.tsx +24 -0
- package/templates/admin/pages/users/UsersPage.tsx +54 -0
- package/templates/blank/conf/menu.ts +8 -0
- package/templates/blank/data/mockData.ts +6 -0
- package/templates/blank/pages/home/HomePage.tsx +25 -0
- package/templates/crm/conf/menu.ts +14 -0
- package/templates/crm/data/mockData.ts +24 -0
- package/templates/crm/pages/companies/CompaniesPage.tsx +42 -0
- package/templates/crm/pages/contacts/ContactsPage.tsx +48 -0
- package/templates/crm/pages/deals/DealsPage.tsx +61 -0
- package/templates/crm/pages/home/HomePage.tsx +35 -0
- package/templates/inventory/conf/menu.ts +12 -0
- package/templates/inventory/data/mockData.ts +16 -0
- package/templates/inventory/pages/categories/CategoriesPage.tsx +23 -0
- package/templates/inventory/pages/home/HomePage.tsx +35 -0
- package/templates/inventory/pages/products/ProductsPage.tsx +56 -0
- package/templates/project/conf/menu.ts +14 -0
- package/templates/project/data/mockData.ts +21 -0
- package/templates/project/pages/home/HomePage.tsx +33 -0
- package/templates/project/pages/projects/ProjectsPage.tsx +50 -0
- package/templates/project/pages/tasks/TasksPage.tsx +67 -0
- package/templates/project/pages/team/TeamPage.tsx +25 -0
- package/dist/logHeader-CbzOhx-u.js +0 -2
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Grid, Badge, Input, Select, type BadgeType } from '@llmnative/react';
|
|
3
|
+
|
|
4
|
+
const statusOptions = [
|
|
5
|
+
{ label: 'To do', value: 'todo' },
|
|
6
|
+
{ label: 'In progress', value: 'in-progress' },
|
|
7
|
+
{ label: 'Done', value: 'done' },
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
const priorityOptions = [
|
|
11
|
+
{ label: 'Low', value: 'low' },
|
|
12
|
+
{ label: 'Medium', value: 'medium' },
|
|
13
|
+
{ label: 'High', value: 'high' },
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
const priorityVariant: Record<string, BadgeType> = {
|
|
17
|
+
low: 'secondary',
|
|
18
|
+
medium: 'warning',
|
|
19
|
+
high: 'danger',
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
const statusVariant: Record<string, BadgeType> = {
|
|
23
|
+
todo: 'secondary',
|
|
24
|
+
'in-progress': 'primary',
|
|
25
|
+
done: 'success',
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export default function TasksPage() {
|
|
29
|
+
return (
|
|
30
|
+
<Grid
|
|
31
|
+
path="/tasks"
|
|
32
|
+
columns={[
|
|
33
|
+
{ key: 'title', label: 'Task', sortable: true },
|
|
34
|
+
{ key: 'project', label: 'Project', sortable: true },
|
|
35
|
+
{ key: 'assignee', label: 'Assignee' },
|
|
36
|
+
{
|
|
37
|
+
key: 'priority',
|
|
38
|
+
label: 'Priority',
|
|
39
|
+
render: ({ value }) => (
|
|
40
|
+
<Badge variant={priorityVariant[String(value)] ?? 'secondary'}>{String(value)}</Badge>
|
|
41
|
+
),
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
key: 'status',
|
|
45
|
+
label: 'Status',
|
|
46
|
+
render: ({ value }) => (
|
|
47
|
+
<Badge variant={statusVariant[String(value)] ?? 'secondary'}>{String(value)}</Badge>
|
|
48
|
+
),
|
|
49
|
+
},
|
|
50
|
+
]}
|
|
51
|
+
actions={['add', 'edit', 'delete']}
|
|
52
|
+
view="table"
|
|
53
|
+
groupBy="status"
|
|
54
|
+
sortable
|
|
55
|
+
pagination={{ limit: 25 }}
|
|
56
|
+
form={
|
|
57
|
+
<>
|
|
58
|
+
<Input name="title" label="Task title" required />
|
|
59
|
+
<Input name="project" label="Project" />
|
|
60
|
+
<Input name="assignee" label="Assignee" />
|
|
61
|
+
<Select name="priority" label="Priority" options={priorityOptions} />
|
|
62
|
+
<Select name="status" label="Status" options={statusOptions} />
|
|
63
|
+
</>
|
|
64
|
+
}
|
|
65
|
+
/>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Grid, Input } from '@llmnative/react';
|
|
3
|
+
|
|
4
|
+
export default function TeamPage() {
|
|
5
|
+
return (
|
|
6
|
+
<Grid
|
|
7
|
+
path="/team"
|
|
8
|
+
columns={[
|
|
9
|
+
{ key: 'name', label: 'Name', sortable: true },
|
|
10
|
+
{ key: 'role', label: 'Role' },
|
|
11
|
+
{ key: 'email', label: 'Email' },
|
|
12
|
+
]}
|
|
13
|
+
actions={['add', 'edit', 'delete']}
|
|
14
|
+
view="table"
|
|
15
|
+
sortable
|
|
16
|
+
form={
|
|
17
|
+
<>
|
|
18
|
+
<Input name="name" label="Full name" required />
|
|
19
|
+
<Input name="role" label="Role" />
|
|
20
|
+
<Input name="email" label="Email" type="email" />
|
|
21
|
+
</>
|
|
22
|
+
}
|
|
23
|
+
/>
|
|
24
|
+
);
|
|
25
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,a)=>(a=n==null?{}:e(i(n)),s(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),l=`x-llmnative-log-id`;Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return l}});
|
|
2
|
-
//# sourceMappingURL=logHeader-CbzOhx-u.js.map
|