Skip to content

Commit 66fcf91

Browse files
committed
lint
1 parent 3da63bf commit 66fcf91

File tree

22 files changed

+104
-153
lines changed

22 files changed

+104
-153
lines changed

docs/reference/generated/alert-dialog-portal.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
22
"name": "AlertDialogPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
77
"description": "A parent element to render the portal element into.",
88
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
99
},
10-
"children": {
11-
"type": "ReactNode",
12-
"detailedType": "React.ReactNode"
13-
},
1410
"className": {
15-
"type": "string | ((state: {}) => string)",
11+
"type": "string | ((state: FloatingPortal.State) => string)",
1612
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
1713
},
1814
"keepMounted": {
@@ -22,9 +18,9 @@
2218
"detailedType": "boolean | undefined"
2319
},
2420
"render": {
25-
"type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)",
21+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)",
2622
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
27-
"detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)"
23+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)"
2824
}
2925
},
3026
"dataAttributes": {},

docs/reference/generated/combobox-portal.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ComboboxPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
@@ -12,7 +12,7 @@
1212
"detailedType": "React.ReactNode"
1313
},
1414
"className": {
15-
"type": "string | ((state: {}) => string)",
15+
"type": "string | ((state: FloatingPortal.State) => string)",
1616
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
1717
},
1818
"keepMounted": {
@@ -22,9 +22,9 @@
2222
"detailedType": "boolean | undefined"
2323
},
2424
"render": {
25-
"type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)",
25+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)",
2626
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
27-
"detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)"
27+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)"
2828
}
2929
},
3030
"dataAttributes": {},

docs/reference/generated/dialog-portal.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,8 @@
77
"description": "A parent element to render the portal element into.",
88
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
99
},
10-
"children": {
11-
"type": "ReactNode",
12-
"detailedType": "React.ReactNode"
13-
},
1410
"className": {
15-
"type": "string | ((state: {}) => string)",
11+
"type": "string | ((state: FloatingPortal.State) => string)",
1612
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
1713
},
1814
"keepMounted": {
@@ -22,9 +18,9 @@
2218
"detailedType": "boolean | undefined"
2319
},
2420
"render": {
25-
"type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)",
21+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)",
2622
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
27-
"detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)"
23+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)"
2824
}
2925
},
3026
"dataAttributes": {},

docs/reference/generated/menu-portal.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
22
"name": "MenuPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
77
"description": "A parent element to render the portal element into.",
88
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
99
},
10-
"children": {
11-
"type": "ReactNode",
12-
"detailedType": "React.ReactNode"
13-
},
1410
"className": {
15-
"type": "string | ((state: {}) => string)",
11+
"type": "string | ((state: FloatingPortal.State) => string)",
1612
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
1713
},
1814
"keepMounted": {
@@ -22,9 +18,9 @@
2218
"detailedType": "boolean | undefined"
2319
},
2420
"render": {
25-
"type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)",
21+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)",
2622
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
27-
"detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)"
23+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)"
2824
}
2925
},
3026
"dataAttributes": {},

docs/reference/generated/navigation-menu-portal.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "NavigationMenuPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
@@ -12,7 +12,7 @@
1212
"detailedType": "React.ReactNode"
1313
},
1414
"className": {
15-
"type": "string | ((state: {}) => string)",
15+
"type": "string | ((state: FloatingPortal.State) => string)",
1616
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
1717
},
1818
"keepMounted": {
@@ -22,9 +22,9 @@
2222
"detailedType": "boolean | undefined"
2323
},
2424
"render": {
25-
"type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)",
25+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)",
2626
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
27-
"detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)"
27+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)"
2828
}
2929
},
3030
"dataAttributes": {},

docs/reference/generated/popover-portal.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
{
22
"name": "PopoverPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
77
"description": "A parent element to render the portal element into.",
88
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
99
},
10-
"children": {
11-
"type": "ReactNode",
12-
"detailedType": "React.ReactNode"
13-
},
1410
"className": {
15-
"type": "string | ((state: {}) => string)",
11+
"type": "string | ((state: FloatingPortal.State) => string)",
1612
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
1713
},
1814
"keepMounted": {
@@ -22,9 +18,9 @@
2218
"detailedType": "boolean | undefined"
2319
},
2420
"render": {
25-
"type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)",
21+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)",
2622
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
27-
"detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)"
23+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)"
2824
}
2925
},
3026
"dataAttributes": {},

