@riverbankcms/sdk 0.7.5 → 0.8.1
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/README.md +88 -1
- package/dist/cli/index.js +4299 -209
- package/dist/cli/index.js.map +1 -1
- package/dist/client/client.d.mts +2 -2
- package/dist/client/client.d.ts +2 -2
- package/dist/client/client.js +230 -31
- package/dist/client/client.js.map +1 -1
- package/dist/client/client.mjs +230 -31
- package/dist/client/client.mjs.map +1 -1
- package/dist/client/hooks.d.mts +2 -2
- package/dist/client/hooks.d.ts +2 -2
- package/dist/client/hooks.js +34 -20
- package/dist/client/hooks.js.map +1 -1
- package/dist/client/hooks.mjs +34 -20
- package/dist/client/hooks.mjs.map +1 -1
- package/dist/client/rendering/client.js +182 -123
- package/dist/client/rendering/client.js.map +1 -1
- package/dist/client/rendering/client.mjs +174 -109
- package/dist/client/rendering/client.mjs.map +1 -1
- package/dist/client/usePage-CdnO2CP5.d.mts +6875 -0
- package/dist/client/usePage-Dsi39Exp.d.ts +6915 -0
- package/dist/client/usePage-Im82JRRe.d.mts +6915 -0
- package/dist/client/usePage-_ksKXlUF.d.ts +6875 -0
- package/dist/server/{Layout-Yluyb6sK.d.ts → Layout-CZ-kxKfl.d.ts} +1 -1
- package/dist/server/{Layout-qWLdVm5-.d.mts → Layout-ESG8zvrk.d.mts} +1 -1
- package/dist/server/{chunk-4YQJUL5W.mjs → chunk-5GCSRTIU.mjs} +8 -4
- package/dist/server/chunk-5GCSRTIU.mjs.map +1 -0
- package/dist/server/{chunk-YYO3RIFO.js → chunk-6ERSDFTY.js} +35 -21
- package/dist/server/chunk-6ERSDFTY.js.map +1 -0
- package/dist/server/{chunk-YXA4GAAQ.mjs → chunk-6VTKALLN.mjs} +2 -6
- package/dist/server/{chunk-YXA4GAAQ.mjs.map → chunk-6VTKALLN.mjs.map} +1 -1
- package/dist/server/{chunk-BYBJA6SP.mjs → chunk-A3UZ2LDH.mjs} +35 -21
- package/dist/server/chunk-A3UZ2LDH.mjs.map +1 -0
- package/dist/server/{chunk-OSF34JTQ.mjs → chunk-ADD3O2QO.mjs} +4 -4
- package/dist/server/{chunk-C6FIJC7T.mjs → chunk-BNHK7YOC.mjs} +2 -2
- package/dist/server/{chunk-TT5JWA4X.js → chunk-DAXWU3S3.js} +9 -9
- package/dist/server/{chunk-TT5JWA4X.js.map → chunk-DAXWU3S3.js.map} +1 -1
- package/dist/server/{chunk-7UPVCT3K.js → chunk-F2NDLDDA.js} +239 -154
- package/dist/server/chunk-F2NDLDDA.js.map +1 -0
- package/dist/server/{chunk-LNOUXALA.mjs → chunk-FUFPKTSI.mjs} +96 -11
- package/dist/server/chunk-FUFPKTSI.mjs.map +1 -0
- package/dist/server/{chunk-2NBNOY3C.mjs → chunk-GRFFJUCO.mjs} +107 -4
- package/dist/server/chunk-GRFFJUCO.mjs.map +1 -0
- package/dist/server/{chunk-AEFWG657.mjs → chunk-HDHY4236.mjs} +2 -2
- package/dist/server/{chunk-2KCF2DNK.js → chunk-HE3RTUDX.js} +8 -8
- package/dist/server/{chunk-2KCF2DNK.js.map → chunk-HE3RTUDX.js.map} +1 -1
- package/dist/server/{chunk-RVDS7VSP.js → chunk-IJTJH4J3.js} +4 -4
- package/dist/server/{chunk-RVDS7VSP.js.map → chunk-IJTJH4J3.js.map} +1 -1
- package/dist/server/{chunk-P3NNN73G.js → chunk-K44OPKLA.js} +3 -3
- package/dist/server/{chunk-P3NNN73G.js.map → chunk-K44OPKLA.js.map} +1 -1
- package/dist/server/{chunk-EIJ27EZQ.js → chunk-KDCVCDW6.js} +10 -6
- package/dist/server/chunk-KDCVCDW6.js.map +1 -0
- package/dist/server/{chunk-7BVRA5MY.js → chunk-KGORQCHF.js} +9 -9
- package/dist/server/{chunk-7BVRA5MY.js.map → chunk-KGORQCHF.js.map} +1 -1
- package/dist/server/{chunk-KH3EXBJM.js → chunk-MFNWLB5G.js} +111 -8
- package/dist/server/chunk-MFNWLB5G.js.map +1 -0
- package/dist/server/{chunk-EIVISR62.js → chunk-P4O3WSAR.js} +2 -6
- package/dist/server/chunk-P4O3WSAR.js.map +1 -0
- package/dist/server/{chunk-RBJFXNDM.mjs → chunk-PGZJUNCY.mjs} +4 -4
- package/dist/server/{chunk-ARNCLSQT.mjs → chunk-T5PAA22U.mjs} +2 -2
- package/dist/server/{chunk-T26N3P26.js → chunk-TLZHVGTL.js} +4 -4
- package/dist/server/{chunk-T26N3P26.js.map → chunk-TLZHVGTL.js.map} +1 -1
- package/dist/server/{chunk-P4K63SBZ.mjs → chunk-TR7MSLWL.mjs} +3 -3
- package/dist/server/{chunk-NFEGQTCC.mjs → chunk-WMJKH4XE.mjs} +8 -1
- package/dist/server/{chunk-4CV4JOE5.js → chunk-Z6ZWNWWR.js} +9 -2
- package/dist/server/chunk-Z6ZWNWWR.js.map +1 -0
- package/dist/server/{components-Di5ME6He.d.ts → components-CE48wJM1.d.ts} +4 -4
- package/dist/server/{components-DNHfSCML.d.mts → components-iEDvl2Yw.d.mts} +4 -4
- package/dist/server/components.d.mts +6 -6
- package/dist/server/components.d.ts +6 -6
- package/dist/server/components.js +7 -7
- package/dist/server/components.mjs +6 -6
- package/dist/server/config-validation.d.mts +3 -3
- package/dist/server/config-validation.d.ts +3 -3
- package/dist/server/config-validation.js +6 -6
- package/dist/server/config-validation.mjs +5 -5
- package/dist/server/config.d.mts +5 -5
- package/dist/server/config.d.ts +5 -5
- package/dist/server/config.js +6 -6
- package/dist/server/config.mjs +5 -5
- package/dist/server/data.d.mts +3 -3
- package/dist/server/data.d.ts +3 -3
- package/dist/server/data.js +4 -4
- package/dist/server/data.mjs +3 -3
- package/dist/server/env.js +1 -1
- package/dist/server/env.mjs +1 -1
- package/dist/server/{index-DLvNddi-.d.ts → index-BHLK2mgQ.d.ts} +2 -2
- package/dist/server/{index--Oyunk_B.d.mts → index-BrH_NIRO.d.mts} +2 -2
- package/dist/server/{index-Clm3skz_.d.mts → index-Cgvb5fVQ.d.mts} +2 -2
- package/dist/server/{index-C9Ra8dza.d.ts → index-DTBg8eXj.d.ts} +2 -2
- package/dist/server/index.d.mts +14 -6
- package/dist/server/index.d.ts +14 -6
- package/dist/server/index.js +11 -11
- package/dist/server/index.mjs +2 -2
- package/dist/server/{loadContent-D7LQwI0o.d.ts → loadContent-BUK6IVJf.d.ts} +26 -4
- package/dist/server/{loadContent-DVfuBLiZ.d.mts → loadContent-au9Weoy0.d.mts} +26 -4
- package/dist/server/loadPage-AWYZ2QA2.mjs +11 -0
- package/dist/server/loadPage-CMHYAW2J.js +11 -0
- package/dist/server/{loadPage-AXNAERDS.js.map → loadPage-CMHYAW2J.js.map} +1 -1
- package/dist/server/{loadPage-BucnLHmE.d.mts → loadPage-DiHEl8BA.d.mts} +3 -3
- package/dist/server/{loadPage-BmYJCe_V.d.ts → loadPage-JOIbF7ih.d.ts} +3 -3
- package/dist/server/metadata.d.mts +5 -5
- package/dist/server/metadata.d.ts +5 -5
- package/dist/server/metadata.js +1 -1
- package/dist/server/metadata.mjs +1 -1
- package/dist/server/navigation.d.mts +4 -8
- package/dist/server/navigation.d.ts +4 -8
- package/dist/server/navigation.js +3 -7
- package/dist/server/navigation.js.map +1 -1
- package/dist/server/navigation.mjs +2 -6
- package/dist/server/next/revalidate.js +1 -1
- package/dist/server/next/revalidate.mjs +1 -1
- package/dist/server/next/tags.js +1 -1
- package/dist/server/next/tags.mjs +1 -1
- package/dist/server/next.d.mts +39 -8
- package/dist/server/next.d.ts +39 -8
- package/dist/server/next.js +47 -25
- package/dist/server/next.js.map +1 -1
- package/dist/server/next.mjs +40 -18
- package/dist/server/next.mjs.map +1 -1
- package/dist/server/rendering/server.d.mts +5 -5
- package/dist/server/rendering/server.d.ts +5 -5
- package/dist/server/rendering/server.js +9 -9
- package/dist/server/rendering/server.mjs +8 -8
- package/dist/server/rendering.d.mts +8 -8
- package/dist/server/rendering.d.ts +8 -8
- package/dist/server/rendering.js +11 -11
- package/dist/server/rendering.mjs +10 -10
- package/dist/server/routing.d.mts +5 -5
- package/dist/server/routing.d.ts +5 -5
- package/dist/server/routing.js +2 -2
- package/dist/server/routing.mjs +2 -2
- package/dist/server/{schema-Z6-afHJG.d.mts → schema-DYtW0zEu.d.mts} +40 -0
- package/dist/server/{schema-Z6-afHJG.d.ts → schema-DYtW0zEu.d.ts} +40 -0
- package/dist/server/server.d.mts +6 -6
- package/dist/server/server.d.ts +6 -6
- package/dist/server/server.js +7 -7
- package/dist/server/server.mjs +6 -6
- package/dist/server/theme-bridge.js +9 -9
- package/dist/server/theme-bridge.mjs +3 -3
- package/dist/server/theme.js +1 -1
- package/dist/server/theme.mjs +1 -1
- package/dist/server/{types-BSV6Vc-P.d.mts → types-BAM1kcGA.d.mts} +9 -1
- package/dist/server/{types-C-LShyIg.d.mts → types-CmBB0Osp.d.ts} +44 -2
- package/dist/server/{types-BRQyLrQU.d.ts → types-DDNKxQXw.d.mts} +44 -2
- package/dist/server/{types-DLBhEPSt.d.ts → types-DVesWaB7.d.ts} +38 -1
- package/dist/server/{types-BjgZt8xJ.d.mts → types-M0CviVW2.d.mts} +38 -1
- package/dist/server/{types-Dt98DeYa.d.ts → types-_SNCu2ZZ.d.ts} +9 -1
- package/dist/server/{validation-BGuRo8P1.d.mts → validation-BA1TKthZ.d.mts} +2 -2
- package/dist/server/{validation-DU2YE7u5.d.ts → validation-js7BCPN8.d.ts} +2 -2
- package/dist/server/webhooks.js +1 -1
- package/dist/server/webhooks.mjs +1 -1
- package/package.json +2 -1
- package/dist/server/chunk-2NBNOY3C.mjs.map +0 -1
- package/dist/server/chunk-4CV4JOE5.js.map +0 -1
- package/dist/server/chunk-4YQJUL5W.mjs.map +0 -1
- package/dist/server/chunk-7UPVCT3K.js.map +0 -1
- package/dist/server/chunk-BYBJA6SP.mjs.map +0 -1
- package/dist/server/chunk-EIJ27EZQ.js.map +0 -1
- package/dist/server/chunk-EIVISR62.js.map +0 -1
- package/dist/server/chunk-KH3EXBJM.js.map +0 -1
- package/dist/server/chunk-LNOUXALA.mjs.map +0 -1
- package/dist/server/chunk-YYO3RIFO.js.map +0 -1
- package/dist/server/loadPage-AXNAERDS.js +0 -11
- package/dist/server/loadPage-XR7ORQ2E.mjs +0 -11
- /package/dist/server/{chunk-OSF34JTQ.mjs.map → chunk-ADD3O2QO.mjs.map} +0 -0
- /package/dist/server/{chunk-C6FIJC7T.mjs.map → chunk-BNHK7YOC.mjs.map} +0 -0
- /package/dist/server/{chunk-AEFWG657.mjs.map → chunk-HDHY4236.mjs.map} +0 -0
- /package/dist/server/{chunk-RBJFXNDM.mjs.map → chunk-PGZJUNCY.mjs.map} +0 -0
- /package/dist/server/{chunk-ARNCLSQT.mjs.map → chunk-T5PAA22U.mjs.map} +0 -0
- /package/dist/server/{chunk-P4K63SBZ.mjs.map → chunk-TR7MSLWL.mjs.map} +0 -0
- /package/dist/server/{chunk-NFEGQTCC.mjs.map → chunk-WMJKH4XE.mjs.map} +0 -0
- /package/dist/server/{loadPage-XR7ORQ2E.mjs.map → loadPage-AWYZ2QA2.mjs.map} +0 -0
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x2, {
|
|
5
|
+
get: (a2, b3) => (typeof require !== "undefined" ? require : a2)[b3]
|
|
6
|
+
}) : x2)(function(x2) {
|
|
7
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
8
|
+
throw Error('Dynamic require of "' + x2 + '" is not supported');
|
|
9
|
+
});
|
|
4
10
|
var __esm = (fn2, res) => function __init() {
|
|
5
11
|
return fn2 && (res = (0, fn2[__getOwnPropNames(fn2)[0]])(fn2 = 0)), res;
|
|
6
12
|
};
|
|
@@ -3093,10 +3099,23 @@ var LinkNode = ({
|
|
|
3093
3099
|
return /* @__PURE__ */ jsx8("a", { href, ...rest, children });
|
|
3094
3100
|
};
|
|
3095
3101
|
|
|
3096
|
-
// ../media-core/dist/chunk-
|
|
3097
|
-
function getDirectImageUrl(supabaseUrl, storagePath, storageBucket = "media", options) {
|
|
3102
|
+
// ../media-core/dist/chunk-6DJ7FQFK.mjs
|
|
3103
|
+
function getDirectImageUrl(supabaseUrl, storagePath, storageBucket = "media", siteId, options) {
|
|
3098
3104
|
const baseUrl = supabaseUrl.replace(/\/$/, "");
|
|
3099
|
-
|
|
3105
|
+
let fullPath;
|
|
3106
|
+
if (storagePath.startsWith("sites/")) {
|
|
3107
|
+
fullPath = storagePath;
|
|
3108
|
+
if (siteId && process.env.NODE_ENV !== "production") {
|
|
3109
|
+
console.warn(
|
|
3110
|
+
`[media-core] storagePath "${storagePath}" already contains site prefix. Using path as-is for backward compatibility. After migration, paths should be relative (e.g., "originals/2024/12/img.jpg").`
|
|
3111
|
+
);
|
|
3112
|
+
}
|
|
3113
|
+
} else if (siteId) {
|
|
3114
|
+
fullPath = `sites/${siteId}/${storagePath}`;
|
|
3115
|
+
} else {
|
|
3116
|
+
fullPath = storagePath;
|
|
3117
|
+
}
|
|
3118
|
+
const encodedPath = fullPath.split("/").map((segment) => encodeURIComponent(segment)).join("/");
|
|
3100
3119
|
const isSvg = storagePath.toLowerCase().endsWith(".svg");
|
|
3101
3120
|
if (options && !isSvg && (options.width || options.height)) {
|
|
3102
3121
|
const params = new URLSearchParams();
|
|
@@ -3111,10 +3130,39 @@ function getDirectImageUrl(supabaseUrl, storagePath, storageBucket = "media", op
|
|
|
3111
3130
|
|
|
3112
3131
|
// ../blocks/src/system/runtime/nodes/media.tsx
|
|
3113
3132
|
import { jsx as jsx9 } from "react/jsx-runtime";
|
|
3114
|
-
var
|
|
3133
|
+
var _serverStorage = null;
|
|
3134
|
+
var _serverStorageChecked = false;
|
|
3135
|
+
function getServerStorage() {
|
|
3136
|
+
if (typeof window !== "undefined") return null;
|
|
3137
|
+
if (_serverStorageChecked) return _serverStorage;
|
|
3138
|
+
_serverStorageChecked = true;
|
|
3139
|
+
try {
|
|
3140
|
+
const asyncHooks = __require("async_hooks");
|
|
3141
|
+
const AsyncLocalStorage = asyncHooks.AsyncLocalStorage;
|
|
3142
|
+
if (AsyncLocalStorage) {
|
|
3143
|
+
_serverStorage = new AsyncLocalStorage();
|
|
3144
|
+
return _serverStorage;
|
|
3145
|
+
}
|
|
3146
|
+
return null;
|
|
3147
|
+
} catch {
|
|
3148
|
+
if (process.env.NODE_ENV !== "production") {
|
|
3149
|
+
console.warn("[blocks] AsyncLocalStorage not available - using module-level state");
|
|
3150
|
+
}
|
|
3151
|
+
return null;
|
|
3152
|
+
}
|
|
3153
|
+
}
|
|
3154
|
+
var _clientContext = {};
|
|
3155
|
+
function getMediaContext() {
|
|
3156
|
+
const storage = getServerStorage();
|
|
3157
|
+
if (storage) {
|
|
3158
|
+
return storage.getStore() ?? {};
|
|
3159
|
+
}
|
|
3160
|
+
return _clientContext;
|
|
3161
|
+
}
|
|
3115
3162
|
function getSupabaseUrl() {
|
|
3116
|
-
|
|
3117
|
-
|
|
3163
|
+
const context = getMediaContext();
|
|
3164
|
+
if (context.supabaseUrl) {
|
|
3165
|
+
return context.supabaseUrl;
|
|
3118
3166
|
}
|
|
3119
3167
|
const url = process.env.NEXT_PUBLIC_SUPABASE_URL;
|
|
3120
3168
|
if (!url) {
|
|
@@ -3124,6 +3172,9 @@ function getSupabaseUrl() {
|
|
|
3124
3172
|
}
|
|
3125
3173
|
return url.replace(/\/$/, "");
|
|
3126
3174
|
}
|
|
3175
|
+
function getSiteId() {
|
|
3176
|
+
return getMediaContext().siteId;
|
|
3177
|
+
}
|
|
3127
3178
|
var debugMediaNodeLog = (...args) => {
|
|
3128
3179
|
if (typeof window !== "undefined" && window.__DEBUG_MEDIA_NODE__) {
|
|
3129
3180
|
console.log("[MediaNode]", ...args);
|
|
@@ -3147,7 +3198,10 @@ var MediaNode = ({ value, className, style }) => {
|
|
|
3147
3198
|
}
|
|
3148
3199
|
);
|
|
3149
3200
|
}
|
|
3150
|
-
const
|
|
3201
|
+
const effectiveObjectFit = style?.objectFit;
|
|
3202
|
+
const hotspot = value.transform?.hotspot;
|
|
3203
|
+
const shouldApplyHotspot = hotspot && (!effectiveObjectFit || effectiveObjectFit === "cover" || effectiveObjectFit === "contain");
|
|
3204
|
+
const hotspotStyle = shouldApplyHotspot && hotspot ? { objectPosition: `${hotspot.x * 100}% ${hotspot.y * 100}%` } : void 0;
|
|
3151
3205
|
return /* @__PURE__ */ jsx9(
|
|
3152
3206
|
"img",
|
|
3153
3207
|
{
|
|
@@ -3159,6 +3213,9 @@ var MediaNode = ({ value, className, style }) => {
|
|
|
3159
3213
|
}
|
|
3160
3214
|
);
|
|
3161
3215
|
};
|
|
3216
|
+
function isRelativePath(storagePath) {
|
|
3217
|
+
return storagePath.startsWith("originals/") || storagePath.startsWith("variants/") || storagePath.startsWith("imports/");
|
|
3218
|
+
}
|
|
3162
3219
|
function resolveImageUrl(value) {
|
|
3163
3220
|
if (value.type !== "image") return void 0;
|
|
3164
3221
|
debugMediaNodeLog("resolveImageUrl input", {
|
|
@@ -3169,10 +3226,17 @@ function resolveImageUrl(value) {
|
|
|
3169
3226
|
});
|
|
3170
3227
|
if (value.storagePath && value.storagePath.length > 0) {
|
|
3171
3228
|
const supabaseUrl = getSupabaseUrl();
|
|
3229
|
+
const siteId = getSiteId();
|
|
3172
3230
|
const bucket = value.storageBucket ?? "media";
|
|
3173
|
-
|
|
3231
|
+
if (isRelativePath(value.storagePath) && !siteId) {
|
|
3232
|
+
console.warn(
|
|
3233
|
+
`[blocks] Relative storagePath "${value.storagePath}" requires siteId context. Image URL may be incorrect. Ensure siteId is set via runWithMediaContext or setContextSiteId.`
|
|
3234
|
+
);
|
|
3235
|
+
}
|
|
3236
|
+
const directUrl = getDirectImageUrl(supabaseUrl, value.storagePath, bucket, siteId);
|
|
3174
3237
|
debugMediaNodeLog("resolve:direct-supabase", {
|
|
3175
3238
|
storagePath: value.storagePath,
|
|
3239
|
+
siteId,
|
|
3176
3240
|
bucket,
|
|
3177
3241
|
directUrl
|
|
3178
3242
|
});
|
|
@@ -12419,6 +12483,7 @@ var X2 = createLucideIcon("x", __iconNode12);
|
|
|
12419
12483
|
|
|
12420
12484
|
// ../ui/dist/index.mjs
|
|
12421
12485
|
import { jsx as jsx410, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12486
|
+
import { jsx as jsx510, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
12422
12487
|
import * as React310 from "react";
|
|
12423
12488
|
|
|
12424
12489
|
// ../../node_modules/.pnpm/@radix-ui+react-dropdown-menu@2.1.16_@types+react-dom@19.1.7_@types+react@19.1.11__@typ_73e1023eade5c24615c7e11c2c5c91a2/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs
|
|
@@ -15997,11 +16062,11 @@ var SubTrigger2 = DropdownMenuSubTrigger;
|
|
|
15997
16062
|
var SubContent2 = DropdownMenuSubContent;
|
|
15998
16063
|
|
|
15999
16064
|
// ../ui/dist/index.mjs
|
|
16000
|
-
import { jsx as
|
|
16065
|
+
import { jsx as jsx62, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
16001
16066
|
import * as React410 from "react";
|
|
16002
|
-
import { jsx as jsx62 } from "react/jsx-runtime";
|
|
16003
16067
|
import { jsx as jsx72 } from "react/jsx-runtime";
|
|
16004
16068
|
import { jsx as jsx82 } from "react/jsx-runtime";
|
|
16069
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
|
16005
16070
|
import * as React54 from "react";
|
|
16006
16071
|
|
|
16007
16072
|
// ../../node_modules/.pnpm/@radix-ui+react-popover@1.1.15_@types+react-dom@19.1.7_@types+react@19.1.11__@types+rea_e0f1f19d687b38e5ae82e27a5862402e/node_modules/@radix-ui/react-popover/dist/index.mjs
|
|
@@ -16287,7 +16352,7 @@ var Portal4 = PopoverPortal;
|
|
|
16287
16352
|
var Content24 = PopoverContent;
|
|
16288
16353
|
|
|
16289
16354
|
// ../ui/dist/index.mjs
|
|
16290
|
-
import { jsx as
|
|
16355
|
+
import { jsx as jsx102 } from "react/jsx-runtime";
|
|
16291
16356
|
import { forwardRef as forwardRef52, useEffect as useEffect29, useMemo as useMemo13, useRef as useRef25, useState as useState33 } from "react";
|
|
16292
16357
|
|
|
16293
16358
|
// ../../node_modules/.pnpm/react-colorful@5.6.1_react-dom@19.2.1_react@19.2.1__react@19.2.1/node_modules/react-colorful/dist/index.mjs
|
|
@@ -16485,7 +16550,7 @@ var Z2 = function(r3) {
|
|
|
16485
16550
|
};
|
|
16486
16551
|
|
|
16487
16552
|
// ../ui/dist/index.mjs
|
|
16488
|
-
import { jsx as
|
|
16553
|
+
import { jsx as jsx112, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
16489
16554
|
import * as React62 from "react";
|
|
16490
16555
|
|
|
16491
16556
|
// ../../node_modules/.pnpm/embla-carousel-react@8.6.0_react@19.2.1/node_modules/embla-carousel-react/esm/embla-carousel-react.esm.js
|
|
@@ -18191,7 +18256,7 @@ function useEmblaCarousel(options = {}, plugins = []) {
|
|
|
18191
18256
|
useEmblaCarousel.globalOptions = void 0;
|
|
18192
18257
|
|
|
18193
18258
|
// ../ui/dist/index.mjs
|
|
18194
|
-
import { jsx as
|
|
18259
|
+
import { jsx as jsx122, jsxs as jsxs52 } from "react/jsx-runtime";
|
|
18195
18260
|
|
|
18196
18261
|
// ../../node_modules/.pnpm/@radix-ui+react-use-previous@1.1.1_@types+react@19.1.11_react@19.2.1/node_modules/@radix-ui/react-use-previous/dist/index.mjs
|
|
18197
18262
|
import * as React48 from "react";
|
|
@@ -18207,19 +18272,19 @@ function usePrevious(value) {
|
|
|
18207
18272
|
}
|
|
18208
18273
|
|
|
18209
18274
|
// ../ui/dist/index.mjs
|
|
18210
|
-
import { jsx as
|
|
18211
|
-
import { jsx as
|
|
18275
|
+
import { jsx as jsx132, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
18276
|
+
import { jsx as jsx142 } from "react/jsx-runtime";
|
|
18212
18277
|
import * as React72 from "react";
|
|
18213
|
-
import { jsx as
|
|
18278
|
+
import { jsx as jsx152, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
18214
18279
|
import { forwardRef as forwardRef82 } from "react";
|
|
18215
|
-
import { jsx as
|
|
18216
|
-
import { jsx as
|
|
18280
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
18281
|
+
import { jsx as jsx172, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
18217
18282
|
import { useEffect as useEffect210, useState as useState210 } from "react";
|
|
18218
|
-
import { jsx as
|
|
18283
|
+
import { jsx as jsx182 } from "react/jsx-runtime";
|
|
18219
18284
|
import { forwardRef as forwardRef92 } from "react";
|
|
18220
|
-
import { jsx as jsx182, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
18221
|
-
import { Suspense } from "react";
|
|
18222
18285
|
import { jsx as jsx192, jsxs as jsxs92 } from "react/jsx-runtime";
|
|
18286
|
+
import { Suspense } from "react";
|
|
18287
|
+
import { jsx as jsx202, jsxs as jsxs102 } from "react/jsx-runtime";
|
|
18223
18288
|
import * as React82 from "react";
|
|
18224
18289
|
|
|
18225
18290
|
// ../../node_modules/.pnpm/@radix-ui+react-switch@1.2.6_@types+react-dom@19.1.7_@types+react@19.1.11__@types+react_3a18675aaef59a80183d47a46045f61d/node_modules/@radix-ui/react-switch/dist/index.mjs
|
|
@@ -18367,9 +18432,9 @@ var Root4 = Switch;
|
|
|
18367
18432
|
var Thumb = SwitchThumb;
|
|
18368
18433
|
|
|
18369
18434
|
// ../ui/dist/index.mjs
|
|
18370
|
-
import { jsx as jsx202 } from "react/jsx-runtime";
|
|
18371
|
-
import * as React92 from "react";
|
|
18372
18435
|
import { jsx as jsx212 } from "react/jsx-runtime";
|
|
18436
|
+
import * as React92 from "react";
|
|
18437
|
+
import { jsx as jsx222 } from "react/jsx-runtime";
|
|
18373
18438
|
import * as React102 from "react";
|
|
18374
18439
|
|
|
18375
18440
|
// ../../node_modules/.pnpm/@radix-ui+react-toggle@1.1.10_@types+react-dom@19.1.7_@types+react@19.1.11__@types+reac_37fabc382cd9b9947e48ad57c4aa85bf/node_modules/@radix-ui/react-toggle/dist/index.mjs
|
|
@@ -18405,9 +18470,9 @@ Toggle.displayName = NAME2;
|
|
|
18405
18470
|
var Root5 = Toggle;
|
|
18406
18471
|
|
|
18407
18472
|
// ../ui/dist/index.mjs
|
|
18408
|
-
import { jsx as
|
|
18409
|
-
import { jsx as
|
|
18410
|
-
import { jsx as
|
|
18473
|
+
import { jsx as jsx232 } from "react/jsx-runtime";
|
|
18474
|
+
import { jsx as jsx242, jsxs as jsxs112 } from "react/jsx-runtime";
|
|
18475
|
+
import { jsx as jsx252 } from "react/jsx-runtime";
|
|
18411
18476
|
|
|
18412
18477
|
// ../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.12_@types+react-dom@19.1.7_@types+react@19.1.11__@types+r_0aefcdf227a32a60c7759673d969e63f/node_modules/@radix-ui/react-accordion/dist/index.mjs
|
|
18413
18478
|
import React51 from "react";
|
|
@@ -18706,14 +18771,14 @@ var Content25 = AccordionContent;
|
|
|
18706
18771
|
|
|
18707
18772
|
// ../ui/dist/index.mjs
|
|
18708
18773
|
import * as React112 from "react";
|
|
18709
|
-
import { jsx as
|
|
18774
|
+
import { jsx as jsx262 } from "react/jsx-runtime";
|
|
18710
18775
|
import * as React122 from "react";
|
|
18711
|
-
import { jsx as
|
|
18776
|
+
import { jsx as jsx272, jsxs as jsxs122 } from "react/jsx-runtime";
|
|
18712
18777
|
import * as React132 from "react";
|
|
18713
|
-
import { jsx as
|
|
18714
|
-
import { jsx as
|
|
18778
|
+
import { jsx as jsx282 } from "react/jsx-runtime";
|
|
18779
|
+
import { jsx as jsx292, jsxs as jsxs132 } from "react/jsx-runtime";
|
|
18715
18780
|
import { useEffect as useEffect32, useRef as useRef32 } from "react";
|
|
18716
|
-
import { jsx as
|
|
18781
|
+
import { jsx as jsx302 } from "react/jsx-runtime";
|
|
18717
18782
|
import {
|
|
18718
18783
|
useCallback as useCallback20,
|
|
18719
18784
|
useEffect as useEffect42,
|
|
@@ -18721,7 +18786,7 @@ import {
|
|
|
18721
18786
|
useRef as useRef42,
|
|
18722
18787
|
useState as useState34
|
|
18723
18788
|
} from "react";
|
|
18724
|
-
import { jsx as
|
|
18789
|
+
import { jsx as jsx312, jsxs as jsxs142 } from "react/jsx-runtime";
|
|
18725
18790
|
import { useState as useState42, useRef as useRef52, useCallback as useCallback22, useEffect as useEffect52 } from "react";
|
|
18726
18791
|
import * as React152 from "react";
|
|
18727
18792
|
|
|
@@ -18903,12 +18968,12 @@ var Trigger3 = TabsTrigger;
|
|
|
18903
18968
|
var Content4 = TabsContent;
|
|
18904
18969
|
|
|
18905
18970
|
// ../ui/dist/index.mjs
|
|
18906
|
-
import { jsx as
|
|
18907
|
-
import { jsx as jsx322, jsxs as jsxs142 } from "react/jsx-runtime";
|
|
18908
|
-
import { useState as useState52 } from "react";
|
|
18971
|
+
import { jsx as jsx322 } from "react/jsx-runtime";
|
|
18909
18972
|
import { jsx as jsx332, jsxs as jsxs152 } from "react/jsx-runtime";
|
|
18973
|
+
import { useState as useState52 } from "react";
|
|
18974
|
+
import { jsx as jsx342, jsxs as jsxs162 } from "react/jsx-runtime";
|
|
18910
18975
|
import { useEffect as useEffect62, useMemo as useMemo32, useState as useState62 } from "react";
|
|
18911
|
-
import { Fragment as Fragment8, jsx as
|
|
18976
|
+
import { Fragment as Fragment8, jsx as jsx352, jsxs as jsxs172 } from "react/jsx-runtime";
|
|
18912
18977
|
function cn2(...inputs) {
|
|
18913
18978
|
return twMerge(clsx(inputs));
|
|
18914
18979
|
}
|
|
@@ -18979,7 +19044,7 @@ var CollapsibleContent2 = React211.forwardRef(({ className, ...props }, ref) =>
|
|
|
18979
19044
|
}
|
|
18980
19045
|
));
|
|
18981
19046
|
CollapsibleContent2.displayName = Content.displayName;
|
|
18982
|
-
var DropdownMenuSubTrigger2 = React310.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */
|
|
19047
|
+
var DropdownMenuSubTrigger2 = React310.forwardRef(({ className, inset, children, ...props }, ref) => /* @__PURE__ */ jsxs32(
|
|
18983
19048
|
SubTrigger2,
|
|
18984
19049
|
{
|
|
18985
19050
|
ref,
|
|
@@ -18991,12 +19056,12 @@ var DropdownMenuSubTrigger2 = React310.forwardRef(({ className, inset, children,
|
|
|
18991
19056
|
...props,
|
|
18992
19057
|
children: [
|
|
18993
19058
|
children,
|
|
18994
|
-
/* @__PURE__ */
|
|
19059
|
+
/* @__PURE__ */ jsx62(ChevronRight, { className: "ml-auto" })
|
|
18995
19060
|
]
|
|
18996
19061
|
}
|
|
18997
19062
|
));
|
|
18998
19063
|
DropdownMenuSubTrigger2.displayName = SubTrigger2.displayName;
|
|
18999
|
-
var DropdownMenuSubContent2 = React310.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19064
|
+
var DropdownMenuSubContent2 = React310.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx62(
|
|
19000
19065
|
SubContent2,
|
|
19001
19066
|
{
|
|
19002
19067
|
ref,
|
|
@@ -19008,7 +19073,7 @@ var DropdownMenuSubContent2 = React310.forwardRef(({ className, ...props }, ref)
|
|
|
19008
19073
|
}
|
|
19009
19074
|
));
|
|
19010
19075
|
DropdownMenuSubContent2.displayName = SubContent2.displayName;
|
|
19011
|
-
var DropdownMenuContent2 = React310.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */
|
|
19076
|
+
var DropdownMenuContent2 = React310.forwardRef(({ className, sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsx62(Portal22, { ...container ? { container } : {}, children: /* @__PURE__ */ jsx62(
|
|
19012
19077
|
Content23,
|
|
19013
19078
|
{
|
|
19014
19079
|
ref,
|
|
@@ -19022,7 +19087,7 @@ var DropdownMenuContent2 = React310.forwardRef(({ className, sideOffset = 4, con
|
|
|
19022
19087
|
}
|
|
19023
19088
|
) }));
|
|
19024
19089
|
DropdownMenuContent2.displayName = Content23.displayName;
|
|
19025
|
-
var DropdownMenuItem2 = React310.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
19090
|
+
var DropdownMenuItem2 = React310.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx62(
|
|
19026
19091
|
Item22,
|
|
19027
19092
|
{
|
|
19028
19093
|
ref,
|
|
@@ -19035,7 +19100,7 @@ var DropdownMenuItem2 = React310.forwardRef(({ className, inset, ...props }, ref
|
|
|
19035
19100
|
}
|
|
19036
19101
|
));
|
|
19037
19102
|
DropdownMenuItem2.displayName = Item22.displayName;
|
|
19038
|
-
var DropdownMenuCheckboxItem2 = React310.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */
|
|
19103
|
+
var DropdownMenuCheckboxItem2 = React310.forwardRef(({ className, children, checked, ...props }, ref) => /* @__PURE__ */ jsxs32(
|
|
19039
19104
|
CheckboxItem2,
|
|
19040
19105
|
{
|
|
19041
19106
|
ref,
|
|
@@ -19046,13 +19111,13 @@ var DropdownMenuCheckboxItem2 = React310.forwardRef(({ className, children, chec
|
|
|
19046
19111
|
checked,
|
|
19047
19112
|
...props,
|
|
19048
19113
|
children: [
|
|
19049
|
-
/* @__PURE__ */
|
|
19114
|
+
/* @__PURE__ */ jsx62("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx62(ItemIndicator2, { children: /* @__PURE__ */ jsx62(Check, { className: "h-4 w-4" }) }) }),
|
|
19050
19115
|
children
|
|
19051
19116
|
]
|
|
19052
19117
|
}
|
|
19053
19118
|
));
|
|
19054
19119
|
DropdownMenuCheckboxItem2.displayName = CheckboxItem2.displayName;
|
|
19055
|
-
var DropdownMenuRadioItem2 = React310.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
19120
|
+
var DropdownMenuRadioItem2 = React310.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsxs32(
|
|
19056
19121
|
RadioItem2,
|
|
19057
19122
|
{
|
|
19058
19123
|
ref,
|
|
@@ -19062,13 +19127,13 @@ var DropdownMenuRadioItem2 = React310.forwardRef(({ className, children, ...prop
|
|
|
19062
19127
|
),
|
|
19063
19128
|
...props,
|
|
19064
19129
|
children: [
|
|
19065
|
-
/* @__PURE__ */
|
|
19130
|
+
/* @__PURE__ */ jsx62("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx62(ItemIndicator2, { children: /* @__PURE__ */ jsx62(Circle, { className: "h-2 w-2 fill-current" }) }) }),
|
|
19066
19131
|
children
|
|
19067
19132
|
]
|
|
19068
19133
|
}
|
|
19069
19134
|
));
|
|
19070
19135
|
DropdownMenuRadioItem2.displayName = RadioItem2.displayName;
|
|
19071
|
-
var DropdownMenuLabel2 = React310.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */
|
|
19136
|
+
var DropdownMenuLabel2 = React310.forwardRef(({ className, inset, ...props }, ref) => /* @__PURE__ */ jsx62(
|
|
19072
19137
|
Label2,
|
|
19073
19138
|
{
|
|
19074
19139
|
ref,
|
|
@@ -19081,7 +19146,7 @@ var DropdownMenuLabel2 = React310.forwardRef(({ className, inset, ...props }, re
|
|
|
19081
19146
|
}
|
|
19082
19147
|
));
|
|
19083
19148
|
DropdownMenuLabel2.displayName = Label2.displayName;
|
|
19084
|
-
var DropdownMenuSeparator2 = React310.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19149
|
+
var DropdownMenuSeparator2 = React310.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx62(
|
|
19085
19150
|
Separator2,
|
|
19086
19151
|
{
|
|
19087
19152
|
ref,
|
|
@@ -19094,7 +19159,7 @@ var DropdownMenuShortcut = ({
|
|
|
19094
19159
|
className,
|
|
19095
19160
|
...props
|
|
19096
19161
|
}) => {
|
|
19097
|
-
return /* @__PURE__ */
|
|
19162
|
+
return /* @__PURE__ */ jsx62(
|
|
19098
19163
|
"span",
|
|
19099
19164
|
{
|
|
19100
19165
|
className: cn2("ml-auto text-xs tracking-widest opacity-60", className),
|
|
@@ -19110,7 +19175,7 @@ var FormItemContext = React410.createContext(
|
|
|
19110
19175
|
{}
|
|
19111
19176
|
);
|
|
19112
19177
|
function Input({ className, type, ...props }) {
|
|
19113
|
-
return /* @__PURE__ */
|
|
19178
|
+
return /* @__PURE__ */ jsx92(
|
|
19114
19179
|
"input",
|
|
19115
19180
|
{
|
|
19116
19181
|
type,
|
|
@@ -19139,7 +19204,7 @@ function getSafePortalContainer(container) {
|
|
|
19139
19204
|
}
|
|
19140
19205
|
return target;
|
|
19141
19206
|
}
|
|
19142
|
-
var PopoverContent2 = React54.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */
|
|
19207
|
+
var PopoverContent2 = React54.forwardRef(({ className, align = "center", sideOffset = 4, container, ...props }, ref) => /* @__PURE__ */ jsx102(Portal4, { ...container ? { container: getSafePortalContainer(container) } : {}, children: /* @__PURE__ */ jsx102(
|
|
19143
19208
|
Content24,
|
|
19144
19209
|
{
|
|
19145
19210
|
ref,
|
|
@@ -19172,9 +19237,9 @@ var ColorPicker = forwardRef52(
|
|
|
19172
19237
|
const parsedValue = useMemo13(() => {
|
|
19173
19238
|
return value || "#FFFFFF";
|
|
19174
19239
|
}, [value]);
|
|
19175
|
-
return /* @__PURE__ */
|
|
19176
|
-
/* @__PURE__ */
|
|
19177
|
-
/* @__PURE__ */
|
|
19240
|
+
return /* @__PURE__ */ jsxs42("div", { className: cn2("inline-block", props.style ? "" : ""), children: [
|
|
19241
|
+
/* @__PURE__ */ jsxs42(Popover2, { onOpenChange: setOpen, open, children: [
|
|
19242
|
+
/* @__PURE__ */ jsx112(PopoverTrigger2, { asChild: true, disabled, onBlur, children: /* @__PURE__ */ jsx112(
|
|
19178
19243
|
Button,
|
|
19179
19244
|
{
|
|
19180
19245
|
...props,
|
|
@@ -19189,12 +19254,12 @@ var ColorPicker = forwardRef52(
|
|
|
19189
19254
|
...props.style
|
|
19190
19255
|
},
|
|
19191
19256
|
variant: "outline",
|
|
19192
|
-
children: /* @__PURE__ */
|
|
19257
|
+
children: /* @__PURE__ */ jsx112("div", {})
|
|
19193
19258
|
}
|
|
19194
19259
|
) }),
|
|
19195
|
-
/* @__PURE__ */
|
|
19196
|
-
/* @__PURE__ */
|
|
19197
|
-
/* @__PURE__ */
|
|
19260
|
+
/* @__PURE__ */ jsxs42(PopoverContent2, { className: "w-full", children: [
|
|
19261
|
+
/* @__PURE__ */ jsx112(Z2, { color: parsedValue, onChange }),
|
|
19262
|
+
/* @__PURE__ */ jsx112(
|
|
19198
19263
|
Input,
|
|
19199
19264
|
{
|
|
19200
19265
|
maxLength: 7,
|
|
@@ -19207,7 +19272,7 @@ var ColorPicker = forwardRef52(
|
|
|
19207
19272
|
)
|
|
19208
19273
|
] })
|
|
19209
19274
|
] }),
|
|
19210
|
-
label ? /* @__PURE__ */
|
|
19275
|
+
label ? /* @__PURE__ */ jsx112("div", { className: "mt-1 text-xs text-gray-600", children: label }) : null
|
|
19211
19276
|
] });
|
|
19212
19277
|
}
|
|
19213
19278
|
);
|
|
@@ -19229,13 +19294,13 @@ var Carousel = React62.forwardRef(
|
|
|
19229
19294
|
},
|
|
19230
19295
|
plugins
|
|
19231
19296
|
);
|
|
19232
|
-
return /* @__PURE__ */
|
|
19297
|
+
return /* @__PURE__ */ jsx122(CarouselContext.Provider, { value: { carouselRef, api, orientation }, children: /* @__PURE__ */ jsx122(
|
|
19233
19298
|
"div",
|
|
19234
19299
|
{
|
|
19235
19300
|
ref,
|
|
19236
19301
|
className: cn2("relative", orientation === "vertical" && "flex flex-col", className),
|
|
19237
19302
|
...props,
|
|
19238
|
-
children: /* @__PURE__ */
|
|
19303
|
+
children: /* @__PURE__ */ jsx122("div", { ref: carouselRef, className: "overflow-hidden", children: /* @__PURE__ */ jsx122("div", { className: "flex", children }) })
|
|
19239
19304
|
}
|
|
19240
19305
|
) });
|
|
19241
19306
|
}
|
|
@@ -19244,7 +19309,7 @@ Carousel.displayName = "Carousel";
|
|
|
19244
19309
|
var CarouselContent = React62.forwardRef(
|
|
19245
19310
|
({ className, ...props }, ref) => {
|
|
19246
19311
|
const { orientation } = useCarousel();
|
|
19247
|
-
return /* @__PURE__ */
|
|
19312
|
+
return /* @__PURE__ */ jsx122(
|
|
19248
19313
|
"div",
|
|
19249
19314
|
{
|
|
19250
19315
|
ref,
|
|
@@ -19262,7 +19327,7 @@ CarouselContent.displayName = "CarouselContent";
|
|
|
19262
19327
|
var CarouselItem = React62.forwardRef(
|
|
19263
19328
|
({ className, ...props }, ref) => {
|
|
19264
19329
|
const { orientation } = useCarousel();
|
|
19265
|
-
return /* @__PURE__ */
|
|
19330
|
+
return /* @__PURE__ */ jsx122(
|
|
19266
19331
|
"div",
|
|
19267
19332
|
{
|
|
19268
19333
|
ref,
|
|
@@ -19280,14 +19345,14 @@ var CarouselItem = React62.forwardRef(
|
|
|
19280
19345
|
);
|
|
19281
19346
|
CarouselItem.displayName = "CarouselItem";
|
|
19282
19347
|
var Control = React62.forwardRef(
|
|
19283
|
-
({ className, variant = "outline", size: size4 = "icon", ...props }, ref) => /* @__PURE__ */
|
|
19348
|
+
({ className, variant = "outline", size: size4 = "icon", ...props }, ref) => /* @__PURE__ */ jsx122(Button, { ref, className: cn2("h-8 w-8", className), variant, size: size4, ...props })
|
|
19284
19349
|
);
|
|
19285
19350
|
Control.displayName = "CarouselControl";
|
|
19286
19351
|
var CarouselPrevious = React62.forwardRef(
|
|
19287
19352
|
({ className, children, ...props }, ref) => {
|
|
19288
19353
|
const { api, orientation } = useCarousel();
|
|
19289
19354
|
const isHorizontal = orientation === "horizontal";
|
|
19290
|
-
return /* @__PURE__ */
|
|
19355
|
+
return /* @__PURE__ */ jsxs52(
|
|
19291
19356
|
Control,
|
|
19292
19357
|
{
|
|
19293
19358
|
ref,
|
|
@@ -19299,8 +19364,8 @@ var CarouselPrevious = React62.forwardRef(
|
|
|
19299
19364
|
onClick: () => api?.scrollPrev(),
|
|
19300
19365
|
...props,
|
|
19301
19366
|
children: [
|
|
19302
|
-
children ?? /* @__PURE__ */
|
|
19303
|
-
/* @__PURE__ */
|
|
19367
|
+
children ?? /* @__PURE__ */ jsx122(ChevronLeft, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
19368
|
+
/* @__PURE__ */ jsx122("span", { className: "sr-only", children: "Previous slide" })
|
|
19304
19369
|
]
|
|
19305
19370
|
}
|
|
19306
19371
|
);
|
|
@@ -19311,7 +19376,7 @@ var CarouselNext = React62.forwardRef(
|
|
|
19311
19376
|
({ className, children, ...props }, ref) => {
|
|
19312
19377
|
const { api, orientation } = useCarousel();
|
|
19313
19378
|
const isHorizontal = orientation === "horizontal";
|
|
19314
|
-
return /* @__PURE__ */
|
|
19379
|
+
return /* @__PURE__ */ jsxs52(
|
|
19315
19380
|
Control,
|
|
19316
19381
|
{
|
|
19317
19382
|
ref,
|
|
@@ -19323,8 +19388,8 @@ var CarouselNext = React62.forwardRef(
|
|
|
19323
19388
|
onClick: () => api?.scrollNext(),
|
|
19324
19389
|
...props,
|
|
19325
19390
|
children: [
|
|
19326
|
-
children ?? /* @__PURE__ */
|
|
19327
|
-
/* @__PURE__ */
|
|
19391
|
+
children ?? /* @__PURE__ */ jsx122(ChevronRight, { className: "h-4 w-4", "aria-hidden": "true" }),
|
|
19392
|
+
/* @__PURE__ */ jsx122("span", { className: "sr-only", children: "Next slide" })
|
|
19328
19393
|
]
|
|
19329
19394
|
}
|
|
19330
19395
|
);
|
|
@@ -19334,13 +19399,13 @@ CarouselNext.displayName = "CarouselNext";
|
|
|
19334
19399
|
function SheetPortal({
|
|
19335
19400
|
...props
|
|
19336
19401
|
}) {
|
|
19337
|
-
return /* @__PURE__ */
|
|
19402
|
+
return /* @__PURE__ */ jsx152(Portal2, { "data-slot": "sheet-portal", ...props });
|
|
19338
19403
|
}
|
|
19339
19404
|
function SheetOverlay({
|
|
19340
19405
|
className,
|
|
19341
19406
|
...props
|
|
19342
19407
|
}) {
|
|
19343
|
-
return /* @__PURE__ */
|
|
19408
|
+
return /* @__PURE__ */ jsx152(
|
|
19344
19409
|
Overlay,
|
|
19345
19410
|
{
|
|
19346
19411
|
"data-slot": "sheet-overlay",
|
|
@@ -19367,9 +19432,9 @@ var SIDE_CLASSNAMES = {
|
|
|
19367
19432
|
].join(" ")
|
|
19368
19433
|
};
|
|
19369
19434
|
var SheetContent = React72.forwardRef(({ className, children, showCloseButton = true, side = "bottom", ...props }, ref) => {
|
|
19370
|
-
return /* @__PURE__ */
|
|
19371
|
-
/* @__PURE__ */
|
|
19372
|
-
/* @__PURE__ */
|
|
19435
|
+
return /* @__PURE__ */ jsxs72(SheetPortal, { children: [
|
|
19436
|
+
/* @__PURE__ */ jsx152(SheetOverlay, {}),
|
|
19437
|
+
/* @__PURE__ */ jsxs72(
|
|
19373
19438
|
Content2,
|
|
19374
19439
|
{
|
|
19375
19440
|
ref,
|
|
@@ -19383,14 +19448,14 @@ var SheetContent = React72.forwardRef(({ className, children, showCloseButton =
|
|
|
19383
19448
|
...props,
|
|
19384
19449
|
children: [
|
|
19385
19450
|
children,
|
|
19386
|
-
showCloseButton && /* @__PURE__ */
|
|
19451
|
+
showCloseButton && /* @__PURE__ */ jsxs72(
|
|
19387
19452
|
Close,
|
|
19388
19453
|
{
|
|
19389
19454
|
"data-slot": "sheet-close",
|
|
19390
19455
|
className: "ring-offset-background focus:ring-ring absolute right-4 top-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
19391
19456
|
children: [
|
|
19392
|
-
/* @__PURE__ */
|
|
19393
|
-
/* @__PURE__ */
|
|
19457
|
+
/* @__PURE__ */ jsx152(X2, {}),
|
|
19458
|
+
/* @__PURE__ */ jsx152("span", { className: "sr-only", children: "Close" })
|
|
19394
19459
|
]
|
|
19395
19460
|
}
|
|
19396
19461
|
)
|
|
@@ -19409,7 +19474,7 @@ var mergeStyle = (base, additions) => ({
|
|
|
19409
19474
|
...additions
|
|
19410
19475
|
});
|
|
19411
19476
|
var SkeletonRoot = forwardRef82(function SkeletonRoot2({ className, style, ...props }, ref) {
|
|
19412
|
-
return /* @__PURE__ */
|
|
19477
|
+
return /* @__PURE__ */ jsx162(
|
|
19413
19478
|
"div",
|
|
19414
19479
|
{
|
|
19415
19480
|
ref,
|
|
@@ -19423,7 +19488,7 @@ var SkeletonRoot = forwardRef82(function SkeletonRoot2({ className, style, ...pr
|
|
|
19423
19488
|
SkeletonRoot.displayName = "Skeleton";
|
|
19424
19489
|
var SkeletonText = forwardRef82(function SkeletonText2({ width, style, className, ...props }, ref) {
|
|
19425
19490
|
const computedStyle = width ? mergeStyle(style, { width: toCssSize(width) }) : style;
|
|
19426
|
-
return /* @__PURE__ */
|
|
19491
|
+
return /* @__PURE__ */ jsx162(
|
|
19427
19492
|
SkeletonRoot,
|
|
19428
19493
|
{
|
|
19429
19494
|
ref,
|
|
@@ -19439,7 +19504,7 @@ var SkeletonLine = forwardRef82(function SkeletonLine2({ width = "100%", height
|
|
|
19439
19504
|
width: toCssSize(width),
|
|
19440
19505
|
height: toCssSize(height)
|
|
19441
19506
|
});
|
|
19442
|
-
return /* @__PURE__ */
|
|
19507
|
+
return /* @__PURE__ */ jsx162(
|
|
19443
19508
|
SkeletonRoot,
|
|
19444
19509
|
{
|
|
19445
19510
|
ref,
|
|
@@ -19458,7 +19523,7 @@ var SkeletonBlock = forwardRef82(function SkeletonBlock2({ width = "100%", heigh
|
|
|
19458
19523
|
if (aspectRatio) {
|
|
19459
19524
|
additions.aspectRatio = typeof aspectRatio === "number" ? `${aspectRatio}` : aspectRatio;
|
|
19460
19525
|
}
|
|
19461
|
-
return /* @__PURE__ */
|
|
19526
|
+
return /* @__PURE__ */ jsx162(
|
|
19462
19527
|
SkeletonRoot,
|
|
19463
19528
|
{
|
|
19464
19529
|
ref,
|
|
@@ -19474,7 +19539,7 @@ var SkeletonAvatar = forwardRef82(function SkeletonAvatar2({ size: size4 = 40, s
|
|
|
19474
19539
|
width: toCssSize(size4),
|
|
19475
19540
|
height: toCssSize(size4)
|
|
19476
19541
|
});
|
|
19477
|
-
return /* @__PURE__ */
|
|
19542
|
+
return /* @__PURE__ */ jsx162(
|
|
19478
19543
|
SkeletonRoot,
|
|
19479
19544
|
{
|
|
19480
19545
|
ref,
|
|
@@ -19487,7 +19552,7 @@ var SkeletonAvatar = forwardRef82(function SkeletonAvatar2({ size: size4 = 40, s
|
|
|
19487
19552
|
SkeletonAvatar.displayName = "Skeleton.Avatar";
|
|
19488
19553
|
var SkeletonBadge = forwardRef82(function SkeletonBadge2({ width = 72, style, className, ...props }, ref) {
|
|
19489
19554
|
const computedStyle = width ? mergeStyle(style, { width: toCssSize(width) }) : style;
|
|
19490
|
-
return /* @__PURE__ */
|
|
19555
|
+
return /* @__PURE__ */ jsx162(
|
|
19491
19556
|
SkeletonRoot,
|
|
19492
19557
|
{
|
|
19493
19558
|
ref,
|
|
@@ -19517,21 +19582,21 @@ function Spinner({
|
|
|
19517
19582
|
...props
|
|
19518
19583
|
}) {
|
|
19519
19584
|
const accessibilityProps = srLabel ? { role: "status", "aria-live": "polite" } : { "aria-hidden": true };
|
|
19520
|
-
return /* @__PURE__ */
|
|
19585
|
+
return /* @__PURE__ */ jsxs82(
|
|
19521
19586
|
"span",
|
|
19522
19587
|
{
|
|
19523
19588
|
...accessibilityProps,
|
|
19524
19589
|
className: cn2("inline-flex items-center justify-center text-current", className),
|
|
19525
19590
|
...props,
|
|
19526
19591
|
children: [
|
|
19527
|
-
/* @__PURE__ */
|
|
19592
|
+
/* @__PURE__ */ jsx172(
|
|
19528
19593
|
LoaderCircle,
|
|
19529
19594
|
{
|
|
19530
19595
|
"aria-hidden": "true",
|
|
19531
19596
|
className: cn2("animate-spin motion-reduce:animate-none", sizeClasses[size4])
|
|
19532
19597
|
}
|
|
19533
19598
|
),
|
|
19534
|
-
srLabel ? /* @__PURE__ */
|
|
19599
|
+
srLabel ? /* @__PURE__ */ jsx172("span", { className: "sr-only", children: srLabel }) : null
|
|
19535
19600
|
]
|
|
19536
19601
|
}
|
|
19537
19602
|
);
|
|
@@ -19559,7 +19624,7 @@ function DelayedSpinner({
|
|
|
19559
19624
|
if (!visible && !keepMounted) {
|
|
19560
19625
|
return null;
|
|
19561
19626
|
}
|
|
19562
|
-
return /* @__PURE__ */
|
|
19627
|
+
return /* @__PURE__ */ jsx182(
|
|
19563
19628
|
Spinner,
|
|
19564
19629
|
{
|
|
19565
19630
|
className: cn2(!visible ? "opacity-0" : null, className),
|
|
@@ -19588,7 +19653,7 @@ var PendingButton = forwardRef92(
|
|
|
19588
19653
|
size: spinnerSize,
|
|
19589
19654
|
...rest
|
|
19590
19655
|
} = spinnerProps ?? {};
|
|
19591
|
-
return /* @__PURE__ */
|
|
19656
|
+
return /* @__PURE__ */ jsx192(
|
|
19592
19657
|
DelayedSpinner,
|
|
19593
19658
|
{
|
|
19594
19659
|
active: isPending,
|
|
@@ -19599,7 +19664,7 @@ var PendingButton = forwardRef92(
|
|
|
19599
19664
|
}
|
|
19600
19665
|
);
|
|
19601
19666
|
};
|
|
19602
|
-
return /* @__PURE__ */
|
|
19667
|
+
return /* @__PURE__ */ jsxs92(
|
|
19603
19668
|
Button,
|
|
19604
19669
|
{
|
|
19605
19670
|
ref,
|
|
@@ -19610,14 +19675,14 @@ var PendingButton = forwardRef92(
|
|
|
19610
19675
|
...props,
|
|
19611
19676
|
children: [
|
|
19612
19677
|
spinnerPlacement === "start" ? renderSpinner() : null,
|
|
19613
|
-
/* @__PURE__ */
|
|
19678
|
+
/* @__PURE__ */ jsx192("span", { "aria-live": "polite", className: "flex items-center justify-center", children: content }),
|
|
19614
19679
|
spinnerPlacement === "end" ? renderSpinner() : null
|
|
19615
19680
|
]
|
|
19616
19681
|
}
|
|
19617
19682
|
);
|
|
19618
19683
|
}
|
|
19619
19684
|
);
|
|
19620
|
-
var Switch2 = React82.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19685
|
+
var Switch2 = React82.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx212(
|
|
19621
19686
|
Root4,
|
|
19622
19687
|
{
|
|
19623
19688
|
ref,
|
|
@@ -19626,7 +19691,7 @@ var Switch2 = React82.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
19626
19691
|
className
|
|
19627
19692
|
),
|
|
19628
19693
|
...props,
|
|
19629
|
-
children: /* @__PURE__ */
|
|
19694
|
+
children: /* @__PURE__ */ jsx212(
|
|
19630
19695
|
Thumb,
|
|
19631
19696
|
{
|
|
19632
19697
|
className: cn2(
|
|
@@ -19638,7 +19703,7 @@ var Switch2 = React82.forwardRef(({ className, ...props }, ref) => /* @__PURE__
|
|
|
19638
19703
|
));
|
|
19639
19704
|
Switch2.displayName = Root4.displayName;
|
|
19640
19705
|
var Textarea = React92.forwardRef(({ className, ...props }, ref) => {
|
|
19641
|
-
return /* @__PURE__ */
|
|
19706
|
+
return /* @__PURE__ */ jsx222(
|
|
19642
19707
|
"textarea",
|
|
19643
19708
|
{
|
|
19644
19709
|
className: cn2(
|
|
@@ -19671,7 +19736,7 @@ var toggleVariants = cva(
|
|
|
19671
19736
|
}
|
|
19672
19737
|
}
|
|
19673
19738
|
);
|
|
19674
|
-
var Toggle2 = React102.forwardRef(({ className, variant, size: size4, ...props }, ref) => /* @__PURE__ */
|
|
19739
|
+
var Toggle2 = React102.forwardRef(({ className, variant, size: size4, ...props }, ref) => /* @__PURE__ */ jsx232(
|
|
19675
19740
|
Root5,
|
|
19676
19741
|
{
|
|
19677
19742
|
ref,
|
|
@@ -19698,7 +19763,7 @@ var badgeVariants = cva(
|
|
|
19698
19763
|
}
|
|
19699
19764
|
);
|
|
19700
19765
|
var Accordion2 = Root24;
|
|
19701
|
-
var AccordionItem2 = React112.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19766
|
+
var AccordionItem2 = React112.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx262(
|
|
19702
19767
|
Item3,
|
|
19703
19768
|
{
|
|
19704
19769
|
ref,
|
|
@@ -19707,7 +19772,7 @@ var AccordionItem2 = React112.forwardRef(({ className, ...props }, ref) => /* @_
|
|
|
19707
19772
|
}
|
|
19708
19773
|
));
|
|
19709
19774
|
AccordionItem2.displayName = "AccordionItem";
|
|
19710
|
-
var AccordionTrigger2 = React112.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
19775
|
+
var AccordionTrigger2 = React112.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx262(Header, { asChild: true, children: /* @__PURE__ */ jsx262("div", { className: "m-0 flex w-full", children: /* @__PURE__ */ jsx262(
|
|
19711
19776
|
Trigger22,
|
|
19712
19777
|
{
|
|
19713
19778
|
ref,
|
|
@@ -19717,7 +19782,7 @@ var AccordionTrigger2 = React112.forwardRef(({ className, children, ...props },
|
|
|
19717
19782
|
}
|
|
19718
19783
|
) }) }));
|
|
19719
19784
|
AccordionTrigger2.displayName = Trigger22.displayName;
|
|
19720
|
-
var AccordionContent2 = React112.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
19785
|
+
var AccordionContent2 = React112.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx262(
|
|
19721
19786
|
Content25,
|
|
19722
19787
|
{
|
|
19723
19788
|
ref,
|
|
@@ -19728,7 +19793,7 @@ var AccordionContent2 = React112.forwardRef(({ className, children, ...props },
|
|
|
19728
19793
|
}
|
|
19729
19794
|
));
|
|
19730
19795
|
AccordionContent2.displayName = Content25.displayName;
|
|
19731
|
-
var SectionAccordionItem = React122.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19796
|
+
var SectionAccordionItem = React122.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx272(
|
|
19732
19797
|
Item3,
|
|
19733
19798
|
{
|
|
19734
19799
|
ref,
|
|
@@ -19737,7 +19802,7 @@ var SectionAccordionItem = React122.forwardRef(({ className, ...props }, ref) =>
|
|
|
19737
19802
|
}
|
|
19738
19803
|
));
|
|
19739
19804
|
SectionAccordionItem.displayName = "SectionAccordionItem";
|
|
19740
|
-
var SectionAccordionTrigger = React122.forwardRef(({ className, title, description, invalid, ...props }, ref) => /* @__PURE__ */
|
|
19805
|
+
var SectionAccordionTrigger = React122.forwardRef(({ className, title, description, invalid, ...props }, ref) => /* @__PURE__ */ jsx272(Header, { asChild: true, children: /* @__PURE__ */ jsx272("div", { className: "m-0 flex w-full", children: /* @__PURE__ */ jsxs122(
|
|
19741
19806
|
Trigger22,
|
|
19742
19807
|
{
|
|
19743
19808
|
ref,
|
|
@@ -19749,19 +19814,19 @@ var SectionAccordionTrigger = React122.forwardRef(({ className, title, descripti
|
|
|
19749
19814
|
),
|
|
19750
19815
|
...props,
|
|
19751
19816
|
children: [
|
|
19752
|
-
/* @__PURE__ */
|
|
19753
|
-
/* @__PURE__ */
|
|
19817
|
+
/* @__PURE__ */ jsxs122("div", { className: "flex flex-col gap-0.5", children: [
|
|
19818
|
+
/* @__PURE__ */ jsxs122("span", { className: "flex items-center gap-2", children: [
|
|
19754
19819
|
title,
|
|
19755
|
-
invalid && /* @__PURE__ */
|
|
19820
|
+
invalid && /* @__PURE__ */ jsx272("span", { className: "rounded bg-destructive/10 px-1.5 py-0.5 text-[10px] font-medium text-destructive", children: "Fix errors" })
|
|
19756
19821
|
] }),
|
|
19757
|
-
description && /* @__PURE__ */
|
|
19822
|
+
description && /* @__PURE__ */ jsx272("span", { className: "text-xs font-normal text-muted-foreground", children: description })
|
|
19758
19823
|
] }),
|
|
19759
|
-
/* @__PURE__ */
|
|
19824
|
+
/* @__PURE__ */ jsx272(ChevronDown, { className: "h-4 w-4 shrink-0 text-muted-foreground transition-transform duration-200" })
|
|
19760
19825
|
]
|
|
19761
19826
|
}
|
|
19762
19827
|
) }) }));
|
|
19763
19828
|
SectionAccordionTrigger.displayName = "SectionAccordionTrigger";
|
|
19764
|
-
var SectionAccordionContent = React122.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */
|
|
19829
|
+
var SectionAccordionContent = React122.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ jsx272(
|
|
19765
19830
|
Content25,
|
|
19766
19831
|
{
|
|
19767
19832
|
ref,
|
|
@@ -19771,11 +19836,11 @@ var SectionAccordionContent = React122.forwardRef(({ className, children, ...pro
|
|
|
19771
19836
|
className
|
|
19772
19837
|
),
|
|
19773
19838
|
...props,
|
|
19774
|
-
children: /* @__PURE__ */
|
|
19839
|
+
children: /* @__PURE__ */ jsx272("div", { className: "px-4 pb-4 pt-0", children })
|
|
19775
19840
|
}
|
|
19776
19841
|
));
|
|
19777
19842
|
SectionAccordionContent.displayName = "SectionAccordionContent";
|
|
19778
|
-
var TabsList2 = React152.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19843
|
+
var TabsList2 = React152.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx322(
|
|
19779
19844
|
List,
|
|
19780
19845
|
{
|
|
19781
19846
|
ref,
|
|
@@ -19787,7 +19852,7 @@ var TabsList2 = React152.forwardRef(({ className, ...props }, ref) => /* @__PURE
|
|
|
19787
19852
|
}
|
|
19788
19853
|
));
|
|
19789
19854
|
TabsList2.displayName = List.displayName;
|
|
19790
|
-
var TabsTrigger2 = React152.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19855
|
+
var TabsTrigger2 = React152.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx322(
|
|
19791
19856
|
Trigger3,
|
|
19792
19857
|
{
|
|
19793
19858
|
ref,
|
|
@@ -19799,7 +19864,7 @@ var TabsTrigger2 = React152.forwardRef(({ className, ...props }, ref) => /* @__P
|
|
|
19799
19864
|
}
|
|
19800
19865
|
));
|
|
19801
19866
|
TabsTrigger2.displayName = Trigger3.displayName;
|
|
19802
|
-
var TabsContent2 = React152.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
|
|
19867
|
+
var TabsContent2 = React152.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx322(
|
|
19803
19868
|
Content4,
|
|
19804
19869
|
{
|
|
19805
19870
|
ref,
|