UNPKG

@wordpress/widget-dashboard

Version:

Stateless rendering engine for widget dashboards: the WidgetDashboard compound component and its grid-settings kit.

8 lines (7 loc) • 16.6 kB
{ "version": 3, "sources": ["../../../src/components/widget-footer/widget-footer.tsx", "../../../../style-runtime/src/index.ts", "../../../src/components/widget-footer/widget-footer.module.css"], "sourcesContent": ["import { __, sprintf } from '@wordpress/i18n';\n// eslint-disable-next-line @wordpress/use-recommended-components\nimport { Icon, Link, LinkButton, Stack, Tooltip } from '@wordpress/ui';\nimport { useWidgetHost } from '@wordpress/widget-primitives';\nimport type { WidgetAction, WidgetIcon } from '@wordpress/widget-primitives';\nimport { getActionRoute } from '../widget-actions/get-action-route';\nimport styles from './widget-footer.module.css';\n\ntype IconActionProps = {\n\t/**\n\t * The action to materialize.\n\t */\n\taction: WidgetAction & { icon: WidgetIcon };\n\n\t/**\n\t * Host router link to mount instead of the plain anchor, when the\n\t * action's target is one of the host's own routes.\n\t */\n\trouteRender?: React.ReactElement;\n};\n\n/**\n * Icon-only link. `openInNewTab` mounts the target on the anchor rather\n * than through `Link`, whose external glyph would double the icon; the\n * new-tab hint joins the accessible name.\n *\n * @param {IconActionProps} props Component props.\n */\nfunction IconAction( {\n\taction,\n\trouteRender,\n}: IconActionProps ): React.ReactNode {\n\tconst label = action.openInNewTab\n\t\t? sprintf(\n\t\t\t\t/* translators: %s: action label. */\n\t\t\t\t__( '%s (opens in a new tab)' ),\n\t\t\t\taction.label\n\t\t )\n\t\t: action.label;\n\n\treturn (\n\t\t<Tooltip.Root>\n\t\t\t<Tooltip.Trigger\n\t\t\t\trender={\n\t\t\t\t\t<LinkButton\n\t\t\t\t\t\tvariant=\"minimal\"\n\t\t\t\t\t\ttone=\"neutral\"\n\t\t\t\t\t\tsize=\"compact\"\n\t\t\t\t\t\tclassName={ styles[ 'icon-action' ] }\n\t\t\t\t\t\taria-label={ label }\n\t\t\t\t\t\t{ ...( routeRender\n\t\t\t\t\t\t\t? {}\n\t\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\t\thref: action.href,\n\t\t\t\t\t\t\t\t\tdownload: action.download,\n\t\t\t\t\t\t\t } ) }\n\t\t\t\t\t\trender={\n\t\t\t\t\t\t\trouteRender ??\n\t\t\t\t\t\t\t( action.openInNewTab ? (\n\t\t\t\t\t\t\t\t/* href and content merge in at runtime. */\n\t\t\t\t\t\t\t\t// eslint-disable-next-line jsx-a11y/anchor-has-content, jsx-a11y/anchor-is-valid\n\t\t\t\t\t\t\t\t<a target=\"_blank\" rel=\"noopener noreferrer\" />\n\t\t\t\t\t\t\t) : undefined )\n\t\t\t\t\t\t}\n\t\t\t\t\t/>\n\t\t\t\t}\n\t\t\t>\n\t\t\t\t<LinkButton.Icon icon={ action.icon } />\n\t\t\t</Tooltip.Trigger>\n\t\t\t<Tooltip.Popup>{ action.label }</Tooltip.Popup>\n\t\t</Tooltip.Root>\n\t);\n}\n\ntype WidgetFooterProps = {\n\t/**\n\t * The promoted actions (`relevance: 'high'` and `'medium'`).\n\t */\n\tactions: WidgetAction[];\n\n\t/**\n\t * Inert the footer while customizing.\n\t */\n\teditMode?: boolean;\n};\n\n/**\n * Persistent strip under the widget body. `'high'` actions mount as leading\n * text links, a declared icon riding as prefix; `'medium'` actions as\n * trailing compact affordances, icon-only when they declare an icon. Every\n * affordance is a real anchor.\n *\n * A target the host recognizes as one of its own routes (the `links`\n * capability from `useWidgetHost`) mounts the host router's link instead,\n * so it navigates client-side.\n *\n * @param {WidgetFooterProps} props Component props.\n */\nexport function WidgetFooter( {\n\tactions,\n\teditMode = false,\n}: WidgetFooterProps ): React.ReactNode {\n\tconst { links } = useWidgetHost();\n\tconst HostLink = links?.Link;\n\n\tif ( actions.length === 0 ) {\n\t\treturn null;\n\t}\n\n\tconst highActions = actions.filter(\n\t\t( action ) => action.relevance === 'high'\n\t);\n\tconst mediumActions = actions.filter(\n\t\t( action ) => action.relevance === 'medium'\n\t);\n\n\treturn (\n\t\t<Stack\n\t\t\tdirection=\"row\"\n\t\t\talign=\"center\"\n\t\t\tgap=\"lg\"\n\t\t\tclassName={ styles[ 'widget-footer' ] }\n\t\t\t{ ...( editMode ? { inert: 'true' } : {} ) }\n\t\t>\n\t\t\t{ highActions.length > 0 && (\n\t\t\t\t<Stack direction=\"row\" align=\"center\" gap=\"lg\" wrap=\"wrap\">\n\t\t\t\t\t{ highActions.map( ( action ) => {\n\t\t\t\t\t\tconst path = getActionRoute( links, action );\n\t\t\t\t\t\tconst className = action.icon\n\t\t\t\t\t\t\t? styles[ 'prefixed-action' ]\n\t\t\t\t\t\t\t: undefined;\n\t\t\t\t\t\tconst children = (\n\t\t\t\t\t\t\t<>\n\t\t\t\t\t\t\t\t{ action.icon && <Icon icon={ action.icon } /> }\n\t\t\t\t\t\t\t\t{ action.label }\n\t\t\t\t\t\t\t</>\n\t\t\t\t\t\t);\n\n\t\t\t\t\t\treturn path !== null && HostLink ? (\n\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\tkey={ action.id }\n\t\t\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\t\t\trender={ <HostLink path={ path } /> }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ children }\n\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\tkey={ action.id }\n\t\t\t\t\t\t\t\thref={ action.href }\n\t\t\t\t\t\t\t\tdownload={ action.download }\n\t\t\t\t\t\t\t\topenInNewTab={ action.openInNewTab }\n\t\t\t\t\t\t\t\tclassName={ className }\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{ children }\n\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t);\n\t\t\t\t\t} ) }\n\t\t\t\t</Stack>\n\t\t\t) }\n\n\t\t\t{ mediumActions.length > 0 && (\n\t\t\t\t<Stack\n\t\t\t\t\tdirection=\"row\"\n\t\t\t\t\talign=\"center\"\n\t\t\t\t\tgap=\"xs\"\n\t\t\t\t\tclassName={ styles[ 'compact-actions' ] }\n\t\t\t\t>\n\t\t\t\t\t<Tooltip.Provider>\n\t\t\t\t\t\t{ mediumActions.map( ( action ) => {\n\t\t\t\t\t\t\tconst path = getActionRoute( links, action );\n\t\t\t\t\t\t\tconst routeRender =\n\t\t\t\t\t\t\t\tpath !== null && HostLink ? (\n\t\t\t\t\t\t\t\t\t<HostLink path={ path } />\n\t\t\t\t\t\t\t\t) : undefined;\n\n\t\t\t\t\t\t\tif ( action.icon ) {\n\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t<IconAction\n\t\t\t\t\t\t\t\t\t\tkey={ action.id }\n\t\t\t\t\t\t\t\t\t\taction={ {\n\t\t\t\t\t\t\t\t\t\t\t...action,\n\t\t\t\t\t\t\t\t\t\t\ticon: action.icon,\n\t\t\t\t\t\t\t\t\t\t} }\n\t\t\t\t\t\t\t\t\t\trouteRender={ routeRender }\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\treturn routeRender ? (\n\t\t\t\t\t\t\t\t<Link key={ action.id } render={ routeRender }>\n\t\t\t\t\t\t\t\t\t{ action.label }\n\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t<Link\n\t\t\t\t\t\t\t\t\tkey={ action.id }\n\t\t\t\t\t\t\t\t\thref={ action.href }\n\t\t\t\t\t\t\t\t\tdownload={ action.download }\n\t\t\t\t\t\t\t\t\topenInNewTab={ action.openInNewTab }\n\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t{ action.label }\n\t\t\t\t\t\t\t\t</Link>\n\t\t\t\t\t\t\t);\n\t\t\t\t\t\t} ) }\n\t\t\t\t\t</Tooltip.Provider>\n\t\t\t\t</Stack>\n\t\t\t) }\n\t\t</Stack>\n\t);\n}\n", "type GlobalScopeWithStyleRuntime = typeof globalThis & {\n\t// This global is shared by separately bundled copies of this package.\n\t// Keep its shape backward compatible after release.\n\t__wpStyleRuntime?: {\n\t\tdocuments: Map< Document, number >;\n\t\tstyles: Map< string, string >;\n\t\tinjectedStyles: WeakMap< Document, Set< string > >;\n\t};\n};\n\nconst STYLE_HASH_ATTRIBUTE = 'data-wp-hash';\n\n/**\n * Returns the shared style runtime registry.\n *\n * The registry is stored on `globalThis` so separately bundled copies of this\n * package can coordinate through the same document and style maps.\n *\n * @return The shared runtime registry.\n */\nfunction getRuntime() {\n\tconst globalScope = globalThis as GlobalScopeWithStyleRuntime;\n\n\tif ( globalScope.__wpStyleRuntime ) {\n\t\treturn globalScope.__wpStyleRuntime;\n\t}\n\n\tglobalScope.__wpStyleRuntime = {\n\t\tdocuments: new Map(),\n\t\tstyles: new Map(),\n\t\tinjectedStyles: new WeakMap(),\n\t};\n\n\tif ( typeof document !== 'undefined' ) {\n\t\tregisterDocument( document );\n\t}\n\n\treturn globalScope.__wpStyleRuntime;\n}\n\n/**\n * Checks whether a document already contains a style tag for a hash.\n *\n * @param targetDocument Document to inspect.\n * @param hash Stable hash for the transformed CSS.\n *\n * @return Whether the style hash already exists in the document.\n */\nfunction documentContainsStyleHash(\n\ttargetDocument: Document,\n\thash: string\n): boolean {\n\tif ( ! targetDocument.head ) {\n\t\treturn false;\n\t}\n\n\tfor ( const style of targetDocument.head.querySelectorAll(\n\t\t`style[${ STYLE_HASH_ATTRIBUTE }]`\n\t) ) {\n\t\tif ( style.getAttribute( STYLE_HASH_ATTRIBUTE ) === hash ) {\n\t\t\treturn true;\n\t\t}\n\t}\n\n\treturn false;\n}\n\n/**\n * Injects a registered style into a document, unless that document already\n * contains a style tag for the same hash.\n *\n * @param targetDocument Document to inject the style into.\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nfunction injectStyle( targetDocument: Document, hash: string, css: string ) {\n\tif ( ! targetDocument.head ) {\n\t\treturn;\n\t}\n\n\tconst runtime = getRuntime();\n\tlet injectedStyles = runtime.injectedStyles.get( targetDocument );\n\n\tif ( ! injectedStyles ) {\n\t\tinjectedStyles = new Set();\n\t\truntime.injectedStyles.set( targetDocument, injectedStyles );\n\t}\n\n\tif ( injectedStyles.has( hash ) ) {\n\t\treturn;\n\t}\n\n\t// Older generated CSS module output can still inject matching style tags\n\t// after this document's cache is created, so keep the DOM as the fallback\n\t// source of truth on cache misses.\n\tif ( documentContainsStyleHash( targetDocument, hash ) ) {\n\t\tinjectedStyles.add( hash );\n\t\treturn;\n\t}\n\n\tconst style = targetDocument.createElement( 'style' );\n\tstyle.setAttribute( STYLE_HASH_ATTRIBUTE, hash );\n\tstyle.appendChild( targetDocument.createTextNode( css ) );\n\ttargetDocument.head.appendChild( style );\n\tinjectedStyles.add( hash );\n}\n\n/**\n * Registers a document as a style injection target.\n *\n * Existing registered styles are replayed into the document immediately.\n * Documents are reference-counted so multiple providers can safely register the\n * same document without one cleanup removing it while another registration is\n * still active.\n *\n * @param targetDocument Document to receive registered styles.\n * @return Cleanup function that unregisters this document registration.\n */\nexport function registerDocument( targetDocument: Document ) {\n\tconst runtime = getRuntime();\n\n\truntime.documents.set(\n\t\ttargetDocument,\n\t\t( runtime.documents.get( targetDocument ) ?? 0 ) + 1\n\t);\n\n\tfor ( const [ hash, css ] of runtime.styles ) {\n\t\tinjectStyle( targetDocument, hash, css );\n\t}\n\n\treturn () => {\n\t\tconst count = runtime.documents.get( targetDocument );\n\n\t\tif ( count === undefined ) {\n\t\t\treturn;\n\t\t}\n\n\t\tif ( count <= 1 ) {\n\t\t\truntime.documents.delete( targetDocument );\n\t\t\treturn;\n\t\t}\n\n\t\truntime.documents.set( targetDocument, count - 1 );\n\t};\n}\n\n/**\n * Registers a style and injects it into all registered documents.\n *\n * The hash is used as the deduplication key, so calling this repeatedly with\n * the same hash will not add duplicate style tags to a document.\n * Registered styles are retained for the lifetime of the page so they can be\n * replayed into documents that are registered later.\n *\n * @param hash Stable hash for the transformed CSS.\n * @param css CSS text to inject.\n */\nexport function registerStyle( hash: string, css: string ) {\n\tconst runtime = getRuntime();\n\n\truntime.styles.set( hash, css );\n\n\tfor ( const targetDocument of runtime.documents.keys() ) {\n\t\tinjectStyle( targetDocument, hash, css );\n\t}\n}\n", "import { registerStyle } from '@wordpress/style-runtime';\nif (typeof process === 'undefined' || process.env.NODE_ENV !== 'test') {\n\tregisterStyle(\"57b3a79a04\", \".a3e067538ad701bf__widget-footer{border-block-start-color:var(--wpds-color-stroke-surface-neutral-weak,#f0f0f0);border-block-start-style:solid;border-block-start-width:var(--wpds-border-width-xs,1px);padding-block:var(--wpds-dimension-padding-md,12px);padding-inline:var(--wp-ui-card-padding)}.b7d8b6ddfcf30003__compact-actions{margin-inline-start:auto}._767e14b4bc49e9b5__prefixed-action{align-items:center;display:inline-flex;gap:var(--wpds-dimension-gap-xs,4px)}._031b4fd8e77c13ce__icon-action{--wp-ui-button-aspect-ratio:1;--wp-ui-button-padding-inline:0px;--wp-ui-button-min-width:unset}\");\n}\nexport default {\"widget-footer\":\"a3e067538ad701bf__widget-footer\",\"compact-actions\":\"b7d8b6ddfcf30003__compact-actions\",\"prefixed-action\":\"_767e14b4bc49e9b5__prefixed-action\",\"icon-action\":\"_031b4fd8e77c13ce__icon-action\"};\n"], "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,kBAA4B;AAE5B,gBAAuD;AACvD,+BAA8B;AAE9B,8BAA+B;;;ACK/B,IAAM,uBAAuB;AAU7B,SAAS,aAAa;AACrB,QAAM,cAAc;AAEpB,MAAK,YAAY,kBAAmB;AACnC,WAAO,YAAY;AAAA,EACpB;AAEA,cAAY,mBAAmB;AAAA,IAC9B,WAAW,oBAAI,IAAI;AAAA,IACnB,QAAQ,oBAAI,IAAI;AAAA,IAChB,gBAAgB,oBAAI,QAAQ;AAAA,EAC7B;AAEA,MAAK,OAAO,aAAa,aAAc;AACtC,qBAAkB,QAAS;AAAA,EAC5B;AAEA,SAAO,YAAY;AACpB;AAUA,SAAS,0BACR,gBACA,MACU;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