docs/reference/generated/preview-card-portal.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
{
22
"name": "PreviewCardPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
77
"description": "A parent element to render the portal element into.",
88
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
99
},
10-
"children": {
11-
"type": "ReactNode",
12-
"detailedType": "React.ReactNode"
13-
},
1410
"className": {
1511
"type": "string | ((state: FloatingPortalLite.State) => string)",
1612
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state.",
@@ -23,9 +19,9 @@
2319
"detailedType": "boolean | undefined"
2420
},
2521
"render": {
26-
"type": "ReactElement | ((props: HTMLAttributes<HTMLDivElement>, state: FloatingPortalLite.State) => ReactElement)",
22+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortalLite.State) => ReactElement)",
2723
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
28-
"detailedType": "| ReactElement\n| ((\n props: HTMLAttributes<HTMLDivElement>,\n state: FloatingPortalLite.State,\n ) => ReactElement)"
24+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortalLite.State,\n ) => ReactElement)"
2925
}
3026
},
3127
"dataAttributes": {},

docs/reference/generated/select-portal.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,20 @@
11
{
22
"name": "SelectPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
77
"description": "A parent element to render the portal element into.",
88
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
99
},
10-
"children": {
11-
"type": "ReactNode",
12-
"detailedType": "React.ReactNode"
13-
},
1410
"className": {
15-
"type": "string | ((state: {}) => string)",
11+
"type": "string | ((state: FloatingPortal.State) => string)",
1612
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state."
1713
},
1814
"render": {
19-
"type": "ReactElement | ((props: HTMLProps, state: {}) => ReactElement)",
15+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortal.State) => ReactElement)",
2016
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
21-
"detailedType": "| ReactElement\n| ((props: HTMLProps, state: {}) => ReactElement)"
17+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortal.State,\n ) => ReactElement)"
2218
}
2319
},
2420
"dataAttributes": {},

docs/reference/generated/toast-portal.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
{
22
"name": "ToastPortal",
3-
"description": "A portal element that moves the viewport to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the viewport to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
7+
"description": "A parent element to render the portal element into.",
78
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
89
},
9-
"children": {
10-
"type": "ReactNode",
11-
"detailedType": "React.ReactNode"
12-
},
1310
"className": {
1411
"type": "string | ((state: FloatingPortalLite.State) => string)",
1512
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state.",
1613
"detailedType": "| string\n| ((state: FloatingPortalLite.State) => string)"
1714
},
1815
"render": {
19-
"type": "ReactElement | ((props: HTMLAttributes<HTMLDivElement>, state: FloatingPortalLite.State) => ReactElement)",
16+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortalLite.State) => ReactElement)",
2017
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
21-
"detailedType": "| ReactElement\n| ((\n props: HTMLAttributes<HTMLDivElement>,\n state: FloatingPortalLite.State,\n ) => ReactElement)"
18+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortalLite.State,\n ) => ReactElement)"
2219
}
2320
},
2421
"dataAttributes": {},

docs/reference/generated/tooltip-portal.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
11
{
22
"name": "TooltipPortal",
3-
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.",
3+
"description": "A portal element that moves the popup to a different part of the DOM.\nBy default, the portal element is appended to `<body>`.\nRenders a `<div>` element.",
44
"props": {
55
"container": {
66
"type": "HTMLElement | ShadowRoot | RefObject<HTMLElement | ShadowRoot | null> | null",
77
"description": "A parent element to render the portal element into.",
88
"detailedType": "| HTMLElement\n| ShadowRoot\n| React.RefObject<HTMLElement | ShadowRoot | null>\n| null\n| undefined"
99
},
10-
"children": {
11-
"type": "ReactNode",
12-
"detailedType": "React.ReactNode"
13-
},
1410
"className": {
1511
"type": "string | ((state: FloatingPortalLite.State) => string)",
1612
"description": "CSS class applied to the element, or a function that\nreturns a class based on the component’s state.",
@@ -23,9 +19,9 @@
2319
"detailedType": "boolean | undefined"
2420
},
2521
"render": {
26-
"type": "ReactElement | ((props: HTMLAttributes<HTMLDivElement>, state: FloatingPortalLite.State) => ReactElement)",
22+
"type": "ReactElement | ((props: HTMLProps, state: FloatingPortalLite.State) => ReactElement)",
2723
"description": "Allows you to replace the component’s HTML element\nwith a different tag, or compose it with another component.\n\nAccepts a `ReactElement` or a function that returns the element to render.",
28-
"detailedType": "| ReactElement\n| ((\n props: HTMLAttributes<HTMLDivElement>,\n state: FloatingPortalLite.State,\n ) => ReactElement)"
24+
"detailedType": "| ReactElement\n| ((\n props: HTMLProps,\n state: FloatingPortalLite.State,\n ) => ReactElement)"
2925
}
3026
},
3127
"dataAttributes": {},

0 commit comments

Comments
 (0)