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.
- package/esm/components/dialog-full-screen/content.style.js +0 -1
- package/esm/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/esm/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
- package/esm/components/multi-action-button/index.d.ts +1 -1
- package/esm/components/multi-action-button/multi-action-button.component.d.ts +5 -1
- package/esm/components/multi-action-button/multi-action-button.component.js +649 -4
- package/esm/components/pages/page/page.component.d.ts +1 -1
- package/esm/components/pages/page/page.component.js +2 -2
- package/esm/components/split-button/index.d.ts +1 -1
- package/esm/components/split-button/split-button.component.d.ts +7 -1
- package/esm/components/split-button/split-button.component.js +556 -7
- package/lib/components/dialog-full-screen/content.style.js +0 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.component.js +1 -1
- package/lib/components/dialog-full-screen/dialog-full-screen.style.js +0 -1
- package/lib/components/multi-action-button/index.d.ts +1 -1
- package/lib/components/multi-action-button/multi-action-button.component.d.ts +5 -1
- package/lib/components/multi-action-button/multi-action-button.component.js +647 -4
- package/lib/components/pages/page/page.component.d.ts +1 -1
- package/lib/components/pages/page/page.component.js +2 -2
- package/lib/components/split-button/index.d.ts +1 -1
- package/lib/components/split-button/split-button.component.d.ts +7 -1
- package/lib/components/split-button/split-button.component.js +554 -7
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { PaddingProps } from "styled-system";
|
|
3
3
|
export interface PageProps extends PaddingProps {
|
|
4
4
|
/** The title for the page, normally a Heading component. */
|
|
5
|
-
title
|
|
5
|
+
title?: React.ReactNode;
|
|
6
6
|
/** This component supports children. */
|
|
7
7
|
children: React.ReactNode;
|
|
8
8
|
/** The ARIA role to be applied to the component */
|
|
@@ -40,9 +40,9 @@ const Page = ({
|
|
|
40
40
|
}, rest), /*#__PURE__*/_react.default.createElement(_page.StyledPage, _extends({}, (0, _tags.default)("page", rest), {
|
|
41
41
|
ref: styledPageNodeRef,
|
|
42
42
|
role: role
|
|
43
|
-
}), /*#__PURE__*/_react.default.createElement(_fullScreenHeading.default, {
|
|
43
|
+
}), title ? /*#__PURE__*/_react.default.createElement(_fullScreenHeading.default, {
|
|
44
44
|
hasContent: true
|
|
45
|
-
}, title), /*#__PURE__*/_react.default.createElement(_page.StyledPageContent, _extends({
|
|
45
|
+
}, title) : null, /*#__PURE__*/_react.default.createElement(_page.StyledPageContent, _extends({
|
|
46
46
|
"data-element": "carbon-page-content",
|
|
47
47
|
"data-role": "page-content",
|
|
48
48
|
p: "34px 40px"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { default } from "./split-button.component";
|
|
2
|
-
export type { SplitButtonProps } from "./split-button.component";
|
|
2
|
+
export type { SplitButtonHandle, SplitButtonProps, } from "./split-button.component";
|
|
@@ -29,5 +29,11 @@ export interface SplitButtonProps extends React.ButtonHTMLAttributes<HTMLButtonE
|
|
|
29
29
|
/** Sets rendering position of menu */
|
|
30
30
|
position?: "left" | "right";
|
|
31
31
|
}
|
|
32
|
-
export declare
|
|
32
|
+
export declare type SplitButtonHandle = {
|
|
33
|
+
/** Programmatically focus the main button */
|
|
34
|
+
focusMainButton: () => void;
|
|
35
|
+
/** Programmatically focus the toggle button. */
|
|
36
|
+
focusToggleButton: () => void;
|
|
37
|
+
} | null;
|
|
38
|
+
export declare const SplitButton: React.ForwardRefExoticComponent<SplitButtonProps & React.RefAttributes<SplitButtonHandle>>;
|
|
33
39
|
export default SplitButton;
|