@bison-lab/ui 1.11.0 → 1.13.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/index.d.mts +103 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +341 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2347,6 +2347,74 @@ function Badge({ className, variant, ...props }) {
|
|
|
2347
2347
|
});
|
|
2348
2348
|
}
|
|
2349
2349
|
//#endregion
|
|
2350
|
+
//#region src/components/rotating-badge.tsx
|
|
2351
|
+
const DEFAULT_SIZE = 160;
|
|
2352
|
+
const DEFAULT_DURATION = 26;
|
|
2353
|
+
const REPEAT_COUNT = 4;
|
|
2354
|
+
const DEFAULT_DIVIDER = "•";
|
|
2355
|
+
const VIEWBOX = 200;
|
|
2356
|
+
function ringChars(text, divider) {
|
|
2357
|
+
return Array.from(`${text} ${divider} `.repeat(REPEAT_COUNT));
|
|
2358
|
+
}
|
|
2359
|
+
function renderChar(char) {
|
|
2360
|
+
return char === " " ? "\xA0" : char;
|
|
2361
|
+
}
|
|
2362
|
+
/**
|
|
2363
|
+
* A circular seal: a consumer-supplied center mark with rim copy on a slow
|
|
2364
|
+
* continuous spin (paused for `prefers-reduced-motion`). Purely presentational.
|
|
2365
|
+
*/
|
|
2366
|
+
const RotatingBadge = React.forwardRef(({ text, image, divider = DEFAULT_DIVIDER, size = DEFAULT_SIZE, duration = DEFAULT_DURATION, className, imageClassName, rule = false, ruleClassName, style, ...props }, ref) => {
|
|
2367
|
+
const chars = React.useMemo(() => ringChars(text, divider), [text, divider]);
|
|
2368
|
+
const step = 360 / chars.length;
|
|
2369
|
+
const clearRadius = size / 2 + 60;
|
|
2370
|
+
const fadeWidth = 20;
|
|
2371
|
+
const maskImage = `linear-gradient(to right, black 0, black calc(50% - ${clearRadius}px), transparent calc(50% - ${clearRadius - fadeWidth}px), transparent calc(50% + ${clearRadius - fadeWidth}px), black calc(50% + ${clearRadius}px), black 100%)`;
|
|
2372
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
2373
|
+
ref,
|
|
2374
|
+
className: cn("relative flex shrink-0 items-center justify-center rounded-full font-bold", className),
|
|
2375
|
+
style: {
|
|
2376
|
+
width: size,
|
|
2377
|
+
height: size,
|
|
2378
|
+
...style
|
|
2379
|
+
},
|
|
2380
|
+
...props,
|
|
2381
|
+
children: [
|
|
2382
|
+
rule ? /* @__PURE__ */ jsx("div", {
|
|
2383
|
+
"aria-hidden": true,
|
|
2384
|
+
className: cn("pointer-events-none absolute top-1/2 left-1/2 h-px w-screen -translate-x-1/2 -translate-y-1/2 bg-border opacity-80", ruleClassName),
|
|
2385
|
+
style: {
|
|
2386
|
+
maskImage,
|
|
2387
|
+
WebkitMaskImage: maskImage
|
|
2388
|
+
}
|
|
2389
|
+
}) : null,
|
|
2390
|
+
/* @__PURE__ */ jsx("svg", {
|
|
2391
|
+
viewBox: `0 0 ${VIEWBOX} ${VIEWBOX}`,
|
|
2392
|
+
"aria-hidden": true,
|
|
2393
|
+
className: "absolute inset-0 size-full origin-center animate-spin fill-current motion-reduce:animate-none [font-family:inherit] [font-weight:inherit]",
|
|
2394
|
+
style: {
|
|
2395
|
+
animationDuration: `${duration}s`,
|
|
2396
|
+
animationTimingFunction: "linear"
|
|
2397
|
+
},
|
|
2398
|
+
children: chars.map((char, i) => /* @__PURE__ */ jsx("text", {
|
|
2399
|
+
x: VIEWBOX / 2,
|
|
2400
|
+
y: 18,
|
|
2401
|
+
textAnchor: "middle",
|
|
2402
|
+
fontSize: 14,
|
|
2403
|
+
fill: "currentColor",
|
|
2404
|
+
transform: `rotate(${-90 + i * step} ${VIEWBOX / 2} ${VIEWBOX / 2})`,
|
|
2405
|
+
children: renderChar(char)
|
|
2406
|
+
}, i))
|
|
2407
|
+
}),
|
|
2408
|
+
/* @__PURE__ */ jsx("div", {
|
|
2409
|
+
className: cn("relative z-10 flex items-center justify-center [&_img]:block [&_img]:h-auto [&_img]:w-full [&_svg]:h-auto [&_svg]:w-full", imageClassName),
|
|
2410
|
+
style: { width: size * .34 },
|
|
2411
|
+
children: image
|
|
2412
|
+
})
|
|
2413
|
+
]
|
|
2414
|
+
});
|
|
2415
|
+
});
|
|
2416
|
+
RotatingBadge.displayName = "RotatingBadge";
|
|
2417
|
+
//#endregion
|
|
2350
2418
|
//#region src/components/avatar.tsx
|
|
2351
2419
|
const avatarVariants = cva("relative flex h-10 w-10 shrink-0", {
|
|
2352
2420
|
variants: { shape: {
|
|
@@ -6741,7 +6809,7 @@ const FAQColumnsBlock = React.forwardRef(({ items, title, description, eyebrow,
|
|
|
6741
6809
|
FAQColumnsBlock.displayName = "FAQColumnsBlock";
|
|
6742
6810
|
//#endregion
|
|
6743
6811
|
//#region src/blocks/marketing/reviews-block.tsx
|
|
6744
|
-
function initials$
|
|
6812
|
+
function initials$2(name) {
|
|
6745
6813
|
return name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
6746
6814
|
}
|
|
6747
6815
|
const SKELETON_CARDS = 4;
|
|
@@ -6841,7 +6909,7 @@ const ReviewsBlock = React.forwardRef(({ reviews, averageRating, totalReviews, t
|
|
|
6841
6909
|
alt: review.author.name
|
|
6842
6910
|
}), /* @__PURE__ */ jsx(AvatarFallback, {
|
|
6843
6911
|
className: "text-xs",
|
|
6844
|
-
children: initials$
|
|
6912
|
+
children: initials$2(review.author.name)
|
|
6845
6913
|
})]
|
|
6846
6914
|
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsxs("div", {
|
|
6847
6915
|
className: "flex items-center gap-1.5",
|
|
@@ -6876,7 +6944,7 @@ const ReviewsBlock = React.forwardRef(({ reviews, averageRating, totalReviews, t
|
|
|
6876
6944
|
ReviewsBlock.displayName = "ReviewsBlock";
|
|
6877
6945
|
//#endregion
|
|
6878
6946
|
//#region src/blocks/marketing/testimonial-masonry-block.tsx
|
|
6879
|
-
function initials(name) {
|
|
6947
|
+
function initials$1(name) {
|
|
6880
6948
|
return name.split(" ").map((part) => part[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
6881
6949
|
}
|
|
6882
6950
|
function groupCardsByRow(cards) {
|
|
@@ -6984,7 +7052,7 @@ const TestimonialMasonry = React.forwardRef(({ items, title, description, eyebro
|
|
|
6984
7052
|
alt: item.author.name
|
|
6985
7053
|
}) : null, /* @__PURE__ */ jsx(AvatarFallback, {
|
|
6986
7054
|
className: "text-xs",
|
|
6987
|
-
children: initials(item.author.name)
|
|
7055
|
+
children: initials$1(item.author.name)
|
|
6988
7056
|
})] })
|
|
6989
7057
|
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("div", {
|
|
6990
7058
|
className: cn("mb-0.5 text-base font-medium leading-tight", authorNameClassName),
|
|
@@ -7019,6 +7087,274 @@ const TestimonialMasonry = React.forwardRef(({ items, title, description, eyebro
|
|
|
7019
7087
|
});
|
|
7020
7088
|
TestimonialMasonry.displayName = "TestimonialMasonry";
|
|
7021
7089
|
//#endregion
|
|
7090
|
+
//#region src/blocks/marketing/resources-block.tsx
|
|
7091
|
+
function initials(name) {
|
|
7092
|
+
return name.split(" ").map((n) => n[0]).filter(Boolean).slice(0, 2).join("").toUpperCase();
|
|
7093
|
+
}
|
|
7094
|
+
function ResourceImage({ item, className }) {
|
|
7095
|
+
if (typeof item.image === "string") return /* @__PURE__ */ jsx("img", {
|
|
7096
|
+
src: item.image,
|
|
7097
|
+
alt: item.imageAlt ?? "",
|
|
7098
|
+
className: cn("h-full w-full object-cover", className)
|
|
7099
|
+
});
|
|
7100
|
+
if (item.image) return /* @__PURE__ */ jsx(Fragment, { children: item.image });
|
|
7101
|
+
return /* @__PURE__ */ jsx("div", { className: cn("h-full w-full", item.backgroundClass ?? "bg-muted", className) });
|
|
7102
|
+
}
|
|
7103
|
+
function ResourceCategories({ item, categoryStyles }) {
|
|
7104
|
+
if (!item.categories || item.categories.length === 0) return null;
|
|
7105
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7106
|
+
className: "flex flex-wrap gap-1.5",
|
|
7107
|
+
children: item.categories.map((category) => {
|
|
7108
|
+
const style = categoryStyles?.[category];
|
|
7109
|
+
return /* @__PURE__ */ jsx(Badge, {
|
|
7110
|
+
variant: style?.variant ?? "secondary",
|
|
7111
|
+
className: style?.className,
|
|
7112
|
+
children: category
|
|
7113
|
+
}, category);
|
|
7114
|
+
})
|
|
7115
|
+
});
|
|
7116
|
+
}
|
|
7117
|
+
function ResourceMeta({ item, tone = "default" }) {
|
|
7118
|
+
const mutedClass = tone === "light" ? "text-white/75" : "text-muted-foreground";
|
|
7119
|
+
return /* @__PURE__ */ jsxs("div", {
|
|
7120
|
+
className: "flex items-center gap-2.5",
|
|
7121
|
+
children: [/* @__PURE__ */ jsx(Avatar, {
|
|
7122
|
+
className: "size-8",
|
|
7123
|
+
children: item.author.avatar ? item.author.avatar : /* @__PURE__ */ jsxs(Fragment, { children: [item.author.avatarUrl && /* @__PURE__ */ jsx(AvatarImage, {
|
|
7124
|
+
src: item.author.avatarUrl,
|
|
7125
|
+
alt: item.author.name
|
|
7126
|
+
}), /* @__PURE__ */ jsx(AvatarFallback, {
|
|
7127
|
+
className: "text-xs",
|
|
7128
|
+
children: initials(item.author.name)
|
|
7129
|
+
})] })
|
|
7130
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
7131
|
+
className: "text-sm",
|
|
7132
|
+
children: [
|
|
7133
|
+
/* @__PURE__ */ jsx("span", {
|
|
7134
|
+
className: cn("font-medium", tone === "light" && "text-white"),
|
|
7135
|
+
children: item.author.name
|
|
7136
|
+
}),
|
|
7137
|
+
/* @__PURE__ */ jsxs("span", {
|
|
7138
|
+
className: mutedClass,
|
|
7139
|
+
"aria-hidden": true,
|
|
7140
|
+
children: [
|
|
7141
|
+
" ",
|
|
7142
|
+
"·",
|
|
7143
|
+
" "
|
|
7144
|
+
]
|
|
7145
|
+
}),
|
|
7146
|
+
/* @__PURE__ */ jsx("span", {
|
|
7147
|
+
className: mutedClass,
|
|
7148
|
+
children: item.date
|
|
7149
|
+
})
|
|
7150
|
+
]
|
|
7151
|
+
})]
|
|
7152
|
+
});
|
|
7153
|
+
}
|
|
7154
|
+
/**
|
|
7155
|
+
* The scrim/tint layer for `cardVariant="overlay"` cards: an explicit
|
|
7156
|
+
* `backgroundClass` always wins, otherwise `scrim: true` opts into a
|
|
7157
|
+
* built-in default — applied whether or not there's an image, so a
|
|
7158
|
+
* consumer who wants every card in the block to read the same "dark card"
|
|
7159
|
+
* way (not just the ones with photos) can just set `scrim: true`
|
|
7160
|
+
* everywhere. The one exception is `backgroundClass` with no image: there,
|
|
7161
|
+
* `ResourceImage` already renders it as the card's own background, so a
|
|
7162
|
+
* second copy here would just duplicate it.
|
|
7163
|
+
*/
|
|
7164
|
+
function ResourceScrim({ item, cardVariant }) {
|
|
7165
|
+
if (cardVariant !== "overlay") return null;
|
|
7166
|
+
if (item.backgroundClass) {
|
|
7167
|
+
if (!item.image) return null;
|
|
7168
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7169
|
+
"aria-hidden": true,
|
|
7170
|
+
"data-resource-scrim": "true",
|
|
7171
|
+
className: cn("absolute inset-0", item.backgroundClass)
|
|
7172
|
+
});
|
|
7173
|
+
}
|
|
7174
|
+
if (item.scrim) return /* @__PURE__ */ jsx("div", {
|
|
7175
|
+
"aria-hidden": true,
|
|
7176
|
+
"data-resource-scrim": "true",
|
|
7177
|
+
className: "absolute inset-0 bg-gradient-to-t from-black/85 to-black/55"
|
|
7178
|
+
});
|
|
7179
|
+
return null;
|
|
7180
|
+
}
|
|
7181
|
+
/** Renders the card wrapper as an anchor, a button, or a plain div, depending on which action props are set. */
|
|
7182
|
+
function ResourceCardWrapper({ item, className, cardVariant, children }) {
|
|
7183
|
+
const dataAttrs = {
|
|
7184
|
+
"data-resource-id": item.id,
|
|
7185
|
+
...cardVariant === "overlay" && { "data-card-variant": "overlay" }
|
|
7186
|
+
};
|
|
7187
|
+
if (item.href) return /* @__PURE__ */ jsx("a", {
|
|
7188
|
+
href: item.href,
|
|
7189
|
+
target: item.target === "_blank" ? "_blank" : void 0,
|
|
7190
|
+
rel: item.target === "_blank" ? "noopener noreferrer" : void 0,
|
|
7191
|
+
"aria-label": item.header,
|
|
7192
|
+
...dataAttrs,
|
|
7193
|
+
className: cn("block focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2", className),
|
|
7194
|
+
children
|
|
7195
|
+
});
|
|
7196
|
+
if (item.onClick) return /* @__PURE__ */ jsx("button", {
|
|
7197
|
+
type: "button",
|
|
7198
|
+
"aria-label": item.header,
|
|
7199
|
+
onClick: item.onClick,
|
|
7200
|
+
...dataAttrs,
|
|
7201
|
+
className: cn("block w-full text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/40 focus-visible:ring-offset-2", className),
|
|
7202
|
+
children
|
|
7203
|
+
});
|
|
7204
|
+
return /* @__PURE__ */ jsx("div", {
|
|
7205
|
+
className,
|
|
7206
|
+
...dataAttrs,
|
|
7207
|
+
children
|
|
7208
|
+
});
|
|
7209
|
+
}
|
|
7210
|
+
function OverlayCardBody({ item, categoryStyles, headingClassName }) {
|
|
7211
|
+
const tone = item.image || item.backgroundClass || item.scrim ? "light" : "default";
|
|
7212
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
7213
|
+
/* @__PURE__ */ jsx("div", {
|
|
7214
|
+
className: "absolute inset-0",
|
|
7215
|
+
children: /* @__PURE__ */ jsx(ResourceImage, { item })
|
|
7216
|
+
}),
|
|
7217
|
+
/* @__PURE__ */ jsx(ResourceScrim, {
|
|
7218
|
+
item,
|
|
7219
|
+
cardVariant: "overlay"
|
|
7220
|
+
}),
|
|
7221
|
+
/* @__PURE__ */ jsxs("div", {
|
|
7222
|
+
className: "relative flex h-full min-w-0 flex-col justify-between gap-4 p-6",
|
|
7223
|
+
children: [/* @__PURE__ */ jsx(ResourceCategories, {
|
|
7224
|
+
item,
|
|
7225
|
+
categoryStyles
|
|
7226
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
7227
|
+
className: "min-w-0 space-y-2",
|
|
7228
|
+
children: [
|
|
7229
|
+
/* @__PURE__ */ jsx("h3", {
|
|
7230
|
+
className: cn("line-clamp-2 font-semibold tracking-tight", tone === "light" ? "text-white" : "text-foreground", headingClassName),
|
|
7231
|
+
children: item.header
|
|
7232
|
+
}),
|
|
7233
|
+
item.subtext && /* @__PURE__ */ jsx("p", {
|
|
7234
|
+
className: cn("line-clamp-2 text-sm", tone === "light" ? "text-white/80" : "text-muted-foreground"),
|
|
7235
|
+
children: item.subtext
|
|
7236
|
+
}),
|
|
7237
|
+
/* @__PURE__ */ jsx(ResourceMeta, {
|
|
7238
|
+
item,
|
|
7239
|
+
tone
|
|
7240
|
+
})
|
|
7241
|
+
]
|
|
7242
|
+
})]
|
|
7243
|
+
})
|
|
7244
|
+
] });
|
|
7245
|
+
}
|
|
7246
|
+
function FeaturedResourceCard({ item, categoryStyles, cardVariant = "default" }) {
|
|
7247
|
+
if (cardVariant === "overlay") return /* @__PURE__ */ jsx(ResourceCardWrapper, {
|
|
7248
|
+
item,
|
|
7249
|
+
cardVariant,
|
|
7250
|
+
className: "group relative min-h-[24rem] overflow-hidden rounded-lg shadow-sm transition-shadow hover:shadow-md",
|
|
7251
|
+
children: /* @__PURE__ */ jsx(OverlayCardBody, {
|
|
7252
|
+
item,
|
|
7253
|
+
categoryStyles,
|
|
7254
|
+
headingClassName: "text-xl md:text-2xl"
|
|
7255
|
+
})
|
|
7256
|
+
});
|
|
7257
|
+
return /* @__PURE__ */ jsxs(ResourceCardWrapper, {
|
|
7258
|
+
item,
|
|
7259
|
+
cardVariant,
|
|
7260
|
+
className: "group overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm transition-shadow hover:shadow-md",
|
|
7261
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
7262
|
+
className: "aspect-[16/9] w-full overflow-hidden",
|
|
7263
|
+
children: /* @__PURE__ */ jsx(ResourceImage, { item })
|
|
7264
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
7265
|
+
className: "space-y-4 p-6",
|
|
7266
|
+
children: [
|
|
7267
|
+
/* @__PURE__ */ jsx(ResourceCategories, {
|
|
7268
|
+
item,
|
|
7269
|
+
categoryStyles
|
|
7270
|
+
}),
|
|
7271
|
+
/* @__PURE__ */ jsxs("div", {
|
|
7272
|
+
className: "space-y-2",
|
|
7273
|
+
children: [/* @__PURE__ */ jsx("h3", {
|
|
7274
|
+
className: "text-xl font-semibold tracking-tight md:text-2xl",
|
|
7275
|
+
children: item.header
|
|
7276
|
+
}), item.subtext && /* @__PURE__ */ jsx("p", {
|
|
7277
|
+
className: "text-muted-foreground",
|
|
7278
|
+
children: item.subtext
|
|
7279
|
+
})]
|
|
7280
|
+
}),
|
|
7281
|
+
/* @__PURE__ */ jsx(ResourceMeta, { item })
|
|
7282
|
+
]
|
|
7283
|
+
})]
|
|
7284
|
+
});
|
|
7285
|
+
}
|
|
7286
|
+
function ResourceListCard({ item, categoryStyles, cardVariant = "default" }) {
|
|
7287
|
+
if (cardVariant === "overlay") return /* @__PURE__ */ jsx(ResourceCardWrapper, {
|
|
7288
|
+
item,
|
|
7289
|
+
cardVariant,
|
|
7290
|
+
className: "group relative aspect-[2/1] min-h-[14rem] overflow-hidden rounded-lg shadow-sm transition-shadow hover:shadow-md",
|
|
7291
|
+
children: /* @__PURE__ */ jsx(OverlayCardBody, {
|
|
7292
|
+
item,
|
|
7293
|
+
categoryStyles
|
|
7294
|
+
})
|
|
7295
|
+
});
|
|
7296
|
+
return /* @__PURE__ */ jsxs(ResourceCardWrapper, {
|
|
7297
|
+
item,
|
|
7298
|
+
cardVariant,
|
|
7299
|
+
className: "group flex flex-1 gap-4 rounded-lg border bg-card p-4 text-card-foreground shadow-sm transition-shadow hover:shadow-md",
|
|
7300
|
+
children: [/* @__PURE__ */ jsx("div", {
|
|
7301
|
+
className: "aspect-square w-24 shrink-0 overflow-hidden rounded-md",
|
|
7302
|
+
children: /* @__PURE__ */ jsx(ResourceImage, { item })
|
|
7303
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
7304
|
+
"data-resource-content": true,
|
|
7305
|
+
className: "flex min-w-0 flex-1 flex-col justify-between gap-2",
|
|
7306
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
7307
|
+
className: "space-y-1.5",
|
|
7308
|
+
children: [/* @__PURE__ */ jsx(ResourceCategories, {
|
|
7309
|
+
item,
|
|
7310
|
+
categoryStyles
|
|
7311
|
+
}), /* @__PURE__ */ jsxs("div", { children: [/* @__PURE__ */ jsx("h3", {
|
|
7312
|
+
className: "font-semibold tracking-tight",
|
|
7313
|
+
children: item.header
|
|
7314
|
+
}), item.subtext && /* @__PURE__ */ jsx("p", {
|
|
7315
|
+
className: "line-clamp-2 text-sm text-muted-foreground",
|
|
7316
|
+
children: item.subtext
|
|
7317
|
+
})] })]
|
|
7318
|
+
}), /* @__PURE__ */ jsx(ResourceMeta, { item })]
|
|
7319
|
+
})]
|
|
7320
|
+
});
|
|
7321
|
+
}
|
|
7322
|
+
const ResourcesBlock = React.forwardRef(({ title = "Resources & Whitepapers", subtitle, featured, resources, categoryStyles, cardVariant = "default", className, ...props }, ref) => {
|
|
7323
|
+
return /* @__PURE__ */ jsx("section", {
|
|
7324
|
+
ref,
|
|
7325
|
+
className: cn("py-16 md:py-24", className),
|
|
7326
|
+
...props,
|
|
7327
|
+
children: /* @__PURE__ */ jsxs("div", {
|
|
7328
|
+
className: "mx-auto max-w-6xl px-4 sm:px-6",
|
|
7329
|
+
children: [/* @__PURE__ */ jsxs("div", {
|
|
7330
|
+
className: "mb-8 max-w-2xl md:mb-12",
|
|
7331
|
+
children: [/* @__PURE__ */ jsx("h2", {
|
|
7332
|
+
className: "text-2xl font-semibold tracking-tight md:text-3xl",
|
|
7333
|
+
children: title
|
|
7334
|
+
}), subtitle && /* @__PURE__ */ jsx("p", {
|
|
7335
|
+
className: "mt-2 text-muted-foreground",
|
|
7336
|
+
children: subtitle
|
|
7337
|
+
})]
|
|
7338
|
+
}), /* @__PURE__ */ jsxs("div", {
|
|
7339
|
+
className: "grid gap-8 lg:grid-cols-2 lg:items-stretch",
|
|
7340
|
+
children: [/* @__PURE__ */ jsx(FeaturedResourceCard, {
|
|
7341
|
+
item: featured,
|
|
7342
|
+
categoryStyles,
|
|
7343
|
+
cardVariant
|
|
7344
|
+
}), /* @__PURE__ */ jsx("div", {
|
|
7345
|
+
className: "flex flex-col gap-6",
|
|
7346
|
+
children: resources.map((resource) => /* @__PURE__ */ jsx(ResourceListCard, {
|
|
7347
|
+
item: resource,
|
|
7348
|
+
categoryStyles,
|
|
7349
|
+
cardVariant
|
|
7350
|
+
}, resource.id))
|
|
7351
|
+
})]
|
|
7352
|
+
})]
|
|
7353
|
+
})
|
|
7354
|
+
});
|
|
7355
|
+
});
|
|
7356
|
+
ResourcesBlock.displayName = "ResourcesBlock";
|
|
7357
|
+
//#endregion
|
|
7022
7358
|
//#region src/blocks/settings/profile-settings-block.tsx
|
|
7023
7359
|
function ProfileSettingsBlock({ initialData, onSave, onAvatarChange, loading = false, error, disabled = false, className }) {
|
|
7024
7360
|
const fileInputRef = React.useRef(null);
|
|
@@ -7297,6 +7633,6 @@ function NotificationSettingsBlock({ groups, onSave, loading = false, error, dis
|
|
|
7297
7633
|
});
|
|
7298
7634
|
}
|
|
7299
7635
|
//#endregion
|
|
7300
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSidebarBlock, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BisonProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeInput, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CurrencyInput, DataTable, DataTableColumnHeader, DatePicker, DateRangePicker, DensityProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTitle, EmptyStateBlock, FAQColumnsBlock, FieldGroupScope, FieldProvider, FloatingNavBlock, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, Input, InputGroup, JsonLd, Label, MaintenanceBlock, MediaCard, NapBlock, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, NotificationSettingsBlock, OutlinedField, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverTrigger, ProcessStepsBlock, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, Rating, ResetPasswordBlock, ReviewsBlock, SavedPing, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShowcasePanelsBlock, Sidebar, SidebarBlock, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignInBlock, SignUpBlock, Skeleton, Slider, SocialProviders, Spinner, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperLabel, StepperSeparator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialMasonry, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, TimePicker, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, formatUsPhone, napRecordToJsonLd, navigationMenuTriggerStyle, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, toast, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFormContext, useHideOnScroll, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
7636
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, AccountSettingsBlock, Alert, AlertDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AppSidebarBlock, AspectRatio, Avatar, AvatarFallback, AvatarImage, Badge, BisonProvider, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator, Button, Calendar, Card, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Checkbox, CodeInput, Collapsible, CollapsibleContent, CollapsibleTrigger, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, ContextMenu, ContextMenuCheckboxItem, ContextMenuContent, ContextMenuGroup, ContextMenuItem, ContextMenuLabel, ContextMenuPortal, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSub, ContextMenuSubContent, ContextMenuSubTrigger, ContextMenuTrigger, CurrencyInput, DataTable, DataTableColumnHeader, DatePicker, DateRangePicker, DensityProvider, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EditableTitle, EmptyStateBlock, FAQColumnsBlock, FieldGroupScope, FieldProvider, FloatingNavBlock, FooterBlock, ForgotPasswordBlock, Form, FormError, FormField, HeaderBlock, Input, InputGroup, JsonLd, Label, MaintenanceBlock, MediaCard, NapBlock, NavigationMenu, NavigationMenuContent, NavigationMenuIndicator, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuTrigger, NavigationMenuViewport, NotFoundBlock, NotificationSettingsBlock, OutlinedField, PageShell, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, PasswordInput, PhoneInput, Popover, PopoverContent, PopoverTrigger, ProcessStepsBlock, ProfileSettingsBlock, Progress, ProgressBar, RadioGroup, RadioGroupItem, Rating, ResetPasswordBlock, ResourcesBlock, ReviewsBlock, RotatingBadge, SavedPing, ScrollArea, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectSeparator, SelectTrigger, SelectValue, Separator, ServerErrorBlock, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetOverlay, SheetPortal, SheetTitle, SheetTrigger, ShowcasePanelsBlock, Sidebar, SidebarBlock, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, SignInBlock, SignUpBlock, Skeleton, Slider, SocialProviders, Spinner, Stepper, StepperDescription, StepperIndicator, StepperItem, StepperLabel, StepperSeparator, Switch, Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, TestimonialMasonry, TextContent, TextEditor, Textarea, ThemeProvider, ThemeScope, TimePicker, Toaster, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, VerifyBlock, actionNegativeToneClasses, actionNeutralIconChromeClasses, actionNeutralToneClasses, actionPositiveToneClasses, alertVariants, avatarVariants, badgeVariants, buttonVariants, cn, dateRangePresets, editableTitleVariants, formatUsPhone, napRecordToJsonLd, navigationMenuTriggerStyle, outlinedFieldNestResetClasses, parseUsPhoneDigits, progressBarVariants, ratingVariants, spinnerVariants, stepperIndicatorVariants, stepperItemVariants, stepperLabelVariants, switchVariants, toast, useDensity, useField, useFieldControl, useFieldGroup, useFieldIds, useFormContext, useHideOnScroll, useIsMobile, useScrollReveal, useSidebar, useTheme };
|
|
7301
7637
|
|
|
7302
7638
|
//# sourceMappingURL=index.mjs.map
|