UNPKG

@carbon/ibm-products

Version:
57 lines (55 loc) 1.88 kB
/** * Copyright IBM Corp. 2020, 2026 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ import { __toESM } from "../../_virtual/_rolldown/runtime.js"; import { require_classnames } from "../../node_modules/classnames/index.js"; import { pkg } from "../../settings.js"; import { getDevtoolsProps } from "../../global/js/utils/devtools.js"; import React from "react"; import PropTypes from "prop-types"; //#region src/components/EditFullPage/EditFullPage.tsx /** * Copyright IBM Corp. 2022, 2024 * * This source code is licensed under the Apache-2.0 license found in the * LICENSE file in the root directory of this source tree. */ var import_classnames = /* @__PURE__ */ __toESM(require_classnames()); const blockClass = `${pkg.prefix}--edit-full-page`; const componentName = "EditFullPage"; /** * **This component is deprecated.** <br> * Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes. * See usage guidance for further details. * @deprecated */ const EditFullPage = React.forwardRef(({ className, children, ...rest }, ref) => { return /* @__PURE__ */ React.createElement("div", { ...rest, className: (0, import_classnames.default)(blockClass, className, {}), ref, role: "main", ...getDevtoolsProps(componentName) }, children); }); /**@ts-ignore*/ EditFullPage.deprecated = { level: "warn", details: `This component is deprecated and will be removed in the next major version.` }; EditFullPage.displayName = componentName; EditFullPage.propTypes = { /** * Provide the contents of the EditFullPage. */ children: PropTypes.node.isRequired, /** * Provide an optional class to be applied to the containing node. */ className: PropTypes.string }; //#endregion export { EditFullPage };