refactor: rename to single package 'newspaperui' for simpler install

This commit is contained in:
sunzhongyi
2026-05-21 11:20:01 +08:00
parent 6d29e1a3e6
commit 60831e07aa
24 changed files with 42 additions and 38 deletions
@@ -7,7 +7,7 @@ import {
Headline,
Subhead,
BodyText,
} from 'newspaperui-components';
} from 'newspaperui';
import { Demo } from '@/components/Demo';
import { PropsTable } from '@/components/PropsTable';
@@ -7,7 +7,7 @@ import {
Subhead,
BodyText,
Masthead,
} from 'newspaperui-components';
} from 'newspaperui';
import { Demo } from '@/components/Demo';
import { PropsTable } from '@/components/PropsTable';
@@ -8,7 +8,7 @@ import {
BodyText,
Figure,
PullQuote,
} from 'newspaperui-components';
} from 'newspaperui';
import { Demo } from '@/components/Demo';
import { PropsTable } from '@/components/PropsTable';
@@ -7,7 +7,7 @@ import {
Subhead,
BodyText,
Rule,
} from 'newspaperui-components';
} from 'newspaperui';
import { Demo } from '@/components/Demo';
import { PropsTable } from '@/components/PropsTable';
@@ -7,7 +7,7 @@ import {
Subhead,
BodyText,
Rule,
} from 'newspaperui-components';
} from 'newspaperui';
import { CodeBlock } from '@/components/CodeBlock';
export default function ResponsivePage() {
@@ -7,7 +7,7 @@ import {
Subhead,
BodyText,
Rule,
} from 'newspaperui-components';
} from 'newspaperui';
import { Demo } from '@/components/Demo';
export default function SpanningPage() {
@@ -6,7 +6,7 @@ import {
Headline,
Subhead,
BodyText,
} from 'newspaperui-components';
} from 'newspaperui';
import { Demo } from '@/components/Demo';
import { PropsTable } from '@/components/PropsTable';
+1 -1
View File
@@ -11,7 +11,7 @@ import {
Byline,
Dateline,
Caption,
} from 'newspaperui-components';
} from 'newspaperui';
import { visualWeights, resolveFontSize } from 'newspaperui-theme';
import { Demo } from '@/components/Demo';
+1 -1
View File
@@ -6,7 +6,7 @@ import {
Headline,
Subhead,
BodyText,
} from 'newspaperui-components';
} from 'newspaperui';
import { ThemeToggle } from '@/components/ThemeToggle';
interface Swatch {
+1 -1
View File
@@ -1,5 +1,5 @@
'use client';
import { Layout, Section, Article, Rule, Headline, Subhead, Kicker, BodyText, Byline, Dateline, Figure, PullQuote } from 'newspaperui-components';
import { Layout, Section, Article, Rule, Headline, Subhead, Kicker, BodyText, Byline, Dateline, Figure, PullQuote } from 'newspaperui';
export default function EnFeature() {
return (
@@ -1,5 +1,5 @@
'use client';
import { Layout, Section, Article, Rule, BodyText, Figure } from 'newspaperui-components';
import { Layout, Section, Article, Rule, BodyText, Figure } from 'newspaperui';
const jp = { fontFamily: 'var(--font-family-cjk-jp)' };
const jpAccent = { color: 'var(--nui-accent-ink-blue)' };
+1 -1
View File
@@ -1,6 +1,6 @@
'use client';
import Link from 'next/link';
import { Layout, Section, Article, Headline, Subhead, Kicker } from 'newspaperui-components';
import { Layout, Section, Article, Headline, Subhead, Kicker } from 'newspaperui';
const blocks = [
{
@@ -1,5 +1,5 @@
'use client';
import { Layout, Section, Article, Rule, BodyText, Quote } from 'newspaperui-components';
import { Layout, Section, Article, Rule, BodyText, Quote } from 'newspaperui';
const cn = { fontFamily: 'var(--font-family-cjk-serif)' };
const cnRed = { color: 'var(--nui-accent-cjk-red)' };
+1 -1
View File
@@ -1,5 +1,5 @@
'use client';
import { Layout, Section, Article, BodyText, Quote, Figure, PullQuote } from 'newspaperui-components';
import { Layout, Section, Article, BodyText, Quote, Figure, PullQuote } from 'newspaperui';
const cn = { fontFamily: 'var(--font-family-cjk-serif)' };
const cnRed = { color: 'var(--nui-accent-cjk-red)' };
@@ -1,5 +1,5 @@
'use client';
import { Layout, Section, Article, Rule, BodyText, Figure } from 'newspaperui-components';
import { Layout, Section, Article, Rule, BodyText, Figure } from 'newspaperui';
const cn = { fontFamily: 'var(--font-family-cjk-serif)' };
const cnRed = { color: 'var(--nui-accent-cjk-red)' };
+1 -1
View File
@@ -4,7 +4,7 @@ import {
Layout, Section, Article, Masthead, Rule,
Headline, Subhead, Kicker, BodyText, Byline, Dateline, Caption,
PullQuote, Footer,
} from 'newspaperui-components';
} from 'newspaperui';
// ─── Presets ────────────────────────────────────────────────────────────────
@@ -4,7 +4,7 @@ import {
Layout, Section, Article, Masthead,
Headline, Subhead, Kicker, BodyText, Byline, Dateline,
Figure, PullQuote,
} from 'newspaperui-components';
} from 'newspaperui';
export default function BlackletterFrontPage() {
return (
@@ -4,7 +4,7 @@ import {
Layout, Section, Article, Masthead, Rule,
Headline, Subhead, Kicker, BodyText, Byline, Dateline,
Figure, PullQuote,
} from 'newspaperui-components';
} from 'newspaperui';
export default function FrontPage() {
return (
+1 -1
View File
@@ -3,7 +3,7 @@ import {
Layout, Section, Article, Masthead, Rule, Folio, IndexBox, Factbox,
Headline, Subhead, Kicker, BodyText, Byline, Dateline,
Figure, PullQuote, Footer, BreakingNewsBanner,
} from 'newspaperui-components';
} from 'newspaperui';
import Link from 'next/link';
export default function LandingPage() {