Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# AGENTS.md

Shared UI component library (`@rstack-dev/doc-ui`) for Rstack websites (rspack.rs, rsbuild.rs, rspress.rs).
Shared UI component library (`@rstackjs/doc-ui`) for Rstack websites (rspack.rs, rsbuild.rs, rspress.rs).

## Tech Stack

Expand Down Expand Up @@ -144,7 +144,7 @@ export const MyComponent: FC<MyComponentProps> = ({

```typescript
// stories/Hero.stories.tsx
import { Hero } from '@rstack-dev/doc-ui/hero';
import { Hero } from '@rstackjs/doc-ui/hero';
import './index.scss';

export const HeroStory = () => <Hero onClickGetStarted={() => {}} />;
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

Shared UI components for the Rstack websites.

> [!IMPORTANT]
> The package has been renamed from `@rstack-dev/doc-ui` to
> `@rstackjs/doc-ui`.

- <http://rspack.rs>
- <http://rsbuild.rs>
- <http://rspress.rs>
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@rstack-dev/doc-ui",
"name": "@rstackjs/doc-ui",
"version": "1.14.8",
"type": "module",
"license": "MIT",
Expand Down Expand Up @@ -100,7 +100,7 @@
"@rslib/core": "^0.23.2",
"@rslint/core": "^0.8.0",
"@rspress/core": "^2.0.19",
"@rstack-dev/doc-ui": "workspace:*",
"@rstackjs/doc-ui": "workspace:*",
"@rstest/adapter-rslib": "^0.11.8",
"@rstest/core": "^0.11.8",
"@storybook/addon-themes": "^10.5.8",
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion stories/Announcement.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Announcement } from '@rstack-dev/doc-ui/announcement';
import { Announcement } from '@rstackjs/doc-ui/announcement';
import './index.scss';

export const AnnouncementStory = () => (
Expand Down
2 changes: 1 addition & 1 deletion stories/Benchmark.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Benchmark } from '@rstack-dev/doc-ui/benchmark';
import { Benchmark } from '@rstackjs/doc-ui/benchmark';
import './index.scss';

// Benchmark data for different cases
Expand Down
4 changes: 2 additions & 2 deletions stories/BlogAuthors.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BlogBackButton } from '@rstack-dev/doc-ui/blog-back-button';
import { BlogAuthors } from '@rstack-dev/doc-ui/blog-authors';
import { BlogBackButton } from '@rstackjs/doc-ui/blog-back-button';
import { BlogAuthors } from '@rstackjs/doc-ui/blog-authors';
import { PageContext } from '@rspress/core/runtime';
import './index.scss';

Expand Down
2 changes: 1 addition & 1 deletion stories/BlogAvatar.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
BlogAvatar,
BlogAvatarGroup,
type BlogAvatarAuthor,
} from '@rstack-dev/doc-ui/blog-avatar';
} from '@rstackjs/doc-ui/blog-avatar';
import './index.scss';

const author: BlogAvatarAuthor = {
Expand Down
2 changes: 1 addition & 1 deletion stories/BlogBackButton.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BlogBackButton } from '@rstack-dev/doc-ui/blog-back-button';
import { BlogBackButton } from '@rstackjs/doc-ui/blog-back-button';
import type { ReactNode } from 'react';
import './index.scss';

Expand Down
6 changes: 3 additions & 3 deletions stories/BlogList.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { BlogAvatarAuthor } from '@rstack-dev/doc-ui/blog-avatar';
import { BlogBackground } from '@rstack-dev/doc-ui/blog-background';
import { BlogList, type BlogListItem } from '@rstack-dev/doc-ui/blog-list';
import type { BlogAvatarAuthor } from '@rstackjs/doc-ui/blog-avatar';
import { BlogBackground } from '@rstackjs/doc-ui/blog-background';
import { BlogList, type BlogListItem } from '@rstackjs/doc-ui/blog-list';
import type { ReactNode } from 'react';
import './index.scss';

Expand Down
4 changes: 2 additions & 2 deletions stories/BuiltWithRspack.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Company } from '@rstack-dev/doc-ui/built-with-rspack';
import { BuiltWithRspack } from '@rstack-dev/doc-ui/built-with-rspack';
import type { Company } from '@rstackjs/doc-ui/built-with-rspack';
import { BuiltWithRspack } from '@rstackjs/doc-ui/built-with-rspack';
import './index.scss';
import amazonLogo from './assets/amazon.svg';
import bitDevLogo from './assets/bit.svg';
Expand Down
2 changes: 1 addition & 1 deletion stories/FullyFeatured.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { type Feature, FullyFeatured } from '@rstack-dev/doc-ui/fully-featured';
import { type Feature, FullyFeatured } from '@rstackjs/doc-ui/fully-featured';
import './index.scss';
import arrow from './assets/arrow.svg';

Expand Down
4 changes: 2 additions & 2 deletions stories/Hero.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { BackgroundImage } from '@rstack-dev/doc-ui/background-image';
import { Hero } from '@rstack-dev/doc-ui/hero';
import { BackgroundImage } from '@rstackjs/doc-ui/background-image';
import { Hero } from '@rstackjs/doc-ui/hero';
import './index.scss';

export const HeroStory = () => {
Expand Down
2 changes: 1 addition & 1 deletion stories/NavIcon.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { NavIcon } from '@rstack-dev/doc-ui/nav-icon';
import { NavIcon } from '@rstackjs/doc-ui/nav-icon';
import { userEvent, within } from '@storybook/test';
import './index.scss';

Expand Down
2 changes: 1 addition & 1 deletion stories/SectionStyle.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
innerContainerStyle,
titleAndDescStyle,
titleStyle,
} from '@rstack-dev/doc-ui/section-style';
} from '@rstackjs/doc-ui/section-style';
import './index.scss';

const sections = [
Expand Down
2 changes: 1 addition & 1 deletion stories/ToolStack.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ToolStack } from '@rstack-dev/doc-ui/tool-stack';
import { ToolStack } from '@rstackjs/doc-ui/tool-stack';
import './index.scss';

export const ToolStackStory = () => (
Expand Down
4 changes: 2 additions & 2 deletions stories/WhyRspack.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import {
containerStyle,
innerContainerStyle,
} from '@rstack-dev/doc-ui/section-style';
import { type Feature, WhyRspack } from '@rstack-dev/doc-ui/why-rspack';
} from '@rstackjs/doc-ui/section-style';
import { type Feature, WhyRspack } from '@rstackjs/doc-ui/why-rspack';
import './index.scss';
import CompatibleJson from './why-rspack-assets/Compatible.json';
import Compatible from './why-rspack-assets/Compatible.svg';
Expand Down