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/scripts/patterns/index.js +79 -59 23.5.1 → trunk View file →
@@ -1,4 +1,5 @@
1 +(function() {
1 2 var wp;
2 3 (wp ||= {}).patterns = (() => {
3 4 var __create = Object.create;
4 5 var __defProp = Object.defineProperty;
@@ -100,12 +101,12 @@
100 101 module.exports = window.React;
101 102 }
102 103 });
103 104
104 - // package-external:@wordpress/a11y
105 - var require_a11y = __commonJS({
106 - "package-external:@wordpress/a11y"(exports, module) {
107 - module.exports = window.wp.a11y;
105 + // package-external:@wordpress/compose
106 + var require_compose = __commonJS({
107 + "package-external:@wordpress/compose"(exports, module) {
108 + module.exports = window.wp.compose;
108 109 }
109 110 });
110 111
111 112 // package-external:@wordpress/primitives
@@ -114,12 +115,12 @@
114 115 module.exports = window.wp.primitives;
115 116 }
116 117 });
117 118
118 - // package-external:@wordpress/compose
119 - var require_compose = __commonJS({
120 - "package-external:@wordpress/compose"(exports, module) {
121 - module.exports = window.wp.compose;
119 + // package-external:@wordpress/a11y
120 + var require_a11y = __commonJS({
121 + "package-external:@wordpress/a11y"(exports, module) {
122 + module.exports = window.wp.a11y;
122 123 }
123 124 });
124 125
125 126 // package-external:@wordpress/notices
@@ -363,9 +364,32 @@
363 364 return n;
364 365 }
365 366 var clsx_default = clsx;
366 367
367 - // node_modules/@base-ui/utils/esm/useRefWithInit.js
368 + // node_modules/@base-ui/utils/createLogOnce.mjs
369 + var loggedMessages;
370 + if (true) {
371 + loggedMessages = /* @__PURE__ */ new Set();
372 + }
373 + function createLogOnce(severity, prefix) {
374 + return function logOnce(...messages) {
375 + if (true) {
376 + const message = messages.join(" ");
377 + const output = prefix ? `${prefix}: ${message}` : message;
378 + const key = `${severity}:${output}`;
379 + if (!loggedMessages.has(key)) {
380 + loggedMessages.add(key);
381 + if (severity === "warn") {
382 + console.warn(output);
383 + } else {
384 + console.error(output);
385 + }
386 + }
387 + }
388 + };
389 + }
390 +
391 + // node_modules/@base-ui/utils/useRefWithInit.mjs
368 392 var React = __toESM(require_react(), 1);
369 393 var UNINITIALIZED = {};
370 394 function useRefWithInit(init, initArg) {
371 395 const ref = React.useRef(UNINITIALIZED);
@@ -374,27 +398,19 @@
374 398 }
375 399 return ref;
376 400 }
377 401
378 - // node_modules/@base-ui/utils/esm/warn.js
379 - var set;
380 - if (true) {
381 - set = /* @__PURE__ */ new Set();
382 - }
383 - function warn(...messages) {
384 - if (true) {
385 - const messageKey = messages.join(" ");
386 - if (!set.has(messageKey)) {
387 - set.add(messageKey);
388 - console.warn(`Base UI: ${messageKey}`);
389 - }
390 - }
391 - }
402 + // node_modules/@base-ui/utils/warn.mjs
403 + var warn = createLogOnce("warn", "Base UI");
392 404
393 - // node_modules/@base-ui/react/esm/internals/useRenderElement.js
405 + // node_modules/@base-ui/utils/empty.mjs
406 + var EMPTY_ARRAY = Object.freeze([]);
407 + var EMPTY_OBJECT = Object.freeze({});
408 +
409 + // node_modules/@base-ui/react/internals/useRenderElement.mjs
394 410 var React4 = __toESM(require_react(), 1);
395 411
396 - // node_modules/@base-ui/utils/esm/useMergedRefs.js
412 + // node_modules/@base-ui/utils/useMergedRefs.mjs
397 413 function useMergedRefs(a, b, c, d) {
398 414 const forkRef = useRefWithInit(createForkRef).current;
399 415 if (didChange(forkRef, a, b, c, d)) {
400 416 update(forkRef, [a, b, c, d]);
@@ -465,9 +481,9 @@
465 481 const cleanupCallback = cleanupCallbacks[i];
466 482 if (typeof cleanupCallback === "function") {
467 483 cleanupCallback();
468 484 } else {
469 - ref(null);
485 + void ref(null);
470 486 }
471 487 break;
472 488 }
473 489 case "object": {
@@ -481,12 +497,12 @@
481 497 }
482 498 };
483 499 }
484 500
485 - // node_modules/@base-ui/utils/esm/getReactElementRef.js
501 + // node_modules/@base-ui/utils/getReactElementRef.mjs
486 502 var React3 = __toESM(require_react(), 1);
487 503
488 - // node_modules/@base-ui/utils/esm/reactVersion.js
504 + // node_modules/@base-ui/utils/reactVersion.mjs
489 505 var React2 = __toESM(require_react(), 1);
490 506 var majorVersion = parseInt(React2.version, 10);
491 507 function isReactVersionAtLeast(reactVersionToCheck) {
492 508 return majorVersion >= reactVersionToCheck;
@@ -491,9 +507,9 @@
491 507 function isReactVersionAtLeast(reactVersionToCheck) {
492 508 return majorVersion >= reactVersionToCheck;
493 509 }
494 510
495 - // node_modules/@base-ui/utils/esm/getReactElementRef.js
511 + // node_modules/@base-ui/utils/getReactElementRef.mjs
496 512 function getReactElementRef(element) {
497 513 if (!/* @__PURE__ */ React3.isValidElement(element)) {
498 514 return null;
499 515 }
@@ -501,9 +517,9 @@
501 517 const propsWithRef = reactElement.props;
502 518 return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null;
503 519 }
504 520
505 - // node_modules/@base-ui/utils/esm/mergeObjects.js
521 + // node_modules/@base-ui/utils/mergeObjects.mjs
506 522 function mergeObjects(a, b) {
507 523 if (a && !b) {
508 524 return a;
509 525 }
@@ -518,13 +534,9 @@
518 534 }
519 535 return void 0;
520 536 }
521 537
522 - // node_modules/@base-ui/utils/esm/empty.js
523 - var EMPTY_ARRAY = Object.freeze([]);
524 - var EMPTY_OBJECT = Object.freeze({});
525 -
526 - // node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js
538 + // node_modules/@base-ui/react/internals/getStateAttributesProps.mjs
527 539 function getStateAttributesProps(state, customMapping) {
528 540 const props = {};
529 541 for (const key in state) {
530 542 const value = state[key];
@@ -543,19 +555,19 @@
543 555 }
544 556 return props;
545 557 }
546 558
547 - // node_modules/@base-ui/react/esm/utils/resolveClassName.js
559 + // node_modules/@base-ui/react/utils/resolveClassName.mjs
548 560 function resolveClassName(className, state) {
549 561 return typeof className === "function" ? className(state) : className;
550 562 }
551 563
552 - // node_modules/@base-ui/react/esm/utils/resolveStyle.js
564 + // node_modules/@base-ui/react/utils/resolveStyle.mjs
553 565 function resolveStyle(style, state) {
554 566 return typeof style === "function" ? style(state) : style;
555 567 }
556 568
557 - // node_modules/@base-ui/react/esm/merge-props/mergeProps.js
569 + // node_modules/@base-ui/react/merge-props/mergeProps.mjs
558 570 var EMPTY_PROPS = {};
559 571 function mergeProps(a, b, c, d, e) {
560 572 if (!c && !d && !e && !a) {
561 573 return createInitialMergedProps(b);
@@ -708,13 +720,16 @@
708 720 function isSyntheticEvent(event) {
709 721 return event != null && typeof event === "object" && "nativeEvent" in event;
710 722 }
711 723
712 - // node_modules/@base-ui/react/esm/internals/useRenderElement.js
724 + // node_modules/@base-ui/react/internals/useRenderElement.mjs
713 725 var import_react = __toESM(require_react(), 1);
714 726 function useRenderElement(element, componentProps, params = {}) {
715 - const renderProp = componentProps.render;
716 - const outProps = useRenderElementProps(componentProps, params);
727 + let renderProp = componentProps.render;
728 + if (params.enabled !== false) {
729 + renderProp = unwrapLazyRenderProp(renderProp);
730 + }
731 + const outProps = useRenderElementProps(componentProps, params, renderProp);
717 732 if (params.enabled === false) {
718 733 return null;
719 734 }
720 735 const state = params.state ?? EMPTY_OBJECT;
@@ -719,13 +734,12 @@
719 734 }
720 735 const state = params.state ?? EMPTY_OBJECT;
721 736 return evaluateRenderProp(element, renderProp, outProps, state);
722 737 }
723 - function useRenderElementProps(componentProps, params = {}) {
738 + function useRenderElementProps(componentProps, params, renderProp) {
724 739 const {
725 740 className: classNameProp,
726 - style: styleProp,
727 - render: renderProp
741 + style: styleProp
728 742 } = componentProps;
729 743 const {
730 744 state = EMPTY_OBJECT,
731 745 ref,
@@ -739,9 +753,9 @@
739 753 const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0;
740 754 const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT;
741 755 if (typeof document !== "undefined") {
742 756 if (!enabled) {
743 - useMergedRefs(null, null);
757 + void useMergedRefs(null, null);
744 758 } else if (Array.isArray(ref)) {
745 759 outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]);
746 760 } else {
747 761 outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref);
@@ -766,8 +780,15 @@
766 780 }
767 781 var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy");
768 782 var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/;
769 783 var LOWERCASE_CHARACTER_PATTERN = /[a-z]/;
784 + function unwrapLazyRenderProp(render) {
785 + if (render?.$$typeof !== REACT_LAZY_TYPE) {
786 + return render;
787 + }
788 + const unwrapped = React4.Children.toArray(render)[0];
789 + return /* @__PURE__ */ React4.isValidElement(unwrapped) ? unwrapped : render;
790 + }
770 791 function evaluateRenderProp(element, render, props, state) {
771 792 if (render) {
772 793 if (typeof render === "function") {
773 794 if (true) {
@@ -776,19 +797,14 @@
776 797 return render(props, state);
777 798 }
778 799 const mergedProps = mergeProps(props, render.props);
779 800 mergedProps.ref = props.ref;
780 - let newElement = render;
781 - if (newElement?.$$typeof === REACT_LAZY_TYPE) {
782 - const children = React4.Children.toArray(render);
783 - newElement = children[0];
784 - }
785 801 if (true) {
786 - if (!/* @__PURE__ */ React4.isValidElement(newElement)) {
802 + if (!/* @__PURE__ */ React4.isValidElement(render)) {
787 803 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"));
788 804 }
789 805 }
790 - return /* @__PURE__ */ React4.cloneElement(newElement, mergedProps);
806 + return /* @__PURE__ */ React4.cloneElement(render, mergedProps);
791 807 }
792 808 if (element) {
793 809 if (typeof element === "string") {
794 810 return renderTag(element, props);
@@ -826,9 +842,9 @@
826 842 }
827 843 return /* @__PURE__ */ React4.createElement(Tag, props);
828 844 }
829 845
830 - // node_modules/@base-ui/react/esm/use-render/useRender.js
846 + // node_modules/@base-ui/react/use-render/useRender.mjs
831 847 function useRender(params) {
832 848 return useRenderElement(params.defaultTagName ?? "div", params, params);
833 849 }
834 850
@@ -914,15 +930,15 @@
914 930 injectStyle(targetDocument, hash, css);
915 931 }
916 932 }
917 933 if (typeof process === "undefined" || true) {
918 - registerStyle("0c5702ddca", '@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-medium,499);--_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-medium,499)}._3c78b7fa9b4072dd__heading-xl{--_gcd-heading-font-size:var(--wpds-typography-font-size-xl,20px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-medium,499);--_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-medium,499);--_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-medium,499);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-medium,499);--_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-medium,499);--_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-medium,499);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-regular,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-regular,400)}.ca1aa3fc2029e958__body-lg{--_gcd-heading-font-size:var(--wpds-typography-font-size-lg,15px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,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-regular,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-regular,400)}._0e8d87a42c1f75fa__body-sm{--_gcd-heading-font-size:var(--wpds-typography-font-size-sm,12px);--_gcd-heading-font-weight:var(--wpds-typography-font-weight-regular,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)}}}');
934 + 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)}}}');
919 935 }
920 936 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" };
921 937 if (typeof process === "undefined" || true) {
922 - registerStyle("d390e935a7", "._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-medium,499));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)}");
938 + 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)}");
923 939 }
924 - 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" };
940 + 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" };
925 941 var Text = (0, import_element2.forwardRef)(function Text2({ variant = "body-md", render, className, ...props }, ref) {
926 942 const element = useRender({
927 943 render,
928 944 defaultTagName: "span",
@@ -942,9 +958,12 @@
942 958
943 959 // packages/icons/build-module/library/symbol.mjs
944 960 var import_primitives = __toESM(require_primitives(), 1);
945 961 var import_jsx_runtime2 = __toESM(require_jsx_runtime(), 1);
946 - var symbol_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", fill: "currentColor", children: /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.Path, { d: "M21.3 10.8l-5.6-5.6c-.7-.7-1.8-.7-2.5 0l-5.6 5.6c-.7.7-.7 1.8 0 2.5l5.6 5.6c.3.3.8.5 1.2.5s.9-.2 1.2-.5l5.6-5.6c.8-.7.8-1.9.1-2.5zm-1 1.4l-5.6 5.6c-.1.1-.3.1-.4 0l-5.6-5.6c-.1-.1-.1-.3 0-.4l5.6-5.6s.1-.1.2-.1.1 0 .2.1l5.6 5.6c.1.1.1.3 0 .4zm-16.6-.4L10 5.5l-1-1-6.3 6.3c-.7.7-.7 1.8 0 2.5L9 19.5l1.1-1.1-6.3-6.3c-.2 0-.2-.2-.1-.3z" }) });
962 + var symbol_default = /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(import_primitives.SVG, { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", style: { fill: "none" }, stroke: "currentColor", strokeWidth: "1.5", children: [
963 + /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.Path, { d: "M15.2071 6.20711L20.2929 11.2929C20.6834 11.6834 20.6834 12.3166 20.2929 12.7071L15.2071 17.7929C14.8166 18.1834 14.1834 18.1834 13.7929 17.7929L8.70711 12.7071C8.31658 12.3166 8.31658 11.6834 8.70711 11.2929L13.7929 6.20711C14.1834 5.81658 14.8166 5.81658 15.2071 6.20711Z", vectorEffect: "non-scaling-stroke" }),
964 + /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_primitives.Path, { d: "M9.5 5.5L3.70711 11.2929C3.31658 11.6834 3.31658 12.3166 3.70711 12.7071L9.5 18.5", vectorEffect: "non-scaling-stroke" })
965 + ] });
947 966
948 967 // packages/ui/build-module/stack/stack.mjs
949 968 var import_element3 = __toESM(require_element(), 1);
950 969 var STYLE_HASH_ATTRIBUTE2 = "data-wp-hash";
@@ -1109,10 +1128,9 @@
1109 1128 onChange: handleChange,
1110 1129 onInputChange: debouncedSearch,
1111 1130 label: (0, import_i18n2.__)("Categories"),
1112 1131 tokenizeOnBlur: true,
1113 - __experimentalExpandOnFocus: true,
1114 - __next40pxDefaultSize: true
1132 + __experimentalExpandOnFocus: true
1115 1133 }
1116 1134 );
1117 1135 }
1118 1136
@@ -2218,6 +2236,8 @@
2218 2236 EXCLUDED_PATTERN_SOURCES,
2219 2237 PATTERN_SYNC_TYPES
2220 2238 });
2221 2239 return __toCommonJS(index_exports);
2240 +})();
2241 +(window.wp ||= {}).patterns = wp.patterns;
2222 2242 })();
2223 2243 //# sourceMappingURL=index.js.map