feat(build): migrate from Prettier to Oxfmt for performant code formatting (#42434)

This commit is contained in:
Đỗ Trọng Hải
2026-08-04 00:27:05 +07:00
committed by GitHub
parent 10f7927603
commit e4ef84ca72
2328 changed files with 90728 additions and 32682 deletions

View File

@@ -33,48 +33,43 @@ Alert component for displaying important messages to users. Wraps Ant Design Ale
<StoryWithControls
component="Alert"
props={{
closable: true,
type: "info",
message: "This is a sample alert message.",
description: "Sample description for additional context.",
showIcon: true
}}
closable: true,
type: 'info',
message: 'This is a sample alert message.',
description: 'Sample description for additional context.',
showIcon: true,
}}
controls={[
{
name: "closable",
label: "Closable",
type: "boolean",
description: "Whether the Alert can be closed with a close button."
},
{
name: "type",
label: "Type",
type: "select",
options: [
"info",
"error",
"warning",
"success"
],
description: "Type of the alert (e.g., info, error, warning, success)."
},
{
name: "message",
label: "Message",
type: "text"
},
{
name: "description",
label: "Description",
type: "text"
},
{
name: "showIcon",
label: "Show Icon",
type: "boolean",
description: "Whether to display an icon in the Alert."
}
]}
{
name: 'closable',
label: 'Closable',
type: 'boolean',
description: 'Whether the Alert can be closed with a close button.',
},
{
name: 'type',
label: 'Type',
type: 'select',
options: ['info', 'error', 'warning', 'success'],
description: 'Type of the alert (e.g., info, error, warning, success).',
},
{
name: 'message',
label: 'Message',
type: 'text',
},
{
name: 'description',
label: 'Description',
type: 'text',
},
{
name: 'showIcon',
label: 'Show Icon',
type: 'boolean',
description: 'Whether to display an icon in the Alert.',
},
]}
/>
## Try It
@@ -97,13 +92,13 @@ function Demo() {
## Props
| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `closable` | `boolean` | `true` | Whether the Alert can be closed with a close button. |
| `type` | `string` | `"info"` | Type of the alert (e.g., info, error, warning, success). |
| `message` | `string` | `"This is a sample alert message."` | - |
| `description` | `string` | `"Sample description for additional context."` | - |
| `showIcon` | `boolean` | `true` | Whether to display an icon in the Alert. |
| Prop | Type | Default | Description |
| ------------- | --------- | ---------------------------------------------- | -------------------------------------------------------- |
| `closable` | `boolean` | `true` | Whether the Alert can be closed with a close button. |
| `type` | `string` | `"info"` | Type of the alert (e.g., info, error, warning, success). |
| `message` | `string` | `"This is a sample alert message."` | - |
| `description` | `string` | `"Sample description for additional context."` | - |
| `showIcon` | `boolean` | `true` | Whether to display an icon in the Alert. |
## Import