@octaviaflow/core 3.1.0-beta.75 → 3.1.0-beta.76
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/chunk-CVU6QDOL.js +1696 -0
- package/dist/chunk-CVU6QDOL.js.map +1 -0
- package/dist/chunk-PZIWTCI6.js +1690 -0
- package/dist/chunk-PZIWTCI6.js.map +1 -0
- package/dist/chunk-REEBXURQ.js +1646 -0
- package/dist/chunk-REEBXURQ.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +17 -3
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Avatar/index.d.ts.map +1 -1
- package/dist/components/BlogCard/BlogCard.d.ts +1 -1
- package/dist/components/BlogCard/BlogCard.d.ts.map +1 -1
- package/dist/components/KanbanCard/KanbanCard.d.ts +1 -1
- package/dist/components/KanbanCard/KanbanCard.d.ts.map +1 -1
- package/dist/components/MembersSettings/MembersSettings.d.ts.map +1 -1
- package/dist/components/OrganizationSettings/OrganizationSettings.d.ts.map +1 -1
- package/dist/components/SettingsLayout/SettingsLayout.d.ts +1 -1
- package/dist/components/SettingsLayout/SettingsLayout.d.ts.map +1 -1
- package/dist/components/TemplateCard/TemplateCard.d.ts +1 -1
- package/dist/components/TemplateCard/TemplateCard.d.ts.map +1 -1
- package/dist/components/TestimonialCard/TestimonialCard.d.ts +1 -1
- package/dist/components/TestimonialCard/TestimonialCard.d.ts.map +1 -1
- package/dist/components/UserCard/UserCard.d.ts +1 -1
- package/dist/components/UserCard/UserCard.d.ts.map +1 -1
- package/dist/index.cjs +1477 -1482
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1137 -1119
- package/dist/index.js.map +1 -1
- package/dist/marketing.cjs +228 -260
- package/dist/marketing.cjs.map +1 -1
- package/dist/marketing.js +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/marketing.cjs
CHANGED
|
@@ -3673,6 +3673,7 @@ var Avatar = (0, import_react22.forwardRef)(function Avatar2({
|
|
|
3673
3673
|
icon,
|
|
3674
3674
|
fallback,
|
|
3675
3675
|
seed,
|
|
3676
|
+
palette,
|
|
3676
3677
|
size = "md",
|
|
3677
3678
|
shape = "circle",
|
|
3678
3679
|
status,
|
|
@@ -3691,9 +3692,12 @@ var Avatar = (0, import_react22.forwardRef)(function Avatar2({
|
|
|
3691
3692
|
[initials]
|
|
3692
3693
|
);
|
|
3693
3694
|
const paletteIdx = (0, import_react22.useMemo)(() => {
|
|
3694
|
-
|
|
3695
|
+
if (palette !== void 0) {
|
|
3696
|
+
return (Math.trunc(palette) % PALETTE_SIZE + PALETTE_SIZE) % PALETTE_SIZE;
|
|
3697
|
+
}
|
|
3698
|
+
const resolved = seed ?? alt ?? initials ?? "?";
|
|
3695
3699
|
return paletteIndexFor(resolved);
|
|
3696
|
-
}, [seed,
|
|
3700
|
+
}, [palette, seed, alt, initials]);
|
|
3697
3701
|
const baseName = alt || normalizedInitials || "Avatar";
|
|
3698
3702
|
const announcedStatus = status ? statusLabel ?? STATUS_DEFAULT_LABEL[status] : "";
|
|
3699
3703
|
const accessibleName = announcedStatus ? `${baseName}, ${announcedStatus}` : baseName;
|
|
@@ -3752,53 +3756,39 @@ var Avatar = (0, import_react22.forwardRef)(function Avatar2({
|
|
|
3752
3756
|
);
|
|
3753
3757
|
});
|
|
3754
3758
|
Avatar.displayName = "Avatar";
|
|
3755
|
-
var AvatarStack = (0, import_react22.forwardRef)(
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3766
|
-
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
|
|
3781
|
-
|
|
3782
|
-
|
|
3783
|
-
|
|
3784
|
-
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
),
|
|
3789
|
-
role: "img",
|
|
3790
|
-
"aria-label": `${overflow} more`,
|
|
3791
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "ods-avatar__inner", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "ods-avatar__initials", "aria-hidden": "true", children: [
|
|
3792
|
-
"+",
|
|
3793
|
-
overflow
|
|
3794
|
-
] }) })
|
|
3795
|
-
}
|
|
3796
|
-
))
|
|
3797
|
-
]
|
|
3798
|
-
}
|
|
3799
|
-
);
|
|
3800
|
-
}
|
|
3801
|
-
);
|
|
3759
|
+
var AvatarStack = (0, import_react22.forwardRef)(function AvatarStack2({ children, max, size = "md", renderOverflow, direction = "ltr", className, ...rest }, ref) {
|
|
3760
|
+
const arr = Array.isArray(children) ? children : [children];
|
|
3761
|
+
const visible = max && arr.length > max ? arr.slice(0, max) : arr;
|
|
3762
|
+
const overflow = max && arr.length > max ? arr.length - max : 0;
|
|
3763
|
+
return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
|
|
3764
|
+
"div",
|
|
3765
|
+
{
|
|
3766
|
+
...rest,
|
|
3767
|
+
ref,
|
|
3768
|
+
className: cn("ods-avatar-stack", `ods-avatar-stack--${direction}`, className),
|
|
3769
|
+
children: [
|
|
3770
|
+
visible,
|
|
3771
|
+
overflow > 0 && (renderOverflow ? renderOverflow(overflow) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
|
|
3772
|
+
"div",
|
|
3773
|
+
{
|
|
3774
|
+
className: cn(
|
|
3775
|
+
"ods-avatar",
|
|
3776
|
+
`ods-avatar--${size}`,
|
|
3777
|
+
"ods-avatar--circle",
|
|
3778
|
+
"ods-avatar-stack__overflow"
|
|
3779
|
+
),
|
|
3780
|
+
role: "img",
|
|
3781
|
+
"aria-label": `${overflow} more`,
|
|
3782
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("span", { className: "ods-avatar__inner", children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)("span", { className: "ods-avatar__initials", "aria-hidden": "true", children: [
|
|
3783
|
+
"+",
|
|
3784
|
+
overflow
|
|
3785
|
+
] }) })
|
|
3786
|
+
}
|
|
3787
|
+
))
|
|
3788
|
+
]
|
|
3789
|
+
}
|
|
3790
|
+
);
|
|
3791
|
+
});
|
|
3802
3792
|
AvatarStack.displayName = "AvatarStack";
|
|
3803
3793
|
|
|
3804
3794
|
// src/components/Card/Card.tsx
|
|
@@ -3930,138 +3920,123 @@ Card.Description = CardDescription;
|
|
|
3930
3920
|
|
|
3931
3921
|
// src/components/BlogCard/BlogCard.tsx
|
|
3932
3922
|
var import_jsx_runtime12 = require("react/jsx-runtime");
|
|
3933
|
-
var BlogCard = (0, import_react24.forwardRef)(
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
3938
|
-
|
|
3939
|
-
|
|
3940
|
-
|
|
3941
|
-
|
|
3942
|
-
|
|
3943
|
-
|
|
3944
|
-
|
|
3945
|
-
|
|
3946
|
-
|
|
3947
|
-
|
|
3948
|
-
|
|
3949
|
-
|
|
3950
|
-
|
|
3951
|
-
|
|
3952
|
-
|
|
3953
|
-
|
|
3954
|
-
|
|
3955
|
-
|
|
3956
|
-
|
|
3957
|
-
|
|
3958
|
-
|
|
3959
|
-
|
|
3960
|
-
|
|
3961
|
-
|
|
3962
|
-
|
|
3963
|
-
|
|
3964
|
-
|
|
3965
|
-
`ods-blog-card__cover--aspect-${coverAspect.replace("/", "-")}`
|
|
3966
|
-
),
|
|
3967
|
-
"aria-hidden": "true",
|
|
3968
|
-
children: cover
|
|
3969
|
-
}
|
|
3970
|
-
),
|
|
3971
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__body", children: [
|
|
3972
|
-
(tagList.length > 0 || meta || readingTime) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__meta", children: [
|
|
3973
|
-
tagList.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__tags", children: tagList.map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__tag", children: t }, i)) }),
|
|
3974
|
-
meta && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__date", children: meta }),
|
|
3975
|
-
readingTime && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__reading", children: readingTime })
|
|
3976
|
-
] }),
|
|
3977
|
-
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3978
|
-
Card.Title,
|
|
3979
|
-
{
|
|
3980
|
-
as: titleAs,
|
|
3981
|
-
id: titleId,
|
|
3982
|
-
className: "ods-blog-card__title",
|
|
3983
|
-
children: title
|
|
3984
|
-
}
|
|
3985
|
-
),
|
|
3986
|
-
description && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3987
|
-
Card.Description,
|
|
3988
|
-
{
|
|
3989
|
-
id: descId,
|
|
3990
|
-
className: "ods-blog-card__desc",
|
|
3991
|
-
children: description
|
|
3992
|
-
}
|
|
3923
|
+
var BlogCard = (0, import_react24.forwardRef)(function BlogCard2({
|
|
3924
|
+
cover,
|
|
3925
|
+
coverAspect = "16/9",
|
|
3926
|
+
category,
|
|
3927
|
+
tags,
|
|
3928
|
+
meta,
|
|
3929
|
+
readingTime,
|
|
3930
|
+
title,
|
|
3931
|
+
titleAs = "h3",
|
|
3932
|
+
description,
|
|
3933
|
+
author,
|
|
3934
|
+
footer,
|
|
3935
|
+
radius = "md",
|
|
3936
|
+
orientation = "vertical",
|
|
3937
|
+
href,
|
|
3938
|
+
onClick,
|
|
3939
|
+
id: providedId,
|
|
3940
|
+
className,
|
|
3941
|
+
...rest
|
|
3942
|
+
}, ref) {
|
|
3943
|
+
const reactId = (0, import_react24.useId)();
|
|
3944
|
+
const baseId = providedId ?? `ods-blog-card-${reactId}`;
|
|
3945
|
+
const titleId = `${baseId}-title`;
|
|
3946
|
+
const descId = description ? `${baseId}-desc` : void 0;
|
|
3947
|
+
const tagList = tags ?? (category ? [category] : []);
|
|
3948
|
+
const body = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
|
|
3949
|
+
cover && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3950
|
+
"div",
|
|
3951
|
+
{
|
|
3952
|
+
className: cn(
|
|
3953
|
+
"ods-blog-card__cover",
|
|
3954
|
+
`ods-blog-card__cover--aspect-${coverAspect.replace("/", "-")}`
|
|
3993
3955
|
),
|
|
3994
|
-
|
|
3995
|
-
|
|
3996
|
-
|
|
3997
|
-
|
|
3998
|
-
|
|
3999
|
-
|
|
4000
|
-
|
|
4001
|
-
|
|
4002
|
-
|
|
4003
|
-
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4010
|
-
footer && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "ods-blog-card__action", children: footer })
|
|
4011
|
-
] })
|
|
4012
|
-
] })
|
|
4013
|
-
] });
|
|
4014
|
-
if (href) {
|
|
4015
|
-
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4016
|
-
Card,
|
|
4017
|
-
{
|
|
4018
|
-
asChild: true,
|
|
4019
|
-
radius,
|
|
4020
|
-
padding: "none",
|
|
4021
|
-
className: cn(
|
|
4022
|
-
"ods-blog-card",
|
|
4023
|
-
`ods-blog-card--${orientation}`,
|
|
4024
|
-
"ods-blog-card--interactive",
|
|
4025
|
-
className
|
|
4026
|
-
),
|
|
4027
|
-
"aria-labelledby": titleId,
|
|
4028
|
-
"aria-describedby": descId,
|
|
4029
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4030
|
-
"a",
|
|
3956
|
+
"aria-hidden": "true",
|
|
3957
|
+
children: cover
|
|
3958
|
+
}
|
|
3959
|
+
),
|
|
3960
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__body", children: [
|
|
3961
|
+
(tagList.length > 0 || meta || readingTime) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__meta", children: [
|
|
3962
|
+
tagList.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__tags", children: tagList.map((t, i) => /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__tag", children: t }, i)) }),
|
|
3963
|
+
meta && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__date", children: meta }),
|
|
3964
|
+
readingTime && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__reading", children: readingTime })
|
|
3965
|
+
] }),
|
|
3966
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Card.Title, { as: titleAs, id: titleId, className: "ods-blog-card__title", children: title }),
|
|
3967
|
+
description && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(Card.Description, { id: descId, className: "ods-blog-card__desc", children: description }),
|
|
3968
|
+
(author || footer) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__footer", children: [
|
|
3969
|
+
author && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__author", children: [
|
|
3970
|
+
author.avatar && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
3971
|
+
Avatar,
|
|
4031
3972
|
{
|
|
4032
|
-
|
|
4033
|
-
|
|
4034
|
-
|
|
4035
|
-
|
|
4036
|
-
|
|
4037
|
-
|
|
3973
|
+
size: "sm",
|
|
3974
|
+
src: author.avatar.src,
|
|
3975
|
+
initials: author.avatar.initials,
|
|
3976
|
+
seed: author.avatar.seed,
|
|
3977
|
+
palette: author.avatar.palette,
|
|
3978
|
+
alt: author.avatar.alt ?? (typeof author.name === "string" ? author.name : void 0)
|
|
4038
3979
|
}
|
|
4039
|
-
)
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
3980
|
+
),
|
|
3981
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__author-text", children: [
|
|
3982
|
+
/* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__author-name", children: author.name }),
|
|
3983
|
+
author.byline && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__author-byline", children: author.byline })
|
|
3984
|
+
] })
|
|
3985
|
+
] }),
|
|
3986
|
+
footer && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("div", { className: "ods-blog-card__action", children: footer })
|
|
3987
|
+
] })
|
|
3988
|
+
] })
|
|
3989
|
+
] });
|
|
3990
|
+
if (href) {
|
|
4043
3991
|
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4044
3992
|
Card,
|
|
4045
3993
|
{
|
|
4046
|
-
|
|
4047
|
-
ref,
|
|
4048
|
-
id: baseId,
|
|
3994
|
+
asChild: true,
|
|
4049
3995
|
radius,
|
|
4050
3996
|
padding: "none",
|
|
4051
|
-
onClick,
|
|
4052
3997
|
className: cn(
|
|
4053
3998
|
"ods-blog-card",
|
|
4054
3999
|
`ods-blog-card--${orientation}`,
|
|
4055
|
-
|
|
4000
|
+
"ods-blog-card--interactive",
|
|
4056
4001
|
className
|
|
4057
4002
|
),
|
|
4058
4003
|
"aria-labelledby": titleId,
|
|
4059
4004
|
"aria-describedby": descId,
|
|
4060
|
-
children:
|
|
4005
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4006
|
+
"a",
|
|
4007
|
+
{
|
|
4008
|
+
...rest,
|
|
4009
|
+
ref,
|
|
4010
|
+
href,
|
|
4011
|
+
id: baseId,
|
|
4012
|
+
onClick,
|
|
4013
|
+
children: body
|
|
4014
|
+
}
|
|
4015
|
+
)
|
|
4061
4016
|
}
|
|
4062
4017
|
);
|
|
4063
4018
|
}
|
|
4064
|
-
)
|
|
4019
|
+
return /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
|
|
4020
|
+
Card,
|
|
4021
|
+
{
|
|
4022
|
+
...rest,
|
|
4023
|
+
ref,
|
|
4024
|
+
id: baseId,
|
|
4025
|
+
radius,
|
|
4026
|
+
padding: "none",
|
|
4027
|
+
onClick,
|
|
4028
|
+
className: cn(
|
|
4029
|
+
"ods-blog-card",
|
|
4030
|
+
`ods-blog-card--${orientation}`,
|
|
4031
|
+
onClick && "ods-blog-card--interactive",
|
|
4032
|
+
className
|
|
4033
|
+
),
|
|
4034
|
+
"aria-labelledby": titleId,
|
|
4035
|
+
"aria-describedby": descId,
|
|
4036
|
+
children: body
|
|
4037
|
+
}
|
|
4038
|
+
);
|
|
4039
|
+
});
|
|
4065
4040
|
BlogCard.displayName = "BlogCard";
|
|
4066
4041
|
|
|
4067
4042
|
// src/marketing/components/BlogGrid/BlogGrid.tsx
|
|
@@ -5375,111 +5350,104 @@ function isAuthorObject(v) {
|
|
|
5375
5350
|
return typeof v === "object" && v !== null && !("type" in v) && // exclude React elements
|
|
5376
5351
|
"name" in v;
|
|
5377
5352
|
}
|
|
5378
|
-
var TestimonialCard = (0, import_react31.forwardRef)(
|
|
5379
|
-
|
|
5380
|
-
|
|
5381
|
-
|
|
5382
|
-
avatar: legacyAvatar,
|
|
5383
|
-
initial: legacyInitial,
|
|
5384
|
-
rating,
|
|
5385
|
-
logo,
|
|
5386
|
-
size = "md",
|
|
5387
|
-
radius = "md",
|
|
5388
|
-
id: providedId,
|
|
5389
|
-
className,
|
|
5390
|
-
...rest
|
|
5391
|
-
}, ref) {
|
|
5392
|
-
const reactId = (0, import_react31.useId)();
|
|
5393
|
-
const baseId = providedId ?? `ods-testimonial-${reactId}`;
|
|
5394
|
-
const quoteId = `${baseId}-quote`;
|
|
5395
|
-
const authorId = `${baseId}-author`;
|
|
5396
|
-
const resolved = isAuthorObject(author) ? author : {
|
|
5397
|
-
name: author,
|
|
5353
|
+
var TestimonialCard = (0, import_react31.forwardRef)(
|
|
5354
|
+
function TestimonialCard2({
|
|
5355
|
+
quote,
|
|
5356
|
+
author,
|
|
5398
5357
|
role: legacyRole,
|
|
5399
|
-
avatar: legacyAvatar
|
|
5400
|
-
|
|
5401
|
-
|
|
5402
|
-
|
|
5403
|
-
|
|
5404
|
-
|
|
5358
|
+
avatar: legacyAvatar,
|
|
5359
|
+
initial: legacyInitial,
|
|
5360
|
+
rating,
|
|
5361
|
+
logo,
|
|
5362
|
+
size = "md",
|
|
5363
|
+
radius = "md",
|
|
5364
|
+
id: providedId,
|
|
5365
|
+
className,
|
|
5366
|
+
...rest
|
|
5367
|
+
}, ref) {
|
|
5368
|
+
const reactId = (0, import_react31.useId)();
|
|
5369
|
+
const baseId = providedId ?? `ods-testimonial-${reactId}`;
|
|
5370
|
+
const quoteId = `${baseId}-quote`;
|
|
5371
|
+
const authorId = `${baseId}-author`;
|
|
5372
|
+
const resolved = isAuthorObject(author) ? author : {
|
|
5373
|
+
name: author,
|
|
5374
|
+
role: legacyRole,
|
|
5375
|
+
avatar: legacyAvatar ? void 0 : {
|
|
5376
|
+
initials: typeof legacyInitial === "string" ? legacyInitial : typeof author === "string" ? author.charAt(0).toUpperCase() : void 0
|
|
5377
|
+
}
|
|
5378
|
+
};
|
|
5379
|
+
const renderAvatar = () => {
|
|
5380
|
+
if (!isAuthorObject(author) && legacyAvatar) {
|
|
5381
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5382
|
+
"span",
|
|
5383
|
+
{
|
|
5384
|
+
className: "ods-testimonial__avatar ods-testimonial__avatar--legacy",
|
|
5385
|
+
"aria-hidden": "true",
|
|
5386
|
+
children: legacyAvatar
|
|
5387
|
+
}
|
|
5388
|
+
);
|
|
5389
|
+
}
|
|
5405
5390
|
return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5406
|
-
|
|
5391
|
+
Avatar,
|
|
5407
5392
|
{
|
|
5408
|
-
|
|
5409
|
-
|
|
5410
|
-
|
|
5393
|
+
size: size === "sm" ? "xs" : size === "lg" ? "md" : "sm",
|
|
5394
|
+
src: resolved.avatar?.src,
|
|
5395
|
+
initials: resolved.avatar?.initials,
|
|
5396
|
+
seed: resolved.avatar?.seed,
|
|
5397
|
+
palette: resolved.avatar?.palette,
|
|
5398
|
+
alt: resolved.avatar?.alt ?? (typeof resolved.name === "string" ? resolved.name : void 0),
|
|
5399
|
+
className: "ods-testimonial__avatar"
|
|
5411
5400
|
}
|
|
5412
5401
|
);
|
|
5413
|
-
}
|
|
5414
|
-
return /* @__PURE__ */ (0, import_jsx_runtime33.
|
|
5415
|
-
|
|
5402
|
+
};
|
|
5403
|
+
return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
|
|
5404
|
+
Card,
|
|
5416
5405
|
{
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5424
|
-
|
|
5425
|
-
|
|
5426
|
-
|
|
5427
|
-
|
|
5428
|
-
|
|
5429
|
-
|
|
5430
|
-
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
|
|
5434
|
-
|
|
5435
|
-
|
|
5436
|
-
|
|
5437
|
-
|
|
5438
|
-
|
|
5439
|
-
|
|
5440
|
-
|
|
5441
|
-
|
|
5442
|
-
|
|
5443
|
-
|
|
5444
|
-
|
|
5445
|
-
|
|
5446
|
-
|
|
5447
|
-
typeof rating === "number" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5448
|
-
"div",
|
|
5449
|
-
{
|
|
5450
|
-
className: "ods-testimonial__rating",
|
|
5451
|
-
role: "img",
|
|
5452
|
-
"aria-label": `${rating} out of 5 stars`,
|
|
5453
|
-
children: Array.from({ length: 5 }).map(
|
|
5454
|
-
(_, i) => i < Math.round(rating) ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5455
|
-
import_icons9.StarFilledIcon,
|
|
5456
|
-
{
|
|
5457
|
-
size: "xs",
|
|
5458
|
-
className: "ods-testimonial__star ods-testimonial__star--on"
|
|
5459
|
-
},
|
|
5460
|
-
i
|
|
5461
|
-
) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5462
|
-
import_icons9.StarIcon,
|
|
5463
|
-
{
|
|
5464
|
-
size: "xs",
|
|
5465
|
-
className: "ods-testimonial__star"
|
|
5466
|
-
},
|
|
5467
|
-
i
|
|
5406
|
+
...rest,
|
|
5407
|
+
ref,
|
|
5408
|
+
id: baseId,
|
|
5409
|
+
radius,
|
|
5410
|
+
padding: "none",
|
|
5411
|
+
variant: "subtle",
|
|
5412
|
+
className: cn("ods-testimonial", `ods-testimonial--${size}`, className),
|
|
5413
|
+
"aria-labelledby": authorId,
|
|
5414
|
+
"aria-describedby": quoteId,
|
|
5415
|
+
children: [
|
|
5416
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "ods-testimonial__head", children: [
|
|
5417
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "ods-testimonial__quote", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons9.QuotesIcon, { size: "md" }) }),
|
|
5418
|
+
logo && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "ods-testimonial__logo", "aria-hidden": "true", children: logo })
|
|
5419
|
+
] }),
|
|
5420
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("blockquote", { id: quoteId, className: "ods-testimonial__text", children: quote }),
|
|
5421
|
+
typeof rating === "number" && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5422
|
+
"div",
|
|
5423
|
+
{
|
|
5424
|
+
className: "ods-testimonial__rating",
|
|
5425
|
+
role: "img",
|
|
5426
|
+
"aria-label": `${rating} out of 5 stars`,
|
|
5427
|
+
children: Array.from({ length: 5 }).map(
|
|
5428
|
+
(_, i) => i < Math.round(rating) ? /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
|
|
5429
|
+
import_icons9.StarFilledIcon,
|
|
5430
|
+
{
|
|
5431
|
+
size: "xs",
|
|
5432
|
+
className: "ods-testimonial__star ods-testimonial__star--on"
|
|
5433
|
+
},
|
|
5434
|
+
i
|
|
5435
|
+
) : /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons9.StarIcon, { size: "xs", className: "ods-testimonial__star" }, i)
|
|
5468
5436
|
)
|
|
5469
|
-
|
|
5470
|
-
|
|
5471
|
-
|
|
5472
|
-
|
|
5473
|
-
|
|
5474
|
-
|
|
5475
|
-
|
|
5476
|
-
|
|
5437
|
+
}
|
|
5438
|
+
),
|
|
5439
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("figcaption", { className: "ods-testimonial__author", id: authorId, children: [
|
|
5440
|
+
renderAvatar(),
|
|
5441
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "ods-testimonial__author-info", children: [
|
|
5442
|
+
/* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "ods-testimonial__author-name", children: resolved.name }),
|
|
5443
|
+
resolved.role && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "ods-testimonial__author-role", children: resolved.role })
|
|
5444
|
+
] })
|
|
5477
5445
|
] })
|
|
5478
|
-
]
|
|
5479
|
-
|
|
5480
|
-
|
|
5481
|
-
|
|
5482
|
-
|
|
5446
|
+
]
|
|
5447
|
+
}
|
|
5448
|
+
);
|
|
5449
|
+
}
|
|
5450
|
+
);
|
|
5483
5451
|
TestimonialCard.displayName = "TestimonialCard";
|
|
5484
5452
|
|
|
5485
5453
|
// src/marketing/components/TestimonialStrip/TestimonialStrip.tsx
|