@optifye/dashboard-core 2.0.5 → 3.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 +41 -0
- package/dist/index.d.mts +499 -71
- package/dist/index.d.ts +499 -71
- package/dist/index.js +5031 -2079
- package/dist/index.mjs +4992 -2074
- package/package.json +9 -9
package/README.md
CHANGED
|
@@ -166,10 +166,17 @@ This package requires the following peer dependencies to be installed in your pr
|
|
|
166
166
|
npm install react@^18 react-dom@^18 next@^13 tailwindcss@^3 @supabase/supabase-js@^2 date-fns@^4 date-fns-tz@^3
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
+
Additionally, you'll need to install these UI and utility dependencies:
|
|
170
|
+
|
|
171
|
+
```bash
|
|
172
|
+
npm install lucide-react @heroicons/react @tabler/icons-react @radix-ui/react-select @radix-ui/react-slider @radix-ui/react-slot @radix-ui/react-tabs recharts react-day-picker sonner swr zustand axios hls.js html2canvas jspdf mixpanel-browser tailwindcss-animate @aws-sdk/client-s3 @aws-sdk/s3-request-presigner
|
|
173
|
+
```
|
|
174
|
+
|
|
169
175
|
Or if using Yarn:
|
|
170
176
|
|
|
171
177
|
```bash
|
|
172
178
|
yarn add react@^18 react-dom@^18 next@^13 tailwindcss@^3 @supabase/supabase-js@^2 date-fns@^4 date-fns-tz@^3
|
|
179
|
+
yarn add lucide-react @heroicons/react @tabler/icons-react @radix-ui/react-select @radix-ui/react-slider @radix-ui/react-slot @radix-ui/react-tabs recharts react-day-picker sonner swr zustand axios hls.js html2canvas jspdf mixpanel-browser tailwindcss-animate @aws-sdk/client-s3 @aws-sdk/s3-request-presigner
|
|
173
180
|
```
|
|
174
181
|
|
|
175
182
|
### CSS Setup
|
|
@@ -189,6 +196,40 @@ This CSS file includes:
|
|
|
189
196
|
|
|
190
197
|
**Note:** You do NOT need to separately import `react-day-picker/dist/style.css` as these styles are already included in the package's global CSS.
|
|
191
198
|
|
|
199
|
+
## Mobile Responsiveness
|
|
200
|
+
|
|
201
|
+
All dashboard components are designed to be fully responsive and mobile-friendly:
|
|
202
|
+
|
|
203
|
+
### Responsive Features
|
|
204
|
+
|
|
205
|
+
- **Adaptive Grid Layouts**: Workspace video grids automatically adjust to show 2x2 layout on mobile screens
|
|
206
|
+
- **Responsive Text Sizes**: Text sizes scale appropriately across different screen sizes
|
|
207
|
+
- **Touch-Optimized Controls**: Buttons and interactive elements are sized for touch interaction
|
|
208
|
+
- **Flexible KPI Cards**: KPI cards stack vertically on mobile screens for better readability
|
|
209
|
+
- **Mobile-First Navigation**: Compact headers and navigation elements on smaller screens
|
|
210
|
+
|
|
211
|
+
### Breakpoint System
|
|
212
|
+
|
|
213
|
+
The dashboard uses Tailwind CSS breakpoints:
|
|
214
|
+
- Mobile: < 640px (default)
|
|
215
|
+
- Small (sm): ≥ 640px
|
|
216
|
+
- Medium (md): ≥ 768px
|
|
217
|
+
- Large (lg): ≥ 1024px
|
|
218
|
+
- Extra Large (xl): ≥ 1280px
|
|
219
|
+
|
|
220
|
+
### Usage Example for Mobile View
|
|
221
|
+
|
|
222
|
+
```tsx
|
|
223
|
+
// The dashboard automatically adapts to mobile screens
|
|
224
|
+
<HomeView
|
|
225
|
+
defaultLineId={defaultLineId}
|
|
226
|
+
factoryViewId={factoryViewId}
|
|
227
|
+
// ... other props
|
|
228
|
+
/>
|
|
229
|
+
```
|
|
230
|
+
|
|
231
|
+
Components handle responsive behavior internally, no additional configuration needed.
|
|
232
|
+
|
|
192
233
|
## Troubleshooting
|
|
193
234
|
|
|
194
235
|
### Next.js Module Resolution Error
|