@lucifer91299/create-portal-app 1.1.2 → 1.1.3

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/dist/cli/index.js CHANGED
@@ -37,7 +37,7 @@ function closePrompt() {
37
37
  // src/templates/index.ts
38
38
  function genPackageJson(o) {
39
39
  const deps = {
40
- "@lucifer91299/ui": o.localUiPath ? `file:${o.localUiPath}` : "^1.1.2",
40
+ "@lucifer91299/ui": o.localUiPath ? `file:${o.localUiPath}` : "^1.1.3",
41
41
  "next": "^15.3.0",
42
42
  "react": "^19.0.0",
43
43
  "react-dom": "^19.0.0",
@@ -213,7 +213,7 @@ function genLoginPage(o) {
213
213
  return `'use client'
214
214
 
215
215
  import { ${component} } from '@lucifer91299/ui'
216
- import { useState } from 'react'
216
+ import React, { useState } from 'react'
217
217
  import { useRouter } from 'next/navigation'
218
218
 
219
219
  export default function Login() {
@@ -519,7 +519,7 @@ export default function Home() {
519
519
  function genDashboardHomePage(o) {
520
520
  return `'use client'
521
521
 
522
- import { useState } from 'react'
522
+ import React, { useState } from 'react'
523
523
  import { PageShell, DataTable, StatusBadge, useJwtAuth, PortalBarChart, PortalAreaChart, PortalDonutChart, DatePicker } from '@lucifer91299/ui'
524
524
  import { TrendingUp, Users, ShoppingCart, Activity } from 'lucide-react'
525
525
 
@@ -653,7 +653,7 @@ export default function DashboardHome() {
653
653
  function genUsersPage(_o) {
654
654
  return `'use client'
655
655
 
656
- import { useState } from 'react'
656
+ import React, { useState } from 'react'
657
657
  import { PageShell, Breadcrumbs, DataTable, StatusBadge, ActionButtons, Button, Input, Select } from '@lucifer91299/ui'
658
658
  import { UserPlus, Search } from 'lucide-react'
659
659
 
@@ -765,7 +765,7 @@ export default function UsersPage() {
765
765
  function genSettingsPage(o) {
766
766
  return `'use client'
767
767
 
768
- import { useState } from 'react'
768
+ import React, { useState } from 'react'
769
769
  import { PageShell, Breadcrumbs, Card, Input, Select, Button, AlertBanner } from '@lucifer91299/ui'
770
770
 
771
771
  const SIDEBAR_OPTIONS = [
@@ -837,7 +837,7 @@ export default function SettingsPage() {
837
837
  function genComponentsShowcasePage() {
838
838
  return `'use client'
839
839
 
840
- import { useState } from 'react'
840
+ import React, { useState } from 'react'
841
841
  import {
842
842
  PageShell, Breadcrumbs, Card, TricolorBar,
843
843
  Badge, StatusBadge, AlertBanner, LoadingSpinner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lucifer91299/create-portal-app",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Scaffold a Next.js authenticated portal with full design system in one command",
5
5
  "license": "MIT",
6
6
  "author": "Aakash Kanojiya",