@riverbankcms/sdk 0.143.0 → 0.144.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{PreviewEditorSidebar-DROGfMKi.mjs → PreviewEditorSidebar-CQZNnFiM.mjs} +19 -25
- package/dist/{PreviewEditorUI-BaRjhFu-.mjs → PreviewEditorUI-DCNxnmI0.mjs} +2 -2
- package/dist/{SdkPreviewModeRuntime-OIABYLES.mjs → SdkPreviewModeRuntime-BJolUbr1.mjs} +15 -6
- package/dist/{SiteChromeCustomizeContext-ohjTvZbc.mjs → SiteChromeCustomizeContext-CKgEpoxi.mjs} +1915 -1463
- package/dist/_dts/api/src/billing.d.ts +1 -1
- package/dist/_dts/api/src/billingEndpointTypes.d.ts +8 -2
- package/dist/_dts/api/src/bookingConfig.d.ts +3 -1
- package/dist/_dts/api/src/index.d.ts +1 -1
- package/dist/_dts/api/src/navigation/dashboardBookingsNav.d.ts +4 -4
- package/dist/_dts/api/src/publicExperience/eventEndpoints.d.ts +1 -0
- package/dist/_dts/api/src/sdkContracts.d.ts +1 -1
- package/dist/_dts/api/src/sdkSettingsContracts.d.ts +8 -0
- package/dist/_dts/api/src/sitePlatformEndpoints.d.ts +2 -8
- package/dist/_dts/api/src/siteSettings.d.ts +17 -7
- package/dist/_dts/billing/src/membership/index.d.ts +3 -0
- package/dist/_dts/block-form/src/backend/types.d.ts +14 -0
- package/dist/_dts/block-form/src/client/index.d.ts +1 -0
- package/dist/_dts/block-form/src/context/RepeaterHostActionsContext.d.ts +30 -0
- package/dist/_dts/block-form/src/context/index.d.ts +1 -0
- package/dist/_dts/block-form/src/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterList.d.ts +4 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRow.d.ts +5 -2
- package/dist/_dts/block-form/src/widgets/RepeaterField/components/RepeaterRowActions.d.ts +11 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/index.d.ts +1 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/hooks/useEmptyStateFocusAfterRemoval.d.ts +8 -0
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/buildSummary.d.ts +15 -1
- package/dist/_dts/block-form/src/widgets/RepeaterField/utils/repeaterRowActionsDomain.d.ts +5 -2
- package/dist/_dts/blocks/src/contracts/proof-block-islands.d.ts +34 -10
- package/dist/_dts/blocks/src/pageRendererContracts.d.ts +3 -0
- package/dist/_dts/blocks/src/system/constants/events.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/client.d.ts +5 -0
- package/dist/_dts/blocks/src/system/runtime/api/context.d.ts +3 -3
- package/dist/_dts/blocks/src/system/runtime/api/endpoints.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/api/index.d.ts +3 -2
- package/dist/_dts/blocks/src/system/runtime/api/readAuthority.d.ts +11 -0
- package/dist/_dts/blocks/src/system/runtime/api/types/core.d.ts +9 -0
- package/dist/_dts/blocks/src/system/runtime/components/registry.client.d.ts +7 -13
- package/dist/_dts/blocks/src/system/runtime/components/runtime-backed-blocks.d.ts +3 -6
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.d.ts +9 -4
- package/dist/_dts/blocks/src/system/runtime/hooks/useCalendarEvents.state.d.ts +0 -1
- package/dist/_dts/blocks/src/system/runtime/hooks/useEventPagination.d.ts +1 -3
- package/dist/_dts/blocks/src/system/runtime/nodes/basic.d.ts +7 -24
- package/dist/_dts/blocks/src/system/runtime/nodes/cart.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/checkout.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationBookingLayer.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationSurface.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/EventRegistrationWizardActions.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.contract.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/event-registration.headless.override.d.ts +2 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration/useEventRegistrationWizard.d.ts +2 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/event-registration.interactive.d.ts +8 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCalendar.interactive.d.ts +4 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.client.d.ts +7 -2
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventCombined.interactive.d.ts +7 -5
- package/dist/_dts/blocks/src/system/runtime/nodes/events/EventListing.interactive.d.ts +5 -6
- package/dist/_dts/blocks/src/system/runtime/nodes/events/shared/eventCollectionContract.d.ts +3 -1
- package/dist/_dts/blocks/src/system/runtime/nodes/header-control.d.ts +10 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/layout.d.ts +6 -21
- package/dist/_dts/blocks/src/system/runtime/nodes/product-detail.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/product-list.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.interactive.d.ts +13 -0
- package/dist/_dts/blocks/src/system/runtime/nodes/shop.server.d.ts +1 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/ThemedButton.d.ts +58 -0
- package/dist/_dts/blocks/src/system/runtime/shared/components/index.d.ts +2 -0
- package/dist/_dts/blocks/src/system/transforms/registry/chromeLogo.d.ts +23 -0
- package/dist/_dts/blocks/src/system/transforms/registry/index.d.ts +2 -1
- package/dist/_dts/blocks/src/system/transforms/registry/layout.d.ts +3 -1
- package/dist/_dts/blocks/src/system/transforms/typed.d.ts +4 -1
- package/dist/_dts/core/src/event-catalogue.d.ts +27 -0
- package/dist/_dts/core/src/event-preset-vocabulary.d.ts +7 -0
- package/dist/_dts/core/src/index.d.ts +2 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +13 -0
- package/dist/_dts/db/src/schemas/forms.d.ts +286 -2
- package/dist/_dts/editor-blocks/src/block-editor/{BlockCardHeader.d.ts → BlockCardFrame.d.ts} +11 -3
- package/dist/_dts/logger/src/console.d.ts +3 -0
- package/dist/_dts/sdk/src/client/publicEventReadOperations.d.ts +1 -0
- package/dist/_dts/sdk/src/client/types.d.ts +3 -0
- package/dist/_dts/sdk/src/navigation/index.d.ts +27 -0
- package/dist/_dts/sdk/src/public-api/contracts.d.ts +15 -7
- package/dist/_dts/sdk/src/rendering/blocks-page-renderer.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/client.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Block.shared.d.ts +1 -0
- package/dist/_dts/sdk/src/rendering/components/Layout.d.ts +7 -1
- package/dist/_dts/sdk/src/rendering/components/pageShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/islands/enhancers/routeIslandApiConfig.d.ts +3 -2
- package/dist/_dts/sdk/src/rendering/islands/enhancers/shopShared.d.ts +2 -0
- package/dist/_dts/sdk/src/rendering/overrides.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/affordanceSuppression.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/classNames.d.ts +3 -13
- package/dist/_dts/theme-core/src/customCss/index.d.ts +1 -1
- package/dist/_dts/theme-core/src/customCss/patch.d.ts +0 -5
- package/dist/_dts/theme-core/src/generated/containerResponsiveThemeCss.d.ts +1 -1
- package/dist/_dts/theme-core/src/surfaces/index.d.ts +1 -0
- package/dist/_dts/theme-core/src/surfaces/logoVariant.d.ts +26 -0
- package/dist/_dts/theme-core/src/utils/colorStyles.d.ts +10 -0
- package/dist/_dts/ui/src/editor-item-card.d.ts +116 -0
- package/dist/_dts/ui/src/index.d.ts +1 -0
- package/dist/client/{BookingConsentAgreement-BoCtvzzu.mjs → BookingConsentAgreement-DoAILrkN.mjs} +4 -55
- package/dist/client/{DiscountCodeDisclosure-B5S30nZk.mjs → DiscountCodeDisclosure-X528hUTf.mjs} +27 -17
- package/dist/client/{EventCombined.client-CeZ2-zSt.mjs → EventCombined.client-DSBVwq5m.mjs} +54 -46
- package/dist/client/{EventListing.client-DJN3j8B3.mjs → EventListing.client-DmFAX7Vb.mjs} +3 -4
- package/dist/client/{LeafletStaticMap-RjtGzDQT.mjs → LeafletStaticMap-BAqXdfhq.mjs} +1 -1
- package/dist/client/ThemedButton-BwNFVwi4.mjs +412 -0
- package/dist/client/{accordion-DOmnDoyg.mjs → accordion-DRhMdkbd.mjs} +1 -1
- package/dist/client/{bookingForm-C0vk7pgS.mjs → bookingForm-iJ_nCsNF.mjs} +26 -32
- package/dist/client/bookings.mjs +201 -118
- package/dist/client/{carousel-BZJ7pno3.mjs → carousel-D8zuffZr.mjs} +2 -2
- package/dist/client/{carousel.client-DQTjCVQT.mjs → carousel.client-jahpU9Vz.mjs} +1 -1
- package/dist/client/{cart-CaeVAHJl.mjs → cart-DeMGJViN.mjs} +3 -3
- package/dist/client/{checkout-7wmoNDtG.mjs → checkout-DXc06Km2.mjs} +3 -3
- package/dist/client/{checkoutUrls-FL6lRkrt.mjs → checkoutUrls-CW3-78uu.mjs} +1 -1
- package/dist/client/client.mjs +2271 -1983
- package/dist/client/{colorStyles-3013aRAY.mjs → colorStyles-CuJBiS-1.mjs} +16 -4
- package/dist/client/{context-BOimxE3U.mjs → context-CDLCfDep.mjs} +24 -8
- package/dist/client/{dates-BnzVksi4.mjs → dates-ClFx7Epy.mjs} +2 -2
- package/dist/client/{eventCalendar-l-fpaslC.mjs → eventCalendar-BaGpnOGN.mjs} +39 -50
- package/dist/client/{eventCombined-DGGvssK6.mjs → eventCombined-ywONOx2m.mjs} +5 -4
- package/dist/client/{eventDetails-DRiCm_hL.mjs → eventDetails-B2LlOTYY.mjs} +4 -4
- package/dist/client/{eventListing-dph8loYX.mjs → eventListing-CMgxWpqP.mjs} +5 -4
- package/dist/client/{eventRegistration-ClBohmbY.mjs → eventRegistration-BarLDNHR.mjs} +83 -68
- package/dist/client/{form-BLVVAnd3.mjs → form-BjqKaBJ7.mjs} +9 -10
- package/dist/client/{headerSection-DHy4C8Ix.mjs → headerSection-CP4XDwz1.mjs} +23 -30
- package/dist/client/hooks.mjs +257 -63
- package/dist/client/{locationMap-6HuS28ck.mjs → locationMap-C5gW-d-w.mjs} +9 -10
- package/dist/client/{media-DHpfFwd3.mjs → media-BtJ37tzS.mjs} +1 -1
- package/dist/client/{newsletterForm-xOdcOhZP.mjs → newsletterForm-afXlVSA0.mjs} +8 -9
- package/dist/client/{pricing-ChinRYFt.mjs → pricing-Bl1CAl28.mjs} +1 -1
- package/dist/client/{productDetail-0chA5gbK.mjs → productDetail-CvQ3jWQe.mjs} +3 -3
- package/dist/client/{productList-OoINA0h1.mjs → productList-U874PGO7.mjs} +3 -3
- package/dist/client/{propsDecoder-CIZ-hbIG.mjs → propsDecoder-DPXtCZWP.mjs} +87 -29
- package/dist/client/rendering/client.mjs +1891 -1740
- package/dist/client/rendering/islands.mjs +19 -19
- package/dist/client/rendering.mjs +2225 -1913
- package/dist/client/{routeIslandApiConfig-UNsfPcYq.mjs → routeIslandApiConfig-NGYiUWXu.mjs} +8 -1
- package/dist/client/{scrollToBlock-BPZl0gPZ.mjs → scrollToBlock-0-C3DVhK.mjs} +1 -1
- package/dist/client/{shop-CLJFqNIq.mjs → shop-BXjXhM9P.mjs} +45 -58
- package/dist/client/{shop-commerce-PpANg5wB.mjs → shop-commerce-BZ6UlWJ7.mjs} +42 -55
- package/dist/client/{shop-commerce-store-TA_Kz2ku.mjs → shop-commerce-store-DlSBXb3D.mjs} +1 -1
- package/dist/client/{shopShared-DzcFcA5g.mjs → shopShared-kkEOiLPA.mjs} +6 -5
- package/dist/client/{useEventFilters-CFU21QZo.mjs → useEventFilters-zvnnE1ro.mjs} +66 -355
- package/dist/preview-next/client/runtime.mjs +3 -3
- package/dist/preview-next/editor-chrome.css +8 -0
- package/dist/{sdk-runtime-CDKl0Fr7.mjs → sdk-runtime-DFJlQt3q.mjs} +1 -1
- package/dist/{separator-BTp96X32.mjs → separator-o8GHb1xh.mjs} +1 -1
- package/dist/server/components.mjs +828 -623
- package/dist/server/config-validation.mjs +257 -63
- package/dist/server/config.mjs +257 -63
- package/dist/server/data.mjs +257 -63
- package/dist/server/index.mjs +9 -5
- package/dist/server/navigation.mjs +28 -1
- package/dist/server/next.mjs +14129 -13947
- package/dist/server/page-converter.mjs +110 -59
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +832 -624
- package/dist/server/rendering.mjs +830 -624
- package/dist/server/routing.mjs +294 -69
- package/dist/server/server.mjs +266 -68
- package/dist/server/theme-bridge.mjs +40 -1
- package/dist/styles/index.css +6 -0
- package/package.json +1 -1
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import { O as clsx } from "./colorStyles-CuJBiS-1.mjs";
|
|
2
|
+
import { gt as themeButtonVariantClassNames, ht as themeButtonSizeClassName } from "./propsDecoder-DPXtCZWP.mjs";
|
|
3
|
+
import "react";
|
|
4
|
+
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
//#region ../blocks/src/system/runtime/nodes/spinner.tsx
|
|
6
|
+
function resolveColorStyle(color) {
|
|
7
|
+
switch (color) {
|
|
8
|
+
case void 0: return;
|
|
9
|
+
case "inherit": return { color: "inherit" };
|
|
10
|
+
case "foreground": return { color: "rgb(var(--tb-foreground))" };
|
|
11
|
+
case "text": return { color: "rgb(var(--tb-text))" };
|
|
12
|
+
default: return;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function SpinnerNode({ className, size = "md", color, strokeWidth = 3, srLabel, style, ...rest }) {
|
|
16
|
+
const hasExplicitAriaLabel = typeof rest["aria-label"] === "string" && rest["aria-label"].trim().length > 0;
|
|
17
|
+
const accessibilityProps = srLabel ? {
|
|
18
|
+
role: "status",
|
|
19
|
+
"aria-live": "polite"
|
|
20
|
+
} : hasExplicitAriaLabel ? {} : { "aria-hidden": true };
|
|
21
|
+
const trackStroke = color === "inherit" ? "currentColor" : "var(--rb-spinner-track-color)";
|
|
22
|
+
const trackOpacity = color === "inherit" ? .25 : 1;
|
|
23
|
+
return /* @__PURE__ */ jsxs("span", {
|
|
24
|
+
...accessibilityProps,
|
|
25
|
+
className: clsx("rb-spinner", size ? `rb-spinner--${size}` : null, color === "inherit" ? "rb-spinner--inherit" : null, className),
|
|
26
|
+
style: {
|
|
27
|
+
...resolveColorStyle(color),
|
|
28
|
+
...style ?? {}
|
|
29
|
+
},
|
|
30
|
+
...rest,
|
|
31
|
+
children: [/* @__PURE__ */ jsxs("svg", {
|
|
32
|
+
viewBox: "0 0 24 24",
|
|
33
|
+
fill: "none",
|
|
34
|
+
"aria-hidden": "true",
|
|
35
|
+
children: [/* @__PURE__ */ jsx("circle", {
|
|
36
|
+
cx: "12",
|
|
37
|
+
cy: "12",
|
|
38
|
+
r: "10",
|
|
39
|
+
stroke: trackStroke,
|
|
40
|
+
strokeWidth,
|
|
41
|
+
opacity: trackOpacity
|
|
42
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
43
|
+
d: "M12 2a10 10 0 0 1 10 10",
|
|
44
|
+
stroke: "currentColor",
|
|
45
|
+
strokeWidth,
|
|
46
|
+
strokeLinecap: "round"
|
|
47
|
+
})]
|
|
48
|
+
}), srLabel ? /* @__PURE__ */ jsx("span", {
|
|
49
|
+
className: "rb-sr-only",
|
|
50
|
+
children: srLabel
|
|
51
|
+
}) : null]
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
//#endregion
|
|
55
|
+
//#region ../blocks/src/system/icons/svg.tsx
|
|
56
|
+
function createIcon(displayName, children) {
|
|
57
|
+
const Icon = ({ size = "1em", strokeWidth = 2, title, className, focusable = false, role, ...props }) => /* @__PURE__ */ jsxs("svg", {
|
|
58
|
+
"aria-hidden": title ? void 0 : true,
|
|
59
|
+
className,
|
|
60
|
+
"data-rb-icon": displayName.replace(/Icon$/, ""),
|
|
61
|
+
fill: "none",
|
|
62
|
+
focusable,
|
|
63
|
+
height: size,
|
|
64
|
+
role: title ? role ?? "img" : role,
|
|
65
|
+
stroke: "currentColor",
|
|
66
|
+
strokeLinecap: "round",
|
|
67
|
+
strokeLinejoin: "round",
|
|
68
|
+
strokeWidth,
|
|
69
|
+
viewBox: "0 0 24 24",
|
|
70
|
+
width: size,
|
|
71
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
72
|
+
...props,
|
|
73
|
+
children: [title ? /* @__PURE__ */ jsx("title", { children: title }) : null, children]
|
|
74
|
+
});
|
|
75
|
+
Icon.displayName = displayName;
|
|
76
|
+
return Icon;
|
|
77
|
+
}
|
|
78
|
+
createIcon("ArrowDownIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 5v14" }), /* @__PURE__ */ jsx("path", { d: "m6 13 6 6 6-6" })] }));
|
|
79
|
+
createIcon("ArrowLeftIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M19 12H5" }), /* @__PURE__ */ jsx("path", { d: "m11 6-6 6 6 6" })] }));
|
|
80
|
+
createIcon("ArrowRightIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M5 12h14" }), /* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })] }));
|
|
81
|
+
createIcon("AwardIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
82
|
+
cx: "12",
|
|
83
|
+
cy: "8",
|
|
84
|
+
r: "4"
|
|
85
|
+
}), /* @__PURE__ */ jsx("path", { d: "m8.5 12.5-1.5 7 5-3 5 3-1.5-7" })] }));
|
|
86
|
+
createIcon("BadgeCheckIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "m8 3 4-1 4 1 3 3 1 4-1 4-3 3-4 1-4-1-3-3-1-4 1-4Z" }), /* @__PURE__ */ jsx("path", { d: "m8.5 11.5 2.5 2.5 4.5-5" })] }));
|
|
87
|
+
createIcon("BookOpenIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
88
|
+
/* @__PURE__ */ jsx("path", { d: "M4 5.5A3 3 0 0 1 7 4h13v15H7a3 3 0 0 0-3 1.5Z" }),
|
|
89
|
+
/* @__PURE__ */ jsx("path", { d: "M4 5.5V20" }),
|
|
90
|
+
/* @__PURE__ */ jsx("path", { d: "M12 4v15" })
|
|
91
|
+
] }));
|
|
92
|
+
createIcon("BrainIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
93
|
+
/* @__PURE__ */ jsx("path", { d: "M9 4a4 4 0 0 0-4 4 4 4 0 0 0 0 8 4 4 0 0 0 4 4" }),
|
|
94
|
+
/* @__PURE__ */ jsx("path", { d: "M15 4a4 4 0 0 1 4 4 4 4 0 0 1 0 8 4 4 0 0 1-4 4" }),
|
|
95
|
+
/* @__PURE__ */ jsx("path", { d: "M9 4v16" }),
|
|
96
|
+
/* @__PURE__ */ jsx("path", { d: "M15 4v16" }),
|
|
97
|
+
/* @__PURE__ */ jsx("path", { d: "M9 8h6" }),
|
|
98
|
+
/* @__PURE__ */ jsx("path", { d: "M9 14h6" })
|
|
99
|
+
] }));
|
|
100
|
+
createIcon("BriefcaseBusinessIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
101
|
+
/* @__PURE__ */ jsx("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" }),
|
|
102
|
+
/* @__PURE__ */ jsx("rect", {
|
|
103
|
+
x: "3",
|
|
104
|
+
y: "7",
|
|
105
|
+
width: "18",
|
|
106
|
+
height: "13",
|
|
107
|
+
rx: "2"
|
|
108
|
+
}),
|
|
109
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
|
|
110
|
+
/* @__PURE__ */ jsx("path", { d: "M9 12v2" }),
|
|
111
|
+
/* @__PURE__ */ jsx("path", { d: "M15 12v2" })
|
|
112
|
+
] }));
|
|
113
|
+
createIcon("CalendarIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
114
|
+
/* @__PURE__ */ jsx("path", { d: "M8 3v4" }),
|
|
115
|
+
/* @__PURE__ */ jsx("path", { d: "M16 3v4" }),
|
|
116
|
+
/* @__PURE__ */ jsx("rect", {
|
|
117
|
+
x: "4",
|
|
118
|
+
y: "5",
|
|
119
|
+
width: "16",
|
|
120
|
+
height: "16",
|
|
121
|
+
rx: "2"
|
|
122
|
+
}),
|
|
123
|
+
/* @__PURE__ */ jsx("path", { d: "M4 10h16" })
|
|
124
|
+
] }));
|
|
125
|
+
createIcon("CheckIcon", /* @__PURE__ */ jsx("path", { d: "m5 12 4 4L19 6" }));
|
|
126
|
+
createIcon("ChevronDownIcon", /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }));
|
|
127
|
+
createIcon("ChevronLeftIcon", /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" }));
|
|
128
|
+
createIcon("ChevronRightIcon", /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }));
|
|
129
|
+
createIcon("ChevronUpIcon", /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" }));
|
|
130
|
+
createIcon("CircleMinusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
131
|
+
cx: "12",
|
|
132
|
+
cy: "12",
|
|
133
|
+
r: "9"
|
|
134
|
+
}), /* @__PURE__ */ jsx("path", { d: "M8 12h8" })] }));
|
|
135
|
+
createIcon("CirclePlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
136
|
+
/* @__PURE__ */ jsx("circle", {
|
|
137
|
+
cx: "12",
|
|
138
|
+
cy: "12",
|
|
139
|
+
r: "9"
|
|
140
|
+
}),
|
|
141
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
|
|
142
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8v8" })
|
|
143
|
+
] }));
|
|
144
|
+
const ClockIcon = createIcon("ClockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
145
|
+
cx: "12",
|
|
146
|
+
cy: "12",
|
|
147
|
+
r: "9"
|
|
148
|
+
}), /* @__PURE__ */ jsx("path", { d: "M12 7v5l3 2" })] }));
|
|
149
|
+
createIcon("CompassIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
150
|
+
cx: "12",
|
|
151
|
+
cy: "12",
|
|
152
|
+
r: "9"
|
|
153
|
+
}), /* @__PURE__ */ jsx("path", { d: "m15 9-2 6-4 2 2-6Z" })] }));
|
|
154
|
+
createIcon("DownloadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
155
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3v12" }),
|
|
156
|
+
/* @__PURE__ */ jsx("path", { d: "m7 10 5 5 5-5" }),
|
|
157
|
+
/* @__PURE__ */ jsx("path", { d: "M5 21h14" })
|
|
158
|
+
] }));
|
|
159
|
+
createIcon("ExternalLinkIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
160
|
+
/* @__PURE__ */ jsx("path", { d: "M14 4h6v6" }),
|
|
161
|
+
/* @__PURE__ */ jsx("path", { d: "m10 14 10-10" }),
|
|
162
|
+
/* @__PURE__ */ jsx("path", { d: "M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5" })
|
|
163
|
+
] }));
|
|
164
|
+
createIcon("FileArchiveIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
165
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
166
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
167
|
+
/* @__PURE__ */ jsx("path", { d: "M10 7h2" }),
|
|
168
|
+
/* @__PURE__ */ jsx("path", { d: "M10 11h2" }),
|
|
169
|
+
/* @__PURE__ */ jsx("path", { d: "M10 15h4v4h-4Z" })
|
|
170
|
+
] }));
|
|
171
|
+
createIcon("FileAudioIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
172
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
173
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
174
|
+
/* @__PURE__ */ jsx("path", { d: "M10 16V10l5-2v6" }),
|
|
175
|
+
/* @__PURE__ */ jsx("circle", {
|
|
176
|
+
cx: "9",
|
|
177
|
+
cy: "17",
|
|
178
|
+
r: "1.5"
|
|
179
|
+
}),
|
|
180
|
+
/* @__PURE__ */ jsx("circle", {
|
|
181
|
+
cx: "15",
|
|
182
|
+
cy: "15",
|
|
183
|
+
r: "1.5"
|
|
184
|
+
})
|
|
185
|
+
] }));
|
|
186
|
+
createIcon("FileSpreadsheetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
187
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
188
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
189
|
+
/* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
|
|
190
|
+
/* @__PURE__ */ jsx("path", { d: "M8 16h8" }),
|
|
191
|
+
/* @__PURE__ */ jsx("path", { d: "M12 10v8" })
|
|
192
|
+
] }));
|
|
193
|
+
createIcon("FileTextIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
194
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
195
|
+
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
196
|
+
/* @__PURE__ */ jsx("path", { d: "M9 13h6" }),
|
|
197
|
+
/* @__PURE__ */ jsx("path", { d: "M9 17h6" })
|
|
198
|
+
] }));
|
|
199
|
+
createIcon("Flower2Icon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
200
|
+
/* @__PURE__ */ jsx("circle", {
|
|
201
|
+
cx: "12",
|
|
202
|
+
cy: "12",
|
|
203
|
+
r: "2"
|
|
204
|
+
}),
|
|
205
|
+
/* @__PURE__ */ jsx("path", { d: "M12 10C8 4 16 4 12 10Z" }),
|
|
206
|
+
/* @__PURE__ */ jsx("path", { d: "M14 12c6-4 6 4 0 0Z" }),
|
|
207
|
+
/* @__PURE__ */ jsx("path", { d: "M12 14c4 6-4 6 0 0Z" }),
|
|
208
|
+
/* @__PURE__ */ jsx("path", { d: "M10 12c-6 4-6-4 0 0Z" })
|
|
209
|
+
] }));
|
|
210
|
+
createIcon("GlobeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
211
|
+
/* @__PURE__ */ jsx("circle", {
|
|
212
|
+
cx: "12",
|
|
213
|
+
cy: "12",
|
|
214
|
+
r: "9"
|
|
215
|
+
}),
|
|
216
|
+
/* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
|
|
217
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 1 0 18" }),
|
|
218
|
+
/* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 0 0 18" })
|
|
219
|
+
] }));
|
|
220
|
+
createIcon("GraduationCapIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
221
|
+
/* @__PURE__ */ jsx("path", { d: "m3 8 9-4 9 4-9 4Z" }),
|
|
222
|
+
/* @__PURE__ */ jsx("path", { d: "M7 10v5c3 3 7 3 10 0v-5" }),
|
|
223
|
+
/* @__PURE__ */ jsx("path", { d: "M21 8v6" })
|
|
224
|
+
] }));
|
|
225
|
+
createIcon("HandHeartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
226
|
+
/* @__PURE__ */ jsx("path", { d: "M3 15h4l4 4h5l5-5" }),
|
|
227
|
+
/* @__PURE__ */ jsx("path", { d: "M7 15l3-3h4a2 2 0 0 1 2 2" }),
|
|
228
|
+
/* @__PURE__ */ jsx("path", { d: "M12 8c-2-2-5 1-2 4l2 2 2-2c3-3 0-6-2-4Z" })
|
|
229
|
+
] }));
|
|
230
|
+
createIcon("HeartIcon", /* @__PURE__ */ jsx("path", { d: "M12 21s-8-5-8-11a5 5 0 0 1 8-4 5 5 0 0 1 8 4c0 6-8 11-8 11Z" }));
|
|
231
|
+
createIcon("HeartHandshakeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 21s-8-5-8-11a5 5 0 0 1 8-4 5 5 0 0 1 8 4c0 6-8 11-8 11Z" }), /* @__PURE__ */ jsx("path", { d: "m8 12 2 2 2-2 2 2 2-2" })] }));
|
|
232
|
+
createIcon("HomeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
233
|
+
/* @__PURE__ */ jsx("path", { d: "m3 11 9-8 9 8" }),
|
|
234
|
+
/* @__PURE__ */ jsx("path", { d: "M5 10v10h14V10" }),
|
|
235
|
+
/* @__PURE__ */ jsx("path", { d: "M9 20v-6h6v6" })
|
|
236
|
+
] }));
|
|
237
|
+
createIcon("InfoIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
238
|
+
/* @__PURE__ */ jsx("circle", {
|
|
239
|
+
cx: "12",
|
|
240
|
+
cy: "12",
|
|
241
|
+
r: "9"
|
|
242
|
+
}),
|
|
243
|
+
/* @__PURE__ */ jsx("path", { d: "M12 11v6" }),
|
|
244
|
+
/* @__PURE__ */ jsx("path", { d: "M12 7h.01" })
|
|
245
|
+
] }));
|
|
246
|
+
createIcon("LeafIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M5 20C5 10 12 4 21 4c0 9-6 16-16 16Z" }), /* @__PURE__ */ jsx("path", { d: "M5 20c4-5 8-8 13-11" })] }));
|
|
247
|
+
createIcon("LightbulbIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
248
|
+
/* @__PURE__ */ jsx("path", { d: "M9 18h6" }),
|
|
249
|
+
/* @__PURE__ */ jsx("path", { d: "M10 22h4" }),
|
|
250
|
+
/* @__PURE__ */ jsx("path", { d: "M8 14a6 6 0 1 1 8 0c-1 1-1 2-1 4H9c0-2 0-3-1-4Z" })
|
|
251
|
+
] }));
|
|
252
|
+
createIcon("LockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
|
|
253
|
+
x: "5",
|
|
254
|
+
y: "10",
|
|
255
|
+
width: "14",
|
|
256
|
+
height: "10",
|
|
257
|
+
rx: "2"
|
|
258
|
+
}), /* @__PURE__ */ jsx("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })] }));
|
|
259
|
+
createIcon("MailIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
|
|
260
|
+
x: "3",
|
|
261
|
+
y: "5",
|
|
262
|
+
width: "18",
|
|
263
|
+
height: "14",
|
|
264
|
+
rx: "2"
|
|
265
|
+
}), /* @__PURE__ */ jsx("path", { d: "m3 7 9 6 9-6" })] }));
|
|
266
|
+
createIcon("MapPinIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 21s7-5 7-12a7 7 0 0 0-14 0c0 7 7 12 7 12Z" }), /* @__PURE__ */ jsx("circle", {
|
|
267
|
+
cx: "12",
|
|
268
|
+
cy: "9",
|
|
269
|
+
r: "2.5"
|
|
270
|
+
})] }));
|
|
271
|
+
createIcon("MessageCircleIcon", /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M21 11.5a8.5 8.5 0 0 1-12.6 7.4L3 20l1.1-5.3A8.5 8.5 0 1 1 21 11.5Z" }) }));
|
|
272
|
+
createIcon("MinusIcon", /* @__PURE__ */ jsx("path", { d: "M5 12h14" }));
|
|
273
|
+
createIcon("PackageIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
274
|
+
/* @__PURE__ */ jsx("path", { d: "m12 3 8 4.5v9L12 21l-8-4.5v-9Z" }),
|
|
275
|
+
/* @__PURE__ */ jsx("path", { d: "M12 12 4 7.5" }),
|
|
276
|
+
/* @__PURE__ */ jsx("path", { d: "m12 12 8-4.5" }),
|
|
277
|
+
/* @__PURE__ */ jsx("path", { d: "M12 12v9" })
|
|
278
|
+
] }));
|
|
279
|
+
createIcon("PhoneIcon", /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx("path", { d: "M22 16.9v3a2 2 0 0 1-2.2 2A19 19 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7l.4 2.5a2 2 0 0 1-.6 1.8L7.7 9.2a13 13 0 0 0 7.1 7.1l1.2-1.2a2 2 0 0 1 1.8-.6l2.5.4a2 2 0 0 1 1.7 2Z" }) }));
|
|
280
|
+
createIcon("PlayIcon", /* @__PURE__ */ jsx("path", { d: "m8 5 11 7-11 7Z" }));
|
|
281
|
+
createIcon("PlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 5v14" }), /* @__PURE__ */ jsx("path", { d: "M5 12h14" })] }));
|
|
282
|
+
createIcon("ShieldIcon", /* @__PURE__ */ jsx("path", { d: "M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z" }));
|
|
283
|
+
createIcon("ShoppingBagIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M6 8h12l1 13H5Z" }), /* @__PURE__ */ jsx("path", { d: "M9 8a3 3 0 0 1 6 0" })] }));
|
|
284
|
+
createIcon("ShoppingCartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
285
|
+
/* @__PURE__ */ jsx("circle", {
|
|
286
|
+
cx: "9",
|
|
287
|
+
cy: "20",
|
|
288
|
+
r: "1"
|
|
289
|
+
}),
|
|
290
|
+
/* @__PURE__ */ jsx("circle", {
|
|
291
|
+
cx: "18",
|
|
292
|
+
cy: "20",
|
|
293
|
+
r: "1"
|
|
294
|
+
}),
|
|
295
|
+
/* @__PURE__ */ jsx("path", { d: "M2 3h3l3 12h10l3-8H7" })
|
|
296
|
+
] }));
|
|
297
|
+
createIcon("SmileIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
298
|
+
/* @__PURE__ */ jsx("circle", {
|
|
299
|
+
cx: "12",
|
|
300
|
+
cy: "12",
|
|
301
|
+
r: "9"
|
|
302
|
+
}),
|
|
303
|
+
/* @__PURE__ */ jsx("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" }),
|
|
304
|
+
/* @__PURE__ */ jsx("path", { d: "M9 9h.01" }),
|
|
305
|
+
/* @__PURE__ */ jsx("path", { d: "M15 9h.01" })
|
|
306
|
+
] }));
|
|
307
|
+
createIcon("SparklesIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "m12 3 2 5 5 2-5 2-2 5-2-5-5-2 5-2Z" }), /* @__PURE__ */ jsx("path", { d: "m19 15 .8 2.2L22 18l-2.2.8L19 21l-.8-2.2L16 18l2.2-.8Z" })] }));
|
|
308
|
+
createIcon("SproutIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
309
|
+
/* @__PURE__ */ jsx("path", { d: "M12 21V10" }),
|
|
310
|
+
/* @__PURE__ */ jsx("path", { d: "M12 10C8 5 4 6 3 10c4 1 7 0 9 0Z" }),
|
|
311
|
+
/* @__PURE__ */ jsx("path", { d: "M12 11c4-5 8-4 9 0-4 1-7 0-9 0Z" })
|
|
312
|
+
] }));
|
|
313
|
+
createIcon("StarIcon", /* @__PURE__ */ jsx("path", { d: "m12 3 2.8 5.7 6.2.9-4.5 4.4 1.1 6.2L12 17.2 6.4 20.2 7.5 14 3 9.6l6.2-.9Z" }));
|
|
314
|
+
createIcon("TargetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
315
|
+
/* @__PURE__ */ jsx("circle", {
|
|
316
|
+
cx: "12",
|
|
317
|
+
cy: "12",
|
|
318
|
+
r: "9"
|
|
319
|
+
}),
|
|
320
|
+
/* @__PURE__ */ jsx("circle", {
|
|
321
|
+
cx: "12",
|
|
322
|
+
cy: "12",
|
|
323
|
+
r: "5"
|
|
324
|
+
}),
|
|
325
|
+
/* @__PURE__ */ jsx("circle", {
|
|
326
|
+
cx: "12",
|
|
327
|
+
cy: "12",
|
|
328
|
+
r: "1"
|
|
329
|
+
})
|
|
330
|
+
] }));
|
|
331
|
+
createIcon("UploadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
332
|
+
/* @__PURE__ */ jsx("path", { d: "M12 21V9" }),
|
|
333
|
+
/* @__PURE__ */ jsx("path", { d: "m7 14 5-5 5 5" }),
|
|
334
|
+
/* @__PURE__ */ jsx("path", { d: "M5 3h14" })
|
|
335
|
+
] }));
|
|
336
|
+
createIcon("UserRoundCheckIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
337
|
+
/* @__PURE__ */ jsx("circle", {
|
|
338
|
+
cx: "10",
|
|
339
|
+
cy: "8",
|
|
340
|
+
r: "4"
|
|
341
|
+
}),
|
|
342
|
+
/* @__PURE__ */ jsx("path", { d: "M3 21a7 7 0 0 1 11.5-5.3" }),
|
|
343
|
+
/* @__PURE__ */ jsx("path", { d: "m15 19 2 2 4-5" })
|
|
344
|
+
] }));
|
|
345
|
+
createIcon("UsersIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
346
|
+
/* @__PURE__ */ jsx("circle", {
|
|
347
|
+
cx: "9",
|
|
348
|
+
cy: "8",
|
|
349
|
+
r: "4"
|
|
350
|
+
}),
|
|
351
|
+
/* @__PURE__ */ jsx("path", { d: "M2 21a7 7 0 0 1 14 0" }),
|
|
352
|
+
/* @__PURE__ */ jsx("path", { d: "M17 11a4 4 0 0 0 0-7" }),
|
|
353
|
+
/* @__PURE__ */ jsx("path", { d: "M22 21a7 7 0 0 0-5-6.7" })
|
|
354
|
+
] }));
|
|
355
|
+
createIcon("WrenchIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M14.7 6.3A5 5 0 0 0 7 12.6L3.5 16a2.1 2.1 0 0 0 3 3L10 15.5A5 5 0 0 0 16.7 9Z" }), /* @__PURE__ */ jsx("path", { d: "m15 5 4 4" })] }));
|
|
356
|
+
createIcon("XIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })] }));
|
|
357
|
+
//#endregion
|
|
358
|
+
//#region ../blocks/src/system/runtime/shared/components/ThemedButton.tsx
|
|
359
|
+
function themedButtonClasses(variant, size, extraClassName) {
|
|
360
|
+
return [
|
|
361
|
+
...themeButtonVariantClassNames(variant),
|
|
362
|
+
themeButtonSizeClassName(size),
|
|
363
|
+
extraClassName
|
|
364
|
+
].filter(Boolean).join(" ");
|
|
365
|
+
}
|
|
366
|
+
function ThemedButtonLabel(props) {
|
|
367
|
+
const content = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
368
|
+
props.pending ? /* @__PURE__ */ jsx(SpinnerNode, {
|
|
369
|
+
size: props.pending.spinnerSize ?? "sm",
|
|
370
|
+
color: "inherit",
|
|
371
|
+
className: props.pending.spinnerClassName ?? "rb-mr-2",
|
|
372
|
+
srLabel: props.pending.srLabel
|
|
373
|
+
}) : null,
|
|
374
|
+
props.labelClassName ? /* @__PURE__ */ jsx("span", {
|
|
375
|
+
className: props.labelClassName,
|
|
376
|
+
children: props.pending?.label ?? props.label
|
|
377
|
+
}) : props.pending?.label ?? props.label,
|
|
378
|
+
props.screenReaderSuffix ? /* @__PURE__ */ jsx("span", {
|
|
379
|
+
className: "rb-sr-only",
|
|
380
|
+
children: props.screenReaderSuffix
|
|
381
|
+
}) : null
|
|
382
|
+
] });
|
|
383
|
+
return props.pending?.contentClassName ? /* @__PURE__ */ jsx("span", {
|
|
384
|
+
className: props.pending.contentClassName,
|
|
385
|
+
children: content
|
|
386
|
+
}) : content;
|
|
387
|
+
}
|
|
388
|
+
function ThemedButton({ variant, size, extraClassName, screenReaderSuffix, labelClassName, pending, label, ...buttonProps }) {
|
|
389
|
+
return /* @__PURE__ */ jsx("button", {
|
|
390
|
+
...buttonProps,
|
|
391
|
+
className: themedButtonClasses(variant, size, extraClassName),
|
|
392
|
+
children: /* @__PURE__ */ jsx(ThemedButtonLabel, {
|
|
393
|
+
label,
|
|
394
|
+
pending,
|
|
395
|
+
screenReaderSuffix,
|
|
396
|
+
labelClassName
|
|
397
|
+
})
|
|
398
|
+
});
|
|
399
|
+
}
|
|
400
|
+
function ThemedButtonLink({ variant, size, extraClassName, screenReaderSuffix, labelClassName, label, ...anchorProps }) {
|
|
401
|
+
return /* @__PURE__ */ jsx("a", {
|
|
402
|
+
...anchorProps,
|
|
403
|
+
className: themedButtonClasses(variant, size, extraClassName),
|
|
404
|
+
children: /* @__PURE__ */ jsx(ThemedButtonLabel, {
|
|
405
|
+
label,
|
|
406
|
+
screenReaderSuffix,
|
|
407
|
+
labelClassName
|
|
408
|
+
})
|
|
409
|
+
});
|
|
410
|
+
}
|
|
411
|
+
//#endregion
|
|
412
|
+
export { SpinnerNode as i, ThemedButtonLink as n, ClockIcon as r, ThemedButton as t };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as defineIslandPropsDecoder } from "./propsDecoder-
|
|
1
|
+
import { t as defineIslandPropsDecoder } from "./propsDecoder-DPXtCZWP.mjs";
|
|
2
2
|
//#region src/rendering/islands/enhancers/accordion.ts
|
|
3
3
|
const decode = defineIslandPropsDecoder("accordion");
|
|
4
4
|
function parseDefaultValues(value) {
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { C as unsafeAsPassId, b as unsafeAsCustomerPassId, v as unsafeAsAppointmentResourceId, x as unsafeAsFormId, y as unsafeAsAppointmentServiceId } from "./colorStyles-
|
|
3
|
-
import {
|
|
4
|
-
import { At as
|
|
5
|
-
import { n as useBlockApi, t as BlockApiProvider } from "./context-
|
|
2
|
+
import { C as unsafeAsPassId, b as unsafeAsCustomerPassId, v as unsafeAsAppointmentResourceId, x as unsafeAsFormId, y as unsafeAsAppointmentServiceId } from "./colorStyles-CuJBiS-1.mjs";
|
|
3
|
+
import { i as buildBookingPaymentSelectionViewModel, n as StepIndicator, r as usePolling, t as BookingConsentAgreement } from "./BookingConsentAgreement-DoAILrkN.mjs";
|
|
4
|
+
import { $t as formatBookingInstant, At as resolveBookingSiteId, Bt as clearWorkflowFeedback, Ct as getBookingServiceSlidingScale, Dt as prepareBookingSubmission, Et as parseBookingCurrencyInputToCents, Ft as BOOKING_FORM_DATA_RESERVED_KEYS, Gt as reportWorkflowSuccess, It as isBookingRequirementConsentFieldId, Mt as toSelectedCollectionOptionKind, Nt as projectSelectedAppointmentConsentIntoForm, Ot as resolveAppointmentCheckoutVerificationState, Pt as resolveSelectedAppointmentConsent, St as getBookingRedirectStateFromLocation, Tt as isBookingServiceSlidingAmountInRange, Ut as okWith, Vt as err, Wt as reportWorkflowError, Yt as addLocalScheduleDays, _n as formatCurrencyAmount, an as resolveBookingTimeZoneId, bt as formatBookingCentsAsCurrencyInput, in as parseBookingLocalDate, jt as resolveDefaultBookingServiceId, kt as resolveBookingPaymentStep, t as defineIslandPropsDecoder, tn as formatLocalScheduleDate, vt as logger, wt as getBookingSuccessMessage, xt as formatBookingSubmissionPreparationError, yt as deriveBookingFormViewState, zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
|
|
5
|
+
import { n as useBlockApi, t as BlockApiProvider } from "./context-CDLCfDep.mjs";
|
|
6
6
|
import { n as isSpamProtectionEnabled, r as AltchaWidget, t as getChallengeUrl } from "./src-B833rYRr.mjs";
|
|
7
|
-
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-
|
|
8
|
-
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-
|
|
7
|
+
import { a as CheckIcon, i as StateIcon, n as useDiscountCodeUi, r as TerminalPanel, t as scrollToBlock } from "./scrollToBlock-0-C3DVhK.mjs";
|
|
8
|
+
import { t as DiscountCodeDisclosure } from "./DiscountCodeDisclosure-X528hUTf.mjs";
|
|
9
|
+
import { i as SpinnerNode, t as ThemedButton } from "./ThemedButton-BwNFVwi4.mjs";
|
|
9
10
|
import { t as FeedbackMessage } from "./FeedbackMessage-CtLvvS_d.mjs";
|
|
10
11
|
import { n as getFieldValidationControlProps, t as FieldValidationMessage } from "./FieldValidationMessage-AYanWFb-.mjs";
|
|
11
|
-
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-
|
|
12
|
+
import { t as buildCheckoutReturnUrls } from "./checkoutUrls-CW3-78uu.mjs";
|
|
12
13
|
import { t as mountReactIsland } from "./reactMount-SY8AVRof.mjs";
|
|
13
|
-
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-
|
|
14
|
+
import { t as buildRouteIslandApiConfig } from "./routeIslandApiConfig-NGYiUWXu.mjs";
|
|
14
15
|
import React, { useCallback, useEffect, useLayoutEffect, useMemo, useReducer, useRef, useState } from "react";
|
|
15
|
-
import {
|
|
16
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
16
17
|
//#region ../blocks/src/system/runtime/components/booking/SuccessMessage.tsx
|
|
17
18
|
const SuccessMessage = ({ message, resourceName, className }) => {
|
|
18
19
|
return /* @__PURE__ */ jsx(TerminalPanel, {
|
|
@@ -2228,30 +2229,25 @@ function HeadlessBookingDefaultForm({ booking, onSubmit }) {
|
|
|
2228
2229
|
}),
|
|
2229
2230
|
/* @__PURE__ */ jsxs("div", {
|
|
2230
2231
|
className: "rb-wizard-actions",
|
|
2231
|
-
children: [!isFirstStep ? /* @__PURE__ */ jsx(
|
|
2232
|
+
children: [!isFirstStep ? /* @__PURE__ */ jsx(ThemedButton, {
|
|
2232
2233
|
type: "button",
|
|
2233
2234
|
onClick: booking.actions.back,
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
children: "Back"
|
|
2239
|
-
}) : null, /* @__PURE__ */ jsx("button", {
|
|
2235
|
+
variant: "outline",
|
|
2236
|
+
size: "md",
|
|
2237
|
+
label: "Back"
|
|
2238
|
+
}) : null, /* @__PURE__ */ jsx(ThemedButton, {
|
|
2240
2239
|
type: "button",
|
|
2241
2240
|
onClick: () => {
|
|
2242
2241
|
handlePrimaryAction();
|
|
2243
2242
|
},
|
|
2244
2243
|
disabled: isSubmitting,
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
size: "sm",
|
|
2251
|
-
color: "inherit",
|
|
2252
|
-
className: "rb-mr-2",
|
|
2244
|
+
variant: "primary",
|
|
2245
|
+
size: "md",
|
|
2246
|
+
label: isLastStep ? "Complete" : "Continue",
|
|
2247
|
+
pending: isSubmitting ? {
|
|
2248
|
+
label: "Submitting...",
|
|
2253
2249
|
srLabel: "Submitting"
|
|
2254
|
-
}
|
|
2250
|
+
} : void 0
|
|
2255
2251
|
})]
|
|
2256
2252
|
}),
|
|
2257
2253
|
/* @__PURE__ */ jsx(DefaultBookingDiscount, { booking }),
|
|
@@ -2879,14 +2875,12 @@ function DefaultBookingFeedback({ booking }) {
|
|
|
2879
2875
|
children: [/* @__PURE__ */ jsx("p", {
|
|
2880
2876
|
className: "ab-text",
|
|
2881
2877
|
children: booking.feedback.message
|
|
2882
|
-
}), /* @__PURE__ */ jsx(
|
|
2878
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
2883
2879
|
type: "button",
|
|
2884
|
-
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
onClick: booking.actions.clearFeedback,
|
|
2889
|
-
children: "Dismiss"
|
|
2880
|
+
variant: "secondary",
|
|
2881
|
+
size: "sm",
|
|
2882
|
+
label: "Dismiss",
|
|
2883
|
+
onClick: booking.actions.clearFeedback
|
|
2890
2884
|
})]
|
|
2891
2885
|
});
|
|
2892
2886
|
}
|