Skip to content

Commit

Permalink
slots, slotProps and component must be visible in prop table in API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
hbjORbj committed Mar 30, 2023
1 parent adacadb commit 41a8b07
Show file tree
Hide file tree
Showing 207 changed files with 1,866 additions and 266 deletions.
15 changes: 15 additions & 0 deletions docs/pages/joy-ui/api/alert.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"default": "'primary'"
},
"component": { "type": { "name": "elementType" } },
"endDecorator": { "type": { "name": "node" } },
"role": { "type": { "name": "string" }, "default": "'alert'" },
"size": {
Expand All @@ -16,6 +17,20 @@
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ endDecorator?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, startDecorator?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ endDecorator?: elementType, root?: elementType, startDecorator?: elementType }"
},
"default": "{}"
},
"startDecorator": { "type": { "name": "node" } },
"sx": {
"type": {
Expand Down
12 changes: 12 additions & 0 deletions docs/pages/joy-ui/api/aspect-ratio.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"default": "'neutral'"
},
"component": { "type": { "name": "elementType" } },
"maxHeight": { "type": { "name": "union", "description": "number<br>&#124;&nbsp;string" } },
"minHeight": { "type": { "name": "union", "description": "number<br>&#124;&nbsp;string" } },
"objectFit": {
Expand All @@ -21,6 +22,17 @@
"type": { "name": "union", "description": "number<br>&#124;&nbsp;string" },
"default": "'16 / 9'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ content?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ content?: elementType, root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/autocomplete-listbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
"type": { "name": "enum", "description": "'sm'<br>&#124;&nbsp;'md'<br>&#124;&nbsp;'lg'" },
"default": "'md'"
},
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/autocomplete-option.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@
"default": "'neutral'"
},
"component": { "type": { "name": "elementType" } },
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
14 changes: 14 additions & 0 deletions docs/pages/joy-ui/api/autocomplete.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,20 @@
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ clearIndicator?: func<br>&#124;&nbsp;object, endDecorator?: func<br>&#124;&nbsp;object, input?: func<br>&#124;&nbsp;object, limitTag?: func<br>&#124;&nbsp;object, listbox?: func<br>&#124;&nbsp;object, loading?: func<br>&#124;&nbsp;object, noOptions?: func<br>&#124;&nbsp;object, option?: func<br>&#124;&nbsp;object, popupIndicator?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, startDecorator?: func<br>&#124;&nbsp;object, wrapper?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ clearIndicator?: elementType, endDecorator?: elementType, input?: elementType, limitTag?: elementType, listbox?: elementType, loading?: elementType, noOptions?: elementType, option?: elementType, popupIndicator?: elementType, root?: elementType, startDecorator?: elementType, wrapper?: elementType }"
},
"default": "{}"
},
"startDecorator": { "type": { "name": "node" } },
"sx": {
"type": {
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/joy-ui/api/avatar.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,28 @@
},
"default": "'neutral'"
},
"component": { "type": { "name": "elementType" } },
"size": {
"type": {
"name": "union",
"description": "'lg'<br>&#124;&nbsp;'md'<br>&#124;&nbsp;'sm'<br>&#124;&nbsp;string"
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ fallback?: func<br>&#124;&nbsp;object, img?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ fallback?: elementType, img?: elementType, root?: elementType }"
},
"default": "{}"
},
"src": { "type": { "name": "string" } },
"srcSet": { "type": { "name": "string" } },
"sx": {
Expand Down
12 changes: 12 additions & 0 deletions docs/pages/joy-ui/api/badge.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
},
"default": "'primary'"
},
"component": { "type": { "name": "elementType" } },
"invisible": { "type": { "name": "bool" }, "default": "false" },
"max": { "type": { "name": "number" }, "default": "99" },
"showZero": { "type": { "name": "bool" }, "default": "false" },
Expand All @@ -30,6 +31,17 @@
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ badge?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ badge?: elementType, root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/joy-ui/api/breadcrumbs.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"props": {
"children": { "type": { "name": "node" } },
"component": { "type": { "name": "elementType" } },
"separator": { "type": { "name": "node" }, "default": "'/'" },
"size": {
"type": {
Expand All @@ -9,6 +10,20 @@
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ li?: func<br>&#124;&nbsp;object, ol?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, separator?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ li?: elementType, ol?: elementType, root?: elementType, separator?: elementType }"
},
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/joy-ui/api/button.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"default": "'primary'"
},
"component": { "type": { "name": "elementType" } },
"disabled": { "type": { "name": "bool" }, "default": "false" },
"endDecorator": { "type": { "name": "node" } },
"fullWidth": { "type": { "name": "bool" }, "default": "false" },
Expand All @@ -32,6 +33,20 @@
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ endDecorator?: func<br>&#124;&nbsp;object, loadingIndicatorCenter?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, startDecorator?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ endDecorator?: elementType, loadingIndicatorCenter?: elementType, root?: elementType, startDecorator?: elementType }"
},
"default": "{}"
},
"startDecorator": { "type": { "name": "node" } },
"sx": {
"type": {
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/card-overflow.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@
"default": "'neutral'"
},
"component": { "type": { "name": "elementType" } },
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/card.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
},
"default": "'md'"
},
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/joy-ui/api/checkbox.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
},
"default": "'neutral'"
},
"component": { "type": { "name": "elementType" } },
"defaultChecked": { "type": { "name": "bool" } },
"disabled": { "type": { "name": "bool" } },
"disableIcon": { "type": { "name": "bool" }, "default": "false" },
Expand All @@ -25,6 +26,20 @@
"type": { "name": "enum", "description": "'sm'<br>&#124;&nbsp;'md'<br>&#124;&nbsp;'lg'" },
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ action?: func<br>&#124;&nbsp;object, checkbox?: func<br>&#124;&nbsp;object, input?: func<br>&#124;&nbsp;object, label?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ action?: elementType, checkbox?: elementType, input?: elementType, label?: elementType, root?: elementType }"
},
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/chip-delete.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
"component": { "type": { "name": "elementType" } },
"disabled": { "type": { "name": "bool" } },
"onDelete": { "type": { "name": "func" } },
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/joy-ui/api/chip.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"default": "'primary'"
},
"component": { "type": { "name": "elementType" } },
"disabled": { "type": { "name": "bool" }, "default": "false" },
"endDecorator": { "type": { "name": "node" } },
"onClick": { "type": { "name": "func" } },
Expand All @@ -18,6 +19,20 @@
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ action?: func<br>&#124;&nbsp;object, endDecorator?: func<br>&#124;&nbsp;object, label?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, startDecorator?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ action?: elementType, endDecorator?: elementType, label?: elementType, root?: elementType, startDecorator?: elementType }"
},
"default": "{}"
},
"startDecorator": { "type": { "name": "node" } },
"sx": {
"type": {
Expand Down
15 changes: 15 additions & 0 deletions docs/pages/joy-ui/api/circular-progress.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
},
"default": "'primary'"
},
"component": { "type": { "name": "elementType" } },
"determinate": { "type": { "name": "bool" }, "default": "false" },
"size": {
"type": {
Expand All @@ -15,6 +16,20 @@
},
"default": "'md'"
},
"slotProps": {
"type": {
"name": "shape",
"description": "{ progress?: func<br>&#124;&nbsp;object, root?: func<br>&#124;&nbsp;object, svg?: func<br>&#124;&nbsp;object, track?: func<br>&#124;&nbsp;object }"
},
"default": "{}"
},
"slots": {
"type": {
"name": "shape",
"description": "{ progress?: elementType, root?: elementType, svg?: elementType, track?: elementType }"
},
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/divider.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@
"type": { "name": "enum", "description": "'horizontal'<br>&#124;&nbsp;'vertical'" },
"default": "'horizontal'"
},
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/form-helper-text.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
"props": {
"children": { "type": { "name": "node" } },
"component": { "type": { "name": "elementType" } },
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
8 changes: 8 additions & 0 deletions docs/pages/joy-ui/api/icon-button.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,14 @@
},
"default": "'md'"
},
"slotProps": {
"type": { "name": "shape", "description": "{ root?: func<br>&#124;&nbsp;object }" },
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
Expand Down
Loading

0 comments on commit 41a8b07

Please sign in to comment.