@wordpress/components
Version:
UI components for WordPress.
8 lines (7 loc) • 949 B
Source Map (JSON)
{
"version": 3,
"sources": ["../../src/panel/header.tsx"],
"sourcesContent": ["import { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\n/**\n * Internal dependencies\n */\n\n/**\n * `PanelHeader` renders the header for the `Panel`.\n * This is used by the `Panel` component under the hood,\n * so it does not typically need to be used.\n */\nfunction PanelHeader({\n label,\n children\n}) {\n return /*#__PURE__*/_jsxs(\"div\", {\n className: \"components-panel__header\",\n children: [label && /*#__PURE__*/_jsx(\"h2\", {\n children: label\n }), children]\n });\n}\nexport default PanelHeader;"],
"mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yBAA2C;AAU3C,SAAS,YAAY;AAAA,EACnB;AAAA,EACA;AACF,GAAG;AACD,SAAoB,uCAAAA,MAAM,OAAO;AAAA,IAC/B,WAAW;AAAA,IACX,UAAU,CAAC,SAAsB,uCAAAC,KAAK,MAAM;AAAA,MAC1C,UAAU;AAAA,IACZ,CAAC,GAAG,QAAQ;AAAA,EACd,CAAC;AACH;AACA,IAAO,iBAAQ;",
"names": ["_jsxs", "_jsx"]
}