@amboss/design-system 4.19.1 → 4.19.2-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/components/CheckboxCard/CheckboxCard.d.ts +1 -1
- package/build/cjs/components/Content/ContentCheckbox/ContentCheckbox.d.ts +1 -1
- package/build/cjs/components/Content/ContentCitation/ContentCitation.d.ts +3 -3
- package/build/cjs/components/Content/ContentFontResizer/FontSizeOffsetContext.d.ts +1 -1
- package/build/cjs/components/Content/ContentText/ContentText.d.ts +1 -1
- package/build/cjs/components/Content/DosageButton/DosageButton.d.ts +1 -1
- package/build/cjs/components/DataTable/DataTable.d.ts +2 -3
- package/build/cjs/components/DataTable/TableCell.d.ts +1 -1
- package/build/cjs/components/DataTable/internal/tablePrimitives.d.ts +3 -3
- package/build/cjs/components/EntityList/styled-components.d.ts +8 -8
- package/build/cjs/components/Form/Checkbox/Checkbox.d.ts +2 -2
- package/build/cjs/components/Form/Combobox/StyledSelectComponents.d.ts +4 -4
- package/build/cjs/components/Form/DatePicker/DatePicker.d.ts +1 -1
- package/build/cjs/components/Form/MaskedInput/MaskedInput.d.ts +1 -1
- package/build/cjs/components/Form/Radio/Radio.d.ts +2 -2
- package/build/cjs/components/Form/RangeInput/RangeInput.d.ts +1 -1
- package/build/cjs/components/Form/Textarea/Textarea.d.ts +2 -2
- package/build/cjs/components/Form/Toggle/Toggle.d.ts +3 -3
- package/build/cjs/components/Form/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/cjs/components/Grid/Grid.d.ts +1 -1
- package/build/cjs/components/Internal/LayoutFloat/LayoutFloat.d.ts +1 -13
- package/build/cjs/components/Internal/LayoutFloat/useLayoutFloatDrag.d.ts +1 -1
- package/build/cjs/components/Internal/Sandwich/useSandwichContext.d.ts +1 -1
- package/build/cjs/components/Kbd/Kbd.js +1 -1
- package/build/cjs/components/Layout/-types.d.ts +49 -10
- package/build/cjs/components/Layout/BottomBar/BottomBarItem/LayoutBottomBarItem.d.ts +3 -2
- package/build/cjs/components/Layout/BottomBar/LayoutBottomBar.js +1 -1
- package/build/cjs/components/Layout/BottomBar/StyledLayoutBottomBar.d.ts +1 -1
- package/build/cjs/components/Layout/BottomBar/StyledLayoutBottomBarSection.d.ts +3 -2
- package/build/cjs/components/Layout/BottomBar/StyledLayoutBottomBarSection.js +1 -1
- package/build/cjs/components/Layout/BottomBar/getBottomBarLayout.js +1 -1
- package/build/cjs/components/Layout/Content/Content.js +1 -1
- package/build/cjs/components/Layout/Layout.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftBarToggle.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanel.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanelDocked.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/LeftPanelHeader.js +1 -1
- package/build/cjs/components/Layout/LeftPanel/useLeftBarContext.d.ts +1 -1
- package/build/cjs/components/Layout/LeftPanel/useLeftPanelCollapseContext.d.ts +1 -1
- package/build/cjs/components/Layout/RightPanel/RightPanel.js +1 -1
- package/build/cjs/components/Layout/RightPanel/RightPanelDocked.d.ts +1 -1
- package/build/cjs/components/Layout/RightPanel/RightPanelDocked.js +1 -1
- package/build/cjs/components/Layout/Split/LayoutSplitColumns.d.ts +18 -0
- package/build/cjs/components/Layout/Split/LayoutSplitColumns.js +1 -0
- package/build/cjs/components/Layout/Split/MobileSplitView/StyledMobileSplitSlideLayer.d.ts +1 -1
- package/build/cjs/components/Layout/Split/MobileSplitView/useMobileSplitStack.d.ts +1 -1
- package/build/cjs/components/Layout/Split/Split.d.ts +1 -2
- package/build/cjs/components/Layout/Split/Split.js +1 -1
- package/build/cjs/components/Layout/Split/SplitDocked.d.ts +1 -1
- package/build/cjs/components/Layout/Split/SplitDocked.js +1 -1
- package/build/cjs/components/Layout/Split/SplitHeader.js +1 -1
- package/build/cjs/components/Layout/context.d.ts +2 -2
- package/build/cjs/components/Layout/reducer.js +1 -1
- package/build/cjs/components/Layout/registry.d.ts +8 -6
- package/build/cjs/components/Layout/registry.js +1 -1
- package/build/cjs/components/Layout/useLayout.js +1 -1
- package/build/cjs/components/Layout/useLayoutRules.js +1 -1
- package/build/cjs/components/Layout/useLeftPanelId.d.ts +1 -1
- package/build/cjs/components/Layout/usePanelAnimations.d.ts +1 -1
- package/build/cjs/components/Layout/usePanelDockedSlide.js +1 -1
- package/build/cjs/components/NavBar/NavBar.d.ts +18 -14
- package/build/cjs/components/NavBar/NavBarContext.d.ts +1 -1
- package/build/cjs/components/NavBar/NavBarDropdownTriggerButton.d.ts +1 -1
- package/build/cjs/components/Patterns/Dialog/DialogContext.d.ts +1 -1
- package/build/cjs/components/Patterns/EmptyState/EmptyState.d.ts +2 -2
- package/build/cjs/components/Patterns/Modal/Modal.d.ts +2 -4
- package/build/cjs/components/Patterns/Popover/PopoverContext.d.ts +1 -1
- package/build/cjs/components/PromptInput/PromptInput.d.ts +1 -1
- package/build/cjs/components/RadioCard/RadioCard.d.ts +1 -1
- package/build/cjs/components/SearchResult/SearchResult.d.ts +1 -3
- package/build/cjs/components/SubThemeProvider/SubThemeContext.d.ts +1 -1
- package/build/cjs/components/Tooltip/FloatingPositionedContext.d.ts +1 -1
- package/build/cjs/components/Utilities/ContainerQuery/ContainerQueryContext.d.ts +1 -1
- package/build/cjs/components/Utilities/ScreenReaderText/ScreenReaderText.d.ts +1 -1
- package/build/cjs/shared/components/SelectableButton.d.ts +1 -1
- package/build/cjs/web-tokens/_sizes.json +55 -55
- package/build/esm/components/CheckboxCard/CheckboxCard.d.ts +1 -1
- package/build/esm/components/Content/ContentCheckbox/ContentCheckbox.d.ts +1 -1
- package/build/esm/components/Content/ContentCitation/ContentCitation.d.ts +3 -3
- package/build/esm/components/Content/ContentFontResizer/FontSizeOffsetContext.d.ts +1 -1
- package/build/esm/components/Content/ContentText/ContentText.d.ts +1 -1
- package/build/esm/components/Content/DosageButton/DosageButton.d.ts +1 -1
- package/build/esm/components/DataTable/DataTable.d.ts +2 -3
- package/build/esm/components/DataTable/TableCell.d.ts +1 -1
- package/build/esm/components/DataTable/internal/tablePrimitives.d.ts +3 -3
- package/build/esm/components/EntityList/styled-components.d.ts +8 -8
- package/build/esm/components/Form/Checkbox/Checkbox.d.ts +2 -2
- package/build/esm/components/Form/Combobox/StyledSelectComponents.d.ts +4 -4
- package/build/esm/components/Form/DatePicker/DatePicker.d.ts +1 -1
- package/build/esm/components/Form/MaskedInput/MaskedInput.d.ts +1 -1
- package/build/esm/components/Form/Radio/Radio.d.ts +2 -2
- package/build/esm/components/Form/RangeInput/RangeInput.d.ts +1 -1
- package/build/esm/components/Form/Textarea/Textarea.d.ts +2 -2
- package/build/esm/components/Form/Toggle/Toggle.d.ts +3 -3
- package/build/esm/components/Form/ToggleButton/ToggleButton.d.ts +1 -1
- package/build/esm/components/Grid/Grid.d.ts +1 -1
- package/build/esm/components/Internal/LayoutFloat/LayoutFloat.d.ts +1 -13
- package/build/esm/components/Internal/LayoutFloat/useLayoutFloatDrag.d.ts +1 -1
- package/build/esm/components/Internal/Sandwich/useSandwichContext.d.ts +1 -1
- package/build/esm/components/Kbd/Kbd.js +1 -1
- package/build/esm/components/Layout/-types.d.ts +49 -10
- package/build/esm/components/Layout/BottomBar/BottomBarItem/LayoutBottomBarItem.d.ts +3 -2
- package/build/esm/components/Layout/BottomBar/LayoutBottomBar.js +1 -1
- package/build/esm/components/Layout/BottomBar/StyledLayoutBottomBar.d.ts +1 -1
- package/build/esm/components/Layout/BottomBar/StyledLayoutBottomBarSection.d.ts +3 -2
- package/build/esm/components/Layout/BottomBar/StyledLayoutBottomBarSection.js +1 -1
- package/build/esm/components/Layout/BottomBar/getBottomBarLayout.js +1 -1
- package/build/esm/components/Layout/Content/Content.js +1 -1
- package/build/esm/components/Layout/Layout.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftBarToggle.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanel.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanelDocked.js +1 -1
- package/build/esm/components/Layout/LeftPanel/LeftPanelHeader.js +1 -1
- package/build/esm/components/Layout/LeftPanel/useLeftBarContext.d.ts +1 -1
- package/build/esm/components/Layout/LeftPanel/useLeftPanelCollapseContext.d.ts +1 -1
- package/build/esm/components/Layout/RightPanel/RightPanel.js +1 -1
- package/build/esm/components/Layout/RightPanel/RightPanelDocked.d.ts +1 -1
- package/build/esm/components/Layout/RightPanel/RightPanelDocked.js +1 -1
- package/build/esm/components/Layout/Split/LayoutSplitColumns.d.ts +18 -0
- package/build/esm/components/Layout/Split/LayoutSplitColumns.js +1 -0
- package/build/esm/components/Layout/Split/MobileSplitView/StyledMobileSplitSlideLayer.d.ts +1 -1
- package/build/esm/components/Layout/Split/MobileSplitView/useMobileSplitStack.d.ts +1 -1
- package/build/esm/components/Layout/Split/Split.d.ts +1 -2
- package/build/esm/components/Layout/Split/Split.js +1 -1
- package/build/esm/components/Layout/Split/SplitDocked.d.ts +1 -1
- package/build/esm/components/Layout/Split/SplitDocked.js +1 -1
- package/build/esm/components/Layout/Split/SplitHeader.js +1 -1
- package/build/esm/components/Layout/context.d.ts +2 -2
- package/build/esm/components/Layout/reducer.js +1 -1
- package/build/esm/components/Layout/registry.d.ts +8 -6
- package/build/esm/components/Layout/registry.js +1 -1
- package/build/esm/components/Layout/useLayout.js +1 -1
- package/build/esm/components/Layout/useLayoutRules.js +1 -1
- package/build/esm/components/Layout/useLeftPanelId.d.ts +1 -1
- package/build/esm/components/Layout/usePanelAnimations.d.ts +1 -1
- package/build/esm/components/Layout/usePanelDockedSlide.js +1 -1
- package/build/esm/components/NavBar/NavBar.d.ts +18 -14
- package/build/esm/components/NavBar/NavBarContext.d.ts +1 -1
- package/build/esm/components/NavBar/NavBarDropdownTriggerButton.d.ts +1 -1
- package/build/esm/components/Patterns/Dialog/DialogContext.d.ts +1 -1
- package/build/esm/components/Patterns/EmptyState/EmptyState.d.ts +2 -2
- package/build/esm/components/Patterns/Modal/Modal.d.ts +2 -4
- package/build/esm/components/Patterns/Popover/PopoverContext.d.ts +1 -1
- package/build/esm/components/PromptInput/PromptInput.d.ts +1 -1
- package/build/esm/components/RadioCard/RadioCard.d.ts +1 -1
- package/build/esm/components/SearchResult/SearchResult.d.ts +1 -3
- package/build/esm/components/SubThemeProvider/SubThemeContext.d.ts +1 -1
- package/build/esm/components/Tooltip/FloatingPositionedContext.d.ts +1 -1
- package/build/esm/components/Utilities/ContainerQuery/ContainerQueryContext.d.ts +1 -1
- package/build/esm/components/Utilities/ScreenReaderText/ScreenReaderText.d.ts +1 -1
- package/build/esm/shared/components/SelectableButton.d.ts +1 -1
- package/build/esm/web-tokens/_sizes.json +55 -55
- package/build/scss/_variables.scss +1 -14
- package/package.json +1 -1
|
@@ -15,4 +15,4 @@ export declare const CheckboxCard: React.ForwardRefExoticComponent<{
|
|
|
15
15
|
renderContent?: (params: {
|
|
16
16
|
isSelected: boolean;
|
|
17
17
|
}) => React.ReactNode;
|
|
18
|
-
} & Omit<CheckboxProps, "errorMessages" | "
|
|
18
|
+
} & Omit<CheckboxProps, "errorMessages" | "hint" | "hideLabel" | "indeterminate"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -16,4 +16,4 @@ export declare const ContentCheckbox: React.ForwardRefExoticComponent<{
|
|
|
16
16
|
/** Adds extra spacing around the checkbox to accomodate a label with larger line height */
|
|
17
17
|
isSpacedOut?: boolean;
|
|
18
18
|
"data-e2e-test-id"?: string;
|
|
19
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
19
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -20,7 +20,7 @@ export type ContentCitationProps = {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare function ContentCitation({ children, color, isSpacedOut, as, "data-e2e-test-id": dataE2eTestId, }: ContentCitationProps): React.ReactElement;
|
|
22
22
|
export declare namespace ContentCitation {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
23
|
+
var Title: typeof ContentCitationTitle;
|
|
24
|
+
var Link: typeof ContentCitationLink;
|
|
25
|
+
var LookupLink: typeof ContentCitationLookupLink;
|
|
26
26
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export type FontSizeOffset = number;
|
|
2
|
-
export declare const FontSizeOffsetContext:
|
|
2
|
+
export declare const FontSizeOffsetContext: React.Context<number>;
|
|
@@ -7,6 +7,6 @@ export type ContentTextProps = TypographyTextProps & {
|
|
|
7
7
|
/** Provides additional line-height */
|
|
8
8
|
isSpacedOut?: boolean;
|
|
9
9
|
};
|
|
10
|
-
export declare const ContentTextContext: React.Context<Pick<ContentTextProps, "color" | "
|
|
10
|
+
export declare const ContentTextContext: React.Context<Pick<ContentTextProps, "color" | "size" | "weight" | "isSpacedOut"> | null>;
|
|
11
11
|
export declare const CONTENT_TEXT_LINE_HEIGHT_OFFSET = 0.14;
|
|
12
12
|
export declare function ContentText({ size, color, weight, isSpacedOut, children, ...rest }: ContentTextProps): React.ReactElement;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
export type DosageButtonProps = React.ComponentPropsWithRef<"button">;
|
|
3
3
|
export declare const DosageButton: React.ForwardRefExoticComponent<Omit<Omit<React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & {
|
|
4
|
-
ref?:
|
|
4
|
+
ref?: ((instance: HTMLButtonElement | null) => void | React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof React.DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | React.RefObject<HTMLButtonElement> | null | undefined;
|
|
5
5
|
}, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ReactElement, ReactNode } from "react";
|
|
2
2
|
import type { MQ } from "../../types";
|
|
3
3
|
import type { DataTableColumn, DataTableColumnOrGroup, DataTableRow, DataTableRowProps, DataTableSlotProps } from "./types";
|
|
4
|
-
import { defaultSortCompareFn } from "./useDataTableSort";
|
|
5
4
|
import { DataTableToolbar } from "./DataTableToolbar/DataTableToolbar";
|
|
6
5
|
type DataTablePropsBase = {
|
|
7
6
|
/** Screen reader text for table caption */
|
|
@@ -144,7 +143,7 @@ export type DataTableProps = DataTablePropsBase & (DataTableSelectableProps | Da
|
|
|
144
143
|
export declare function BaseDataTable({ caption, columns, rows, footer, currentlySortedByColumn, isFirstColumnSticky, isLastColumnSticky, "data-e2e-test-id": dataE2eTestId, isLoading, loadingStateScreenReaderText, isEmpty, slotProps, children, emptyTableContentHeight, layout, width, bodyCellVerticalPadding, emptyCellContent, maxHeight, isSelectable, selectedRowIds, allRowsSelected, selectAllRowsCheckboxAriaLabel, getRowProps, onRowSelectionChange, onAllRowsSelectionChange, isExpandable, expandedRowIds: expandedRowIdsProp, onRowExpansionChange, expandRowAriaLabel, collapseRowAriaLabel, onSort, ...ariaAttributes }: DataTableProps): ReactElement;
|
|
145
144
|
export declare function DataTable({ children, ...rest }: DataTableProps): ReactElement;
|
|
146
145
|
export declare namespace DataTable {
|
|
147
|
-
|
|
148
|
-
|
|
146
|
+
var sortCompareFn: (a: DataTableRow, b: DataTableRow, columnName: DataTableColumn["name"], desiredSortDirection: DataTableColumn["sortDirection"]) => number;
|
|
147
|
+
var Toolbar: typeof DataTableToolbar;
|
|
149
148
|
}
|
|
150
149
|
export {};
|
|
@@ -17,5 +17,5 @@ declare const TableCell: import("@emotion/styled").StyledComponent<{
|
|
|
17
17
|
isTableScrolledToLeft: boolean;
|
|
18
18
|
isTableScrolledToRight: boolean;
|
|
19
19
|
sticky?: "left" | "right" | false;
|
|
20
|
-
} & Pick<DataTableRowProps, "isActive">,
|
|
20
|
+
} & Pick<DataTableRowProps, "isActive">, React.DetailedHTMLProps<React.TdHTMLAttributes<HTMLTableDataCellElement>, HTMLTableDataCellElement>, {}>;
|
|
21
21
|
export default TableCell;
|
|
@@ -10,14 +10,14 @@ type StyledTrProps = {
|
|
|
10
10
|
export declare const StyledTr: import("@emotion/styled").StyledComponent<{
|
|
11
11
|
theme?: import("@emotion/react").Theme;
|
|
12
12
|
as?: React.ElementType;
|
|
13
|
-
} & StyledTrProps,
|
|
13
|
+
} & StyledTrProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLTableRowElement>, HTMLTableRowElement>, {}>;
|
|
14
14
|
type StyledTextProps = {
|
|
15
15
|
alignColumn?: DataTableColumn["align"];
|
|
16
16
|
};
|
|
17
17
|
export declare const StyledText: import("@emotion/styled").StyledComponent<Omit<{
|
|
18
18
|
theme?: import("@emotion/react").Theme;
|
|
19
19
|
as?: React.ElementType;
|
|
20
|
-
} & import("../../Typography/Text/Text").BaseTextProps &
|
|
20
|
+
} & import("../../Typography/Text/Text").BaseTextProps & React.ClassAttributes<HTMLParagraphElement> & React.HTMLAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement> & {
|
|
21
21
|
theme?: import("@emotion/react").Theme;
|
|
22
22
|
} & StyledTextProps, {}, {}>;
|
|
23
23
|
export declare const StyledTd: import("@emotion/styled").StyledComponent<{
|
|
@@ -30,7 +30,7 @@ export declare const StyledTd: import("@emotion/styled").StyledComponent<{
|
|
|
30
30
|
isTableScrolledToLeft: boolean;
|
|
31
31
|
isTableScrolledToRight: boolean;
|
|
32
32
|
sticky?: "left" | "right" | false;
|
|
33
|
-
} & Pick<import("../types").DataTableRowProps, "isActive"> &
|
|
33
|
+
} & Pick<import("../types").DataTableRowProps, "isActive"> & React.ClassAttributes<HTMLTableDataCellElement> & React.TdHTMLAttributes<HTMLTableDataCellElement> & {
|
|
34
34
|
theme?: import("@emotion/react").Theme;
|
|
35
35
|
} & {
|
|
36
36
|
bodyCellVerticalPadding?: DataTableProps["bodyCellVerticalPadding"];
|
|
@@ -3,38 +3,38 @@ import type { EntityListItemProps, EntityListItemWrapperProps } from "./types";
|
|
|
3
3
|
import type { ListSize } from "../../types";
|
|
4
4
|
export declare const getOffsetMqStyle: (cssProp: string, { theme, size, }: {
|
|
5
5
|
theme: Theme;
|
|
6
|
-
} & Partial<EntityListItemWrapperProps>) => Record<string, {
|
|
6
|
+
} & Partial<EntityListItemWrapperProps>) => Record<string, (string | number) | {
|
|
7
7
|
[x: string]: string | number;
|
|
8
|
-
}
|
|
8
|
+
}>;
|
|
9
9
|
export declare const StyledList: import("@emotion/styled").StyledComponent<{
|
|
10
10
|
theme?: Theme;
|
|
11
11
|
as?: React.ElementType;
|
|
12
12
|
} & {
|
|
13
13
|
size: ListSize;
|
|
14
|
-
},
|
|
14
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
15
15
|
export declare const StyledEntityItem: import("@emotion/styled").StyledComponent<{
|
|
16
16
|
theme?: Theme;
|
|
17
17
|
as?: React.ElementType;
|
|
18
|
-
},
|
|
18
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
19
19
|
export declare const StyledShowMore: import("@emotion/styled").StyledComponent<{
|
|
20
20
|
theme?: Theme;
|
|
21
21
|
as?: React.ElementType;
|
|
22
|
-
},
|
|
22
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
23
23
|
export declare const StyledWrapperOffset: import("@emotion/styled").StyledComponent<{
|
|
24
24
|
theme?: Theme;
|
|
25
25
|
as?: React.ElementType;
|
|
26
26
|
} & {
|
|
27
27
|
size: ListSize;
|
|
28
|
-
},
|
|
28
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
29
29
|
export declare const StyledEntityListItemWrapper: import("@emotion/styled").StyledComponent<{
|
|
30
30
|
theme?: Theme;
|
|
31
31
|
as?: React.ElementType;
|
|
32
32
|
} & {
|
|
33
33
|
size: ListSize;
|
|
34
|
-
} &
|
|
34
|
+
} & React.ClassAttributes<HTMLDivElement> & React.HTMLAttributes<HTMLDivElement> & {
|
|
35
35
|
theme?: Theme;
|
|
36
36
|
} & EntityListItemWrapperProps, {}, {}>;
|
|
37
37
|
export declare const StyledEntityListItemButton: import("@emotion/styled").StyledComponent<{
|
|
38
38
|
theme?: Theme;
|
|
39
39
|
as?: React.ElementType;
|
|
40
|
-
} & Partial<EntityListItemProps>,
|
|
40
|
+
} & Partial<EntityListItemProps>, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
@@ -35,11 +35,11 @@ export declare const CheckboxRaw: React.ForwardRefExoticComponent<{
|
|
|
35
35
|
label?: string | React.ReactElement;
|
|
36
36
|
indeterminate?: boolean;
|
|
37
37
|
size?: CheckboxSizes;
|
|
38
|
-
} & Omit<FormFieldProps, "
|
|
38
|
+
} & Omit<FormFieldProps, "label" | "hideLabel"> & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
|
39
39
|
labelSize?: CheckboxSizes;
|
|
40
40
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
41
41
|
export declare const Checkbox: React.ForwardRefExoticComponent<{
|
|
42
42
|
label?: string | React.ReactElement;
|
|
43
43
|
indeterminate?: boolean;
|
|
44
44
|
size?: CheckboxSizes;
|
|
45
|
-
} & Omit<FormFieldProps, "
|
|
45
|
+
} & Omit<FormFieldProps, "label" | "hideLabel"> & Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export declare const StyledContainer: import("@emotion/styled").StyledComponent<{
|
|
2
2
|
theme?: import("@emotion/react").Theme;
|
|
3
3
|
as?: React.ElementType;
|
|
4
|
-
},
|
|
4
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
5
5
|
type StyledOptionProps = {
|
|
6
6
|
active: boolean;
|
|
7
7
|
preSelected: boolean;
|
|
@@ -10,13 +10,13 @@ type StyledOptionProps = {
|
|
|
10
10
|
export declare const StyledOption: import("@emotion/styled").StyledComponent<{
|
|
11
11
|
theme?: import("@emotion/react").Theme;
|
|
12
12
|
as?: React.ElementType;
|
|
13
|
-
} & StyledOptionProps,
|
|
13
|
+
} & StyledOptionProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
14
|
export declare const StyledFakeInputWrap: import("@emotion/styled").StyledComponent<{
|
|
15
15
|
theme?: import("@emotion/react").Theme;
|
|
16
16
|
as?: React.ElementType;
|
|
17
|
-
},
|
|
17
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
18
18
|
export declare const StyledDropdown: import("@emotion/styled").StyledComponent<{
|
|
19
19
|
theme?: import("@emotion/react").Theme;
|
|
20
20
|
as?: React.ElementType;
|
|
21
|
-
},
|
|
21
|
+
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
22
22
|
export {};
|
|
@@ -27,7 +27,7 @@ export declare const DatePicker: React.ForwardRefExoticComponent<{
|
|
|
27
27
|
formatAriaLabel: (monthName: string, year: number) => string;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
} & import("../FormField/FormField").FormFieldProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "
|
|
30
|
+
} & import("../FormField/FormField").FormFieldProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "value" | "type" | "onChange"> & {
|
|
31
31
|
value?: string;
|
|
32
32
|
hasError?: boolean;
|
|
33
33
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -20,4 +20,4 @@ export declare const MaskedInput: React.ForwardRefExoticComponent<{
|
|
|
20
20
|
maskOptions: FactoryArg;
|
|
21
21
|
onAccept?: (value: string, unmaskedValue: string, typedValue: string) => void;
|
|
22
22
|
onComplete?: (value: string, unmaskedValue: string, typedValue: string) => void;
|
|
23
|
-
} & Omit<InputProps, "
|
|
23
|
+
} & Omit<InputProps, "type" | "onChange" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -18,7 +18,7 @@ export declare const RadioRaw: React.ForwardRefExoticComponent<{
|
|
|
18
18
|
/** Display hint below the label specific for the radio */
|
|
19
19
|
labelHint?: string | React.ReactElement;
|
|
20
20
|
size?: RadioSizes;
|
|
21
|
-
} & Omit<FormFieldProps, "
|
|
21
|
+
} & Omit<FormFieldProps, "label" | "labelHint" | "hideLabel"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
|
22
22
|
labelSize?: RadioSizes;
|
|
23
23
|
} & React.RefAttributes<HTMLInputElement>>;
|
|
24
24
|
export declare const Radio: React.ForwardRefExoticComponent<{
|
|
@@ -26,5 +26,5 @@ export declare const Radio: React.ForwardRefExoticComponent<{
|
|
|
26
26
|
/** Display hint below the label specific for the radio */
|
|
27
27
|
labelHint?: string | React.ReactElement;
|
|
28
28
|
size?: RadioSizes;
|
|
29
|
-
} & Omit<FormFieldProps, "
|
|
29
|
+
} & Omit<FormFieldProps, "label" | "labelHint" | "hideLabel"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
30
30
|
export {};
|
|
@@ -9,4 +9,4 @@ export declare const RangeInput: React.ForwardRefExoticComponent<{
|
|
|
9
9
|
/** The step size for each change in the range input's value. */
|
|
10
10
|
hasError?: boolean;
|
|
11
11
|
onSlideStart?: (e: React.FormEvent<HTMLInputElement>) => void;
|
|
12
|
-
} & FormFieldProps & Omit<InputHTMLAttributes<HTMLInputElement>, "type"> & React.RefAttributes<HTMLInputElement>>;
|
|
12
|
+
} & FormFieldProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -14,12 +14,12 @@ export declare const TextareaRaw: React.ForwardRefExoticComponent<{
|
|
|
14
14
|
*/
|
|
15
15
|
hasError?: boolean;
|
|
16
16
|
resize?: "none" | "horizontal" | "vertical" | "both";
|
|
17
|
-
} & TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
17
|
+
} & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
18
18
|
export declare const Textarea: React.ForwardRefExoticComponent<FormFieldProps & {
|
|
19
19
|
/**
|
|
20
20
|
* Set to true to toggle error state
|
|
21
21
|
*/
|
|
22
22
|
hasError?: boolean;
|
|
23
23
|
resize?: "none" | "horizontal" | "vertical" | "both";
|
|
24
|
-
} & TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
24
|
+
} & React.TextareaHTMLAttributes<HTMLTextAreaElement> & React.RefAttributes<HTMLTextAreaElement>>;
|
|
25
25
|
export {};
|
|
@@ -9,7 +9,7 @@ type ToggleRawProps = {
|
|
|
9
9
|
export declare const ToggleRaw: React.ForwardRefExoticComponent<{
|
|
10
10
|
size?: ToggleSize;
|
|
11
11
|
isHighlighted?: boolean;
|
|
12
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
12
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & React.RefAttributes<HTMLInputElement>>;
|
|
13
13
|
export type ToggleProps = ToggleRawProps & {
|
|
14
14
|
/** Controls label alignment with respect to toggle */
|
|
15
15
|
alignLabel?: "before" | "after";
|
|
@@ -20,11 +20,11 @@ export type ToggleProps = ToggleRawProps & {
|
|
|
20
20
|
export declare const Toggle: React.ForwardRefExoticComponent<{
|
|
21
21
|
size?: ToggleSize;
|
|
22
22
|
isHighlighted?: boolean;
|
|
23
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
23
|
+
} & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type" | "size"> & {
|
|
24
24
|
/** Controls label alignment with respect to toggle */
|
|
25
25
|
alignLabel?: "before" | "after";
|
|
26
26
|
/** Display hint below the label specific for the toggle */
|
|
27
27
|
labelHint?: string | React.ReactElement;
|
|
28
28
|
alignItems?: InlineProps["alignItems"];
|
|
29
|
-
} & Omit<FormFieldProps, "
|
|
29
|
+
} & Omit<FormFieldProps, "labelHint" | "hideLabel"> & React.RefAttributes<HTMLInputElement>>;
|
|
30
30
|
export {};
|
|
@@ -7,4 +7,4 @@ export type ToggleButtonProps = {
|
|
|
7
7
|
export declare const ToggleButton: React.ForwardRefExoticComponent<{
|
|
8
8
|
label: string;
|
|
9
9
|
subLabel?: string;
|
|
10
|
-
} & Omit<FormFieldProps, "
|
|
10
|
+
} & Omit<FormFieldProps, "label" | "labelHint" | "errorMessages" | "hint" | "hideLabel"> & Omit<React.InputHTMLAttributes<HTMLInputElement>, "type"> & React.RefAttributes<HTMLInputElement>>;
|
|
@@ -32,5 +32,5 @@ export type GridProps = {
|
|
|
32
32
|
} & HTMLAttributes<HTMLDivElement>;
|
|
33
33
|
export declare function Grid({ columnGap, rowGap, "data-e2e-test-id": dataE2eTestId, children, ...rest }: GridProps): React.ReactElement;
|
|
34
34
|
export declare namespace Grid {
|
|
35
|
-
|
|
35
|
+
var Item: typeof GridItem;
|
|
36
36
|
}
|
|
@@ -13,16 +13,4 @@ export type LayoutFloatProps = {
|
|
|
13
13
|
hostRef: (el: HTMLDivElement | null) => void;
|
|
14
14
|
"data-e2e-test-id"?: string;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
* The floating shell hosting a layout panel's content while its variant is
|
|
18
|
-
* `"float"`. Pins to the bottom-right viewport corner via the internal
|
|
19
|
-
* `Float` positioner, then becomes freely draggable by its header across the
|
|
20
|
-
* viewport (clamped to `spacing.m` from the edges, matching `Float`'s inset).
|
|
21
|
-
* The header carries the `useMove` handle; this float owns the drag geometry
|
|
22
|
-
* and publishes its move handlers via `useLayoutFloatDrag` for the header to drive.
|
|
23
|
-
* Purely presentational otherwise: the content arrives by the panel's persistent
|
|
24
|
-
* host node being appended into `hostRef`'s element.
|
|
25
|
-
*/
|
|
26
|
-
declare const LayoutFloatBase: ({ width, height, hostRef, "data-e2e-test-id": dataE2eTestId, }: LayoutFloatProps) => React.ReactElement;
|
|
27
|
-
export declare const LayoutFloat: React.MemoExoticComponent<typeof LayoutFloatBase>;
|
|
28
|
-
export {};
|
|
16
|
+
export declare const LayoutFloat: React.MemoExoticComponent<({ width, height, hostRef, "data-e2e-test-id": dataE2eTestId, }: LayoutFloatProps) => React.ReactElement>;
|
|
@@ -10,7 +10,7 @@ export type LayoutFloatDragContextValue = {
|
|
|
10
10
|
/** Publish/clear the handlers - for the float. */
|
|
11
11
|
setHandlers: (handlers: LayoutFloatDragHandlers) => void;
|
|
12
12
|
};
|
|
13
|
-
export declare const LayoutFloatDragContext:
|
|
13
|
+
export declare const LayoutFloatDragContext: React.Context<LayoutFloatDragContextValue>;
|
|
14
14
|
/** Read the float-drag channel. Outside a `LayoutFloatDragProvider` the handlers are
|
|
15
15
|
* `null` and the setter a no-op, so consumers need no existence checks. */
|
|
16
16
|
export declare const useLayoutFloatDrag: () => LayoutFloatDragContextValue;
|
|
@@ -16,6 +16,6 @@ export type SandwichContextValue = SandwichEdges & {
|
|
|
16
16
|
/** Static host below the scroll body - `Sandwich.Footer` portals into it. */
|
|
17
17
|
footerSlotNode: HTMLElement | null;
|
|
18
18
|
};
|
|
19
|
-
export declare const SandwichProvider:
|
|
19
|
+
export declare const SandwichProvider: React.Provider<SandwichContextValue | null>;
|
|
20
20
|
/** Read the Sandwich context, or throw if used outside `<Sandwich>`. */
|
|
21
21
|
export declare function useSandwichContext(): SandwichContextValue;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get Kbd(){return Kbd},get MAC_OS_KEYS(){return MAC_OS_KEYS},get WINDOWS_KEYS(){return WINDOWS_KEYS}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/_interop_require_default._(require("react")),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_useIsMacOs=require("../../shared/useIsMacOs"),_ScreenReaderText=require("../Utilities/ScreenReaderText/ScreenReaderText"),MAC_OS_KEYS={cmd:{label:"⌘",spokenLabel:"Command"},meta:{label:"⌘",spokenLabel:"Command"},ctrl:{label:"⌃",spokenLabel:"Control"},alt:{label:"⌥",spokenLabel:"Option"},shift:{label:"⇧",spokenLabel:"Shift"},enter:{label:"↩",spokenLabel:"Enter"},esc:{label:"Esc"},backspace:{label:"⌫",spokenLabel:"Backspace"},tab:{label:"⇥",spokenLabel:"Tab"},up:{label:"↑",spokenLabel:"Up arrow"},down:{label:"↓",spokenLabel:"Down arrow"},left:{label:"←",spokenLabel:"Left arrow"},right:{label:"→",spokenLabel:"Right arrow"},updown:{label:"⇅",spokenLabel:"Up and down arrows"}},WINDOWS_KEYS={cmd:{label:"Ctrl"},meta:{label:"Ctrl"},ctrl:{label:"Ctrl"},alt:{label:"Alt"},shift:{label:"Shift"},enter:{label:"Enter"},esc:{label:"Esc"},backspace:{label:"Backspace"},tab:{label:"Tab"},up:{label:"↑",spokenLabel:"Up arrow"},down:{label:"↓",spokenLabel:"Down arrow"},left:{label:"←",spokenLabel:"Left arrow"},right:{label:"→",spokenLabel:"Right arrow"},updown:{label:"⇅",spokenLabel:"Up and down arrows"}},StyledKbd=(0,_styled.default)("kbd",{target:"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var target=exports,all={get Kbd(){return Kbd},get MAC_OS_KEYS(){return MAC_OS_KEYS},get WINDOWS_KEYS(){return WINDOWS_KEYS}};for(var name in all)Object.defineProperty(target,name,{enumerable:!0,get:Object.getOwnPropertyDescriptor(all,name).get});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_react=/*#__PURE__*/_interop_require_default._(require("react")),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_useIsMacOs=require("../../shared/useIsMacOs"),_ScreenReaderText=require("../Utilities/ScreenReaderText/ScreenReaderText"),MAC_OS_KEYS={cmd:{label:"⌘",spokenLabel:"Command"},meta:{label:"⌘",spokenLabel:"Command"},ctrl:{label:"⌃",spokenLabel:"Control"},alt:{label:"⌥",spokenLabel:"Option"},shift:{label:"⇧",spokenLabel:"Shift"},enter:{label:"↩",spokenLabel:"Enter"},esc:{label:"Esc"},backspace:{label:"⌫",spokenLabel:"Backspace"},tab:{label:"⇥",spokenLabel:"Tab"},up:{label:"↑",spokenLabel:"Up arrow"},down:{label:"↓",spokenLabel:"Down arrow"},left:{label:"←",spokenLabel:"Left arrow"},right:{label:"→",spokenLabel:"Right arrow"},updown:{label:"⇅",spokenLabel:"Up and down arrows"}},WINDOWS_KEYS={cmd:{label:"Ctrl"},meta:{label:"Ctrl"},ctrl:{label:"Ctrl"},alt:{label:"Alt"},shift:{label:"Shift"},enter:{label:"Enter"},esc:{label:"Esc"},backspace:{label:"Backspace"},tab:{label:"Tab"},up:{label:"↑",spokenLabel:"Up arrow"},down:{label:"↓",spokenLabel:"Down arrow"},left:{label:"←",spokenLabel:"Left arrow"},right:{label:"→",spokenLabel:"Right arrow"},updown:{label:"⇅",spokenLabel:"Up and down arrows"}},StyledKbd=(0,_styled.default)("kbd",{target:"e1rvq8bd0",label:"StyledKbd"})(({theme})=>({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",boxSizing:"border-box",minWidth:theme.variables.size.dimension.kbd.minWidth,padding:theme.variables.size.spacing.xxxs,border:`1px solid ${theme.values.color.kbd.border.default}`,borderRadius:theme.variables.size.borderRadius.xs,backgroundColor:theme.values.color.kbd.background.default,color:theme.values.color.kbd.foreground.default,fontFamily:theme.variables.fontFamily.lato,fontSize:theme.variables.size.font.xs,fontWeight:theme.variables.weight.normal,lineHeight:1,whiteSpace:"nowrap",cursor:"default",userSelect:"none"})),StyledKbdKeys=(0,_styled.default)("span",{target:"e1rvq8bd1",label:"StyledKbdKeys"})(({theme,hasSeparators})=>({display:"inline-flex",gap:hasSeparators?theme.variables.size.spacing.xxs:theme.variables.size.spacing.zero})),toDisplayLabel=key=>1===key.length?key.toUpperCase():key,toKeyDisplay=(key,isMacOs)=>{let trimmedKey=key.trim();return(isMacOs?MAC_OS_KEYS:WINDOWS_KEYS)[trimmedKey.toLowerCase()]??{label:toDisplayLabel(trimmedKey)}};function Kbd({keys,platform,"data-e2e-test-id":dataE2eTestId}){let detectedIsMacOs=(0,_useIsMacOs.useIsMacOs)(),isMacOs=platform?"macOs"===platform:detectedIsMacOs,keyDisplays=(Array.isArray(keys)?keys:[keys]).map(key=>toKeyDisplay(key,isMacOs)),spokenKeys=keyDisplays.map(({label,spokenLabel})=>spokenLabel??label).join(" ");return _react.default.createElement(StyledKbd,{"data-e2e-test-id":dataE2eTestId,"data-ds-id":"Kbd"},_react.default.createElement(StyledKbdKeys,{"aria-hidden":"true",hasSeparators:!isMacOs&&keyDisplays.length>1},keyDisplays.map(({label},index)=>_react.default.createElement(_react.default.Fragment,{key:`${label}-${index}`},index>0&&!isMacOs&&_react.default.createElement("span",null,"+"),_react.default.createElement("span",null,label)))),_react.default.createElement(_ScreenReaderText.ScreenReaderText,{as:"span"},spokenKeys))}
|
|
@@ -78,8 +78,7 @@ export type PanelAnimation = Readonly<{
|
|
|
78
78
|
easing: string;
|
|
79
79
|
}>;
|
|
80
80
|
/** Actions every slot handle exposes, whatever its state shape. No `resize`:
|
|
81
|
-
* sizes are declarative (`defaultSize` on the panel, then drag)
|
|
82
|
-
* content/split pair is CSS-split, so an imperative size wouldn't hold. */
|
|
81
|
+
* sizes are declarative (`defaultSize` on the panel, then drag). */
|
|
83
82
|
export type PanelHandleActions = {
|
|
84
83
|
/** Whether the region occupies a footer-aligned column, an overlay, or neither. */
|
|
85
84
|
readonly presentation: RegionPresentation;
|
|
@@ -100,11 +99,20 @@ export type PanelState = {
|
|
|
100
99
|
visible: boolean;
|
|
101
100
|
size?: Size;
|
|
102
101
|
};
|
|
102
|
+
/** Desktop resize policy. Overlap must be explicitly enabled by a custom rule. */
|
|
103
|
+
export type SplitResizeBehavior = "clamp" | "overlap";
|
|
104
|
+
export type SplitState = PanelState & {
|
|
105
|
+
/** Provider default for the shared desktop Content/Split resize separator. */
|
|
106
|
+
resizable?: boolean;
|
|
107
|
+
resizeBehavior?: SplitResizeBehavior;
|
|
108
|
+
/** Actual rendered overlap, reported by the shared desktop geometry. */
|
|
109
|
+
isOverlapping?: boolean;
|
|
110
|
+
};
|
|
103
111
|
export type LayoutState = {
|
|
104
112
|
leftPanel: LeftPanelState;
|
|
105
113
|
rightPanel: RightPanelState;
|
|
106
114
|
content: PanelState;
|
|
107
|
-
splitview:
|
|
115
|
+
splitview: SplitState;
|
|
108
116
|
};
|
|
109
117
|
export type SidePanelConfig = {
|
|
110
118
|
defaultVisible?: boolean;
|
|
@@ -127,11 +135,13 @@ export type PanelConfig = {
|
|
|
127
135
|
defaultVisible?: boolean;
|
|
128
136
|
defaultSize?: Size;
|
|
129
137
|
};
|
|
130
|
-
/**
|
|
131
|
-
* `Layout.Content`'s column whenever it's open, capped by
|
|
132
|
-
* `--ds-layout-split-max-width`. */
|
|
138
|
+
/** Initial desktop Split width; otherwise starts at half the shared area. */
|
|
133
139
|
export type SplitConfig = {
|
|
134
140
|
defaultVisible?: boolean;
|
|
141
|
+
defaultSize?: Size;
|
|
142
|
+
/** Allow desktop pointer resizing of Content and Split. Default
|
|
143
|
+
* false. Layout.Split's own resizable prop overrides this. */
|
|
144
|
+
resizable?: boolean;
|
|
135
145
|
};
|
|
136
146
|
export type LayoutConfig = {
|
|
137
147
|
leftPanel?: LeftPanelConfig;
|
|
@@ -208,6 +218,12 @@ export type LayoutAction = {
|
|
|
208
218
|
type: "resize";
|
|
209
219
|
slot: SlotKey;
|
|
210
220
|
size: Size;
|
|
221
|
+
} | {
|
|
222
|
+
type: "setSplitResizeBehavior";
|
|
223
|
+
behavior: SplitResizeBehavior;
|
|
224
|
+
} | {
|
|
225
|
+
type: "setSplitOverlap";
|
|
226
|
+
overlapping: boolean;
|
|
211
227
|
}
|
|
212
228
|
/** Restore one slot (or all, if omitted) to its config-default state.
|
|
213
229
|
* Page panels default hidden, so this also hides them - handy on unmount. */
|
|
@@ -261,7 +277,11 @@ export type LayoutValue = {
|
|
|
261
277
|
leftPanel: LeftPanelHandle;
|
|
262
278
|
rightPanel: RightPanelHandle;
|
|
263
279
|
content: PanelHandle;
|
|
264
|
-
splitview:
|
|
280
|
+
splitview: PanelHandleActions & {
|
|
281
|
+
state: SplitState;
|
|
282
|
+
/** Custom rules opt into overlap; default policy stops at Content's minimum. */
|
|
283
|
+
setResizeBehavior: (behavior: SplitResizeBehavior) => void;
|
|
284
|
+
};
|
|
265
285
|
};
|
|
266
286
|
/** Forwarded to a panel's underlying scroll container (scroll restoration,
|
|
267
287
|
* custom scroll handling). Shared by every panel-like slot backed by a
|
|
@@ -312,6 +332,9 @@ export type LeftPanelProps = Omit<SidePanelProps, "defaultSize" | "resizable"> &
|
|
|
312
332
|
};
|
|
313
333
|
export type ContentProps = {
|
|
314
334
|
children: React.ReactNode;
|
|
335
|
+
/** Minimum desktop content width while Split is open: pixels or a percentage
|
|
336
|
+
* of the shared Content/Split area. Default 0. */
|
|
337
|
+
minWidth?: Size;
|
|
315
338
|
};
|
|
316
339
|
export type ContentPanelProps = ForwardedScrollProps & {
|
|
317
340
|
/** Panel content in source order. `<Layout.ContentHeader />` /
|
|
@@ -324,11 +347,27 @@ export type ContentPanelProps = ForwardedScrollProps & {
|
|
|
324
347
|
"data-e2e-test-id"?: string;
|
|
325
348
|
};
|
|
326
349
|
/**
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* (default: the `xxl` breakpoint) and centred once past it.
|
|
350
|
+
* Desktop Split starts at half the shared area unless a size is supplied.
|
|
351
|
+
* The pair remains capped by `--ds-layout-split-max-width`.
|
|
330
352
|
*/
|
|
331
353
|
export type SplitProps = ForwardedScrollProps & {
|
|
354
|
+
/** Initial desktop width: number/px means pixels, percentage follows the area until dragged. */
|
|
355
|
+
defaultSize?: Size;
|
|
356
|
+
/** Minimum desktop Split width in pixels. Default 0; bounded by available space. */
|
|
357
|
+
minWidth?: number;
|
|
358
|
+
/** Maximum desktop Split width: pixels or a percentage of the shared
|
|
359
|
+
* Content/Split area. Defaults to "90%". */
|
|
360
|
+
maxWidth?: Size;
|
|
361
|
+
/** Allow desktop pointer resizing. Overrides the provider's
|
|
362
|
+
* splitview.resizable setting, which defaults to false. */
|
|
363
|
+
resizable?: boolean;
|
|
364
|
+
/** Props forwarded to the desktop resize separator. */
|
|
365
|
+
slotProps?: {
|
|
366
|
+
resizeHandle?: {
|
|
367
|
+
/** Localized accessible name. Falls back to Split's aria-label. */
|
|
368
|
+
"aria-label"?: string;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
332
371
|
/** Panel surface. Defaults to primary.
|
|
333
372
|
* TODO: Move background ownership to the client-rendered content. */
|
|
334
373
|
background?: "primary" | "transparent";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FC, ReactNode } from "react";
|
|
2
2
|
import type { SlotKey } from "../../-types";
|
|
3
|
-
export type LayoutBottomBarFallback = "hide" | "remaining" | "full";
|
|
3
|
+
export type LayoutBottomBarFallback = "hide" | "remaining" | "overlay" | "full";
|
|
4
4
|
export type LayoutBottomBarItemProps = {
|
|
5
5
|
/** Layout region whose column the item follows. */
|
|
6
6
|
region: SlotKey;
|
|
@@ -8,7 +8,8 @@ export type LayoutBottomBarItemProps = {
|
|
|
8
8
|
* split actions occupy their outer margins up to the side panels, keeping gaps.
|
|
9
9
|
* The child controls whether it fills these bounds; fallback is unchanged. */
|
|
10
10
|
boundary?: "panel" | "available";
|
|
11
|
-
/** Placement when the region has no column.
|
|
11
|
+
/** Placement when the region has no column. `overlay` follows the panel over neighboring actions;
|
|
12
|
+
* `full` gets a separate row. Defaults to hiding the item. */
|
|
12
13
|
fallback?: LayoutBottomBarFallback;
|
|
13
14
|
/** Actions supplied and styled by the consumer. */
|
|
14
15
|
children: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"LayoutBottomBar",{enumerable:!0,get:function(){return LayoutBottomBar}});const _react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_react1=require("@emotion/react"),_LayoutPortal=require("../LayoutPortal"),_LayoutCssVars=require("../LayoutCssVars"),_constants=require("../-constants"),_useLayout=require("../useLayout"),_getBottomBarLayout=require("./getBottomBarLayout"),_StyledLayoutBottomBar=require("./StyledLayoutBottomBar"),_StyledLayoutBottomBarSection=require("./StyledLayoutBottomBarSection"),useGlobalCssVariables=(rowCount,hasRightPanel)=>{let rowHeight=(0,_react1.useTheme)().variables.layout.bottomBar.contentHeight.default,bottomBarHeightCssVar=(0,_LayoutCssVars.useLayoutVar)(_constants.BOTTOM_BAR_HEIGHT_VAR),rightPanelBottomBarHeightCssVar=(0,_LayoutCssVars.useLayoutVar)(_constants.RIGHT_PANEL_BOTTOM_BAR_HEIGHT_VAR);(0,_react.useLayoutEffect)(()=>{if(!rowCount){bottomBarHeightCssVar.remove(),rightPanelBottomBarHeightCssVar.remove();return}bottomBarHeightCssVar.set(`calc(${rowCount} * ${rowHeight} + env(safe-area-inset-bottom))`),rightPanelBottomBarHeightCssVar.set(hasRightPanel?`var(${_constants.BOTTOM_BAR_HEIGHT_VAR})`:"0px")},[rowCount,rowHeight,hasRightPanel,bottomBarHeightCssVar,rightPanelBottomBarHeightCssVar])};function LayoutBottomBar({children,background="transparent","data-e2e-test-id":dataE2eTestId,...accessibleName}){let{leftPanel,content,splitview,rightPanel}=(0,_useLayout.useLayout)(),{sections,cells,rowCount,hasRightPanel}=(0,_getBottomBarLayout.getBottomBarLayout)({children,layout:{leftPanel,content,splitview,rightPanel}});return(useGlobalCssVariables(rowCount,hasRightPanel),sections.length)?_react.default.createElement(_LayoutPortal.LayoutPortal,null,_react.default.createElement(_StyledLayoutBottomBar.StyledLayoutBottomBar,{...accessibleName,role:"group",hasRightPanel:hasRightPanel,cells:cells,hasFullWidthSection:sections.some(({placement})=>"full"===placement),"data-ds-id":"LayoutBottomBar","data-e2e-test-id":dataE2eTestId},sections.map(section=>_react.default.createElement(_StyledLayoutBottomBarSection.StyledLayoutBottomBarSection,{key:section.region,"data-ds-id":"LayoutBottomBarSection",background:background,"data-e2e-test-id":section["data-e2e-test-id"],columnIndex:section.columnIndex,rowIndex:section.rowIndex,fullWidth:"full"===section.placement,hasPanelDivider:"leftPanel"===section.region},section.children)))):null}
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"LayoutBottomBar",{enumerable:!0,get:function(){return LayoutBottomBar}});const _react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_wildcard")._(require("react")),_react1=require("@emotion/react"),_LayoutPortal=require("../LayoutPortal"),_LayoutCssVars=require("../LayoutCssVars"),_constants=require("../-constants"),_useLayout=require("../useLayout"),_getBottomBarLayout=require("./getBottomBarLayout"),_StyledLayoutBottomBar=require("./StyledLayoutBottomBar"),_StyledLayoutBottomBarSection=require("./StyledLayoutBottomBarSection"),useGlobalCssVariables=(rowCount,hasRightPanel)=>{let rowHeight=(0,_react1.useTheme)().variables.layout.bottomBar.contentHeight.default,bottomBarHeightCssVar=(0,_LayoutCssVars.useLayoutVar)(_constants.BOTTOM_BAR_HEIGHT_VAR),rightPanelBottomBarHeightCssVar=(0,_LayoutCssVars.useLayoutVar)(_constants.RIGHT_PANEL_BOTTOM_BAR_HEIGHT_VAR);(0,_react.useLayoutEffect)(()=>{if(!rowCount){bottomBarHeightCssVar.remove(),rightPanelBottomBarHeightCssVar.remove();return}bottomBarHeightCssVar.set(`calc(${rowCount} * ${rowHeight} + env(safe-area-inset-bottom))`),rightPanelBottomBarHeightCssVar.set(hasRightPanel?`var(${_constants.BOTTOM_BAR_HEIGHT_VAR})`:"0px")},[rowCount,rowHeight,hasRightPanel,bottomBarHeightCssVar,rightPanelBottomBarHeightCssVar])};function LayoutBottomBar({children,background="transparent","data-e2e-test-id":dataE2eTestId,...accessibleName}){let{leftPanel,content,splitview,rightPanel}=(0,_useLayout.useLayout)(),{sections,cells,rowCount,hasRightPanel}=(0,_getBottomBarLayout.getBottomBarLayout)({children,layout:{leftPanel,content,splitview,rightPanel}});return(useGlobalCssVariables(rowCount,hasRightPanel),sections.length)?_react.default.createElement(_LayoutPortal.LayoutPortal,null,_react.default.createElement(_StyledLayoutBottomBar.StyledLayoutBottomBar,{...accessibleName,role:"group",hasRightPanel:hasRightPanel,cells:cells,hasFullWidthSection:sections.some(({placement})=>"full"===placement),"data-ds-id":"LayoutBottomBar","data-e2e-test-id":dataE2eTestId},sections.map(section=>_react.default.createElement(_StyledLayoutBottomBarSection.StyledLayoutBottomBarSection,{key:section.region,"data-ds-id":"LayoutBottomBarSection",background:background,"data-e2e-test-id":section["data-e2e-test-id"],columnIndex:section.columnIndex,rowIndex:section.rowIndex,fullWidth:"full"===section.placement,overlayRegion:"overlay"===section.placement?section.region:void 0,hasPanelDivider:"leftPanel"===section.region},section.children)))):null}
|
|
@@ -7,5 +7,5 @@ type StyledLayoutBottomBarProps = {
|
|
|
7
7
|
export declare const StyledLayoutBottomBar: import("@emotion/styled").StyledComponent<{
|
|
8
8
|
theme?: import("@emotion/react").Theme;
|
|
9
9
|
as?: React.ElementType;
|
|
10
|
-
} & StyledLayoutBottomBarProps,
|
|
10
|
+
} & StyledLayoutBottomBarProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
11
11
|
export {};
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import type { LayoutBottomBarProps } from "../-types";
|
|
1
|
+
import type { LayoutBottomBarProps, SlotKey } from "../-types";
|
|
2
2
|
type StyledLayoutBottomBarSectionProps = {
|
|
3
3
|
background: NonNullable<LayoutBottomBarProps["background"]>;
|
|
4
4
|
columnIndex?: number;
|
|
5
5
|
rowIndex: number;
|
|
6
6
|
fullWidth: boolean;
|
|
7
7
|
hasPanelDivider: boolean;
|
|
8
|
+
overlayRegion?: SlotKey;
|
|
8
9
|
};
|
|
9
10
|
export declare const StyledLayoutBottomBarSection: import("@emotion/styled").StyledComponent<{
|
|
10
11
|
theme?: import("@emotion/react").Theme;
|
|
11
12
|
as?: React.ElementType;
|
|
12
|
-
} & StyledLayoutBottomBarSectionProps,
|
|
13
|
+
} & StyledLayoutBottomBarSectionProps, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
13
14
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"StyledLayoutBottomBarSection",{enumerable:!0,get:function(){return StyledLayoutBottomBarSection}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_ispropvalid=/*#__PURE__*/_interop_require_default._(require("@emotion/is-prop-valid")),StyledLayoutBottomBarSection=(0,_styled.default)("div",{shouldForwardProp:prop=>"background"!==prop&&(0,_ispropvalid.default)(prop),target:"
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"StyledLayoutBottomBarSection",{enumerable:!0,get:function(){return StyledLayoutBottomBarSection}});const _interop_require_default=require("@swc/helpers/_/_interop_require_default"),_styled=/*#__PURE__*/_interop_require_default._(require("@emotion/styled")),_ispropvalid=/*#__PURE__*/_interop_require_default._(require("@emotion/is-prop-valid")),_constants=require("../-constants"),StyledLayoutBottomBarSection=(0,_styled.default)("div",{shouldForwardProp:prop=>"background"!==prop&&(0,_ispropvalid.default)(prop),target:"eengdw40",label:"StyledLayoutBottomBarSection"})(({theme,background,columnIndex,rowIndex,fullWidth,hasPanelDivider,overlayRegion})=>({gridColumn:fullWidth?"1 / -1":(columnIndex??0)+1,gridRow:rowIndex+1,alignItems:"center",boxSizing:"border-box",backgroundColor:"transparent"===background?"transparent":theme.values.color.background[background].default,display:"flex",minWidth:0,whiteSpace:"nowrap",...hasPanelDivider&&{position:"relative","&::after":{content:'""',position:"absolute",top:0,bottom:0,right:0,width:1,backgroundColor:theme.values.color.border.secondary.default,pointerEvents:"none"}},...overlayRegion&&{position:"absolute",gridColumn:"1 / -1",left:`var(${_constants.PANEL_START_VAR[overlayRegion]}, 0px)`,width:`var(${_constants.PANEL_WIDTH_VAR[overlayRegion]}, 0px)`,top:0,height:theme.variables.layout.bottomBar.contentHeight.default}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"getBottomBarLayout",{enumerable:!0,get:function(){return getBottomBarLayout}});const _react=require("react"),_constants=require("../-constants"),_LayoutBottomBarItem=require("./BottomBarItem/LayoutBottomBarItem"),getBottomBarItemMode=({region,fallback,layout})=>{let handle=layout[region];return"column"===handle.presentation?"column":("leftPanel"!==region||"sidebar"!==layout.leftPanel.state.variant)&&("rightPanel"!==region||"sidebar"!==layout.rightPanel.state.variant)||handle.isVisible||null===handle.animation?fallback:"column"},getVisibleSections=(children,layout)=>_react.Children.toArray(children).flatMap(child=>{if(!(0,_react.isValidElement)(child)||child.type!==_LayoutBottomBarItem.LayoutBottomBarItem||null==child.props.children||!1===child.props.children)return[];let{region,fallback="hide"}=child.props,placement=getBottomBarItemMode({region,fallback,layout});return"hide"===placement?[]:[{...child.props,placement,fallback}]}),shouldPreserveSplitColumnWidth=sections=>{let hasLeftFallback=sections.some(({region,fallback})=>"leftPanel"===region&&"remaining"===fallback),hasContentColumn=sections.some(({region,placement})=>"content"===region&&"column"===placement),hasSplitColumn=sections.some(({region,placement})=>"splitview"===region&&"column"===placement),hasRightFallback=sections.some(({region,fallback})=>"rightPanel"===region&&"remaining"===fallback);return hasLeftFallback&&hasContentColumn&&hasSplitColumn&&!hasRightFallback},getSharedRowCells=sections=>{if(!sections.length)return[];let firstSection=sections[0],lastSection=sections[sections.length-1],hasRemainingActions=sections.some(({fallback})=>"remaining"===fallback),preserveSplitColumn=shouldPreserveSplitColumnWidth(sections),flexibleColumns={leftPanel:!1,content:hasRemainingActions,splitview:hasRemainingActions&&!preserveSplitColumn,rightPanel:!1},hasFlexibleColumn=sections.some(({region,placement})=>"column"===placement&&flexibleColumns[region]),needsFlexibleGap=hasRemainingActions&&!hasFlexibleColumn,rightActions=sections.find(({region})=>"rightPanel"===region);return[..."column"===firstSection.placement?[{kind:"leading-gap",region:firstSection.region}]:[],...sections.flatMap((section,index)=>{let previousSection=sections[index-1];return[..."column"===section.placement&&previousSection?.placement==="column"?[{kind:"column-gap",region:section.region,previousRegion:previousSection.region}]:[],...needsFlexibleGap&§ion===rightActions?[{kind:"flexible-gap"}]:[],{kind:"section",section,flexible:flexibleColumns[section.region]}]}),...!hasRemainingActions||preserveSplitColumn?[{kind:"trailing-gap",region:lastSection.region}]:[],...needsFlexibleGap&&!rightActions?[{kind:"flexible-gap"}]:[]]},getBottomBarLayout=({children,layout})=>{let sections=getVisibleSections(children,layout),sharedSections=_constants.PANEL_ORDER.flatMap(region=>sections.filter(section=>section.region===region&&"full"!==section.placement)),fullWidthSections=sections.filter(({placement})=>"full"===placement),sharedRowCount
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"getBottomBarLayout",{enumerable:!0,get:function(){return getBottomBarLayout}});const _react=require("react"),_constants=require("../-constants"),_LayoutBottomBarItem=require("./BottomBarItem/LayoutBottomBarItem"),getBottomBarItemMode=({region,fallback,layout})=>{let handle=layout[region];return"column"===handle.presentation?"column":("leftPanel"!==region||"sidebar"!==layout.leftPanel.state.variant)&&("rightPanel"!==region||"sidebar"!==layout.rightPanel.state.variant)||handle.isVisible||null===handle.animation?fallback:"column"},getVisibleSections=(children,layout)=>_react.Children.toArray(children).flatMap(child=>{if(!(0,_react.isValidElement)(child)||child.type!==_LayoutBottomBarItem.LayoutBottomBarItem||null==child.props.children||!1===child.props.children)return[];let{region,fallback="hide"}=child.props,placement=getBottomBarItemMode({region,fallback,layout});return"hide"===placement?[]:[{...child.props,placement,fallback}]}),shouldPreserveSplitColumnWidth=sections=>{let hasLeftFallback=sections.some(({region,fallback})=>"leftPanel"===region&&"remaining"===fallback),hasContentColumn=sections.some(({region,placement})=>"content"===region&&"column"===placement),hasSplitColumn=sections.some(({region,placement})=>"splitview"===region&&"column"===placement),hasRightFallback=sections.some(({region,fallback})=>"rightPanel"===region&&"remaining"===fallback);return hasLeftFallback&&hasContentColumn&&hasSplitColumn&&!hasRightFallback},getSharedRowCells=sections=>{if(!sections.length)return[];let firstSection=sections[0],lastSection=sections[sections.length-1],hasRemainingActions=sections.some(({fallback})=>"remaining"===fallback),preserveSplitColumn=shouldPreserveSplitColumnWidth(sections),flexibleColumns={leftPanel:!1,content:hasRemainingActions,splitview:hasRemainingActions&&!preserveSplitColumn,rightPanel:!1},hasFlexibleColumn=sections.some(({region,placement})=>"column"===placement&&flexibleColumns[region]),needsFlexibleGap=hasRemainingActions&&!hasFlexibleColumn,rightActions=sections.find(({region})=>"rightPanel"===region);return[..."column"===firstSection.placement?[{kind:"leading-gap",region:firstSection.region}]:[],...sections.flatMap((section,index)=>{let previousSection=sections[index-1];return[..."column"===section.placement&&previousSection?.placement==="column"?[{kind:"column-gap",region:section.region,previousRegion:previousSection.region}]:[],...needsFlexibleGap&§ion===rightActions?[{kind:"flexible-gap"}]:[],{kind:"section",section,flexible:flexibleColumns[section.region]}]}),...!hasRemainingActions||preserveSplitColumn?[{kind:"trailing-gap",region:lastSection.region}]:[],...needsFlexibleGap&&!rightActions?[{kind:"flexible-gap"}]:[]]},getBottomBarLayout=({children,layout})=>{let sections=getVisibleSections(children,layout),sharedSections=_constants.PANEL_ORDER.flatMap(region=>sections.filter(section=>section.region===region&&"full"!==section.placement&&"overlay"!==section.placement)),fullWidthSections=sections.filter(({placement})=>"full"===placement),overlaySections=sections.filter(({placement})=>"overlay"===placement),sharedRowCount=sharedSections.length||overlaySections.length?1:0,cells=getSharedRowCells(sharedSections);return{cells,sections:[...cells.flatMap((cell,column)=>"section"===cell.kind?[{...cell.section,columnIndex:column,rowIndex:0}]:[]),...overlaySections.map(section=>({...section,rowIndex:0})),...fullWidthSections.map((section,row)=>({...section,rowIndex:sharedRowCount+row}))],rowCount:sharedRowCount+fullWidthSections.length,hasRightPanel:sections.some(({region})=>"rightPanel"===region)}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Content",{enumerable:!0,get:function(){return Content}});const _react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_default")._(require("react")),_constants=require("../-constants"),_registry=require("../registry"),_ContentSplitBase=require("../Split/MobileSplitView/ContentSplitBase"),_useMobileSplitStack=require("../Split/MobileSplitView/useMobileSplitStack"),_useMobileSplitView=require("../Split/MobileSplitView/useMobileSplitView"),_ContentDocked=require("./ContentDocked"),Content=({children})=>{(0,_registry.useDeclarePanel)(_constants.Slot.content,{collapsible:!1});let enabled=(0,_useMobileSplitView.useMobileSplitViewEnabled)(),{host,isSplitPresent}=(0,_useMobileSplitStack.useMobileSplitStack)();return enabled&&isSplitPresent&&null!==host?_react.default.createElement(_ContentSplitBase.ContentSplitBase,null,children):_react.default.createElement(_ContentDocked.ContentDocked,null,children)};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"Content",{enumerable:!0,get:function(){return Content}});const _react=/*#__PURE__*/require("@swc/helpers/_/_interop_require_default")._(require("react")),_constants=require("../-constants"),_registry=require("../registry"),_ContentSplitBase=require("../Split/MobileSplitView/ContentSplitBase"),_useMobileSplitStack=require("../Split/MobileSplitView/useMobileSplitStack"),_useMobileSplitView=require("../Split/MobileSplitView/useMobileSplitView"),_ContentDocked=require("./ContentDocked"),Content=({children,minWidth})=>{(0,_registry.useDeclarePanel)(_constants.Slot.content,{collapsible:!1,minSize:minWidth});let enabled=(0,_useMobileSplitView.useMobileSplitViewEnabled)(),{host,isSplitPresent}=(0,_useMobileSplitStack.useMobileSplitStack)();return enabled&&isSplitPresent&&null!==host?_react.default.createElement(_ContentSplitBase.ContentSplitBase,null,children):_react.default.createElement(_ContentDocked.ContentDocked,null,children)};
|