PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | build/widgets/hello-dolly/render.js +99 -82 23.6.2 → trunk View file →
@@ -71,8 +71,31 @@
71 71 return n;
72 72 }
73 73 var clsx_default = clsx;
74 74
75 +// node_modules/@base-ui/utils/createLogOnce.mjs
76 +var loggedMessages;
77 +if (true) {
78 + loggedMessages = /* @__PURE__ */ new Set();
79 +}
80 +function createLogOnce(severity, prefix) {
81 + return function logOnce(...messages) {
82 + if (true) {
83 + const message = messages.join(" ");
84 + const output = prefix ? `${prefix}: ${message}` : message;
85 + const key = `${severity}:${output}`;
86 + if (!loggedMessages.has(key)) {
87 + loggedMessages.add(key);
88 + if (severity === "warn") {
89 + console.warn(output);
90 + } else {
91 + console.error(output);
92 + }
93 + }
94 + }
95 + };
96 +}
97 +
75 98 // node_modules/@base-ui/utils/useRefWithInit.mjs
76 99 var React = __toESM(require_react(), 1);
77 100 var UNINITIALIZED = {};
78 101 function useRefWithInit(init, initArg) {
@@ -83,22 +106,14 @@
83 106 return ref;
84 107 }
85 108
86 109 // node_modules/@base-ui/utils/warn.mjs
87 -var set;
88 -if (true) {
89 - set = /* @__PURE__ */ new Set();
90 -}
91 -function warn(...messages) {
92 - if (true) {
93 - const messageKey = messages.join(" ");
94 - if (!set.has(messageKey)) {
95 - set.add(messageKey);
96 - console.warn(`Base UI: ${messageKey}`);
97 - }
98 - }
99 -}
110 +var warn = createLogOnce("warn", "Base UI");
100 111
112 +// node_modules/@base-ui/utils/empty.mjs
113 +var EMPTY_ARRAY = Object.freeze([]);
114 +var EMPTY_OBJECT = Object.freeze({});
115 +
101 116 // node_modules/@base-ui/react/internals/useRenderElement.mjs
102 117 var React4 = __toESM(require_react(), 1);
103 118
104 119 // node_modules/@base-ui/utils/useMergedRefs.mjs
@@ -173,9 +188,9 @@
173 188 const cleanupCallback = cleanupCallbacks[i];
174 189 if (typeof cleanupCallback === "function") {
175 190 cleanupCallback();
176 191 } else {
177 - ref(null);
192 + void ref(null);
178 193 }
179 194 break;
180 195 }
181 196 case "object": {
@@ -226,12 +241,8 @@
226 241 }
227 242 return void 0;
228 243 }
229 244
230 -// node_modules/@base-ui/utils/empty.mjs
231 -var EMPTY_ARRAY = Object.freeze([]);
232 -var EMPTY_OBJECT = Object.freeze({});
233 -
234 245 // node_modules/@base-ui/react/internals/getStateAttributesProps.mjs
235 246 function getStateAttributesProps(state, customMapping) {
236 247 const props = {};
237 248 for (const key in state) {
@@ -419,10 +430,13 @@
419 430
420 431 // node_modules/@base-ui/react/internals/useRenderElement.mjs
421 432 var import_react = __toESM(require_react(), 1);
422 433 function useRenderElement(element, componentProps, params = {}) {
423 - const renderProp = componentProps.render;
424 - const outProps = useRenderElementProps(componentProps, params);
434 + let renderProp = componentProps.render;
435 + if (params.enabled !== false) {
436 + renderProp = unwrapLazyRenderProp(renderProp);
437 + }
438 + const outProps = useRenderElementProps(componentProps, params, renderProp);
425 439 if (params.enabled === false) {
426 440 return null;
427 441 }
428 442 const state = params.state ?? EMPTY_OBJECT;
@@ -427,13 +441,12 @@
427 441 }
428 442 const state = params.state ?? EMPTY_OBJECT;
429 443 return evaluateRenderProp(element, renderProp, outProps, state);
430 444 }
431 -function useRenderElementProps(componentProps, params = {}) {
445 +function useRenderElementProps(componentProps, params, renderProp) {
432 446 const {
433 447 className: classNameProp,
434 - style: styleProp,
435 - render: renderProp
448 + style: styleProp
436 449 } = componentProps;
437 450 const {
438 451 state = EMPTY_OBJECT,
439 452 ref,
@@ -447,9 +460,9 @@
447 460 const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0;
448 461 const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;
449 462 if (typeof document !== "undefined") {
450 463 if (!enabled) {
451 - useMergedRefs(null, null);
464 + void useMergedRefs(null, null);
452 465 } else if (Array.isArray(ref)) {
453 466 outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);
454 467 } else {
455 468 outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);
@@ -474,8 +487,15 @@
474 487 }
475 488 var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
476 489 var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;
477 490 var LOWERCASE_CHARACTER_PATTERN = /[a-z]/;
491 +function unwrapLazyRenderProp(render) {
492 + if (render?.$$typeof !== REACT_LAZY_TYPE) {
493 + return render;
494 + }
495 + const unwrapped = React4.Children.toArray(render)[0];
496 + return /* @__PURE__ */ React4.isValidElement(unwrapped) ? unwrapped : render;
497 +}
478 498 function evaluateRenderProp(element, render, props, state) {
479 499 if (render) {
480 500 if (typeof render === "function") {
481 501 if (true) {
@@ -484,19 +504,14 @@
484 504 return render(props, state);
485 505 }
486 506 const mergedProps = mergeProps(props, render.props);
487 507 mergedProps.ref = props.ref;
488 - let newElement = render;
489 - if (newElement?.$$typeof === REACT_LAZY_TYPE) {
490 - const children = React4.Children.toArray(render);
491 - newElement = children[0];
492 - }
493 508 if (true) {
494 - if (!/* @__PURE__ */ React4.isValidElement(newElement)) {
509 + if (!/* @__PURE__ */ React4.isValidElement(render)) {
495 510 throw new Error(["Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.", "A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.", "https://base-ui.com/r/invalid-render-prop"].join("\n"));
496 511 }
497 512 }
498 - return /* @__PURE__ */ React4.cloneElement(newElement, mergedProps);
513 + return /* @__PURE__ */ React4.cloneElement(render, mergedProps);
499 514 }
500 515 if (element) {
501 516 if (typeof element === "string") {
502 517 return renderTag(element, props);
@@ -622,15 +637,15 @@
622 637 injectStyle(targetDocument, hash, css);
623 638 }
624 639 }
625 640 if (typeof process === "undefined" || true) {
626 - registerStyle("a495f9d138", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
641 + registerStyle("3167e7d116", '@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._83ed8a8da5dd50ea__text{text-wrap:pretty;margin:0}._14437cfb77831647__heading-2xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-2xl,32px);--_gcd-p-line-height:var(--wpds-typography-line-height-2xl,40px);font-size:var(--wpds-typography-font-size-2xl,32px);line-height:var(--wpds-typography-line-height-2xl,40px)}._14437cfb77831647__heading-2xl,._3c78b7fa9b4072dd__heading-xl{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-md,24px)}.aa58f227716bcde2__heading-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-lg,15px)}.aa58f227716bcde2__heading-lg,.fc4da56d8dfe52c4__heading-md{font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-sm,20px)}.fc4da56d8dfe52c4__heading-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px)}.a9b78c7c82e8dff7__heading-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-emphasis,600);--_gcd-p-font-size:var(--wpds-typography-font-size-xs,11px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-family:var(--wpds-typography-font-family-heading,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-size:var(--wpds-typography-font-size-xs,11px);font-weight:var(--wpds-typography-font-weight-emphasis,600);line-height:var(--wpds-typography-line-height-xs,16px);text-transform:uppercase}._305ff559e52180d5__body-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-p-line-height:var(--wpds-typography-line-height-xl,32px);font-size:var(--wpds-typography-font-size-xl,20px);line-height:var(--wpds-typography-line-height-xl,32px)}._305ff559e52180d5__body-xl,.ca1aa3fc2029e958__body-lg{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-p-line-height:var(--wpds-typography-line-height-md,24px);font-size:var(--wpds-typography-font-size-lg,15px);line-height:var(--wpds-typography-line-height-md,24px)}._131101940be12424__body-md{--_gcd-heading-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-md,13px);--_gcd-p-line-height:var(--wpds-typography-line-height-sm,20px);font-size:var(--wpds-typography-font-size-md,13px);line-height:var(--wpds-typography-line-height-sm,20px)}._0e8d87a42c1f75fa__body-sm,._131101940be12424__body-md{font-family:var(--wpds-typography-font-family-body,-apple-system,system-ui,"Segoe UI","Roboto","Oxygen-Sans","Ubuntu","Cantarell","Helvetica Neue",sans-serif);font-weight:var(--wpds-typography-font-weight-default,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-default,400);--_gcd-p-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-p-line-height:var(--wpds-typography-line-height-xs,16px);font-size:var(--wpds-typography-font-size-sm,12px);line-height:var(--wpds-typography-line-height-xs,16px)}}}');
627 642 }
628 643 var style_default = { "text": "_83ed8a8da5dd50ea__text", "heading-2xl": "_14437cfb77831647__heading-2xl", "heading-xl": "_3c78b7fa9b4072dd__heading-xl", "heading-lg": "aa58f227716bcde2__heading-lg", "heading-md": "fc4da56d8dfe52c4__heading-md", "heading-sm": "a9b78c7c82e8dff7__heading-sm", "body-xl": "_305ff559e52180d5__body-xl", "body-lg": "ca1aa3fc2029e958__body-lg", "body-md": "_131101940be12424__body-md", "body-sm": "_0e8d87a42c1f75fa__body-sm" };
629 644 if (typeof process === "undefined" || true) {
630 - registerStyle("af6d9984a6", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}");
645 + registerStyle("e8e31009f5", "._6defc79820e382c6__button{box-sizing:var(--_gcd-button-box-sizing,border-box);font-family:var(--_gcd-button-font-family,inherit);font-size:var(--_gcd-button-font-size,inherit);font-weight:var(--_gcd-button-font-weight,inherit)}.d2cff2e5dea83bd1__input{box-sizing:var(--_gcd-input-box-sizing,border-box);font-family:var(--_gcd-input-font-family,inherit);font-size:var(--_gcd-input-font-size,inherit);font-weight:var(--_gcd-input-font-weight,inherit);margin:var(--_gcd-input-margin,0);&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-foreground-interactive-neutral-weak,#707070))}&:is(textarea,[type=text],[type=password],[type=color],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){background-color:var(--_gcd-input-background-color,transparent);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 transparent);color:var(--_gcd-input-color,var(--wpds-color-foreground-interactive-neutral,#1e1e1e));&:focus{border-color:var(--_gcd-input-border-color-focus,var(--wp-admin-theme-color));box-shadow:var(--_gcd-input-box-shadow-focus,none);outline:var(--_gcd-input-outline-focus,none)}&:disabled{background:var(--_gcd-input-background-disabled,transparent);border-color:var(--_gcd-input-border-color-disabled,transparent);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-foreground-interactive-neutral-disabled,#8d8d8d))}}&:is(textarea,[type=text],[type=password],[type=date],[type=datetime],[type=datetime-local],[type=email],[type=month],[type=number],[type=search],[type=tel],[type=time],[type=url],[type=week]){line-height:var(--_gcd-input-line-height,inherit);min-height:var(--_gcd-input-min-height,auto);padding:var(--_gcd-input-padding,0)}}._547d86373d02e108__textarea{box-sizing:var(--_gcd-textarea-box-sizing,border-box);overflow:var(--_gcd-textarea-overflow,auto);resize:var(--_gcd-textarea-resize,block)}._8c15fd0ed9f28ba4__div{outline:var(--_gcd-div-outline,0 solid transparent)}p._43cec3e1eec1066d__p{font-size:var(--_gcd-p-font-size,13px);line-height:var(--_gcd-p-line-height,1.5);margin:var(--_gcd-p-margin,0)}:is(h1,h2,h3,h4,h5,h6).e97669c6d9a38497__heading{color:var(--_gcd-heading-color,var(--wpds-color-foreground-content-neutral,#1e1e1e));font-size:var(--_gcd-heading-font-size,inherit);font-weight:var(--_gcd-heading-font-weight,var(--wpds-typography-font-weight-emphasis,600));margin:var(--_gcd-heading-margin,0)}._2c0831b0499dbd6e__a,._2c0831b0499dbd6e__a:is(:hover,:focus,:active){border-radius:var(--_gcd-a-border-radius,0);box-shadow:var(--_gcd-a-box-shadow,none);color:var(--_gcd-a-color,inherit);outline:var(--_gcd-a-outline,0 solid transparent);transition:var(--_gcd-a-transition,none)}.c59a0ebebd71fa4a__ol{list-style:var(--_gcd-ol-list-style,none);margin:var(--_gcd-ol-margin,0);padding-block:var(--_gcd-ol-padding-block,0);padding-inline:var(--_gcd-ol-padding-inline,0)}._46b5cb0c8e24e8c9__li{margin:var(--_gcd-li-margin,0)}");
631 646 }
632 -var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a" };
647 +var global_css_defense_default = { "button": "_6defc79820e382c6__button", "input": "d2cff2e5dea83bd1__input", "textarea": "_547d86373d02e108__textarea", "div": "_8c15fd0ed9f28ba4__div", "p": "_43cec3e1eec1066d__p", "heading": "e97669c6d9a38497__heading", "a": "_2c0831b0499dbd6e__a", "ol": "c59a0ebebd71fa4a__ol", "li": "_46b5cb0c8e24e8c9__li" };
633 648 var Text = (0, import_element.forwardRef)(function Text2({ variant = "body-md", render, className, ...props }, ref) {
634 649 const element = useRender({
635 650 render,
636 651 defaultTagName: "span",
@@ -647,9 +662,9 @@
647 662 });
648 663 return element;
649 664 });
650 665
651 -// packages/ui/build-module/stack/stack.mjs
666 +// packages/ui/build-module/visually-hidden/visually-hidden.mjs
652 667 var import_element2 = __toESM(require_element(), 1);
653 668 var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
654 669 function getRuntime2() {
655 670 const globalScope = globalThis;
@@ -730,37 +745,30 @@
730 745 injectStyle2(targetDocument, hash, css);
731 746 }
732 747 }
733 748 if (typeof process === "undefined" || true) {
734 - registerStyle2("32aba35fe1", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");
749 + registerStyle2("f4df7461e9", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;overflow-wrap:normal;padding:0;position:absolute;width:1px;word-break:normal}}}");
735 750 }
736 -var style_default2 = { "stack": "_19ce0419607e1896__stack" };
737 -var gapTokens = {
738 - xs: "var(--wpds-dimension-gap-xs, 4px)",
739 - sm: "var(--wpds-dimension-gap-sm, 8px)",
740 - md: "var(--wpds-dimension-gap-md, 12px)",
741 - lg: "var(--wpds-dimension-gap-lg, 16px)",
742 - xl: "var(--wpds-dimension-gap-xl, 24px)",
743 - "2xl": "var(--wpds-dimension-gap-2xl, 32px)",
744 - "3xl": "var(--wpds-dimension-gap-3xl, 40px)"
745 -};
746 -var Stack = (0, import_element2.forwardRef)(function Stack2({ direction, gap, align, justify, wrap, render, ...props }, ref) {
747 - const style = {
748 - gap: gap && gapTokens[gap],
749 - alignItems: align,
750 - justifyContent: justify,
751 - flexDirection: direction,
752 - flexWrap: wrap
753 - };
754 - const element = useRender({
755 - render,
756 - ref,
757 - props: mergeProps(props, { style, className: style_default2.stack })
758 - });
759 - return element;
760 -});
751 +var style_default2 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
752 +var VisuallyHidden = (0, import_element2.forwardRef)(
753 + function VisuallyHidden2({ render, ...restProps }, ref) {
754 + const element = useRender({
755 + render,
756 + ref,
757 + props: mergeProps(
758 + { className: style_default2["visually-hidden"] },
759 + restProps,
760 + {
761 + // @ts-expect-error Arbitrary data-* attributes aren't indexable on the typed div props. Kept hardcoded so consumers can't change or remove it.
762 + "data-visually-hidden": ""
763 + }
764 + )
765 + });
766 + return element;
767 + }
768 +);
761 769
762 -// packages/ui/build-module/visually-hidden/visually-hidden.mjs
770 +// packages/ui/build-module/stack/stack.mjs
763 771 var import_element3 = __toESM(require_element(), 1);
764 772 var STYLE_HASH_ATTRIBUTE3 = "data-wp-hash";
765 773 function getRuntime3() {
766 774 const globalScope = globalThis;
@@ -841,28 +849,35 @@
841 849 injectStyle3(targetDocument, hash, css);
842 850 }
843 851 }
844 852 if (typeof process === "undefined" || true) {
845 - registerStyle3("fa606a57ae", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{.f37b9e2e191ebd66__visually-hidden{word-wrap:normal;border:0;clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;word-break:normal}}}");
853 + registerStyle3("32aba35fe1", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}");
846 854 }
847 -var style_default3 = { "visually-hidden": "f37b9e2e191ebd66__visually-hidden" };
848 -var VisuallyHidden = (0, import_element3.forwardRef)(
849 - function VisuallyHidden2({ render, ...restProps }, ref) {
850 - const element = useRender({
851 - render,
852 - ref,
853 - props: mergeProps(
854 - { className: style_default3["visually-hidden"] },
855 - restProps,
856 - {
857 - // @ts-expect-error Arbitrary data-* attributes aren't indexable on the typed div props. Kept hardcoded so consumers can't change or remove it.
858 - "data-visually-hidden": ""
859 - }
860 - )
861 - });
862 - return element;
863 - }
864 -);
855 +var style_default3 = { "stack": "_19ce0419607e1896__stack" };
856 +var gapTokens = {
857 + xs: "var(--wpds-dimension-gap-xs, 4px)",
858 + sm: "var(--wpds-dimension-gap-sm, 8px)",
859 + md: "var(--wpds-dimension-gap-md, 12px)",
860 + lg: "var(--wpds-dimension-gap-lg, 16px)",
861 + xl: "var(--wpds-dimension-gap-xl, 24px)",
862 + "2xl": "var(--wpds-dimension-gap-2xl, 32px)",
863 + "3xl": "var(--wpds-dimension-gap-3xl, 40px)"
864 +};
865 +var Stack = (0, import_element3.forwardRef)(function Stack2({ direction, gap, align, justify, wrap, render, ...props }, ref) {
866 + const style = {
867 + gap: gap && gapTokens[gap],
868 + alignItems: align,
869 + justifyContent: justify,
870 + flexDirection: direction,
871 + flexWrap: wrap
872 + };
873 + const element = useRender({
874 + render,
875 + ref,
876 + props: mergeProps(props, { style, className: style_default3.stack })
877 + });
878 + return element;
879 +});
865 880
866 881 // packages/style-runtime/src/index.ts
867 882 var STYLE_HASH_ATTRIBUTE4 = "data-wp-hash";
868 883 function getRuntime4() {
@@ -987,9 +1002,11 @@
987 1002 return DOLLY_LYRICS[Math.floor(Math.random() * DOLLY_LYRICS.length)];
988 1003 }, []);
989 1004 return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Stack, { align: "center", justify: "center", className: style_default4.root, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Text, { variant: "body-xl", render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {}), className: style_default4.quote, children: [
990 1005 /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(VisuallyHidden, { render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {}), children: [
991 - (0, import_i18n.__)("Quote from Hello Dolly song, by Jerry Herman:"),
1006 + (0, import_i18n.__)(
1007 + "Quote from Hello Dolly song, by Jerry Herman:"
1008 + ),
992 1009 " "
993 1010 ] }),
994 1011 /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { dir: "ltr", lang: "en", children: quote })
995 1012 ] }) });