@riverbankcms/sdk 0.60.3 → 0.60.6
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/_dts/api/src/bookingVerticals.d.ts +1 -0
- package/dist/_dts/api/src/siteManagementEndpoints.d.ts +3 -39
- package/dist/_dts/api/src/siteRuntimeEndpoints.d.ts +2 -0
- package/dist/_dts/blocks/src/system/node/fragments/ctaButton.d.ts +2 -0
- package/dist/_dts/blocks/src/system/runtime/shared/themedButtonClass.d.ts +11 -0
- package/dist/_dts/content-editor/src/ui/editorUiStore.d.ts +10 -2
- package/dist/_dts/core/src/participants.d.ts +32 -1
- package/dist/_dts/core/src/rectification.d.ts +79 -0
- package/dist/_dts/db/src/generated/supabase/database.types.d.ts +6 -6
- package/dist/_dts/preview-next/src/client/preview/StyleConfigurator.state.d.ts +17 -15
- package/dist/_dts/sdk/src/client/types.d.ts +1 -0
- package/dist/_dts/sdk/src/version.d.ts +1 -1
- package/dist/_dts/theme-core/src/buttons/personalities/brushed-wash.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/confident-chip.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/editorial-link.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/index.d.ts +86 -5
- package/dist/_dts/theme-core/src/buttons/personalities/ink-stamp.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/pebble.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/soft-pill.d.ts +7 -2
- package/dist/_dts/theme-core/src/buttons/personalities/types.d.ts +10 -10
- package/dist/_dts/theme-core/src/palette/variants/brand-led.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/high-contrast.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/index.d.ts +200 -4
- package/dist/_dts/theme-core/src/palette/variants/soft-natural.d.ts +33 -9
- package/dist/_dts/theme-core/src/palette/variants/types.d.ts +10 -10
- package/dist/_dts/theme-core/src/palette/variants/warm-neutral.d.ts +33 -9
- package/dist/_dts/theme-core/src/site-styles/curatedChoices.d.ts +27 -0
- package/dist/_dts/theme-core/src/site-styles/curatedSiteStyles.d.ts +48 -194
- package/dist/_dts/theme-core/src/site-styles/index.d.ts +2 -1
- package/dist/_dts/theme-core/src/site-styles/previewCompiler.d.ts +12 -14
- package/dist/_dts/theme-core/src/site-styles/styleTags.d.ts +46 -0
- package/dist/_dts/ui/src/palette/ColorChooserDialog.d.ts +47 -0
- package/dist/_dts/ui/src/palette/ColorSlotButton.d.ts +15 -0
- package/dist/_dts/ui/src/palette/ColorSwatchButton.d.ts +15 -0
- package/dist/_dts/ui/src/palette/PaletteTokenEditor.d.ts +50 -0
- package/dist/_dts/ui/src/palette/hex.d.ts +23 -0
- package/dist/_dts/ui/src/palette/index.d.ts +14 -0
- package/dist/cli/index.mjs +1023 -923
- package/dist/client/client.mjs +3410 -3221
- package/dist/client/hooks.mjs +1625 -1564
- package/dist/client/rendering/client.mjs +132 -37
- package/dist/client/rendering/islands.mjs +91 -30
- package/dist/client/rendering.mjs +1237 -1049
- package/dist/preview-next/client/runtime.mjs +3095 -2736
- package/dist/server/components.mjs +2381 -2255
- package/dist/server/config-validation.mjs +1625 -1564
- package/dist/server/config.mjs +1625 -1564
- package/dist/server/data.mjs +1625 -1564
- package/dist/server/index.mjs +4 -3
- package/dist/server/next.mjs +3233 -3106
- package/dist/server/page-converter.mjs +1625 -1564
- package/dist/server/prebuild.mjs +1 -1
- package/dist/server/rendering/server.mjs +2381 -2255
- package/dist/server/rendering.mjs +2381 -2255
- package/dist/server/routing.mjs +2340 -2271
- package/dist/server/server.mjs +1629 -1567
- package/dist/server/theme-bridge.mjs +130 -126
- package/dist/server/theme.mjs +131 -129
- package/package.json +1 -1
- package/dist/_dts/theme-core/src/site-styles/compatibility.d.ts +0 -109
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
5
|
-
get: (a, b2) => (typeof require !== "undefined" ? require : a)[b2]
|
|
6
|
-
}) : x)(function(x) {
|
|
7
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
|
-
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
9
|
-
});
|
|
10
4
|
var __esm = (fn2, res) => function __init() {
|
|
11
5
|
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
|
12
6
|
};
|
|
@@ -511,7 +505,10 @@ function createBlockApi(config) {
|
|
|
511
505
|
url = appendQuery(url, queryParams);
|
|
512
506
|
}
|
|
513
507
|
const authHeaders = getAuthHeaders(selectedAuth);
|
|
514
|
-
const headers = {
|
|
508
|
+
const headers = {
|
|
509
|
+
Accept: "application/json",
|
|
510
|
+
...authHeaders
|
|
511
|
+
};
|
|
515
512
|
if (body !== void 0) {
|
|
516
513
|
headers["Content-Type"] = "application/json";
|
|
517
514
|
}
|
|
@@ -1830,11 +1827,11 @@ var init_presets = __esm({
|
|
|
1830
1827
|
}
|
|
1831
1828
|
});
|
|
1832
1829
|
|
|
1833
|
-
// ../theme-core/src/site-styles/
|
|
1830
|
+
// ../theme-core/src/site-styles/styleTags.ts
|
|
1834
1831
|
import { z as z2 } from "zod";
|
|
1835
1832
|
var STYLE_AXIS_VALUES, styleTagsSchema;
|
|
1836
|
-
var
|
|
1837
|
-
"../theme-core/src/site-styles/
|
|
1833
|
+
var init_styleTags = __esm({
|
|
1834
|
+
"../theme-core/src/site-styles/styleTags.ts"() {
|
|
1838
1835
|
"use strict";
|
|
1839
1836
|
STYLE_AXIS_VALUES = {
|
|
1840
1837
|
tone: ["minimal", "classic", "bold"],
|
|
@@ -1873,7 +1870,7 @@ var init_types2 = __esm({
|
|
|
1873
1870
|
"../theme-core/src/buttons/personalities/types.ts"() {
|
|
1874
1871
|
"use strict";
|
|
1875
1872
|
init_types();
|
|
1876
|
-
|
|
1873
|
+
init_styleTags();
|
|
1877
1874
|
buttonPersonalityIdSchema = z3.string().min(1).transform((value) => asButtonPersonalityId(value));
|
|
1878
1875
|
buttonPersonalitySchema = z3.object({
|
|
1879
1876
|
id: buttonPersonalityIdSchema,
|
|
@@ -3126,6 +3123,7 @@ var init_assertNever = __esm({
|
|
|
3126
3123
|
var init_participants = __esm({
|
|
3127
3124
|
"../core/src/participants.ts"() {
|
|
3128
3125
|
"use strict";
|
|
3126
|
+
init_branded();
|
|
3129
3127
|
init_result();
|
|
3130
3128
|
}
|
|
3131
3129
|
});
|
|
@@ -4346,7 +4344,7 @@ function getServerStorage() {
|
|
|
4346
4344
|
_serverStorageChecked = true;
|
|
4347
4345
|
try {
|
|
4348
4346
|
const globalWithNonWebpackRequire = globalThis;
|
|
4349
|
-
const nonWebpackRequire = typeof globalWithNonWebpackRequire.__non_webpack_require__ === "function" ? globalWithNonWebpackRequire.__non_webpack_require__ :
|
|
4347
|
+
const nonWebpackRequire = typeof globalWithNonWebpackRequire.__non_webpack_require__ === "function" ? globalWithNonWebpackRequire.__non_webpack_require__ : new Function("id", "return require(id)");
|
|
4350
4348
|
const asyncHooks = nonWebpackRequire("async_hooks");
|
|
4351
4349
|
const AsyncLocalStorage = asyncHooks.AsyncLocalStorage;
|
|
4352
4350
|
if (AsyncLocalStorage) {
|
|
@@ -6137,6 +6135,19 @@ var init_media2 = __esm({
|
|
|
6137
6135
|
}
|
|
6138
6136
|
});
|
|
6139
6137
|
|
|
6138
|
+
// ../blocks/src/system/runtime/shared/themedButtonClass.ts
|
|
6139
|
+
function themedButtonClass(spec) {
|
|
6140
|
+
const { variant, size, extraClassName } = spec;
|
|
6141
|
+
const normalizedVariant = variant.trim();
|
|
6142
|
+
const variantClasses = normalizedVariant ? [normalizedVariant, `button-${normalizedVariant}`] : [];
|
|
6143
|
+
return [...variantClasses, `btn-${size}`, extraClassName].filter(Boolean).join(" ");
|
|
6144
|
+
}
|
|
6145
|
+
var init_themedButtonClass = __esm({
|
|
6146
|
+
"../blocks/src/system/runtime/shared/themedButtonClass.ts"() {
|
|
6147
|
+
"use strict";
|
|
6148
|
+
}
|
|
6149
|
+
});
|
|
6150
|
+
|
|
6140
6151
|
// ../blocks/src/system/runtime/nodes/file-download.tsx
|
|
6141
6152
|
import { jsx as jsx13, jsxs } from "react/jsx-runtime";
|
|
6142
6153
|
function isDownloadableMediaType(type) {
|
|
@@ -6210,7 +6221,11 @@ function FileDownloadNode({
|
|
|
6210
6221
|
{
|
|
6211
6222
|
href,
|
|
6212
6223
|
download: filename,
|
|
6213
|
-
className:
|
|
6224
|
+
className: themedButtonClass({
|
|
6225
|
+
variant,
|
|
6226
|
+
size: "md",
|
|
6227
|
+
extraClassName: "rb-inline-flex rb-shrink-0 rb-items-center rb-justify-center rb-gap-2"
|
|
6228
|
+
}),
|
|
6214
6229
|
children: [
|
|
6215
6230
|
/* @__PURE__ */ jsx13(Download, { "aria-hidden": "true" }),
|
|
6216
6231
|
label
|
|
@@ -6226,6 +6241,7 @@ var init_file_download = __esm({
|
|
|
6226
6241
|
init_lucide_react();
|
|
6227
6242
|
init_colorStyles();
|
|
6228
6243
|
init_media2();
|
|
6244
|
+
init_themedButtonClass();
|
|
6229
6245
|
init_media();
|
|
6230
6246
|
FILE_DOWNLOAD_BUTTON_VARIANTS = ["primary", "secondary", "outline", "link"];
|
|
6231
6247
|
}
|
|
@@ -9675,6 +9691,7 @@ var init_EventCard = __esm({
|
|
|
9675
9691
|
init_EventCardIcons();
|
|
9676
9692
|
init_eventCapacity();
|
|
9677
9693
|
init_utils();
|
|
9694
|
+
init_themedButtonClass();
|
|
9678
9695
|
EventCard = ({
|
|
9679
9696
|
event,
|
|
9680
9697
|
cardVariant = "default",
|
|
@@ -9700,7 +9717,7 @@ var init_EventCard = __esm({
|
|
|
9700
9717
|
const isSoldOut = cta.hidden;
|
|
9701
9718
|
const { available: spotsLeft } = getEventAvailability(event);
|
|
9702
9719
|
const cardClass = `card-${cardVariant}`;
|
|
9703
|
-
const buttonClass =
|
|
9720
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
9704
9721
|
const title = event.title;
|
|
9705
9722
|
const summary = event.presentation?.summary ?? event.description;
|
|
9706
9723
|
const image = event.presentation?.image ?? null;
|
|
@@ -9782,6 +9799,7 @@ var init_EventCompactRow = __esm({
|
|
|
9782
9799
|
"use strict";
|
|
9783
9800
|
init_utils();
|
|
9784
9801
|
init_EventCardIcons();
|
|
9802
|
+
init_themedButtonClass();
|
|
9785
9803
|
EventCompactRow = ({
|
|
9786
9804
|
event,
|
|
9787
9805
|
buttonVariant = "primary",
|
|
@@ -9793,7 +9811,7 @@ var init_EventCompactRow = __esm({
|
|
|
9793
9811
|
const price = formatEventPrice(event);
|
|
9794
9812
|
const teacherLine = formatEventTeacherLine(event);
|
|
9795
9813
|
const cta = resolveEventCta(event, buttonText);
|
|
9796
|
-
const buttonClass =
|
|
9814
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "sm" });
|
|
9797
9815
|
return /* @__PURE__ */ jsxs17("div", { className: "event-compact-row", children: [
|
|
9798
9816
|
/* @__PURE__ */ jsxs17("div", { className: "event-compact-row-content", children: [
|
|
9799
9817
|
/* @__PURE__ */ jsxs17("div", { className: "event-compact-row-top", children: [
|
|
@@ -9865,6 +9883,7 @@ var init_EventSpotlight = __esm({
|
|
|
9865
9883
|
"../blocks/src/system/runtime/nodes/events/EventSpotlight.tsx"() {
|
|
9866
9884
|
"use strict";
|
|
9867
9885
|
init_shared3();
|
|
9886
|
+
init_themedButtonClass();
|
|
9868
9887
|
EventSpotlight = ({
|
|
9869
9888
|
events,
|
|
9870
9889
|
layout = "grid",
|
|
@@ -9886,7 +9905,7 @@ var init_EventSpotlight = __esm({
|
|
|
9886
9905
|
}
|
|
9887
9906
|
const containerClass = getContainerClass(layout, columns);
|
|
9888
9907
|
const cardOrientation = getCardOrientation(layout);
|
|
9889
|
-
const buttonClass =
|
|
9908
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
9890
9909
|
return /* @__PURE__ */ jsxs19("div", { className: `event-spotlight-section ${className || ""}`, "data-block": "event-spotlight", children: [
|
|
9891
9910
|
/* @__PURE__ */ jsx33("div", { className: `event-spotlight ${containerClass}`, children: normalizedEvents.map((event) => /* @__PURE__ */ jsx33(
|
|
9892
9911
|
EventCard,
|
|
@@ -11251,7 +11270,8 @@ function ctaButton(opts) {
|
|
|
11251
11270
|
},
|
|
11252
11271
|
size: {
|
|
11253
11272
|
$bind: {
|
|
11254
|
-
from: sizePath
|
|
11273
|
+
from: sizePath,
|
|
11274
|
+
fallback: opts?.sizeFallback ?? "md"
|
|
11255
11275
|
}
|
|
11256
11276
|
},
|
|
11257
11277
|
...opts?.className ? { className: opts.className } : {},
|
|
@@ -20863,7 +20883,10 @@ function renderCalendarGrid(display) {
|
|
|
20863
20883
|
"button",
|
|
20864
20884
|
{
|
|
20865
20885
|
type: "button",
|
|
20866
|
-
className:
|
|
20886
|
+
className: themedButtonClass({
|
|
20887
|
+
variant: display.buttonVariant,
|
|
20888
|
+
size: "sm"
|
|
20889
|
+
}),
|
|
20867
20890
|
children: "Today"
|
|
20868
20891
|
}
|
|
20869
20892
|
)
|
|
@@ -20946,7 +20969,10 @@ function renderTimetableSsr(display) {
|
|
|
20946
20969
|
"button",
|
|
20947
20970
|
{
|
|
20948
20971
|
type: "button",
|
|
20949
|
-
className:
|
|
20972
|
+
className: themedButtonClass({
|
|
20973
|
+
variant: display.buttonVariant,
|
|
20974
|
+
size: "sm"
|
|
20975
|
+
}),
|
|
20950
20976
|
children: "Today"
|
|
20951
20977
|
}
|
|
20952
20978
|
)
|
|
@@ -21071,6 +21097,7 @@ var init_EventCalendar_server = __esm({
|
|
|
21071
21097
|
init_renderEventListItem();
|
|
21072
21098
|
init_utils();
|
|
21073
21099
|
init_timetableModel();
|
|
21100
|
+
init_themedButtonClass();
|
|
21074
21101
|
EventCalendarSSR = (props2) => {
|
|
21075
21102
|
const islandProps = buildEventCalendarInteractiveIslandProps(props2);
|
|
21076
21103
|
const display = islandProps.render.display;
|
|
@@ -21201,6 +21228,7 @@ var init_form_server = __esm({
|
|
|
21201
21228
|
"use strict";
|
|
21202
21229
|
init_clsx();
|
|
21203
21230
|
init_ssr();
|
|
21231
|
+
init_themedButtonClass();
|
|
21204
21232
|
init_form_interactive();
|
|
21205
21233
|
FormNodeSSR = ({
|
|
21206
21234
|
blockId,
|
|
@@ -21334,7 +21362,18 @@ var init_form_server = __esm({
|
|
|
21334
21362
|
}
|
|
21335
21363
|
return renderField(group.field);
|
|
21336
21364
|
}),
|
|
21337
|
-
/* @__PURE__ */ jsx46("div", { className: "fb-actions", children: /* @__PURE__ */ jsx46("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx46(
|
|
21365
|
+
/* @__PURE__ */ jsx46("div", { className: "fb-actions", children: /* @__PURE__ */ jsx46("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx46(
|
|
21366
|
+
"button",
|
|
21367
|
+
{
|
|
21368
|
+
type: "submit",
|
|
21369
|
+
className: themedButtonClass({
|
|
21370
|
+
variant: "primary",
|
|
21371
|
+
size: "md",
|
|
21372
|
+
extraClassName: "rb-w-full rb-sm-w-auto"
|
|
21373
|
+
}),
|
|
21374
|
+
children: display.submitLabel
|
|
21375
|
+
}
|
|
21376
|
+
) }) })
|
|
21338
21377
|
]
|
|
21339
21378
|
}
|
|
21340
21379
|
)
|
|
@@ -21416,7 +21455,14 @@ function NewsletterFormSSR({
|
|
|
21416
21455
|
),
|
|
21417
21456
|
/* @__PURE__ */ jsxs32("div", { className: "newsletter-form-fields", children: [
|
|
21418
21457
|
fields.map(renderField),
|
|
21419
|
-
/* @__PURE__ */ jsx47("div", { className: "newsletter-submit", children: /* @__PURE__ */ jsx47(
|
|
21458
|
+
/* @__PURE__ */ jsx47("div", { className: "newsletter-submit", children: /* @__PURE__ */ jsx47(
|
|
21459
|
+
"button",
|
|
21460
|
+
{
|
|
21461
|
+
type: "submit",
|
|
21462
|
+
className: themedButtonClass({ variant: "primary", size: "md" }),
|
|
21463
|
+
children: display.buttonLabel
|
|
21464
|
+
}
|
|
21465
|
+
) })
|
|
21420
21466
|
] }),
|
|
21421
21467
|
display.privacyNote && /* @__PURE__ */ jsx47("p", { className: "newsletter-privacy-note", children: display.privacyNote })
|
|
21422
21468
|
] })
|
|
@@ -21430,6 +21476,7 @@ var init_newsletter_form_server = __esm({
|
|
|
21430
21476
|
"use strict";
|
|
21431
21477
|
init_clsx();
|
|
21432
21478
|
init_ssr();
|
|
21479
|
+
init_themedButtonClass();
|
|
21433
21480
|
init_newsletter_form_interactive();
|
|
21434
21481
|
newsletter_form_server_default = NewsletterFormSSR;
|
|
21435
21482
|
}
|
|
@@ -29737,6 +29784,7 @@ var init_PaymentSelectionStep = __esm({
|
|
|
29737
29784
|
init_lucide_react();
|
|
29738
29785
|
init_utils3();
|
|
29739
29786
|
init_spinner();
|
|
29787
|
+
init_themedButtonClass();
|
|
29740
29788
|
init_CheckIcon2();
|
|
29741
29789
|
init_SelectableOptionCard();
|
|
29742
29790
|
PaymentSelectionStep = ({
|
|
@@ -29837,7 +29885,7 @@ var init_PaymentSelectionStep = __esm({
|
|
|
29837
29885
|
"button",
|
|
29838
29886
|
{
|
|
29839
29887
|
type: "button",
|
|
29840
|
-
className: "primary
|
|
29888
|
+
className: themedButtonClass({ variant: "primary", size: "md" }),
|
|
29841
29889
|
disabled: !email.trim(),
|
|
29842
29890
|
onClick: onRequestLogin,
|
|
29843
29891
|
children: "Email me a login link"
|
|
@@ -31561,7 +31609,7 @@ function EventRegistrationWizard(props2) {
|
|
|
31561
31609
|
} = props2;
|
|
31562
31610
|
const maxTicketsNum = parseInt(maxTickets, 10) || 5;
|
|
31563
31611
|
const showSpamProtection = spamProtectionEnabled ?? isSpamProtectionEnabled();
|
|
31564
|
-
const buttonClass =
|
|
31612
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
31565
31613
|
const wizard = useEventRegistrationWizard({
|
|
31566
31614
|
anchorId: EVENT_REGISTRATION_ANCHOR_ID,
|
|
31567
31615
|
occurrenceContext: occurrenceContext ?? null,
|
|
@@ -31698,6 +31746,7 @@ var init_EventRegistrationWizard = __esm({
|
|
|
31698
31746
|
init_useEventRegistrationWizard();
|
|
31699
31747
|
init_MagicLinkForm();
|
|
31700
31748
|
init_spinner();
|
|
31749
|
+
init_themedButtonClass();
|
|
31701
31750
|
init_event_registration2();
|
|
31702
31751
|
EVENT_REGISTRATION_ANCHOR_ID = "event-registration";
|
|
31703
31752
|
EVENT_PORTAL_AUTH_COPY = {
|
|
@@ -32143,7 +32192,7 @@ function ErrorStep2({
|
|
|
32143
32192
|
buttonVariant = "primary",
|
|
32144
32193
|
onRetry
|
|
32145
32194
|
}) {
|
|
32146
|
-
const buttonClass =
|
|
32195
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
32147
32196
|
return /* @__PURE__ */ jsxs73("div", { className: "cr-error", role: "alert", children: [
|
|
32148
32197
|
/* @__PURE__ */ jsx100(StateIcon, { variant: "error", children: /* @__PURE__ */ jsx100(CrossIcon, {}) }),
|
|
32149
32198
|
/* @__PURE__ */ jsx100("h3", { className: "cr-error__title", children: "Enrollment Failed" }),
|
|
@@ -32155,6 +32204,7 @@ var init_ErrorStep2 = __esm({
|
|
|
32155
32204
|
"../blocks/src/system/runtime/nodes/course-registration/ErrorStep.tsx"() {
|
|
32156
32205
|
"use strict";
|
|
32157
32206
|
init_shared6();
|
|
32207
|
+
init_themedButtonClass();
|
|
32158
32208
|
}
|
|
32159
32209
|
});
|
|
32160
32210
|
|
|
@@ -32166,7 +32216,7 @@ function VerifyingTimeoutStep2({
|
|
|
32166
32216
|
onCheckAgain,
|
|
32167
32217
|
supportEmail
|
|
32168
32218
|
}) {
|
|
32169
|
-
const buttonClass =
|
|
32219
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
32170
32220
|
return /* @__PURE__ */ jsxs74("div", { className: "cr-error", role: "alert", children: [
|
|
32171
32221
|
/* @__PURE__ */ jsx101(StateIcon, { variant: "warning", children: /* @__PURE__ */ jsx101(ClockIcon, {}) }),
|
|
32172
32222
|
/* @__PURE__ */ jsx101("h3", { className: "cr-error__title", children: "Payment Verification Taking Longer" }),
|
|
@@ -32183,6 +32233,7 @@ var init_VerifyingTimeoutStep2 = __esm({
|
|
|
32183
32233
|
"../blocks/src/system/runtime/nodes/course-registration/VerifyingTimeoutStep.tsx"() {
|
|
32184
32234
|
"use strict";
|
|
32185
32235
|
init_shared6();
|
|
32236
|
+
init_themedButtonClass();
|
|
32186
32237
|
}
|
|
32187
32238
|
});
|
|
32188
32239
|
|
|
@@ -32194,7 +32245,7 @@ function PaymentFailedStep2({
|
|
|
32194
32245
|
buttonVariant = "primary",
|
|
32195
32246
|
onRetry
|
|
32196
32247
|
}) {
|
|
32197
|
-
const buttonClass =
|
|
32248
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
32198
32249
|
return /* @__PURE__ */ jsxs75("div", { className: "cr-payment-failed", role: "alert", children: [
|
|
32199
32250
|
/* @__PURE__ */ jsx102(StateIcon, { variant: "error", children: /* @__PURE__ */ jsx102(CrossIcon, {}) }),
|
|
32200
32251
|
/* @__PURE__ */ jsx102("h3", { className: "cr-payment-failed__title", children: "Payment Failed" }),
|
|
@@ -32206,6 +32257,7 @@ var init_PaymentFailedStep2 = __esm({
|
|
|
32206
32257
|
"../blocks/src/system/runtime/nodes/course-registration/PaymentFailedStep.tsx"() {
|
|
32207
32258
|
"use strict";
|
|
32208
32259
|
init_shared6();
|
|
32260
|
+
init_themedButtonClass();
|
|
32209
32261
|
}
|
|
32210
32262
|
});
|
|
32211
32263
|
|
|
@@ -33198,7 +33250,7 @@ function CourseRegistrationWizard(props2) {
|
|
|
33198
33250
|
handleRetry,
|
|
33199
33251
|
handleBookingModeChange
|
|
33200
33252
|
} = useCourseRegistrationWizard(props2);
|
|
33201
|
-
const buttonClass =
|
|
33253
|
+
const buttonClass = themedButtonClass({ variant: buttonVariant, size: "md" });
|
|
33202
33254
|
if (scopedCourses.length === 0) {
|
|
33203
33255
|
return /* @__PURE__ */ jsx106(
|
|
33204
33256
|
"div",
|
|
@@ -33608,6 +33660,7 @@ var init_CourseRegistrationWizard = __esm({
|
|
|
33608
33660
|
init_PaymentFailedStep2();
|
|
33609
33661
|
init_VerifyingTimeoutStep2();
|
|
33610
33662
|
init_spinner();
|
|
33663
|
+
init_themedButtonClass();
|
|
33611
33664
|
}
|
|
33612
33665
|
});
|
|
33613
33666
|
|
|
@@ -39661,6 +39714,7 @@ var init_EventPaginatedListView_client = __esm({
|
|
|
39661
39714
|
init_EventCompactRow();
|
|
39662
39715
|
init_EmptyState();
|
|
39663
39716
|
init_EventListing_view();
|
|
39717
|
+
init_themedButtonClass();
|
|
39664
39718
|
EventPaginatedListView = ({
|
|
39665
39719
|
filters,
|
|
39666
39720
|
display,
|
|
@@ -39703,7 +39757,10 @@ var init_EventPaginatedListView_client = __esm({
|
|
|
39703
39757
|
{
|
|
39704
39758
|
type: "button",
|
|
39705
39759
|
onClick: loadMore,
|
|
39706
|
-
className:
|
|
39760
|
+
className: themedButtonClass({
|
|
39761
|
+
variant: display.buttonVariant,
|
|
39762
|
+
size: "md"
|
|
39763
|
+
}),
|
|
39707
39764
|
children: "Try again"
|
|
39708
39765
|
}
|
|
39709
39766
|
)
|
|
@@ -39714,11 +39771,25 @@ var init_EventPaginatedListView_client = __esm({
|
|
|
39714
39771
|
type: "button",
|
|
39715
39772
|
onClick: loadMore,
|
|
39716
39773
|
disabled: loading,
|
|
39717
|
-
className:
|
|
39774
|
+
className: themedButtonClass({
|
|
39775
|
+
variant: display.buttonVariant,
|
|
39776
|
+
size: "md",
|
|
39777
|
+
extraClassName: loading ? "rb-opacity-50 rb-cursor-wait" : null
|
|
39778
|
+
}),
|
|
39718
39779
|
children: loading ? "Loading..." : loadMoreText
|
|
39719
39780
|
}
|
|
39720
39781
|
) }) : null,
|
|
39721
|
-
paginationMode === "seeAllLink" && seeAllUrl && hasMore ? /* @__PURE__ */ jsx135("div", { className: "rb-mt-8 rb-text-center", children: /* @__PURE__ */ jsx135(
|
|
39782
|
+
paginationMode === "seeAllLink" && seeAllUrl && hasMore ? /* @__PURE__ */ jsx135("div", { className: "rb-mt-8 rb-text-center", children: /* @__PURE__ */ jsx135(
|
|
39783
|
+
"a",
|
|
39784
|
+
{
|
|
39785
|
+
href: seeAllUrl,
|
|
39786
|
+
className: themedButtonClass({
|
|
39787
|
+
variant: display.buttonVariant,
|
|
39788
|
+
size: "md"
|
|
39789
|
+
}),
|
|
39790
|
+
children: loadMoreText
|
|
39791
|
+
}
|
|
39792
|
+
) }) : null
|
|
39722
39793
|
] }),
|
|
39723
39794
|
renderEventCard: (event) => display.listLayout === "compact" ? /* @__PURE__ */ jsx135(
|
|
39724
39795
|
EventCompactRow,
|
|
@@ -41062,6 +41133,7 @@ var init_EventCombined_client = __esm({
|
|
|
41062
41133
|
init_EventModalContext();
|
|
41063
41134
|
init_EventModals();
|
|
41064
41135
|
init_utils();
|
|
41136
|
+
init_themedButtonClass();
|
|
41065
41137
|
EventCombinedClient = ({
|
|
41066
41138
|
events: initialEvents,
|
|
41067
41139
|
siteId,
|
|
@@ -41387,7 +41459,7 @@ var init_EventCombined_client = __esm({
|
|
|
41387
41459
|
{
|
|
41388
41460
|
type: "button",
|
|
41389
41461
|
onClick: goToToday,
|
|
41390
|
-
className:
|
|
41462
|
+
className: themedButtonClass({ variant: buttonVariant, size: "sm" }),
|
|
41391
41463
|
children: "Today"
|
|
41392
41464
|
}
|
|
41393
41465
|
)
|
|
@@ -41704,6 +41776,7 @@ var init_EventCalendar_client = __esm({
|
|
|
41704
41776
|
init_EventModalContext();
|
|
41705
41777
|
init_EventModals();
|
|
41706
41778
|
init_WeekTimetableView();
|
|
41779
|
+
init_themedButtonClass();
|
|
41707
41780
|
EventCalendarClient = ({
|
|
41708
41781
|
render
|
|
41709
41782
|
}) => {
|
|
@@ -41992,7 +42065,10 @@ var init_EventCalendar_client = __esm({
|
|
|
41992
42065
|
{
|
|
41993
42066
|
type: "button",
|
|
41994
42067
|
onClick: onToday,
|
|
41995
|
-
className:
|
|
42068
|
+
className: themedButtonClass({
|
|
42069
|
+
variant: display.buttonVariant,
|
|
42070
|
+
size: "sm"
|
|
42071
|
+
}),
|
|
41996
42072
|
children: "Today"
|
|
41997
42073
|
}
|
|
41998
42074
|
)
|
|
@@ -42005,7 +42081,10 @@ var init_EventCalendar_client = __esm({
|
|
|
42005
42081
|
{
|
|
42006
42082
|
type: "button",
|
|
42007
42083
|
onClick: onToday,
|
|
42008
|
-
className:
|
|
42084
|
+
className: themedButtonClass({
|
|
42085
|
+
variant: display.buttonVariant,
|
|
42086
|
+
size: "sm"
|
|
42087
|
+
}),
|
|
42009
42088
|
children: "Try again"
|
|
42010
42089
|
}
|
|
42011
42090
|
)
|
|
@@ -42100,6 +42179,7 @@ var init_form_client = __esm({
|
|
|
42100
42179
|
init_client2();
|
|
42101
42180
|
init_src3();
|
|
42102
42181
|
init_useFormSubmission();
|
|
42182
|
+
init_themedButtonClass();
|
|
42103
42183
|
FormNodeClient = ({
|
|
42104
42184
|
render
|
|
42105
42185
|
}) => {
|
|
@@ -42237,7 +42317,19 @@ var init_form_client = __esm({
|
|
|
42237
42317
|
return renderField(group.field);
|
|
42238
42318
|
}),
|
|
42239
42319
|
showSpamProtection && /* @__PURE__ */ jsx148(AltchaWidget, { challengeUrl: getChallengeUrl(), onSolutionChange: setAltchaSolution }),
|
|
42240
|
-
/* @__PURE__ */ jsx148("div", { className: "fb-actions", children: /* @__PURE__ */ jsx148("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx148(
|
|
42320
|
+
/* @__PURE__ */ jsx148("div", { className: "fb-actions", children: /* @__PURE__ */ jsx148("div", { className: "fb-actions-inner", children: /* @__PURE__ */ jsx148(
|
|
42321
|
+
"button",
|
|
42322
|
+
{
|
|
42323
|
+
type: "submit",
|
|
42324
|
+
className: themedButtonClass({
|
|
42325
|
+
variant: "primary",
|
|
42326
|
+
size: "md",
|
|
42327
|
+
extraClassName: "rb-w-full rb-sm-w-auto"
|
|
42328
|
+
}),
|
|
42329
|
+
disabled: state.tag === "submitting",
|
|
42330
|
+
children: state.tag === "submitting" ? "Submitting..." : render.display.submitLabel
|
|
42331
|
+
}
|
|
42332
|
+
) }) })
|
|
42241
42333
|
] });
|
|
42242
42334
|
};
|
|
42243
42335
|
}
|
|
@@ -42456,7 +42548,7 @@ function NewsletterFormClient({
|
|
|
42456
42548
|
"button",
|
|
42457
42549
|
{
|
|
42458
42550
|
type: "submit",
|
|
42459
|
-
className: "primary
|
|
42551
|
+
className: themedButtonClass({ variant: "primary", size: "md" }),
|
|
42460
42552
|
disabled: isSubmitting,
|
|
42461
42553
|
children: isSubmitting ? "Subscribing..." : render.display.buttonLabel
|
|
42462
42554
|
}
|
|
@@ -42475,6 +42567,7 @@ var init_newsletter_form_client = __esm({
|
|
|
42475
42567
|
init_client2();
|
|
42476
42568
|
init_src3();
|
|
42477
42569
|
init_api();
|
|
42570
|
+
init_themedButtonClass();
|
|
42478
42571
|
newsletter_form_client_default = NewsletterFormClient;
|
|
42479
42572
|
}
|
|
42480
42573
|
});
|
|
@@ -45213,6 +45306,10 @@ function brandNonEmptyString(value, label) {
|
|
|
45213
45306
|
return value;
|
|
45214
45307
|
}
|
|
45215
45308
|
|
|
45309
|
+
// ../theme-core/src/palette/variants/types.ts
|
|
45310
|
+
init_styleTags();
|
|
45311
|
+
import { z as z43 } from "zod";
|
|
45312
|
+
|
|
45216
45313
|
// ../theme-core/src/schema.ts
|
|
45217
45314
|
import { z as z42 } from "zod";
|
|
45218
45315
|
|
|
@@ -45818,8 +45915,6 @@ var themesTurnSchema = z42.object({
|
|
|
45818
45915
|
});
|
|
45819
45916
|
|
|
45820
45917
|
// ../theme-core/src/palette/variants/types.ts
|
|
45821
|
-
init_compatibility();
|
|
45822
|
-
import { z as z43 } from "zod";
|
|
45823
45918
|
function asPaletteVariantId(value) {
|
|
45824
45919
|
if (value.length === 0) {
|
|
45825
45920
|
throw new Error("PaletteVariantId must be a non-empty string");
|