Skip to content

Commit

Permalink
fix(bitUi): prop
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Jul 2, 2024
1 parent 772515f commit 5f89307
Show file tree
Hide file tree
Showing 13 changed files with 124 additions and 106 deletions.
20 changes: 12 additions & 8 deletions src/ui/bitsUi/bitsUi0/AccordionItem.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "Accordion.Item",
"props": {
"value * Required": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the accordion item.",
"description_zh": "折叠面板项的值。"
},
"disabled": {
"value": "",
"default": "false",
Expand All @@ -28,6 +21,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"value": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the accordion item.",
"description_zh": "折叠面板项的值。",
"required": true
}
},
"description": "An accordion item.",
Expand All @@ -43,6 +44,9 @@
"description_zh": "如果使用带有委托的 asChild 属性,则要应用于元素的构建器属性和操作。"
}
],
"suggestions": ["Accordion.Trigger", "Accordion.Content"],
"suggestions": [
"Accordion.Trigger",
"Accordion.Content"
],
"filename": "AccordionItem"
}
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/ContextMenuRadioItem.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "ContextMenu.RadioItem",
"props": {
"value * Required": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. When checked, the parent RadioGroup's value will be set to this value.",
"description_zh": "单选项的值。选中后,父 RadioGroup 的值将设置为此值。"
},
"disabled": {
"value": "",
"default": "_",
Expand All @@ -28,6 +21,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"value": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. When checked, the parent RadioGroup's value will be set to this value.",
"description_zh": "单选项的值。选中后,父 RadioGroup 的值将设置为此值。",
"required": true
}
},
"description": "A menu item that can be controlled and toggled like a radio button. It must be a child of a RadioGroup.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/DateFieldSegment.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "DateField.Segment",
"props": {
"part * Required": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。"
},
"asChild": {
"value": "",
"default": "false",
Expand All @@ -21,6 +14,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"part": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。",
"required": true
}
},
"description": "A segment of the date field.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/DatePickerSegment.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "DatePicker.Segment",
"props": {
"part * Required": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。"
},
"asChild": {
"value": "",
"default": "false",
Expand All @@ -21,6 +14,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"part": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。",
"required": true
}
},
"description": "A segment of the date field.",
Expand Down
30 changes: 16 additions & 14 deletions src/ui/bitsUi/bitsUi0/DateRangeFieldSegment.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
{
"name": "DateRangeField.Segment",
"props": {
"part * Required": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。"
},
"type * Required": {
"value": "",
"default": "_",
"type": "enum",
"description": "The type of field to render (start or end).",
"description_zh": "要呈现的字段类型(开始或结束)。"
},
"asChild": {
"value": "",
"default": "false",
Expand All @@ -28,6 +14,22 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"part": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。",
"required": true
},
"type": {
"value": "",
"default": "_",
"type": "enum",
"description": "The type of field to render (start or end).",
"description_zh": "要呈现的字段类型(开始或结束)。",
"required": true
}
},
"description": "A segment of the date field.",
Expand Down
30 changes: 16 additions & 14 deletions src/ui/bitsUi/bitsUi0/DateRangePickerSegment.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,6 @@
{
"name": "DateRangePicker.Segment",
"props": {
"part * Required": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。"
},
"type * Required": {
"value": "",
"default": "_",
"type": "enum",
"description": "The type of field to render (start or end).",
"description_zh": "要呈现的字段类型(开始或结束)。"
},
"asChild": {
"value": "",
"default": "false",
Expand All @@ -28,6 +14,22 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"part": {
"value": "",
"default": "_",
"type": "SegmentPart",
"description": "The part of the date to render.",
"description_zh": "要呈现的日期部分。",
"required": true
},
"type": {
"value": "",
"default": "_",
"type": "enum",
"description": "The type of field to render (start or end).",
"description_zh": "要呈现的字段类型(开始或结束)。",
"required": true
}
},
"description": "A segment of the date field.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/DropdownMenuRadioItem.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "DropdownMenu.RadioItem",
"props": {
"value * Required": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. When checked, the parent RadioGroup's value will be set to this value.",
"description_zh": "单选项的值。选中后,父 RadioGroup 的值将设置为此值。"
},
"disabled": {
"value": "",
"default": "_",
Expand All @@ -28,6 +21,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"value": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. When checked, the parent RadioGroup's value will be set to this value.",
"description_zh": "单选项的值。选中后,父 RadioGroup 的值将设置为此值。",
"required": true
}
},
"description": "A menu item that can be controlled and toggled like a radio button. It must be a child of a RadioGroup.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/MenubarRadioItem.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "Menubar.RadioItem",
"props": {
"value * Required": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. When checked, the parent RadioGroup's value will be set to this value.",
"description_zh": "单选项的值。选中后,父 RadioGroup 的值将设置为此值。"
},
"disabled": {
"value": "",
"default": "_",
Expand All @@ -28,6 +21,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"value": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. When checked, the parent RadioGroup's value will be set to this value.",
"description_zh": "单选项的值。选中后,父 RadioGroup 的值将设置为此值。",
"required": true
}
},
"description": "A menu item that can be controlled and toggled like a radio button. It must be a child of a RadioGroup.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/PaginationRoot.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "Pagination.Root",
"props": {
"count * Required": {
"value": "",
"default": "_",
"type": "number",
"description": "The total number of items.",
"description_zh": "项目总数。"
},
"perPage": {
"value": "",
"default": "1",
Expand Down Expand Up @@ -42,6 +35,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"count": {
"value": "",
"default": "_",
"type": "number",
"description": "The total number of items.",
"description_zh": "项目总数。",
"required": true
}
},
"description": "The root pagination component which contains all other pagination components.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/RadioGroupItem.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@
"description": "Whether or not the radio item is disabled. This prevents the user from interacting with it.",
"description_zh": "是否禁用单选项目。这会阻止用户与其交互。"
},
"value * Required": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. This should be unique for each radio item in the group.",
"description_zh": "单选项的值。对于组中的每个单选项,这应该是唯一的。"
},
"asChild": {
"value": "",
"default": "false",
Expand All @@ -28,6 +21,14 @@
"type": "HTMLButtonElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"value": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the radio item. This should be unique for each radio item in the group.",
"description_zh": "单选项的值。对于组中的每个单选项,这应该是唯一的。",
"required": true
}
},
"description": "An radio item, which must be a child of the RadioGroup.Root component.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/ScrollAreaScrollbar.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "ScrollArea.Scrollbar",
"props": {
"orientation * Required": {
"value": "",
"default": "_",
"type": "enum",
"description": "The orientation of the scrollbar.",
"description_zh": "滚动条的方向。"
},
"asChild": {
"value": "",
"default": "false",
Expand All @@ -21,6 +14,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"orientation": {
"value": "",
"default": "_",
"type": "enum",
"description": "The orientation of the scrollbar.",
"description_zh": "滚动条的方向。",
"required": true
}
},
"description": "A scrollbar of the scroll area.",
Expand Down
15 changes: 8 additions & 7 deletions src/ui/bitsUi/bitsUi0/TabsContent.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
{
"name": "Tabs.Content",
"props": {
"value * Required": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the tab this content represents.",
"description_zh": "此内容所表示的选项卡的值。"
},
"asChild": {
"value": "",
"default": "false",
Expand All @@ -21,6 +14,14 @@
"type": "HTMLDivElement",
"description": "The underlying DOM element being rendered. You can bind to this to programatically interact with the element.",
"description_zh": "正在呈现的基础 DOM 元素。您可以绑定到此元素以编程方式与元素进行交互。"
},
"value": {
"value": "",
"default": "_",
"type": "string",
"description": "The value of the tab this content represents.",
"description_zh": "此内容所表示的选项卡的值。",
"required": true
}
},
"description": "The panel containing the contents of a tab.",
Expand Down
Loading

0 comments on commit 5f89307

Please sign in to comment.