ptechcore_ui 1.0.0 → 1.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/package.json +2 -1
- package/src/components/layout/ModernDoubleSidebarLayout.tsx +4 -12
- package/src/contexts/SessionContext.tsx +1 -1
- package/src/index.ts +10 -0
- package/src/pages/organizations/DetailEntity.tsx +1 -1
- package/src/pages/organizations/DetailOrganizations.tsx +1 -2
- package/src/pages/users/CreateUser.tsx +0 -2
- package/tsconfig.json +25 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ptechcore_ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"dev": "vite",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"globals": "^15.9.0",
|
|
35
35
|
"postcss": "^8.4.35",
|
|
36
36
|
"tailwindcss": "^3.4.1",
|
|
37
|
+
"tsup": "^8.5.0",
|
|
37
38
|
"typescript": "^5.5.3",
|
|
38
39
|
"typescript-eslint": "^8.3.0",
|
|
39
40
|
"vite": "^5.4.2"
|
|
@@ -1,18 +1,10 @@
|
|
|
1
|
-
import React, { useState, useEffect
|
|
2
|
-
import {
|
|
1
|
+
import React, { useState, useEffect} from 'react';
|
|
2
|
+
import {useLocation, useNavigate } from 'react-router-dom';
|
|
3
3
|
|
|
4
4
|
import {
|
|
5
|
-
LayoutDashboard, FileText, Users, CreditCard, TrendingUp,
|
|
6
5
|
Settings, ChevronLeft, ChevronRight, Search, Bell, User,
|
|
7
|
-
LogOut, Menu, X,
|
|
8
|
-
|
|
9
|
-
DollarSign, BarChart3, Briefcase, Receipt, UserCheck,
|
|
10
|
-
Database, Globe, HelpCircle, Activity, Lock, AlertTriangle,
|
|
11
|
-
CheckCircle, Clock, FileCheck, Bot, ScanLine,
|
|
12
|
-
MessageSquare, Smartphone, Workflow, RefreshCw, Wifi,
|
|
13
|
-
Eye, Target, BookOpen, Archive, Download,
|
|
14
|
-
Upload, Save, FolderOpen, Home, ChevronDown, Link, PieChart,
|
|
15
|
-
Video, Calendar, Folder
|
|
6
|
+
LogOut, Menu, X, Palette,
|
|
7
|
+
DollarSign, HelpCircle,
|
|
16
8
|
} from 'lucide-react';
|
|
17
9
|
import { cn } from '../../utils/utils';
|
|
18
10
|
import { useTheme } from '../../contexts/ThemeContext';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { createContext, useContext, useEffect, useState, ReactNode } from 'react';
|
|
2
2
|
import { AuthServices } from '../services/AuthServices';
|
|
3
3
|
import { User } from '../models/User';
|
|
4
4
|
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import PrimaryButton, { SecondaryButton } from "./components/common/Buttons.js";
|
|
2
|
+
import RewiseLayout from "./components/layout/ModernDoubleSidebarLayout.js";
|
|
3
|
+
import ToastContainer from "./components/ui/Toast.js";
|
|
4
|
+
|
|
5
|
+
import { SessionProvider } from "./contexts/SessionContext.js";
|
|
6
|
+
import ThemeProvider from "./contexts/ThemeContext.js";
|
|
7
|
+
import { ToastProvider } from "./contexts/ToastContext.js";
|
|
8
|
+
|
|
9
|
+
export { ToastContainer, RewiseLayout, SessionProvider, ThemeProvider, ToastProvider, PrimaryButton, SecondaryButton };
|
|
10
|
+
export type { MenuItem } from "./components/layout/ModernDoubleSidebarLayout.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useState, useEffect } from "react";
|
|
2
|
-
import { EntityServices
|
|
2
|
+
import { EntityServices } from "../../services/OrganizationServices";
|
|
3
3
|
import { UserServices } from "../../services/UserServices";
|
|
4
4
|
import { useNavigate, useParams } from "react-router-dom";
|
|
5
5
|
import { useToast } from "../../contexts/ToastContext";
|
|
@@ -7,7 +7,6 @@ import {
|
|
|
7
7
|
Trash2,
|
|
8
8
|
Plus,
|
|
9
9
|
MapPin,
|
|
10
|
-
User as UserIcon,
|
|
11
10
|
Eye,
|
|
12
11
|
CreditCard,
|
|
13
12
|
FileText,
|
|
@@ -23,7 +22,7 @@ import ListPricing from '../pricings/ListPricing';
|
|
|
23
22
|
import { Entity, Organization } from '../../models/Organization';
|
|
24
23
|
import { Module } from '../../models/Plan';
|
|
25
24
|
import { ModuleServices } from '../../services/PlanSubscriptionServices';
|
|
26
|
-
import PrimaryButton
|
|
25
|
+
import PrimaryButton from '../../components/common/Buttons';
|
|
27
26
|
import Modal from '../../components/common/Modals';
|
|
28
27
|
|
|
29
28
|
|
package/tsconfig.json
CHANGED
|
@@ -3,5 +3,29 @@
|
|
|
3
3
|
"references": [
|
|
4
4
|
{ "path": "./tsconfig.app.json" },
|
|
5
5
|
{ "path": "./tsconfig.node.json" }
|
|
6
|
-
]
|
|
6
|
+
],
|
|
7
|
+
"compilerOptions": {
|
|
8
|
+
"target": "ES2022",
|
|
9
|
+
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
|
10
|
+
"module": "ESNext",
|
|
11
|
+
"moduleResolution": "node",
|
|
12
|
+
"jsx": "react-jsx",
|
|
13
|
+
"allowSyntheticDefaultImports": true,
|
|
14
|
+
"esModuleInterop": true,
|
|
15
|
+
"skipLibCheck": true,
|
|
16
|
+
"forceConsistentCasingInFileNames": true,
|
|
17
|
+
"strict": false,
|
|
18
|
+
"noUnusedLocals": false,
|
|
19
|
+
"noUnusedParameters": false,
|
|
20
|
+
"noFallthroughCasesInSwitch": true,
|
|
21
|
+
"isolatedModules": true,
|
|
22
|
+
"resolveJsonModule": true,
|
|
23
|
+
"types": ["react", "react-dom"],
|
|
24
|
+
"declaration": true,
|
|
25
|
+
"declarationMap": true,
|
|
26
|
+
"sourceMap": true,
|
|
27
|
+
"outDir": "dist"
|
|
28
|
+
},
|
|
29
|
+
"include": ["src"],
|
|
30
|
+
"exclude": ["node_modules", "dist", "build"],
|
|
7
31
|
}
|