Skip to content

Commit dd65c83

Browse files
committed
feat: enhance component documentation with interactive prop settings
1 parent 261b111 commit dd65c83

23 files changed

+631
-365
lines changed

packages/react-ui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"typecheck": "tsc --noEmit"
3636
},
3737
"dependencies": {
38-
"@floating-ui/react": "^0.27.4",
38+
"@floating-ui/react": "^0.27.5",
3939
"@resolid/utils": "^0.3.2",
4040
"cva": "beta"
4141
},

packages/react-ui/src/components/alert/alert.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ export const AlertIndicator = (props: PrimitiveProps<"span">) => {
4242
export type AlertCloseButtonProps = {
4343
/**
4444
* 大小
45-
* @default "1.375em"
45+
* @default "1.125em"
4646
*/
4747
size?: string;
4848
};
4949

5050
export const AlertCloseButton = (props: PrimitiveProps<"button", AlertCloseButtonProps, "type" | "color">) => {
51-
const { size = "1.375em", ...rest } = props;
51+
const { size, ...rest } = props;
5252

5353
const { variant, color } = useAlert();
5454

packages/react-ui/src/components/close-button/close-button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export const CloseButton = (props: PrimitiveProps<"button", CloseButtonProps, "t
4343
noPadding = false,
4444
variant = "ghost",
4545
color = "neutral",
46-
size = "1.5em",
46+
size = "1.125em",
4747
radius = "full",
4848
"aria-label": ariaLabel = "关闭",
4949
children,

packages/react-ui/src/shared/types.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export type FormInputFieldProps = FormFieldProps & {
103103
placeholder?: string;
104104

105105
/**
106-
* 是否全宽度
106+
* 全宽度
107107
* @default false
108108
*/
109109
fullWidth?: boolean;

0 commit comments

Comments
 (0)