aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/packages/ui
diff options
context:
space:
mode:
author苏向夜 <46275354+fu050409@users.noreply.github.com>2026-04-01 10:47:28 +0800
committerGitHub <noreply@github.com>2026-04-01 10:47:28 +0800
commited0744635367a5bae9e486d796d7ba6ab696289c (patch)
tree88fdd18f7baf8f082053df8764be7f0ccd025f25 /packages/ui
parentc4dc0676d794bca2613be282867d369328ebf073 (diff)
parent0bb6b264be3205ceb367f3010961684a992263dc (diff)
downloadDropOut-ed0744635367a5bae9e486d796d7ba6ab696289c.tar.gz
DropOut-ed0744635367a5bae9e486d796d7ba6ab696289c.zip
Improve docs UI and Mermaid rendering (#125)
Refactor documentation for clarity and organization. Upgrade the @biomejs/biome dependency to version 2.4.9. Clean up imports and improve component structure in the documentation pages. ## Summary by Sourcery Refine documentation rendering and UI components while updating tooling dependencies. New Features: - Improve Mermaid diagram rendering in docs with explicit SVG rendering and stricter security configuration. Bug Fixes: - Use stable keys for mapped feature and FAQ items on the docs home page to avoid React key issues. - Adjust field error list keys to avoid collisions and improve React reconciliation. Enhancements: - Clean up and reorder exports, imports, and hook dependencies across UI components for consistency and maintainability. - Streamline docs routing and loader types by removing unused parameters and simplifying language handling. - Improve user-facing error and status messages with template literals and clearer formatting. Build: - Upgrade @biomejs/biome to version 2.4.9 and consolidate Biome configuration by removing redundant docs-specific settings. Documentation: - Tidy documentation page composition and table-of-contents handling for clearer structure.
Diffstat (limited to 'packages/ui')
-rw-r--r--packages/ui/package.json2
-rw-r--r--packages/ui/src/components/ui/accordion.tsx2
-rw-r--r--packages/ui/src/components/ui/avatar.tsx4
-rw-r--r--packages/ui/src/components/ui/card.tsx8
-rw-r--r--packages/ui/src/components/ui/dropdown-menu.tsx10
-rw-r--r--packages/ui/src/components/ui/field.tsx4
-rw-r--r--packages/ui/src/components/ui/tabs.tsx2
7 files changed, 16 insertions, 16 deletions
diff --git a/packages/ui/package.json b/packages/ui/package.json
index 2c04e98..5f46c0f 100644
--- a/packages/ui/package.json
+++ b/packages/ui/package.json
@@ -46,4 +46,4 @@
"typescript": "~5.9.3",
"vite": "npm:rolldown-vite@^7"
}
-} \ No newline at end of file
+}
diff --git a/packages/ui/src/components/ui/accordion.tsx b/packages/ui/src/components/ui/accordion.tsx
index 02ba45c..65dd3e5 100644
--- a/packages/ui/src/components/ui/accordion.tsx
+++ b/packages/ui/src/components/ui/accordion.tsx
@@ -74,4 +74,4 @@ function AccordionContent({
);
}
-export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
+export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
diff --git a/packages/ui/src/components/ui/avatar.tsx b/packages/ui/src/components/ui/avatar.tsx
index 9fd72a2..961d0bd 100644
--- a/packages/ui/src/components/ui/avatar.tsx
+++ b/packages/ui/src/components/ui/avatar.tsx
@@ -99,9 +99,9 @@ function AvatarGroupCount({
export {
Avatar,
- AvatarImage,
+ AvatarBadge,
AvatarFallback,
AvatarGroup,
AvatarGroupCount,
- AvatarBadge,
+ AvatarImage,
};
diff --git a/packages/ui/src/components/ui/card.tsx b/packages/ui/src/components/ui/card.tsx
index b7084a0..3caf2b5 100644
--- a/packages/ui/src/components/ui/card.tsx
+++ b/packages/ui/src/components/ui/card.tsx
@@ -94,10 +94,10 @@ function CardFooter({ className, ...props }: React.ComponentProps<"div">) {
export {
Card,
- CardHeader,
- CardFooter,
- CardTitle,
CardAction,
- CardDescription,
CardContent,
+ CardDescription,
+ CardFooter,
+ CardHeader,
+ CardTitle,
};
diff --git a/packages/ui/src/components/ui/dropdown-menu.tsx b/packages/ui/src/components/ui/dropdown-menu.tsx
index ee97374..33dce1b 100644
--- a/packages/ui/src/components/ui/dropdown-menu.tsx
+++ b/packages/ui/src/components/ui/dropdown-menu.tsx
@@ -252,18 +252,18 @@ function DropdownMenuShortcut({
export {
DropdownMenu,
- DropdownMenuPortal,
- DropdownMenuTrigger,
+ DropdownMenuCheckboxItem,
DropdownMenuContent,
DropdownMenuGroup,
- DropdownMenuLabel,
DropdownMenuItem,
- DropdownMenuCheckboxItem,
+ DropdownMenuLabel,
+ DropdownMenuPortal,
DropdownMenuRadioGroup,
DropdownMenuRadioItem,
DropdownMenuSeparator,
DropdownMenuShortcut,
DropdownMenuSub,
- DropdownMenuSubTrigger,
DropdownMenuSubContent,
+ DropdownMenuSubTrigger,
+ DropdownMenuTrigger,
};
diff --git a/packages/ui/src/components/ui/field.tsx b/packages/ui/src/components/ui/field.tsx
index 226e302..1214480 100644
--- a/packages/ui/src/components/ui/field.tsx
+++ b/packages/ui/src/components/ui/field.tsx
@@ -234,13 +234,13 @@ function FieldError({
export {
Field,
- FieldLabel,
+ FieldContent,
FieldDescription,
FieldError,
FieldGroup,
+ FieldLabel,
FieldLegend,
FieldSeparator,
FieldSet,
- FieldContent,
FieldTitle,
};
diff --git a/packages/ui/src/components/ui/tabs.tsx b/packages/ui/src/components/ui/tabs.tsx
index c66893f..8afbb42 100644
--- a/packages/ui/src/components/ui/tabs.tsx
+++ b/packages/ui/src/components/ui/tabs.tsx
@@ -77,4 +77,4 @@ function TabsContent({ className, ...props }: TabsPrimitive.Panel.Props) {
);
}
-export { Tabs, TabsList, TabsTrigger, TabsContent, tabsListVariants };
+export { Tabs, TabsContent, TabsList, TabsTrigger, tabsListVariants };