@octaviaflow/core 3.1.0-beta.74 → 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.
Files changed (62) hide show
  1. package/dist/chunk-2N74IQCL.js +5700 -0
  2. package/dist/chunk-2N74IQCL.js.map +1 -0
  3. package/dist/chunk-CVU6QDOL.js +1696 -0
  4. package/dist/chunk-CVU6QDOL.js.map +1 -0
  5. package/dist/chunk-PZIWTCI6.js +1690 -0
  6. package/dist/chunk-PZIWTCI6.js.map +1 -0
  7. package/dist/chunk-REEBXURQ.js +1646 -0
  8. package/dist/chunk-REEBXURQ.js.map +1 -0
  9. package/dist/components/Avatar/Avatar.d.ts +17 -3
  10. package/dist/components/Avatar/Avatar.d.ts.map +1 -1
  11. package/dist/components/Avatar/index.d.ts +1 -1
  12. package/dist/components/Avatar/index.d.ts.map +1 -1
  13. package/dist/components/BlogCard/BlogCard.d.ts +1 -1
  14. package/dist/components/BlogCard/BlogCard.d.ts.map +1 -1
  15. package/dist/components/FlowSettingsDialog/FlowSettingsDialog.d.ts +37 -0
  16. package/dist/components/FlowSettingsDialog/FlowSettingsDialog.d.ts.map +1 -0
  17. package/dist/components/FlowSettingsDialog/index.d.ts +2 -0
  18. package/dist/components/FlowSettingsDialog/index.d.ts.map +1 -0
  19. package/dist/components/FlowToolbar/FlowToolbar.d.ts +26 -0
  20. package/dist/components/FlowToolbar/FlowToolbar.d.ts.map +1 -1
  21. package/dist/components/FlowToolbar/index.d.ts +1 -1
  22. package/dist/components/FlowToolbar/index.d.ts.map +1 -1
  23. package/dist/components/KanbanCard/KanbanCard.d.ts +1 -1
  24. package/dist/components/KanbanCard/KanbanCard.d.ts.map +1 -1
  25. package/dist/components/MembersSettings/MembersSettings.d.ts +35 -0
  26. package/dist/components/MembersSettings/MembersSettings.d.ts.map +1 -0
  27. package/dist/components/MembersSettings/index.d.ts +2 -0
  28. package/dist/components/MembersSettings/index.d.ts.map +1 -0
  29. package/dist/components/OrganizationSettings/OrganizationSettings.d.ts +41 -0
  30. package/dist/components/OrganizationSettings/OrganizationSettings.d.ts.map +1 -0
  31. package/dist/components/OrganizationSettings/index.d.ts +2 -0
  32. package/dist/components/OrganizationSettings/index.d.ts.map +1 -0
  33. package/dist/components/ProfileSettings/ProfileSettings.d.ts +46 -0
  34. package/dist/components/ProfileSettings/ProfileSettings.d.ts.map +1 -0
  35. package/dist/components/ProfileSettings/index.d.ts +2 -0
  36. package/dist/components/ProfileSettings/index.d.ts.map +1 -0
  37. package/dist/components/SettingsLayout/SettingsLayout.d.ts +26 -0
  38. package/dist/components/SettingsLayout/SettingsLayout.d.ts.map +1 -0
  39. package/dist/components/SettingsLayout/index.d.ts +2 -0
  40. package/dist/components/SettingsLayout/index.d.ts.map +1 -0
  41. package/dist/components/TemplateCard/TemplateCard.d.ts +1 -1
  42. package/dist/components/TemplateCard/TemplateCard.d.ts.map +1 -1
  43. package/dist/components/TestimonialCard/TestimonialCard.d.ts +1 -1
  44. package/dist/components/TestimonialCard/TestimonialCard.d.ts.map +1 -1
  45. package/dist/components/UserCard/UserCard.d.ts +1 -1
  46. package/dist/components/UserCard/UserCard.d.ts.map +1 -1
  47. package/dist/components/WorkflowHeader/WorkflowHeader.d.ts +1 -31
  48. package/dist/components/WorkflowHeader/WorkflowHeader.d.ts.map +1 -1
  49. package/dist/components/WorkflowHeader/WorkflowHeaderExpanded.d.ts +0 -23
  50. package/dist/components/WorkflowHeader/WorkflowHeaderExpanded.d.ts.map +1 -1
  51. package/dist/index.cjs +7008 -5980
  52. package/dist/index.cjs.map +1 -1
  53. package/dist/index.d.ts +7 -2
  54. package/dist/index.d.ts.map +1 -1
  55. package/dist/index.js +3160 -2112
  56. package/dist/index.js.map +1 -1
  57. package/dist/marketing.cjs +228 -260
  58. package/dist/marketing.cjs.map +1 -1
  59. package/dist/marketing.js +1 -1
  60. package/dist/styles.css +1 -1
  61. package/dist/workflow.js +1 -1
  62. package/package.json +1 -1
