Skip to content

Commit 4f2f041

Browse files
Copilothotlong
andcommitted
Refactor: Simplify Component Protocol to be implementation-agnostic
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 53090e5 commit 4f2f041

28 files changed

Lines changed: 641 additions & 2288 deletions
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: AccordionComponent
3+
description: AccordionComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: AlertComponent
3+
description: AlertComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: BadgeComponent
3+
description: BadgeComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: BreadcrumbComponent
3+
description: BreadcrumbComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: ButtonComponent
3+
description: ButtonComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` || |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: CardComponent
3+
description: CardComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
title: ComponentType
3+
description: ComponentType Schema Reference
4+
---
5+
6+
## Allowed Values
7+
8+
* `card`
9+
* `tabs`
10+
* `accordion`
11+
* `modal`
12+
* `drawer`
13+
* `container`
14+
* `divider`
15+
* `space`
16+
* `grid`
17+
* `flex`
18+
* `breadcrumb`
19+
* `stepper`
20+
* `menu`
21+
* `sidebar`
22+
* `pagination`
23+
* `dropdown`
24+
* `table`
25+
* `list`
26+
* `tree`
27+
* `description`
28+
* `statistic`
29+
* `tag`
30+
* `collapse`
31+
* `carousel`
32+
* `image`
33+
* `avatar`
34+
* `calendar_view`
35+
* `form`
36+
* `input`
37+
* `select`
38+
* `checkbox`
39+
* `radio`
40+
* `switch`
41+
* `slider`
42+
* `date_picker`
43+
* `time_picker`
44+
* `upload`
45+
* `autocomplete`
46+
* `cascader`
47+
* `transfer`
48+
* `color_picker`
49+
* `rate`
50+
* `alert`
51+
* `message`
52+
* `notification`
53+
* `progress`
54+
* `skeleton`
55+
* `spin`
56+
* `result`
57+
* `empty`
58+
* `button`
59+
* `button_group`
60+
* `icon_button`
61+
* `split_button`
62+
* `tooltip`
63+
* `popover`
64+
* `dialog`
65+
* `confirm`
66+
* `badge`
67+
* `timeline`
68+
* `steps`
69+
* `anchor`
70+
* `back_top`
71+
* `watermark`
72+
* `qrcode`
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: DrawerComponent
3+
description: DrawerComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: FormComponent
3+
description: FormComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
title: InputComponent
3+
description: InputComponent Schema Reference
4+
---
5+
6+
## Properties
7+
8+
| Property | Type | Required | Description |
9+
| :--- | :--- | :--- | :--- |
10+
| **type** | `string` || |
11+
| **props** | `object` | optional | |
12+
| **events** | `Record<string, any>` | optional | Event handlers |
13+
| **style** | `Record<string, string>` | optional | Custom styles |
14+
| **children** | `object[]` | optional | Child components |

0 commit comments

Comments
 (0)