| @@ -60,9 +60,32 @@ | ||
| 60 | 60 | return n; |
| 61 | 61 | } |
| 62 | 62 | var clsx_default = clsx; |
| 63 | 63 | |
| 64 | -// node_modules/@base-ui/utils/esm/useRefWithInit.js | |
| 64 | +// node_modules/@base-ui/utils/createLogOnce.mjs | |
| 65 | +var loggedMessages; | |
| 66 | +if (true) { | |
| 67 | + loggedMessages = /* @__PURE__ */ new Set(); | |
| 68 | +} | |
| 69 | +function createLogOnce(severity, prefix) { | |
| 70 | + return function logOnce(...messages) { | |
| 71 | + if (true) { | |
| 72 | + const message = messages.join(" "); | |
| 73 | + const output = prefix ? `${prefix}: ${message}` : message; | |
| 74 | + const key = `${severity}:${output}`; | |
| 75 | + if (!loggedMessages.has(key)) { | |
| 76 | + loggedMessages.add(key); | |
| 77 | + if (severity === "warn") { | |
| 78 | + console.warn(output); | |
| 79 | + } else { | |
| 80 | + console.error(output); | |
| 81 | + } | |
| 82 | + } | |
| 83 | + } | |
| 84 | + }; | |
| 85 | +} | |
| 86 | + | |
| 87 | +// node_modules/@base-ui/utils/useRefWithInit.mjs | |
| 65 | 88 | var React = __toESM(require_react(), 1); |
| 66 | 89 | var UNINITIALIZED = {}; |
| 67 | 90 | function useRefWithInit(init, initArg) { |
| 68 | 91 | const ref = React.useRef(UNINITIALIZED); |
| @@ -71,27 +94,19 @@ | ||
| 71 | 94 | } |
| 72 | 95 | return ref; |
| 73 | 96 | } |
| 74 | 97 | |
| 75 | -// node_modules/@base-ui/utils/esm/warn.js | |
| 76 | -var set; | |
| 77 | -if (true) { | |
| 78 | - set = /* @__PURE__ */ new Set(); | |
| 79 | -} | |
| 80 | -function warn(...messages) { | |
| 81 | - if (true) { | |
| 82 | - const messageKey = messages.join(" "); | |
| 83 | - if (!set.has(messageKey)) { | |
| 84 | - set.add(messageKey); | |
| 85 | - console.warn(`Base UI: ${messageKey}`); | |
| 86 | - } | |
| 87 | - } | |
| 88 | -} | |
| 98 | +// node_modules/@base-ui/utils/warn.mjs | |
| 99 | +var warn = createLogOnce("warn", "Base UI"); | |
| 89 | 100 | |
| 90 | -// node_modules/@base-ui/react/esm/internals/useRenderElement.js | |
| 101 | +// node_modules/@base-ui/utils/empty.mjs | |
| 102 | +var EMPTY_ARRAY = Object.freeze([]); | |
| 103 | +var EMPTY_OBJECT = Object.freeze({}); | |
| 104 | + | |
| 105 | +// node_modules/@base-ui/react/internals/useRenderElement.mjs | |
| 91 | 106 | var React4 = __toESM(require_react(), 1); |
| 92 | 107 | |
| 93 | -// node_modules/@base-ui/utils/esm/useMergedRefs.js | |
| 108 | +// node_modules/@base-ui/utils/useMergedRefs.mjs | |
| 94 | 109 | function useMergedRefs(a, b, c, d) { |
| 95 | 110 | const forkRef = useRefWithInit(createForkRef).current; |
| 96 | 111 | if (didChange(forkRef, a, b, c, d)) { |
| 97 | 112 | update(forkRef, [a, b, c, d]); |
| @@ -162,9 +177,9 @@ | ||
| 162 | 177 | const cleanupCallback = cleanupCallbacks[i]; |
| 163 | 178 | if (typeof cleanupCallback === "function") { |
| 164 | 179 | cleanupCallback(); |
| 165 | 180 | } else { |
| 166 | - ref(null); | |
| 181 | + void ref(null); | |
| 167 | 182 | } |
| 168 | 183 | break; |
| 169 | 184 | } |
| 170 | 185 | case "object": { |
| @@ -178,12 +193,12 @@ | ||
| 178 | 193 | } |
| 179 | 194 | }; |
| 180 | 195 | } |
| 181 | 196 | |
| 182 | -// node_modules/@base-ui/utils/esm/getReactElementRef.js | |
| 197 | +// node_modules/@base-ui/utils/getReactElementRef.mjs | |
| 183 | 198 | var React3 = __toESM(require_react(), 1); |
| 184 | 199 | |
| 185 | -// node_modules/@base-ui/utils/esm/reactVersion.js | |
| 200 | +// node_modules/@base-ui/utils/reactVersion.mjs | |
| 186 | 201 | var React2 = __toESM(require_react(), 1); |
| 187 | 202 | var majorVersion = parseInt(React2.version, 10); |
| 188 | 203 | function isReactVersionAtLeast(reactVersionToCheck) { |
| 189 | 204 | return majorVersion >= reactVersionToCheck; |
| @@ -188,9 +203,9 @@ | ||
| 188 | 203 | function isReactVersionAtLeast(reactVersionToCheck) { |
| 189 | 204 | return majorVersion >= reactVersionToCheck; |
| 190 | 205 | } |
| 191 | 206 | |
| 192 | -// node_modules/@base-ui/utils/esm/getReactElementRef.js | |
| 207 | +// node_modules/@base-ui/utils/getReactElementRef.mjs | |
| 193 | 208 | function getReactElementRef(element) { |
| 194 | 209 | if (!/* @__PURE__ */ React3.isValidElement(element)) { |
| 195 | 210 | return null; |
| 196 | 211 | } |
| @@ -198,9 +213,9 @@ | ||
| 198 | 213 | const propsWithRef = reactElement.props; |
| 199 | 214 | return (isReactVersionAtLeast(19) ? propsWithRef?.ref : reactElement.ref) ?? null; |
| 200 | 215 | } |
| 201 | 216 | |
| 202 | -// node_modules/@base-ui/utils/esm/mergeObjects.js | |
| 217 | +// node_modules/@base-ui/utils/mergeObjects.mjs | |
| 203 | 218 | function mergeObjects(a, b) { |
| 204 | 219 | if (a && !b) { |
| 205 | 220 | return a; |
| 206 | 221 | } |
| @@ -215,13 +230,9 @@ | ||
| 215 | 230 | } |
| 216 | 231 | return void 0; |
| 217 | 232 | } |
| 218 | 233 | |
| 219 | -// node_modules/@base-ui/utils/esm/empty.js | |
| 220 | -var EMPTY_ARRAY = Object.freeze([]); | |
| 221 | -var EMPTY_OBJECT = Object.freeze({}); | |
| 222 | - | |
| 223 | -// node_modules/@base-ui/react/esm/internals/getStateAttributesProps.js | |
| 234 | +// node_modules/@base-ui/react/internals/getStateAttributesProps.mjs | |
| 224 | 235 | function getStateAttributesProps(state, customMapping) { |
| 225 | 236 | const props = {}; |
| 226 | 237 | for (const key in state) { |
| 227 | 238 | const value = state[key]; |
| @@ -240,19 +251,19 @@ | ||
| 240 | 251 | } |
| 241 | 252 | return props; |
| 242 | 253 | } |
| 243 | 254 | |
| 244 | -// node_modules/@base-ui/react/esm/utils/resolveClassName.js | |
| 255 | +// node_modules/@base-ui/react/utils/resolveClassName.mjs | |
| 245 | 256 | function resolveClassName(className, state) { |
| 246 | 257 | return typeof className === "function" ? className(state) : className; |
| 247 | 258 | } |
| 248 | 259 | |
| 249 | -// node_modules/@base-ui/react/esm/utils/resolveStyle.js | |
| 260 | +// node_modules/@base-ui/react/utils/resolveStyle.mjs | |
| 250 | 261 | function resolveStyle(style, state) { |
| 251 | 262 | return typeof style === "function" ? style(state) : style; |
| 252 | 263 | } |
| 253 | 264 | |
| 254 | -// node_modules/@base-ui/react/esm/merge-props/mergeProps.js | |
| 265 | +// node_modules/@base-ui/react/merge-props/mergeProps.mjs | |
| 255 | 266 | var EMPTY_PROPS = {}; |
| 256 | 267 | function mergeProps(a, b, c, d, e) { |
| 257 | 268 | if (!c && !d && !e && !a) { |
| 258 | 269 | return createInitialMergedProps(b); |
| @@ -405,13 +416,16 @@ | ||
| 405 | 416 | function isSyntheticEvent(event) { |
| 406 | 417 | return event != null && typeof event === "object" && "nativeEvent" in event; |
| 407 | 418 | } |
| 408 | 419 | |
| 409 | -// node_modules/@base-ui/react/esm/internals/useRenderElement.js | |
| 420 | +// node_modules/@base-ui/react/internals/useRenderElement.mjs | |
| 410 | 421 | var import_react = __toESM(require_react(), 1); |
| 411 | 422 | function useRenderElement(element, componentProps, params = {}) { |
| 412 | - const renderProp = componentProps.render; | |
| 413 | - const outProps = useRenderElementProps(componentProps, params); | |
| 423 | + let renderProp = componentProps.render; | |
| 424 | + if (params.enabled !== false) { | |
| 425 | + renderProp = unwrapLazyRenderProp(renderProp); | |
| 426 | + } | |
| 427 | + const outProps = useRenderElementProps(componentProps, params, renderProp); | |
| 414 | 428 | if (params.enabled === false) { |
| 415 | 429 | return null; |
| 416 | 430 | } |
| 417 | 431 | const state = params.state ?? EMPTY_OBJECT; |
| @@ -416,13 +430,12 @@ | ||
| 416 | 430 | } |
| 417 | 431 | const state = params.state ?? EMPTY_OBJECT; |
| 418 | 432 | return evaluateRenderProp(element, renderProp, outProps, state); |
| 419 | 433 | } |
| 420 | -function useRenderElementProps(componentProps, params = {}) { | |
| 434 | +function useRenderElementProps(componentProps, params, renderProp) { | |
| 421 | 435 | const { |
| 422 | 436 | className: classNameProp, |
| 423 | - style: styleProp, | |
| 424 | - render: renderProp | |
| 437 | + style: styleProp | |
| 425 | 438 | } = componentProps; |
| 426 | 439 | const { |
| 427 | 440 | state = EMPTY_OBJECT, |
| 428 | 441 | ref, |
| @@ -436,9 +449,9 @@ | ||
| 436 | 449 | const resolvedProps = enabled && props ? resolveRenderFunctionProps(props) : void 0; |
| 437 | 450 | const outProps = enabled ? mergeObjects(stateProps, resolvedProps) ?? {} : EMPTY_OBJECT; |
| 438 | 451 | if (typeof document !== "undefined") { |
| 439 | 452 | if (!enabled) { |
| 440 | - useMergedRefs(null, null); | |
| 453 | + void useMergedRefs(null, null); | |
| 441 | 454 | } else if (Array.isArray(ref)) { |
| 442 | 455 | outProps.ref = useMergedRefsN([outProps.ref, getReactElementRef(renderProp), ...ref]); |
| 443 | 456 | } else { |
| 444 | 457 | outProps.ref = useMergedRefs(outProps.ref, getReactElementRef(renderProp), ref); |
| @@ -463,8 +476,15 @@ | ||
| 463 | 476 | } |
| 464 | 477 | var REACT_LAZY_TYPE = /* @__PURE__ */ Symbol.for("react.lazy"); |
| 465 | 478 | var COMPONENT_IDENTIFIER_PATTERN = /^[A-Z][A-Za-z0-9$]*$/; |
| 466 | 479 | var LOWERCASE_CHARACTER_PATTERN = /[a-z]/; |
| 480 | +function unwrapLazyRenderProp(render) { | |
| 481 | + if (render?.$$typeof !== REACT_LAZY_TYPE) { | |
| 482 | + return render; | |
| 483 | + } | |
| 484 | + const unwrapped = React4.Children.toArray(render)[0]; | |
| 485 | + return /* @__PURE__ */ React4.isValidElement(unwrapped) ? unwrapped : render; | |
| 486 | +} | |
| 467 | 487 | function evaluateRenderProp(element, render, props, state) { |
| 468 | 488 | if (render) { |
| 469 | 489 | if (typeof render === "function") { |
| 470 | 490 | if (true) { |
| @@ -473,19 +493,14 @@ | ||
| 473 | 493 | return render(props, state); |
| 474 | 494 | } |
| 475 | 495 | const mergedProps = mergeProps(props, render.props); |
| 476 | 496 | mergedProps.ref = props.ref; |
| 477 | - let newElement = render; | |
| 478 | - if (newElement?.$$typeof === REACT_LAZY_TYPE) { | |
| 479 | - const children = React4.Children.toArray(render); | |
| 480 | - newElement = children[0]; | |
| 481 | - } | |
| 482 | 497 | if (true) { |
| 483 | - if (!/* @__PURE__ */ React4.isValidElement(newElement)) { | |
| 498 | + if (!/* @__PURE__ */ React4.isValidElement(render)) { | |
| 484 | 499 | 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")); |
| 485 | 500 | } |
| 486 | 501 | } |
| 487 | - return /* @__PURE__ */ React4.cloneElement(newElement, mergedProps); | |
| 502 | + return /* @__PURE__ */ React4.cloneElement(render, mergedProps); | |
| 488 | 503 | } |
| 489 | 504 | if (element) { |
| 490 | 505 | if (typeof element === "string") { |
| 491 | 506 | return renderTag(element, props); |
| @@ -523,9 +538,9 @@ | ||
| 523 | 538 | } |
| 524 | 539 | return /* @__PURE__ */ React4.createElement(Tag, props); |
| 525 | 540 | } |
| 526 | 541 | |
| 527 | -// node_modules/@base-ui/react/esm/use-render/useRender.js | |
| 542 | +// node_modules/@base-ui/react/use-render/useRender.mjs | |
| 528 | 543 | function useRender(params) { |
| 529 | 544 | return useRenderElement(params.defaultTagName ?? "div", params, params); |
| 530 | 545 | } |
| 531 | 546 | |
| @@ -611,15 +626,15 @@ | ||
| 611 | 626 | injectStyle(targetDocument, hash, css); |
| 612 | 627 | } |
| 613 | 628 | } |
| 614 | 629 | if (typeof process === "undefined" || true) { |
| 615 | - registerStyle("0c8601dd83", '@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-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)}}'); | |
| 630 | + 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)}}}'); | |
| 616 | 631 | } |
| 617 | 632 | 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" }; |
| 618 | 633 | if (typeof process === "undefined" || true) { |
| 619 | - registerStyle("1fb29d3a3c", "._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,#0000);border:var(--_gcd-input-border,none);border-radius:var(--_gcd-input-border-radius,0);box-shadow:var(--_gcd-input-box-shadow,0 0 0 #0000);color:var(--_gcd-input-color,var(--wpds-color-fg-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,#0000);border-color:var(--_gcd-input-border-color-disabled,#0000);box-shadow:var(--_gcd-input-box-shadow-disabled,none);color:var(--_gcd-input-color-disabled,var(--wpds-color-fg-interactive-neutral-disabled,#8d8d8d))}&::placeholder{color:var(--_gcd-input-placeholder-color,var(--wpds-color-fg-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 #0000)}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-fg-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 #0000);transition:var(--_gcd-a-transition,none)}"); | |
| 634 | + 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)}"); | |
| 620 | 635 | } |
| 621 | -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" }; | |
| 636 | +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" }; | |
| 622 | 637 | var Text = (0, import_element.forwardRef)(function Text2({ variant = "body-md", render, className, ...props }, ref) { |
| 623 | 638 | const element = useRender({ |
| 624 | 639 | render, |
| 625 | 640 | defaultTagName: "span", |
| @@ -719,9 +734,9 @@ | ||
| 719 | 734 | injectStyle2(targetDocument, hash, css); |
| 720 | 735 | } |
| 721 | 736 | } |
| 722 | 737 | if (typeof process === "undefined" || true) { |
| 723 | - registerStyle2("b51ff41489", "@layer wp-ui-utilities, wp-ui-components, wp-ui-compositions, wp-ui-overrides;@layer wp-ui-components{._19ce0419607e1896__stack{display:flex}}"); | |
| 738 | + registerStyle2("32aba35fe1", "@layer wp-ui{@layer utilities, components, compositions, overrides;@layer components{._19ce0419607e1896__stack{display:flex}}}"); | |
| 724 | 739 | } |
| 725 | 740 | var style_default2 = { "stack": "_19ce0419607e1896__stack" }; |
| 726 | 741 | var gapTokens = { |
| 727 | 742 | xs: "var(--wpds-dimension-gap-xs, 4px)", |
| @@ -831,9 +846,9 @@ | ||
| 831 | 846 | } |
| 832 | 847 | |
| 833 | 848 | // widgets/hello-world/style.module.css |
| 834 | 849 | if (typeof process === "undefined" || true) { |
| 835 | - registerStyle3("e03e80d16c", "._6e9c47f7f67ffa0d__root{background-color:var(--wpds-color-bg-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 9%,#fff));color:var(--wpds-color-fg-interactive-brand,var(--wp-admin-theme-color,#3858e9));height:100%;padding:var(--wpds-dimension-padding-2xl,24px)}"); | |
| 850 | + registerStyle3("8573d4c9f9", "._6e9c47f7f67ffa0d__root{background-color:var(--wpds-color-background-surface-brand,color-mix(in oklch,var(--wp-admin-theme-color,#3858e9) 9%,#fff));color:var(--wpds-color-foreground-interactive-brand,var(--wp-admin-theme-color,#3858e9));height:100%;padding:var(--wpds-dimension-padding-2xl,24px)}"); | |
| 836 | 851 | } |
| 837 | 852 | var style_default3 = { "root": "_6e9c47f7f67ffa0d__root" }; |
| 838 | 853 | |
| 839 | 854 | // widgets/hello-world/render.tsx |