@@ -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
- const resolved = seed ?? initials ?? alt ?? "?";
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, initials, alt]);
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
- function AvatarStack2({
3757
- children,
3758
- max,
3759
- size = "md",
3760
- renderOverflow,
3761
- direction = "ltr",
3762
- className,
3763
- ...rest
3764
- }, ref) {
3765
- const arr = Array.isArray(children) ? children : [children];
3766
- const visible = max && arr.length > max ? arr.slice(0, max) : arr;
3767
- const overflow = max && arr.length > max ? arr.length - max : 0;
3768
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(
3769
- "div",
3770
- {
3771
- ...rest,
3772
- ref,
3773
- className: cn(
3774
- "ods-avatar-stack",
3775
- `ods-avatar-stack--${direction}`,
3776
- className
3777
- ),
3778
- children: [
3779
- visible,
3780
- overflow > 0 && (renderOverflow ? renderOverflow(overflow) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3781
- "div",
3782
- {
3783
- className: cn(
3784
- "ods-avatar",
3785
- `ods-avatar--${size}`,
3786
- "ods-avatar--circle",
3787
- "ods-avatar-stack__overflow"
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
- function BlogCard2({
3935
- cover,
3936
- coverAspect = "16/9",
3937
- category,
3938
- tags,
3939
- meta,
3940
- readingTime,
3941
- title,
3942
- titleAs = "h3",
3943
- description,
3944
- author,
3945
- footer,
3946
- radius = "md",
3947
- orientation = "vertical",
3948
- href,
3949
- onClick,
3950
- id: providedId,
3951
- className,
3952
- ...rest
3953
- }, ref) {
3954
- const reactId = (0, import_react24.useId)();
3955
- const baseId = providedId ?? `ods-blog-card-${reactId}`;
3956
- const titleId = `${baseId}-title`;
3957
- const descId = description ? `${baseId}-desc` : void 0;
3958
- const tagList = tags ?? (category ? [category] : []);
3959
- const body = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_jsx_runtime12.Fragment, { children: [
3960
- cover && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
3961
- "div",
3962
- {
3963
- className: cn(
3964
- "ods-blog-card__cover",
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
- (author || footer) && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__footer", children: [
3995
- author && /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__author", children: [
3996
- author.avatar && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(
3997
- Avatar,
3998
- {
3999
- size: "sm",
4000
- src: author.avatar.src,
4001
- initials: author.avatar.initials,
4002
- alt: author.avatar.alt ?? (typeof author.name === "string" ? author.name : void 0)
4003
- }
4004
- ),
4005
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("div", { className: "ods-blog-card__author-text", children: [
4006
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__author-name", children: author.name }),
4007
- author.byline && /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { className: "ods-blog-card__author-byline", children: author.byline })
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
- ...rest,
4033
- ref,
4034
- href,
4035
- id: baseId,
4036
- onClick,
4037
- children: body
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
- ...rest,
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
- onClick && "ods-blog-card--interactive",
4000
+ "ods-blog-card--interactive",
4056
4001
  className
4057
4002
  ),
4058
4003
  "aria-labelledby": titleId,
4059
4004
  "aria-describedby": descId,
4060
- children: body
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)(function TestimonialCard2({
5379
- quote,
5380
- author,
5381
- role: legacyRole,
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 ? void 0 : {
5400
- initials: typeof legacyInitial === "string" ? legacyInitial : typeof author === "string" ? author.charAt(0).toUpperCase() : void 0
5401
- }
5402
- };
5403
- const renderAvatar = () => {
5404
- if (!isAuthorObject(author) && legacyAvatar) {
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
- "span",
5391
+ Avatar,
5407
5392
  {
5408
- className: "ods-testimonial__avatar ods-testimonial__avatar--legacy",
5409
- "aria-hidden": "true",
5410
- children: legacyAvatar
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.jsx)(
5415
- Avatar,
5402
+ };
5403
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5404
+ Card,
5416
5405
  {
5417
- size: size === "sm" ? "xs" : size === "lg" ? "md" : "sm",
5418
- src: resolved.avatar?.src,
5419
- initials: resolved.avatar?.initials,
5420
- alt: resolved.avatar?.alt ?? (typeof resolved.name === "string" ? resolved.name : void 0),
5421
- className: "ods-testimonial__avatar"
5422
- }
5423
- );
5424
- };
5425
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
5426
- Card,
5427
- {
5428
- ...rest,
5429
- ref,
5430
- id: baseId,
5431
- radius,
5432
- padding: "none",
5433
- variant: "subtle",
5434
- className: cn(
5435
- "ods-testimonial",
5436
- `ods-testimonial--${size}`,
5437
- className
5438
- ),
5439
- "aria-labelledby": authorId,
5440
- "aria-describedby": quoteId,
5441
- children: [
5442
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "ods-testimonial__head", children: [
5443
- /* @__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" }) }),
5444
- logo && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "ods-testimonial__logo", "aria-hidden": "true", children: logo })
5445
- ] }),
5446
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("blockquote", { id: quoteId, className: "ods-testimonial__text", children: quote }),
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
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("figcaption", { className: "ods-testimonial__author", id: authorId, children: [
5473
- renderAvatar(),
5474
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("span", { className: "ods-testimonial__author-info", children: [
5475
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "ods-testimonial__author-name", children: resolved.name }),
5476
- resolved.role && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "ods-testimonial__author-role", children: resolved.role })
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