@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
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-
|
|
3
|
-
import {
|
|
4
|
-
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-
|
|
5
|
-
import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-
|
|
6
|
-
import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-
|
|
7
|
-
import { n as useBlockApi } from "./context-
|
|
8
|
-
import { t as
|
|
2
|
+
import { d as hexToRgb, u as relativeLuminance } from "./colorStyles-CuJBiS-1.mjs";
|
|
3
|
+
import { J as normalizeCsvString, K as getEventRuntimeFiltersKey, M as isSemanticSpacing, N as resolveSpacing, W as getBlockApiReadStage, Y as normalizeOptionalId, _t as normalizeCardRole, dt as boxBackgroundSchema, ft as isCssColorLiteral, j as SEMANTIC_SPACING_VALUES, mt as resolveTokenOrCssColorValue, pt as resolveOnColorForThemeToken, q as normalizeCsvIds, zt as assertNever } from "./propsDecoder-DPXtCZWP.mjs";
|
|
4
|
+
import { a as getCurrentResolveImageUrlContext, i as computeMediaTransformStyle, l as resolveMediaNodeResponsiveImage, n as MediaPlaceholder, o as renderAudio, s as renderVideo, t as ImagePresets } from "./media-BtJ37tzS.mjs";
|
|
5
|
+
import { o as formatEventRemainingPlaces, t as formatEventPrice } from "./pricing-Bl1CAl28.mjs";
|
|
6
|
+
import { a as formatTime, d as resolveEventLinkProps, i as formatEventNextDateFact, n as formatEventCompactDateRail, t as formatDate, u as resolveEventCta } from "./dates-ClFx7Epy.mjs";
|
|
7
|
+
import { n as useBlockApi } from "./context-CDLCfDep.mjs";
|
|
8
|
+
import { n as ThemedButtonLink, r as ClockIcon, t as ThemedButton } from "./ThemedButton-BwNFVwi4.mjs";
|
|
9
|
+
import { t as LeafletStaticMap } from "./LeafletStaticMap-BAqXdfhq.mjs";
|
|
9
10
|
import { useCallback, useEffect, useId, useMemo, useReducer, useRef, useState } from "react";
|
|
10
11
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
11
12
|
//#region ../theme-core/src/palette/utils/textColor.ts
|
|
@@ -404,7 +405,7 @@ const MediaNodeServer = ({ value, className, style, videoPlayback = "inline", lo
|
|
|
404
405
|
};
|
|
405
406
|
//#endregion
|
|
406
407
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCardIcons.tsx
|
|
407
|
-
function MapPinIcon
|
|
408
|
+
function MapPinIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
408
409
|
return /* @__PURE__ */ jsxs("svg", {
|
|
409
410
|
className,
|
|
410
411
|
width: size,
|
|
@@ -424,7 +425,7 @@ function MapPinIcon$1({ className, size = 16, strokeWidth = 2 }) {
|
|
|
424
425
|
})]
|
|
425
426
|
});
|
|
426
427
|
}
|
|
427
|
-
function CalendarIcon
|
|
428
|
+
function CalendarIcon({ className, size = 16, strokeWidth = 2 }) {
|
|
428
429
|
return /* @__PURE__ */ jsxs("svg", {
|
|
429
430
|
className,
|
|
430
431
|
width: size,
|
|
@@ -471,10 +472,6 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
471
472
|
const formattedTime = `${formatTime(event.startsAt, { timeZone })} - ${formatTime(event.endsAt, { timeZone })}`;
|
|
472
473
|
const cta = resolveEventCta(event, buttonText);
|
|
473
474
|
const cardClass = boxStyleClassNames({ role: cardRole }, { baseClass: "event-card" });
|
|
474
|
-
const buttonClass = themeButtonClassName({
|
|
475
|
-
variant: buttonVariant,
|
|
476
|
-
size: "md"
|
|
477
|
-
});
|
|
478
475
|
const title = event.title;
|
|
479
476
|
const summary = event.presentation?.summary ?? event.description;
|
|
480
477
|
const image = event.presentation?.image ?? null;
|
|
@@ -504,7 +501,7 @@ const EventCard = ({ event, cardRole = "default", buttonVariant = "primary", but
|
|
|
504
501
|
image
|
|
505
502
|
}), /* @__PURE__ */ jsx(EventCardContent, {
|
|
506
503
|
allowMap,
|
|
507
|
-
|
|
504
|
+
buttonVariant,
|
|
508
505
|
capacityText,
|
|
509
506
|
categoryBadge,
|
|
510
507
|
categoryId: category?.id,
|
|
@@ -584,7 +581,7 @@ function EventCardContent(props) {
|
|
|
584
581
|
className: "rb-mb-2 rb-caption",
|
|
585
582
|
children: /* @__PURE__ */ jsxs("div", {
|
|
586
583
|
className: "rb-flex rb-items-center rb-gap-2",
|
|
587
|
-
children: [/* @__PURE__ */ jsx(CalendarIcon
|
|
584
|
+
children: [/* @__PURE__ */ jsx(CalendarIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("time", { children: props.formattedDate }), /* @__PURE__ */ jsx("p", {
|
|
588
585
|
className: "rb-pl-6",
|
|
589
586
|
children: props.formattedTime
|
|
590
587
|
})] })]
|
|
@@ -606,7 +603,7 @@ function EventCardContent(props) {
|
|
|
606
603
|
children: props.summary
|
|
607
604
|
}),
|
|
608
605
|
/* @__PURE__ */ jsx(EventCardFooter, {
|
|
609
|
-
|
|
606
|
+
buttonVariant: props.buttonVariant,
|
|
610
607
|
capacityText: props.capacityText,
|
|
611
608
|
cta: props.cta,
|
|
612
609
|
priceText: props.priceText
|
|
@@ -621,7 +618,7 @@ function EventCardVenue(props) {
|
|
|
621
618
|
className: "rb-mb-3",
|
|
622
619
|
children: [/* @__PURE__ */ jsxs("div", {
|
|
623
620
|
className: "rb-flex rb-items-center rb-gap-2 rb-caption",
|
|
624
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon
|
|
621
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), /* @__PURE__ */ jsxs("span", { children: [/* @__PURE__ */ jsx("strong", { children: venue.name }), venue.address ? ` · ${venue.address}` : null] })]
|
|
625
622
|
}), props.showMap && props.allowMap && venue.location && props.mapSlot && /* @__PURE__ */ jsx("div", {
|
|
626
623
|
className: "rb-mt-2",
|
|
627
624
|
children: props.mapSlot
|
|
@@ -644,12 +641,14 @@ function EventCardFooter(props) {
|
|
|
644
641
|
className: "event-card-status rb-caption status-muted rb-text-center",
|
|
645
642
|
children: props.cta.label
|
|
646
643
|
}),
|
|
647
|
-
!props.cta.hidden && /* @__PURE__ */ jsx(
|
|
644
|
+
!props.cta.hidden && /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
648
645
|
href: props.cta.href,
|
|
649
646
|
target: props.cta.external ? "_blank" : void 0,
|
|
650
647
|
rel: props.cta.external ? "noopener noreferrer" : void 0,
|
|
651
|
-
|
|
652
|
-
|
|
648
|
+
variant: props.buttonVariant,
|
|
649
|
+
size: "md",
|
|
650
|
+
extraClassName: "event-card-cta",
|
|
651
|
+
label: props.cta.label
|
|
653
652
|
})
|
|
654
653
|
]
|
|
655
654
|
});
|
|
@@ -715,309 +714,6 @@ function EventCardClient({ event, showMap = true, allowMap = true, ...cardProps
|
|
|
715
714
|
});
|
|
716
715
|
}
|
|
717
716
|
//#endregion
|
|
718
|
-
//#region ../blocks/src/system/icons/svg.tsx
|
|
719
|
-
function createIcon(displayName, children) {
|
|
720
|
-
const Icon = ({ size = "1em", strokeWidth = 2, title, className, focusable = false, role, ...props }) => /* @__PURE__ */ jsxs("svg", {
|
|
721
|
-
"aria-hidden": title ? void 0 : true,
|
|
722
|
-
className,
|
|
723
|
-
"data-rb-icon": displayName.replace(/Icon$/, ""),
|
|
724
|
-
fill: "none",
|
|
725
|
-
focusable,
|
|
726
|
-
height: size,
|
|
727
|
-
role: title ? role ?? "img" : role,
|
|
728
|
-
stroke: "currentColor",
|
|
729
|
-
strokeLinecap: "round",
|
|
730
|
-
strokeLinejoin: "round",
|
|
731
|
-
strokeWidth,
|
|
732
|
-
viewBox: "0 0 24 24",
|
|
733
|
-
width: size,
|
|
734
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
735
|
-
...props,
|
|
736
|
-
children: [title ? /* @__PURE__ */ jsx("title", { children: title }) : null, children]
|
|
737
|
-
});
|
|
738
|
-
Icon.displayName = displayName;
|
|
739
|
-
return Icon;
|
|
740
|
-
}
|
|
741
|
-
createIcon("ArrowDownIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 5v14" }), /* @__PURE__ */ jsx("path", { d: "m6 13 6 6 6-6" })] }));
|
|
742
|
-
createIcon("ArrowLeftIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M19 12H5" }), /* @__PURE__ */ jsx("path", { d: "m11 6-6 6 6 6" })] }));
|
|
743
|
-
createIcon("ArrowRightIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M5 12h14" }), /* @__PURE__ */ jsx("path", { d: "m13 6 6 6-6 6" })] }));
|
|
744
|
-
createIcon("AwardIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
745
|
-
cx: "12",
|
|
746
|
-
cy: "8",
|
|
747
|
-
r: "4"
|
|
748
|
-
}), /* @__PURE__ */ jsx("path", { d: "m8.5 12.5-1.5 7 5-3 5 3-1.5-7" })] }));
|
|
749
|
-
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" })] }));
|
|
750
|
-
createIcon("BookOpenIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
751
|
-
/* @__PURE__ */ jsx("path", { d: "M4 5.5A3 3 0 0 1 7 4h13v15H7a3 3 0 0 0-3 1.5Z" }),
|
|
752
|
-
/* @__PURE__ */ jsx("path", { d: "M4 5.5V20" }),
|
|
753
|
-
/* @__PURE__ */ jsx("path", { d: "M12 4v15" })
|
|
754
|
-
] }));
|
|
755
|
-
createIcon("BrainIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
756
|
-
/* @__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" }),
|
|
757
|
-
/* @__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" }),
|
|
758
|
-
/* @__PURE__ */ jsx("path", { d: "M9 4v16" }),
|
|
759
|
-
/* @__PURE__ */ jsx("path", { d: "M15 4v16" }),
|
|
760
|
-
/* @__PURE__ */ jsx("path", { d: "M9 8h6" }),
|
|
761
|
-
/* @__PURE__ */ jsx("path", { d: "M9 14h6" })
|
|
762
|
-
] }));
|
|
763
|
-
createIcon("BriefcaseBusinessIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
764
|
-
/* @__PURE__ */ jsx("path", { d: "M9 7V5a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v2" }),
|
|
765
|
-
/* @__PURE__ */ jsx("rect", {
|
|
766
|
-
x: "3",
|
|
767
|
-
y: "7",
|
|
768
|
-
width: "18",
|
|
769
|
-
height: "13",
|
|
770
|
-
rx: "2"
|
|
771
|
-
}),
|
|
772
|
-
/* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
|
|
773
|
-
/* @__PURE__ */ jsx("path", { d: "M9 12v2" }),
|
|
774
|
-
/* @__PURE__ */ jsx("path", { d: "M15 12v2" })
|
|
775
|
-
] }));
|
|
776
|
-
createIcon("CalendarIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
777
|
-
/* @__PURE__ */ jsx("path", { d: "M8 3v4" }),
|
|
778
|
-
/* @__PURE__ */ jsx("path", { d: "M16 3v4" }),
|
|
779
|
-
/* @__PURE__ */ jsx("rect", {
|
|
780
|
-
x: "4",
|
|
781
|
-
y: "5",
|
|
782
|
-
width: "16",
|
|
783
|
-
height: "16",
|
|
784
|
-
rx: "2"
|
|
785
|
-
}),
|
|
786
|
-
/* @__PURE__ */ jsx("path", { d: "M4 10h16" })
|
|
787
|
-
] }));
|
|
788
|
-
createIcon("CheckIcon", /* @__PURE__ */ jsx("path", { d: "m5 12 4 4L19 6" }));
|
|
789
|
-
createIcon("ChevronDownIcon", /* @__PURE__ */ jsx("path", { d: "m6 9 6 6 6-6" }));
|
|
790
|
-
createIcon("ChevronLeftIcon", /* @__PURE__ */ jsx("path", { d: "m15 18-6-6 6-6" }));
|
|
791
|
-
createIcon("ChevronRightIcon", /* @__PURE__ */ jsx("path", { d: "m9 18 6-6-6-6" }));
|
|
792
|
-
createIcon("ChevronUpIcon", /* @__PURE__ */ jsx("path", { d: "m18 15-6-6-6 6" }));
|
|
793
|
-
createIcon("CircleMinusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
794
|
-
cx: "12",
|
|
795
|
-
cy: "12",
|
|
796
|
-
r: "9"
|
|
797
|
-
}), /* @__PURE__ */ jsx("path", { d: "M8 12h8" })] }));
|
|
798
|
-
createIcon("CirclePlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
799
|
-
/* @__PURE__ */ jsx("circle", {
|
|
800
|
-
cx: "12",
|
|
801
|
-
cy: "12",
|
|
802
|
-
r: "9"
|
|
803
|
-
}),
|
|
804
|
-
/* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
|
|
805
|
-
/* @__PURE__ */ jsx("path", { d: "M12 8v8" })
|
|
806
|
-
] }));
|
|
807
|
-
const ClockIcon = createIcon("ClockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
808
|
-
cx: "12",
|
|
809
|
-
cy: "12",
|
|
810
|
-
r: "9"
|
|
811
|
-
}), /* @__PURE__ */ jsx("path", { d: "M12 7v5l3 2" })] }));
|
|
812
|
-
createIcon("CompassIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("circle", {
|
|
813
|
-
cx: "12",
|
|
814
|
-
cy: "12",
|
|
815
|
-
r: "9"
|
|
816
|
-
}), /* @__PURE__ */ jsx("path", { d: "m15 9-2 6-4 2 2-6Z" })] }));
|
|
817
|
-
createIcon("DownloadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
818
|
-
/* @__PURE__ */ jsx("path", { d: "M12 3v12" }),
|
|
819
|
-
/* @__PURE__ */ jsx("path", { d: "m7 10 5 5 5-5" }),
|
|
820
|
-
/* @__PURE__ */ jsx("path", { d: "M5 21h14" })
|
|
821
|
-
] }));
|
|
822
|
-
createIcon("ExternalLinkIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
823
|
-
/* @__PURE__ */ jsx("path", { d: "M14 4h6v6" }),
|
|
824
|
-
/* @__PURE__ */ jsx("path", { d: "m10 14 10-10" }),
|
|
825
|
-
/* @__PURE__ */ jsx("path", { d: "M20 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h5" })
|
|
826
|
-
] }));
|
|
827
|
-
createIcon("FileArchiveIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
828
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
829
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
830
|
-
/* @__PURE__ */ jsx("path", { d: "M10 7h2" }),
|
|
831
|
-
/* @__PURE__ */ jsx("path", { d: "M10 11h2" }),
|
|
832
|
-
/* @__PURE__ */ jsx("path", { d: "M10 15h4v4h-4Z" })
|
|
833
|
-
] }));
|
|
834
|
-
createIcon("FileAudioIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
835
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
836
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
837
|
-
/* @__PURE__ */ jsx("path", { d: "M10 16V10l5-2v6" }),
|
|
838
|
-
/* @__PURE__ */ jsx("circle", {
|
|
839
|
-
cx: "9",
|
|
840
|
-
cy: "17",
|
|
841
|
-
r: "1.5"
|
|
842
|
-
}),
|
|
843
|
-
/* @__PURE__ */ jsx("circle", {
|
|
844
|
-
cx: "15",
|
|
845
|
-
cy: "15",
|
|
846
|
-
r: "1.5"
|
|
847
|
-
})
|
|
848
|
-
] }));
|
|
849
|
-
createIcon("FileSpreadsheetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
850
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
851
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
852
|
-
/* @__PURE__ */ jsx("path", { d: "M8 12h8" }),
|
|
853
|
-
/* @__PURE__ */ jsx("path", { d: "M8 16h8" }),
|
|
854
|
-
/* @__PURE__ */ jsx("path", { d: "M12 10v8" })
|
|
855
|
-
] }));
|
|
856
|
-
createIcon("FileTextIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
857
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2H7a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7Z" }),
|
|
858
|
-
/* @__PURE__ */ jsx("path", { d: "M14 2v5h5" }),
|
|
859
|
-
/* @__PURE__ */ jsx("path", { d: "M9 13h6" }),
|
|
860
|
-
/* @__PURE__ */ jsx("path", { d: "M9 17h6" })
|
|
861
|
-
] }));
|
|
862
|
-
createIcon("Flower2Icon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
863
|
-
/* @__PURE__ */ jsx("circle", {
|
|
864
|
-
cx: "12",
|
|
865
|
-
cy: "12",
|
|
866
|
-
r: "2"
|
|
867
|
-
}),
|
|
868
|
-
/* @__PURE__ */ jsx("path", { d: "M12 10C8 4 16 4 12 10Z" }),
|
|
869
|
-
/* @__PURE__ */ jsx("path", { d: "M14 12c6-4 6 4 0 0Z" }),
|
|
870
|
-
/* @__PURE__ */ jsx("path", { d: "M12 14c4 6-4 6 0 0Z" }),
|
|
871
|
-
/* @__PURE__ */ jsx("path", { d: "M10 12c-6 4-6-4 0 0Z" })
|
|
872
|
-
] }));
|
|
873
|
-
createIcon("GlobeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
874
|
-
/* @__PURE__ */ jsx("circle", {
|
|
875
|
-
cx: "12",
|
|
876
|
-
cy: "12",
|
|
877
|
-
r: "9"
|
|
878
|
-
}),
|
|
879
|
-
/* @__PURE__ */ jsx("path", { d: "M3 12h18" }),
|
|
880
|
-
/* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 1 0 18" }),
|
|
881
|
-
/* @__PURE__ */ jsx("path", { d: "M12 3a14 14 0 0 0 0 18" })
|
|
882
|
-
] }));
|
|
883
|
-
createIcon("GraduationCapIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
884
|
-
/* @__PURE__ */ jsx("path", { d: "m3 8 9-4 9 4-9 4Z" }),
|
|
885
|
-
/* @__PURE__ */ jsx("path", { d: "M7 10v5c3 3 7 3 10 0v-5" }),
|
|
886
|
-
/* @__PURE__ */ jsx("path", { d: "M21 8v6" })
|
|
887
|
-
] }));
|
|
888
|
-
createIcon("HandHeartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
889
|
-
/* @__PURE__ */ jsx("path", { d: "M3 15h4l4 4h5l5-5" }),
|
|
890
|
-
/* @__PURE__ */ jsx("path", { d: "M7 15l3-3h4a2 2 0 0 1 2 2" }),
|
|
891
|
-
/* @__PURE__ */ jsx("path", { d: "M12 8c-2-2-5 1-2 4l2 2 2-2c3-3 0-6-2-4Z" })
|
|
892
|
-
] }));
|
|
893
|
-
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" }));
|
|
894
|
-
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" })] }));
|
|
895
|
-
createIcon("HomeIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
896
|
-
/* @__PURE__ */ jsx("path", { d: "m3 11 9-8 9 8" }),
|
|
897
|
-
/* @__PURE__ */ jsx("path", { d: "M5 10v10h14V10" }),
|
|
898
|
-
/* @__PURE__ */ jsx("path", { d: "M9 20v-6h6v6" })
|
|
899
|
-
] }));
|
|
900
|
-
createIcon("InfoIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
901
|
-
/* @__PURE__ */ jsx("circle", {
|
|
902
|
-
cx: "12",
|
|
903
|
-
cy: "12",
|
|
904
|
-
r: "9"
|
|
905
|
-
}),
|
|
906
|
-
/* @__PURE__ */ jsx("path", { d: "M12 11v6" }),
|
|
907
|
-
/* @__PURE__ */ jsx("path", { d: "M12 7h.01" })
|
|
908
|
-
] }));
|
|
909
|
-
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" })] }));
|
|
910
|
-
createIcon("LightbulbIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
911
|
-
/* @__PURE__ */ jsx("path", { d: "M9 18h6" }),
|
|
912
|
-
/* @__PURE__ */ jsx("path", { d: "M10 22h4" }),
|
|
913
|
-
/* @__PURE__ */ jsx("path", { d: "M8 14a6 6 0 1 1 8 0c-1 1-1 2-1 4H9c0-2 0-3-1-4Z" })
|
|
914
|
-
] }));
|
|
915
|
-
createIcon("LockIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
|
|
916
|
-
x: "5",
|
|
917
|
-
y: "10",
|
|
918
|
-
width: "14",
|
|
919
|
-
height: "10",
|
|
920
|
-
rx: "2"
|
|
921
|
-
}), /* @__PURE__ */ jsx("path", { d: "M8 10V7a4 4 0 0 1 8 0v3" })] }));
|
|
922
|
-
createIcon("MailIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("rect", {
|
|
923
|
-
x: "3",
|
|
924
|
-
y: "5",
|
|
925
|
-
width: "18",
|
|
926
|
-
height: "14",
|
|
927
|
-
rx: "2"
|
|
928
|
-
}), /* @__PURE__ */ jsx("path", { d: "m3 7 9 6 9-6" })] }));
|
|
929
|
-
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", {
|
|
930
|
-
cx: "12",
|
|
931
|
-
cy: "9",
|
|
932
|
-
r: "2.5"
|
|
933
|
-
})] }));
|
|
934
|
-
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" }) }));
|
|
935
|
-
createIcon("MinusIcon", /* @__PURE__ */ jsx("path", { d: "M5 12h14" }));
|
|
936
|
-
createIcon("PackageIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
937
|
-
/* @__PURE__ */ jsx("path", { d: "m12 3 8 4.5v9L12 21l-8-4.5v-9Z" }),
|
|
938
|
-
/* @__PURE__ */ jsx("path", { d: "M12 12 4 7.5" }),
|
|
939
|
-
/* @__PURE__ */ jsx("path", { d: "m12 12 8-4.5" }),
|
|
940
|
-
/* @__PURE__ */ jsx("path", { d: "M12 12v9" })
|
|
941
|
-
] }));
|
|
942
|
-
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" }) }));
|
|
943
|
-
createIcon("PlayIcon", /* @__PURE__ */ jsx("path", { d: "m8 5 11 7-11 7Z" }));
|
|
944
|
-
createIcon("PlusIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M12 5v14" }), /* @__PURE__ */ jsx("path", { d: "M5 12h14" })] }));
|
|
945
|
-
createIcon("ShieldIcon", /* @__PURE__ */ jsx("path", { d: "M12 22s8-4 8-11V5l-8-3-8 3v6c0 7 8 11 8 11Z" }));
|
|
946
|
-
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" })] }));
|
|
947
|
-
createIcon("ShoppingCartIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
948
|
-
/* @__PURE__ */ jsx("circle", {
|
|
949
|
-
cx: "9",
|
|
950
|
-
cy: "20",
|
|
951
|
-
r: "1"
|
|
952
|
-
}),
|
|
953
|
-
/* @__PURE__ */ jsx("circle", {
|
|
954
|
-
cx: "18",
|
|
955
|
-
cy: "20",
|
|
956
|
-
r: "1"
|
|
957
|
-
}),
|
|
958
|
-
/* @__PURE__ */ jsx("path", { d: "M2 3h3l3 12h10l3-8H7" })
|
|
959
|
-
] }));
|
|
960
|
-
createIcon("SmileIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
961
|
-
/* @__PURE__ */ jsx("circle", {
|
|
962
|
-
cx: "12",
|
|
963
|
-
cy: "12",
|
|
964
|
-
r: "9"
|
|
965
|
-
}),
|
|
966
|
-
/* @__PURE__ */ jsx("path", { d: "M8 14s1.5 2 4 2 4-2 4-2" }),
|
|
967
|
-
/* @__PURE__ */ jsx("path", { d: "M9 9h.01" }),
|
|
968
|
-
/* @__PURE__ */ jsx("path", { d: "M15 9h.01" })
|
|
969
|
-
] }));
|
|
970
|
-
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" })] }));
|
|
971
|
-
createIcon("SproutIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
972
|
-
/* @__PURE__ */ jsx("path", { d: "M12 21V10" }),
|
|
973
|
-
/* @__PURE__ */ jsx("path", { d: "M12 10C8 5 4 6 3 10c4 1 7 0 9 0Z" }),
|
|
974
|
-
/* @__PURE__ */ jsx("path", { d: "M12 11c4-5 8-4 9 0-4 1-7 0-9 0Z" })
|
|
975
|
-
] }));
|
|
976
|
-
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" }));
|
|
977
|
-
createIcon("TargetIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
978
|
-
/* @__PURE__ */ jsx("circle", {
|
|
979
|
-
cx: "12",
|
|
980
|
-
cy: "12",
|
|
981
|
-
r: "9"
|
|
982
|
-
}),
|
|
983
|
-
/* @__PURE__ */ jsx("circle", {
|
|
984
|
-
cx: "12",
|
|
985
|
-
cy: "12",
|
|
986
|
-
r: "5"
|
|
987
|
-
}),
|
|
988
|
-
/* @__PURE__ */ jsx("circle", {
|
|
989
|
-
cx: "12",
|
|
990
|
-
cy: "12",
|
|
991
|
-
r: "1"
|
|
992
|
-
})
|
|
993
|
-
] }));
|
|
994
|
-
createIcon("UploadIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
995
|
-
/* @__PURE__ */ jsx("path", { d: "M12 21V9" }),
|
|
996
|
-
/* @__PURE__ */ jsx("path", { d: "m7 14 5-5 5 5" }),
|
|
997
|
-
/* @__PURE__ */ jsx("path", { d: "M5 3h14" })
|
|
998
|
-
] }));
|
|
999
|
-
createIcon("UserRoundCheckIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1000
|
-
/* @__PURE__ */ jsx("circle", {
|
|
1001
|
-
cx: "10",
|
|
1002
|
-
cy: "8",
|
|
1003
|
-
r: "4"
|
|
1004
|
-
}),
|
|
1005
|
-
/* @__PURE__ */ jsx("path", { d: "M3 21a7 7 0 0 1 11.5-5.3" }),
|
|
1006
|
-
/* @__PURE__ */ jsx("path", { d: "m15 19 2 2 4-5" })
|
|
1007
|
-
] }));
|
|
1008
|
-
createIcon("UsersIcon", /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
1009
|
-
/* @__PURE__ */ jsx("circle", {
|
|
1010
|
-
cx: "9",
|
|
1011
|
-
cy: "8",
|
|
1012
|
-
r: "4"
|
|
1013
|
-
}),
|
|
1014
|
-
/* @__PURE__ */ jsx("path", { d: "M2 21a7 7 0 0 1 14 0" }),
|
|
1015
|
-
/* @__PURE__ */ jsx("path", { d: "M17 11a4 4 0 0 0 0-7" }),
|
|
1016
|
-
/* @__PURE__ */ jsx("path", { d: "M22 21a7 7 0 0 0-5-6.7" })
|
|
1017
|
-
] }));
|
|
1018
|
-
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" })] }));
|
|
1019
|
-
createIcon("XIcon", /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx("path", { d: "M18 6 6 18" }), /* @__PURE__ */ jsx("path", { d: "m6 6 12 12" })] }));
|
|
1020
|
-
//#endregion
|
|
1021
717
|
//#region ../blocks/src/system/runtime/nodes/events/shared/EventCompactRow.tsx
|
|
1022
718
|
/**
|
|
1023
719
|
* EventCompactRow Component
|
|
@@ -1033,10 +729,6 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
|
|
|
1033
729
|
const price = formatEventPrice(event);
|
|
1034
730
|
const teacherLine = formatEventTeacherLine(event);
|
|
1035
731
|
const cta = resolveEventCta(event, buttonText);
|
|
1036
|
-
const buttonClass = themeButtonClassName({
|
|
1037
|
-
variant: buttonVariant,
|
|
1038
|
-
size: "sm"
|
|
1039
|
-
});
|
|
1040
732
|
return /* @__PURE__ */ jsxs("article", {
|
|
1041
733
|
className: "event-compact-row",
|
|
1042
734
|
children: [/* @__PURE__ */ jsxs("time", {
|
|
@@ -1073,7 +765,7 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
|
|
|
1073
765
|
children: [
|
|
1074
766
|
event.venue && /* @__PURE__ */ jsxs("span", {
|
|
1075
767
|
className: "event-compact-row-venue",
|
|
1076
|
-
children: [/* @__PURE__ */ jsx(MapPinIcon
|
|
768
|
+
children: [/* @__PURE__ */ jsx(MapPinIcon, { className: "rb-shrink-0" }), event.venue.name]
|
|
1077
769
|
}),
|
|
1078
770
|
teacherLine && /* @__PURE__ */ jsx("span", {
|
|
1079
771
|
className: "event-compact-row-teacher",
|
|
@@ -1100,12 +792,15 @@ const EventCompactRow = ({ event, buttonVariant = "primary", buttonText }) => {
|
|
|
1100
792
|
}), cta.hidden ? /* @__PURE__ */ jsx("span", {
|
|
1101
793
|
className: "event-compact-row-status",
|
|
1102
794
|
children: cta.label
|
|
1103
|
-
}) : /* @__PURE__ */ jsx(
|
|
795
|
+
}) : /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
1104
796
|
href: cta.href,
|
|
1105
797
|
target: cta.external ? "_blank" : void 0,
|
|
1106
798
|
rel: cta.external ? "noopener noreferrer" : void 0,
|
|
1107
|
-
|
|
1108
|
-
|
|
799
|
+
variant: buttonVariant,
|
|
800
|
+
size: "sm",
|
|
801
|
+
extraClassName: "event-compact-row-cta",
|
|
802
|
+
labelClassName: "event-compact-row-cta-label",
|
|
803
|
+
label: cta.label
|
|
1109
804
|
})]
|
|
1110
805
|
})]
|
|
1111
806
|
})]
|
|
@@ -1150,39 +845,33 @@ const EventPaginatedListView = ({ filters, display, events, loading, error, hasM
|
|
|
1150
845
|
children: [/* @__PURE__ */ jsx("p", {
|
|
1151
846
|
className: "status-error rb-caption rb-mb-2",
|
|
1152
847
|
children: "Failed to load more events"
|
|
1153
|
-
}), /* @__PURE__ */ jsx(
|
|
848
|
+
}), /* @__PURE__ */ jsx(ThemedButton, {
|
|
1154
849
|
type: "button",
|
|
1155
850
|
onClick: loadMore,
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
}),
|
|
1160
|
-
children: "Try again"
|
|
851
|
+
variant: display.buttonVariant,
|
|
852
|
+
size: "md",
|
|
853
|
+
label: "Try again"
|
|
1161
854
|
})]
|
|
1162
855
|
}) : null,
|
|
1163
856
|
paginationAction.kind === "loadMore" && hasMore && !error ? /* @__PURE__ */ jsx("div", {
|
|
1164
857
|
className: "rb-mt-8 rb-text-center",
|
|
1165
|
-
children: /* @__PURE__ */ jsx(
|
|
858
|
+
children: /* @__PURE__ */ jsx(ThemedButton, {
|
|
1166
859
|
type: "button",
|
|
1167
860
|
onClick: loadMore,
|
|
1168
861
|
disabled: loading,
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
}),
|
|
1174
|
-
children: loading ? "Loading..." : paginationAction.label
|
|
862
|
+
variant: display.buttonVariant,
|
|
863
|
+
size: "md",
|
|
864
|
+
extraClassName: loading ? "rb-opacity-50 rb-cursor-wait" : null,
|
|
865
|
+
label: loading ? "Loading..." : paginationAction.label
|
|
1175
866
|
})
|
|
1176
867
|
}) : null,
|
|
1177
868
|
paginationAction.kind === "seeAllLink" && hasMore ? /* @__PURE__ */ jsx("div", {
|
|
1178
869
|
className: "rb-mt-8 rb-text-center",
|
|
1179
|
-
children: /* @__PURE__ */ jsx(
|
|
870
|
+
children: /* @__PURE__ */ jsx(ThemedButtonLink, {
|
|
1180
871
|
href: paginationAction.href,
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
}),
|
|
1185
|
-
children: paginationAction.label
|
|
872
|
+
variant: display.buttonVariant,
|
|
873
|
+
size: "md",
|
|
874
|
+
label: paginationAction.label
|
|
1186
875
|
})
|
|
1187
876
|
}) : null
|
|
1188
877
|
] }),
|
|
@@ -1288,8 +977,12 @@ function getEventsKey(events) {
|
|
|
1288
977
|
* });
|
|
1289
978
|
* ```
|
|
1290
979
|
*/
|
|
1291
|
-
function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialOnMount = false, initialFilters, filters, pageSize = 12
|
|
1292
|
-
const { getPublicEvents } = useBlockApi();
|
|
980
|
+
function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialOnMount = false, initialFilters, filters, pageSize = 12 }) {
|
|
981
|
+
const { getPublicEvents, config } = useBlockApi();
|
|
982
|
+
const stage = getBlockApiReadStage(config);
|
|
983
|
+
const readScope = `${config.siteId ?? ""}:${stage}`;
|
|
984
|
+
const previousReadScope = useRef(readScope);
|
|
985
|
+
const readScopeChanged = previousReadScope.current !== readScope;
|
|
1293
986
|
const initialFiltersKey = getEventRuntimeFiltersKey(initialFilters);
|
|
1294
987
|
const filtersKey = getEventRuntimeFiltersKey(filters);
|
|
1295
988
|
const filtersMatchInitial = filtersKey === initialFiltersKey;
|
|
@@ -1344,7 +1037,6 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1344
1037
|
afterStartsAt: lastEvent ? lastEvent.startsAt : void 0,
|
|
1345
1038
|
afterId: lastEvent ? lastEvent.occurrenceId : void 0,
|
|
1346
1039
|
limit: pageSize,
|
|
1347
|
-
stage,
|
|
1348
1040
|
detailLevel: "listing",
|
|
1349
1041
|
eventSurface,
|
|
1350
1042
|
eventPresets: eventPresets ?? void 0,
|
|
@@ -1387,6 +1079,25 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1387
1079
|
const loadMore = useCallback(() => {
|
|
1388
1080
|
fetchPage({ reset: false });
|
|
1389
1081
|
}, [fetchPage]);
|
|
1082
|
+
useEffect(() => {
|
|
1083
|
+
if (previousReadScope.current === readScope) return;
|
|
1084
|
+
previousReadScope.current = readScope;
|
|
1085
|
+
requestIdRef.current += 1;
|
|
1086
|
+
eventsRef.current = [];
|
|
1087
|
+
loadingRef.current = false;
|
|
1088
|
+
hasMoreRef.current = true;
|
|
1089
|
+
dispatchLoadState({
|
|
1090
|
+
type: "synced",
|
|
1091
|
+
events: [],
|
|
1092
|
+
pageSize
|
|
1093
|
+
});
|
|
1094
|
+
if (seriesIds !== "") fetchPage({ reset: true });
|
|
1095
|
+
}, [
|
|
1096
|
+
readScope,
|
|
1097
|
+
fetchPage,
|
|
1098
|
+
pageSize,
|
|
1099
|
+
seriesIds
|
|
1100
|
+
]);
|
|
1390
1101
|
const initialFetchAttemptKeyRef = useRef(null);
|
|
1391
1102
|
useEffect(() => {
|
|
1392
1103
|
if (!fetchInitialOnMount || seriesIds === "") return;
|
|
@@ -1445,8 +1156,8 @@ function useEventPagination({ siteId: _siteId, initialEvents = [], fetchInitialO
|
|
|
1445
1156
|
pageSize
|
|
1446
1157
|
]);
|
|
1447
1158
|
return {
|
|
1448
|
-
events,
|
|
1449
|
-
loading,
|
|
1159
|
+
events: readScopeChanged ? [] : events,
|
|
1160
|
+
loading: readScopeChanged || loading,
|
|
1450
1161
|
error,
|
|
1451
1162
|
hasMore,
|
|
1452
1163
|
loadMore
|
|
@@ -4,13 +4,13 @@ import React from "react";
|
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region src/preview-next/client/runtime.tsx
|
|
6
6
|
const LazySdkPreviewMode = React.lazy(async () => {
|
|
7
|
-
return { default: (await import("../../SdkPreviewModeRuntime-
|
|
7
|
+
return { default: (await import("../../SdkPreviewModeRuntime-BJolUbr1.mjs").then((n) => n.n)).SdkPreviewModeRuntime };
|
|
8
8
|
});
|
|
9
9
|
const LazyPreviewShell = React.lazy(async () => {
|
|
10
|
-
return { default: (await import("../../sdk-runtime-
|
|
10
|
+
return { default: (await import("../../sdk-runtime-DFJlQt3q.mjs")).PreviewShell };
|
|
11
11
|
});
|
|
12
12
|
const LazyPreviewShellLayout = React.lazy(async () => {
|
|
13
|
-
return { default: (await import("../../sdk-runtime-
|
|
13
|
+
return { default: (await import("../../sdk-runtime-DFJlQt3q.mjs")).PreviewShellLayout };
|
|
14
14
|
});
|
|
15
15
|
function SdkPreviewMode(props) {
|
|
16
16
|
return /* @__PURE__ */ jsx(React.Suspense, {
|
|
@@ -139,6 +139,14 @@
|
|
|
139
139
|
margin: var(--rt-space-y, 0.75rem) 0;
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
+
:where(.builder-editor-content) :where(li > p:first-child) {
|
|
143
|
+
margin-top: 0;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
:where(.builder-editor-content) :where(li > p:last-child) {
|
|
147
|
+
margin-bottom: 0;
|
|
148
|
+
}
|
|
149
|
+
|
|
142
150
|
:where(.builder-editor-content > :first-child),
|
|
143
151
|
:where(.builder-editor-content .ProseMirror > :first-child) {
|
|
144
152
|
margin-top: 0;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./PreviewQueryProvider-BCYICImX.mjs";
|
|
3
|
-
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-
|
|
3
|
+
import { i as PreviewShellLayout, r as PreviewShell } from "./SdkPreviewModeRuntime-BJolUbr1.mjs";
|
|
4
4
|
export { PreviewShell, PreviewShellLayout };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { Ha as cn, za as Primitive } from "./SiteChromeCustomizeContext-
|
|
2
|
+
import { Ha as cn, za as Primitive } from "./SiteChromeCustomizeContext-CKgEpoxi.mjs";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
//#region ../../node_modules/.pnpm/@radix-ui+react-separator@1.1.10_@types+react-dom@19.2.3_@types+react@19.2.17__@types+r_adfab47c9055efb8b0c4b77a2b96b053/node_modules/@radix-ui/react-separator/dist/index.mjs
|