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
@@ -53,7 +53,6 @@ const StyledContent = _styledComponents.default.div`
53
53
  hasHeader
54
54
  }) => !hasHeader && (0, _styledComponents.css)`
55
55
  padding-top: 0;
56
- margin-top: -25px;
57
56
  `}
58
57
  `;
59
58
  var _default = exports.default = StyledContent;
@@ -114,7 +114,7 @@ const DialogFullScreen = ({
114
114
  "data-element": "dialog-full-screen",
115
115
  pagesStyling: pagesStyling,
116
116
  role: role
117
- }), dialogTitle(), closeIcon(), /*#__PURE__*/_react.default.createElement(_content.default, {
117
+ }), title || headerChildren ? dialogTitle() : null, closeIcon(), /*#__PURE__*/_react.default.createElement(_content.default, {
118
118
  hasHeader: title !== undefined,
119
119
  "data-element": "content",
120
120
  "data-role": "dialog-full-screen-content",
@@ -51,7 +51,6 @@ const StyledDialogFullScreen = _styledComponents.default.div`
51
51
  }) => pagesStyling && (0, _styledComponents.css)`
52
52
  ${_content.default} {
53
53
  padding: 0;
54
- margin-top: -25px;
55
54
  }
56
55
 
57
56
  ${_iconButton.default} {
@@ -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;