diff --git a/.changeset/add-mdx-content-components.md b/.changeset/add-mdx-content-components.md deleted file mode 100644 index 366d058e..00000000 --- a/.changeset/add-mdx-content-components.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@zpress/ui': minor ---- - -Add MDX content components for doc-platform parity: Accordion, AccordionGroup, Columns, Column, StatusBadge, Frame, Tooltip, Prompt, and Color. Reorganize theme barrel with public API sections and @internal annotations on framework exports. diff --git a/docs/references/built-ins/field.mdx b/docs/references/built-ins/field.mdx index 9f013846..09e57339 100644 --- a/docs/references/built-ins/field.mdx +++ b/docs/references/built-ins/field.mdx @@ -245,20 +245,20 @@ For objects nested deeper than two levels, consider linking to a dedicated refer ## Field props -| Prop | Type | Required | Default | Description | -| -------------- | ----------- | -------- | ------- | ---------------------------------------------------------------- | -| `name` | `string` | yes | --- | Field name, rendered in monospace bold | -| `type` | `string` | no | --- | Type annotation shown as a pill badge | -| `required` | `boolean` | no | `false` | Shows a "required" badge instead of "optional" | -| `deprecated` | `boolean` | no | `false` | Shows a "deprecated" badge and strikes through the name | -| `defaultValue` | `string` | no | --- | Default value displayed below the header row | -| `children` | `ReactNode` | yes | --- | Description text and optional nested FieldGroup | +| Prop | Type | Required | Default | Description | +| -------------- | ----------- | -------- | ------- | ------------------------------------------------------- | +| `name` | `string` | yes | --- | Field name, rendered in monospace bold | +| `type` | `string` | no | --- | Type annotation shown as a pill badge | +| `required` | `boolean` | no | `false` | Shows a "required" badge instead of "optional" | +| `deprecated` | `boolean` | no | `false` | Shows a "deprecated" badge and strikes through the name | +| `defaultValue` | `string` | no | --- | Default value displayed below the header row | +| `children` | `ReactNode` | yes | --- | Description text and optional nested FieldGroup | ## FieldGroup props -| Prop | Type | Required | Default | Description | -| ------------- | ----------- | -------- | ------- | ---------------------------------------------------------- | -| `title` | `string` | yes | --- | Group label displayed as a header or collapsible trigger | -| `expandable` | `boolean` | no | `false` | Renders as a collapsible section with a toggle trigger | -| `defaultOpen` | `boolean` | no | `false` | Initial expanded state when `expandable` is true | -| `children` | `ReactNode` | yes | --- | Field children to display within the group | +| Prop | Type | Required | Default | Description | +| ------------- | ----------- | -------- | ------- | -------------------------------------------------------- | +| `title` | `string` | yes | --- | Group label displayed as a header or collapsible trigger | +| `expandable` | `boolean` | no | `false` | Renders as a collapsible section with a toggle trigger | +| `defaultOpen` | `boolean` | no | `false` | Initial expanded state when `expandable` is true | +| `children` | `ReactNode` | yes | --- | Field children to display within the group | diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index f76488d2..7488bd0c 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -1,5 +1,12 @@ # @zpress/cli +## 0.8.4 + +### Patch Changes + +- Updated dependencies [4c04f9d] + - @zpress/ui@0.9.0 + ## 0.8.3 ### Patch Changes diff --git a/packages/cli/package.json b/packages/cli/package.json index fcb58234..ee66abe7 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@zpress/cli", - "version": "0.8.3", + "version": "0.8.4", "description": "CLI for building and serving zpress documentation sites", "keywords": [ "cli", diff --git a/packages/ui/CHANGELOG.md b/packages/ui/CHANGELOG.md index b52505f4..8be59d17 100644 --- a/packages/ui/CHANGELOG.md +++ b/packages/ui/CHANGELOG.md @@ -1,5 +1,11 @@ # @zpress/ui +## 0.9.0 + +### Minor Changes + +- 4c04f9d: Add MDX content components for doc-platform parity: Accordion, AccordionGroup, Columns, Column, StatusBadge, Frame, Tooltip, Prompt, and Color. Reorganize theme barrel with public API sections and @internal annotations on framework exports. + ## 0.8.13 ### Patch Changes diff --git a/packages/ui/package.json b/packages/ui/package.json index 4f3e45e6..7f7dee2d 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@zpress/ui", - "version": "0.8.13", + "version": "0.9.0", "description": "Rspress plugin, theme components, and styles for zpress", "keywords": [ "react", diff --git a/packages/ui/src/theme/components/shared/field.tsx b/packages/ui/src/theme/components/shared/field.tsx index 932e18e0..b56efd3c 100644 --- a/packages/ui/src/theme/components/shared/field.tsx +++ b/packages/ui/src/theme/components/shared/field.tsx @@ -136,7 +136,11 @@ export function FieldGroup({ children, }: FieldGroupProps): React.ReactElement { return match(expandable) - .with(true, () => {children}) + .with(true, () => ( + + {children} + + )) .otherwise(() => (
{title}
diff --git a/packages/zpress/CHANGELOG.md b/packages/zpress/CHANGELOG.md index 04b29139..b8b47f58 100644 --- a/packages/zpress/CHANGELOG.md +++ b/packages/zpress/CHANGELOG.md @@ -1,5 +1,13 @@ # @zpress/kit +## 0.2.20 + +### Patch Changes + +- Updated dependencies [4c04f9d] + - @zpress/ui@0.9.0 + - @zpress/cli@0.8.4 + ## 0.2.19 ### Patch Changes diff --git a/packages/zpress/package.json b/packages/zpress/package.json index eed1cbab..98ff310c 100644 --- a/packages/zpress/package.json +++ b/packages/zpress/package.json @@ -1,6 +1,6 @@ { "name": "@zpress/kit", - "version": "0.2.19", + "version": "0.2.20", "description": "Documentation framework powered by Rspress with a config-driven information architecture", "keywords": [ "docs",