@optifye/dashboard-core 1.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 +244 -0
- package/dist/index.d.mts +3529 -0
- package/dist/index.d.ts +3529 -0
- package/dist/index.js +15057 -0
- package/dist/index.mjs +14840 -0
- package/global.css +63 -0
- package/package.json +83 -0
package/global.css
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
@tailwind base;
|
|
2
|
+
@tailwind components;
|
|
3
|
+
@tailwind utilities;
|
|
4
|
+
|
|
5
|
+
/* Copied from app styles/globals.css so consumers automatically get same styles when importing the package */
|
|
6
|
+
|
|
7
|
+
/* Custom Range Slider Styling */
|
|
8
|
+
input[type="range"] {
|
|
9
|
+
-webkit-appearance: none;
|
|
10
|
+
appearance: none;
|
|
11
|
+
width: 100%;
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
touch-action: manipulation;
|
|
14
|
+
}
|
|
15
|
+
/* Track styling */
|
|
16
|
+
input[type="range"]::-webkit-slider-runnable-track {
|
|
17
|
+
height: 6px;
|
|
18
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
19
|
+
border-radius: 9999px;
|
|
20
|
+
}
|
|
21
|
+
/* Thumb styling */
|
|
22
|
+
input[type="range"]::-webkit-slider-thumb {
|
|
23
|
+
-webkit-appearance: none;
|
|
24
|
+
appearance: none;
|
|
25
|
+
width: 18px;
|
|
26
|
+
height: 18px;
|
|
27
|
+
background: white;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
margin-top: -6px;
|
|
30
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
|
|
31
|
+
transition: transform 0.1s ease;
|
|
32
|
+
}
|
|
33
|
+
input[type="range"]::-moz-range-track {
|
|
34
|
+
height: 6px;
|
|
35
|
+
background-color: rgba(255, 255, 255, 0.3);
|
|
36
|
+
border-radius: 9999px;
|
|
37
|
+
}
|
|
38
|
+
input[type="range"]::-moz-range-thumb {
|
|
39
|
+
width: 18px;
|
|
40
|
+
height: 18px;
|
|
41
|
+
background: white;
|
|
42
|
+
border-radius: 50%;
|
|
43
|
+
border: none;
|
|
44
|
+
box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
|
|
45
|
+
transition: transform 0.1s ease;
|
|
46
|
+
}
|
|
47
|
+
input[type="range"]:active::-webkit-slider-thumb {
|
|
48
|
+
transform: scale(1.2);
|
|
49
|
+
}
|
|
50
|
+
input[type="range"]:active::-moz-range-thumb {
|
|
51
|
+
transform: scale(1.2);
|
|
52
|
+
}
|
|
53
|
+
/* Touch Optimizations omitted for brevity (identical to app) */
|
|
54
|
+
|
|
55
|
+
/* Tailwind root vars & base layer for radius etc. */
|
|
56
|
+
@layer base {
|
|
57
|
+
:root {
|
|
58
|
+
--radius: 0.5rem;
|
|
59
|
+
}
|
|
60
|
+
body {
|
|
61
|
+
@apply bg-background text-foreground;
|
|
62
|
+
}
|
|
63
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@optifye/dashboard-core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Reusable UI & logic for Optifye dashboard",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist",
|
|
9
|
+
"global.css"
|
|
10
|
+
],
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"global.css"
|
|
13
|
+
],
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"require": "./dist/index.cjs"
|
|
19
|
+
},
|
|
20
|
+
"./global.css": "./global.css"
|
|
21
|
+
},
|
|
22
|
+
"author": "",
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": ">=18",
|
|
26
|
+
"react-dom": ">=18",
|
|
27
|
+
"next": ">=13",
|
|
28
|
+
"tailwindcss": ">=3",
|
|
29
|
+
"@supabase/supabase-js": "^2.47.0"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@aws-sdk/client-s3": "^3.464.0",
|
|
33
|
+
"@aws-sdk/s3-request-presigner": "^3.464.0",
|
|
34
|
+
"@heroicons/react": "^2.0.18",
|
|
35
|
+
"@radix-ui/react-select": "^2.1.7",
|
|
36
|
+
"@radix-ui/react-slider": "^1.2.4",
|
|
37
|
+
"@radix-ui/react-slot": "^1.1.1",
|
|
38
|
+
"@radix-ui/react-tabs": "^1.1.3",
|
|
39
|
+
"@tabler/icons-react": "^3.31.0",
|
|
40
|
+
"axios": "^1.7.0",
|
|
41
|
+
"class-variance-authority": "^0.7.1",
|
|
42
|
+
"clsx": "^2.1.0",
|
|
43
|
+
"date-fns": "^4.1.0",
|
|
44
|
+
"date-fns-tz": "^3.2.0",
|
|
45
|
+
"framer-motion": "^11.18.1",
|
|
46
|
+
"html2canvas": "^1.4.1",
|
|
47
|
+
"hls.js": "^1.6.2",
|
|
48
|
+
"jspdf": "^2.5.2",
|
|
49
|
+
"lodash": "^4.17.21",
|
|
50
|
+
"lucide-react": "^0.471.2",
|
|
51
|
+
"mixpanel-browser": "^2.58.0",
|
|
52
|
+
"react-day-picker": "^9.5.0",
|
|
53
|
+
"recharts": "^2.12.0",
|
|
54
|
+
"sonner": "^1.7.4",
|
|
55
|
+
"swr": "^2.3.0",
|
|
56
|
+
"tailwind-merge": "^2.6.0",
|
|
57
|
+
"tailwindcss-animate": "^1.0.7",
|
|
58
|
+
"zustand": "^5.0.0"
|
|
59
|
+
},
|
|
60
|
+
"devDependencies": {
|
|
61
|
+
"typescript": "^5.7.3",
|
|
62
|
+
"tsup": "^8.0.2",
|
|
63
|
+
"@changesets/cli": "^2",
|
|
64
|
+
"@types/lodash": "^4.17.13",
|
|
65
|
+
"@types/mixpanel-browser": "^2.51.0",
|
|
66
|
+
"@types/react": "^19.0.4",
|
|
67
|
+
"@types/react-dom": "^19.0.2"
|
|
68
|
+
},
|
|
69
|
+
"scripts": {
|
|
70
|
+
"build": "tsup",
|
|
71
|
+
"dev": "tsup --watch",
|
|
72
|
+
"clean": "rm -rf dist",
|
|
73
|
+
"prepublishOnly": "npm run build",
|
|
74
|
+
"release": "changeset publish",
|
|
75
|
+
"version": "changeset version"
|
|
76
|
+
},
|
|
77
|
+
"repository": {
|
|
78
|
+
"type": "git",
|
|
79
|
+
"url": "git+https://github.com/optifye/dashboard-core.git"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|