carbon-react 147.4.2 → 147.5.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.
Files changed (23) hide show
  1. package/esm/components/dialog-full-screen/content.style.js +0 -1
  2. package/esm/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
  3. package/esm/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
  4. package/esm/components/multi-action-button/index.d.ts +1 -1
  5. package/esm/components/multi-action-button/multi-action-button.component.d.ts +5 -1
  6. package/esm/components/multi-action-button/multi-action-button.component.js +649 -4
  7. package/esm/components/pages/page/page.component.d.ts +1 -1
  8. package/esm/components/pages/page/page.component.js +2 -2
  9. package/esm/components/split-button/index.d.ts +1 -1
  10. package/esm/components/split-button/split-button.component.d.ts +7 -1
  11. package/esm/components/split-button/split-button.component.js +556 -7
  12. package/lib/components/dialog-full-screen/content.style.js +0 -1
  13. package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
  14. package/lib/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
  15. package/lib/components/multi-action-button/index.d.ts +1 -1
  16. package/lib/components/multi-action-button/multi-action-button.component.d.ts +5 -1
  17. package/lib/components/multi-action-button/multi-action-button.component.js +647 -4
  18. package/lib/components/pages/page/page.component.d.ts +1 -1
  19. package/lib/components/pages/page/page.component.js +2 -2
  20. package/lib/components/split-button/index.d.ts +1 -1
  21. package/lib/components/split-button/split-button.component.d.ts +7 -1
  22. package/lib/components/split-button/split-button.component.js +554 -7
  23. package/package.json +1 -1
@@ -45,7 +45,6 @@ const StyledContent = styled.div`
45
45
  hasHeader
46
46
  }) => !hasHeader && css`
47
47
  padding-top: 0;
48
- margin-top: -25px;
49
48
  `}
50
49
  `;
51
50
  export default StyledContent;
@@ -105,7 +105,7 @@ export const DialogFullScreen = ({
105
105
  "data-element": "dialog-full-screen",
106
106
  pagesStyling: pagesStyling,
107
107
  role: role
108
- }), dialogTitle(), closeIcon(), /*#__PURE__*/React.createElement(StyledContent, {
108
+ }), title || headerChildren ? dialogTitle() : null, closeIcon(), /*#__PURE__*/React.createElement(StyledContent, {
109
109
  hasHeader: title !== undefined,
110
110
  "data-element": "content",
111
111
  "data-role": "dialog-full-screen-content",
@@ -42,7 +42,6 @@ const StyledDialogFullScreen = styled.div`
42
42
  }) => pagesStyling && css`
43
43
  ${StyledContent} {
44
44
  padding: 0;
45
- margin-top: -25px;
46
45
  }
47
46
 
48
47
  ${StyledIconButton} {
@@ -1,2 +1,2 @@
1
1
  export { default } from "./multi-action-button.component";
2
- export type { MultiActionButtonProps } from "./multi-action-button.component";
2
+ export type { MultiActionButtonHandle, MultiActionButtonProps, } from "./multi-action-button.component";
@@ -7,5 +7,9 @@ export interface MultiActionButtonProps extends WidthProps, Omit<SplitButtonProp
7
7
  /** Second text child, renders under main text, only when size is "large" */
8
8
  subtext?: string;
9
9
  }
10
- export declare const MultiActionButton: ({ align, position, disabled, buttonType, size, children, text, subtext, width, onClick, "data-element": dataElement, "data-role": dataRole, ...rest }: MultiActionButtonProps) => React.JSX.Element;
10
+ export declare type MultiActionButtonHandle = {
11
+ /** Programmatically focus the main button */
12
+ focusMainButton: () => void;
13
+ } | null;
14
+ export declare const MultiActionButton: React.ForwardRefExoticComponent<MultiActionButtonProps & React.RefAttributes<MultiActionButtonHandle>>;
11
15
  export default MultiActionButton;