@@ -11561,6 +11561,311 @@ It should contain the only \`h2\` used in the drawer.",
1156111561}
1156211562`;
1156311563
11564+ exports[`Components definition for dropdown matches the snapshot: dropdown 1`] = `
11565+ {
11566+ "dashCaseName": "dropdown",
11567+ "events": [
11568+ {
11569+ "cancelable": false,
11570+ "description": "Called when focus leaves the trigger or dropdown content.",
11571+ "detailInlineType": {
11572+ "name": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11573+ "properties": [
11574+ {
11575+ "inlineType": {
11576+ "name": "EventTarget & RelatedTarget",
11577+ "type": "union",
11578+ "values": [
11579+ "EventTarget",
11580+ "RelatedTarget",
11581+ ],
11582+ },
11583+ "name": "relatedTarget",
11584+ "optional": false,
11585+ "type": "EventTarget & RelatedTarget",
11586+ },
11587+ {
11588+ "inlineType": {
11589+ "name": "EventTarget & Target",
11590+ "type": "union",
11591+ "values": [
11592+ "EventTarget",
11593+ "Target",
11594+ ],
11595+ },
11596+ "name": "target",
11597+ "optional": false,
11598+ "type": "EventTarget & Target",
11599+ },
11600+ ],
11601+ "type": "object",
11602+ },
11603+ "detailType": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11604+ "name": "onBlur",
11605+ },
11606+ {
11607+ "cancelable": false,
11608+ "description": "Called when the user presses the Escape key while the dropdown is open.
11609+ The dropdown does not close automatically - the parent component
11610+ must update the \`open\` prop to close the dropdown.",
11611+ "name": "onEscape",
11612+ },
11613+ {
11614+ "cancelable": false,
11615+ "description": "Called when focus enters the trigger or dropdown content.",
11616+ "detailInlineType": {
11617+ "name": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11618+ "properties": [
11619+ {
11620+ "inlineType": {
11621+ "name": "EventTarget & RelatedTarget",
11622+ "type": "union",
11623+ "values": [
11624+ "EventTarget",
11625+ "RelatedTarget",
11626+ ],
11627+ },
11628+ "name": "relatedTarget",
11629+ "optional": false,
11630+ "type": "EventTarget & RelatedTarget",
11631+ },
11632+ {
11633+ "inlineType": {
11634+ "name": "EventTarget & Target",
11635+ "type": "union",
11636+ "values": [
11637+ "EventTarget",
11638+ "Target",
11639+ ],
11640+ },
11641+ "name": "target",
11642+ "optional": false,
11643+ "type": "EventTarget & Target",
11644+ },
11645+ ],
11646+ "type": "object",
11647+ },
11648+ "detailType": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11649+ "name": "onFocus",
11650+ },
11651+ {
11652+ "cancelable": false,
11653+ "description": "Called when focus enters the dropdown content from outside.
11654+ This fires only once when focus moves into the dropdown, not when moving between elements within it.",
11655+ "detailInlineType": {
11656+ "name": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11657+ "properties": [
11658+ {
11659+ "inlineType": {
11660+ "name": "EventTarget & RelatedTarget",
11661+ "type": "union",
11662+ "values": [
11663+ "EventTarget",
11664+ "RelatedTarget",
11665+ ],
11666+ },
11667+ "name": "relatedTarget",
11668+ "optional": false,
11669+ "type": "EventTarget & RelatedTarget",
11670+ },
11671+ {
11672+ "inlineType": {
11673+ "name": "EventTarget & Target",
11674+ "type": "union",
11675+ "values": [
11676+ "EventTarget",
11677+ "Target",
11678+ ],
11679+ },
11680+ "name": "target",
11681+ "optional": false,
11682+ "type": "EventTarget & Target",
11683+ },
11684+ ],
11685+ "type": "object",
11686+ },
11687+ "detailType": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11688+ "name": "onFocusEnter",
11689+ },
11690+ {
11691+ "cancelable": false,
11692+ "description": "Called when focus leaves the dropdown content entirely.",
11693+ "detailInlineType": {
11694+ "name": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11695+ "properties": [
11696+ {
11697+ "inlineType": {
11698+ "name": "EventTarget & RelatedTarget",
11699+ "type": "union",
11700+ "values": [
11701+ "EventTarget",
11702+ "RelatedTarget",
11703+ ],
11704+ },
11705+ "name": "relatedTarget",
11706+ "optional": false,
11707+ "type": "EventTarget & RelatedTarget",
11708+ },
11709+ {
11710+ "inlineType": {
11711+ "name": "EventTarget & Target",
11712+ "type": "union",
11713+ "values": [
11714+ "EventTarget",
11715+ "Target",
11716+ ],
11717+ },
11718+ "name": "target",
11719+ "optional": false,
11720+ "type": "EventTarget & Target",
11721+ },
11722+ ],
11723+ "type": "object",
11724+ },
11725+ "detailType": "Pick<React.FocusEvent<Element, Element>, "relatedTarget" | "target">",
11726+ "name": "onFocusLeave",
11727+ },
11728+ {
11729+ "cancelable": false,
11730+ "description": "Called when the user clicks outside the dropdown and trigger.
11731+ The dropdown does not close automatically - the parent component
11732+ must update the \`open\` prop to close the dropdown.",
11733+ "name": "onOutsideClick",
11734+ },
11735+ ],
11736+ "functions": [],
11737+ "name": "Dropdown",
11738+ "properties": [
11739+ {
11740+ "description": "Describedby for the dropdown (recommended when role="dialog")",
11741+ "name": "ariaDescribedby",
11742+ "optional": true,
11743+ "type": "string",
11744+ },
11745+ {
11746+ "description": "Aria label for the dropdown content wrapper",
11747+ "name": "ariaLabel",
11748+ "optional": true,
11749+ "type": "string",
11750+ },
11751+ {
11752+ "description": "Labelledby for the dropdown (required when role="dialog")",
11753+ "name": "ariaLabelledby",
11754+ "optional": true,
11755+ "type": "string",
11756+ },
11757+ {
11758+ "description": "HTML role for the dropdown content wrapper",
11759+ "name": "ariaRole",
11760+ "optional": true,
11761+ "type": "string",
11762+ },
11763+ {
11764+ "description": "By default, the dropdown height is constrained to fit inside the height of its next scrollable container element.
11765+ Enabling this property will allow the dropdown to extend beyond that container by using fixed positioning and
11766+ [React Portals](https://reactjs.org/docs/portals.html).
11767+
11768+ Set this property if the dropdown would otherwise be constrained by a scrollable container,
11769+ for example inside table and split view layouts.
11770+
11771+ We recommend you use discretion, and don't enable this property unless necessary
11772+ because fixed positioning results in a slight, visible lag when scrolling complex pages.",
11773+ "name": "expandToViewport",
11774+ "optional": true,
11775+ "type": "boolean",
11776+ },
11777+ {
11778+ "description": "Hides the block (top/bottom) borders of the dropdown content wrapper.",
11779+ "name": "hideBlockBorder",
11780+ "optional": true,
11781+ "type": "boolean",
11782+ },
11783+ {
11784+ "description": "Maximum width constraint for the dropdown.
11785+ - Number: maximum width in pixels
11786+ - 'trigger': dropdown cannot exceed the trigger width
11787+ - undefined: fit to content width (no max constraint)",
11788+ "inlineType": {
11789+ "name": "DropdownWidthConstraint",
11790+ "type": "union",
11791+ "values": [
11792+ "number",
11793+ ""trigger"",
11794+ ],
11795+ },
11796+ "name": "maxWidth",
11797+ "optional": true,
11798+ "type": "DropdownWidthConstraint",
11799+ },
11800+ {
11801+ "description": "Minimum width constraint for the dropdown.
11802+ - Number: minimum width in pixels
11803+ - 'trigger': dropdown will be at least as wide as the trigger
11804+ - undefined: no minimum constraint (fits content)",
11805+ "inlineType": {
11806+ "name": "DropdownWidthConstraint",
11807+ "type": "union",
11808+ "values": [
11809+ "number",
11810+ ""trigger"",
11811+ ],
11812+ },
11813+ "name": "minWidth",
11814+ "optional": true,
11815+ "type": "DropdownWidthConstraint",
11816+ },
11817+ {
11818+ "description": "Open state of the dropdown.",
11819+ "name": "open",
11820+ "optional": true,
11821+ "type": "boolean",
11822+ },
11823+ {
11824+ "description": "Preferred alignment of the dropdown relative to its trigger.
11825+ The dropdown will attempt this alignment first, but will automatically
11826+ adjust if there's insufficient space on the preferred side.",
11827+ "inlineType": {
11828+ "name": "DropdownAlignment",
11829+ "type": "union",
11830+ "values": [
11831+ "center",
11832+ "start",
11833+ ],
11834+ },
11835+ "name": "preferredAlignment",
11836+ "optional": true,
11837+ "type": "string",
11838+ },
11839+ ],
11840+ "regions": [
11841+ {
11842+ "description": "Dropdown content elements.",
11843+ "isDefault": false,
11844+ "name": "content",
11845+ },
11846+ {
11847+ "description": "Footer slot fixed at the bottom of the dropdown",
11848+ "isDefault": false,
11849+ "name": "footer",
11850+ },
11851+ {
11852+ "description": ""Sticky" header of the dropdown content",
11853+ "isDefault": false,
11854+ "name": "header",
11855+ },
11856+ {
11857+ "description": "Trigger element.",
11858+ "isDefault": false,
11859+ "name": "trigger",
11860+ },
11861+ ],
11862+ "releaseStatus": "stable",
11863+ "systemTags": [
11864+ "core",
11865+ ],
11866+ }
11867+ `;
11868+
1156411869exports[`Components definition for error-boundary matches the snapshot: error-boundary 1`] = `
1156511870{
1156611871 "dashCaseName": "error-boundary",
@@ -36955,6 +37260,10 @@ wrapper.selectOptionByValue('option_1');
3695537260 ],
3695637261 "name": "DrawerWrapper",
3695737262 },
37263+ {
37264+ "methods": [],
37265+ "name": "DropdownWrapper",
37266+ },
3695837267 {
3695937268 "methods": [
3696037269 {
@@ -46903,6 +47212,10 @@ The mode selector is only rendered as a Select on narrow viewports. On wide view
4690347212 ],
4690447213 "name": "DrawerWrapper",
4690547214 },
47215+ {
47216+ "methods": [],
47217+ "name": "DropdownWrapper",
47218+ },
4690647219 {
4690747220 "methods": [
4690847221 {
0 commit comments