@flamingo-stack/openframe-frontend-core 0.0.334 → 0.0.335-snapshot.20260629131848

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 (84) hide show
  1. package/dist/{chunk-33LDNKXG.cjs → chunk-2FVULOIK.cjs} +25 -25
  2. package/dist/{chunk-33LDNKXG.cjs.map → chunk-2FVULOIK.cjs.map} +1 -1
  3. package/dist/{chunk-4DGLF7MO.cjs → chunk-45BYRANY.cjs} +15 -15
  4. package/dist/{chunk-4DGLF7MO.cjs.map → chunk-45BYRANY.cjs.map} +1 -1
  5. package/dist/{chunk-2ULLQCWU.js → chunk-7D5UKWEA.js} +2 -2
  6. package/dist/{chunk-EHFYP5DY.js → chunk-CIE66RSH.js} +2 -2
  7. package/dist/{chunk-LM34VIFI.js → chunk-CPALUGYN.js} +2 -2
  8. package/dist/{chunk-5S6RJ6B6.cjs → chunk-H2OKGWDK.cjs} +31 -31
  9. package/dist/{chunk-5S6RJ6B6.cjs.map → chunk-H2OKGWDK.cjs.map} +1 -1
  10. package/dist/{chunk-6IJCVAJA.cjs → chunk-H5VFN7IP.cjs} +54 -15
  11. package/dist/chunk-H5VFN7IP.cjs.map +1 -0
  12. package/dist/{chunk-IFNFRMCD.cjs → chunk-HIRDBLM3.cjs} +62 -62
  13. package/dist/{chunk-IFNFRMCD.cjs.map → chunk-HIRDBLM3.cjs.map} +1 -1
  14. package/dist/{chunk-4ETIXSEC.cjs → chunk-I5KS2YDX.cjs} +56 -56
  15. package/dist/{chunk-4ETIXSEC.cjs.map → chunk-I5KS2YDX.cjs.map} +1 -1
  16. package/dist/{chunk-6S3UPKL4.js → chunk-JTW23UXA.js} +4 -4
  17. package/dist/{chunk-5R72BDBH.js → chunk-KDJJPHQE.js} +4 -4
  18. package/dist/{chunk-YXU5Q3PZ.js → chunk-KY6RWDEB.js} +2 -2
  19. package/dist/{chunk-34OG3XPN.js → chunk-L5TSBYSQ.js} +4 -4
  20. package/dist/{chunk-B7EFUHUH.js → chunk-LDTSPXZU.js} +54 -15
  21. package/dist/{chunk-B7EFUHUH.js.map → chunk-LDTSPXZU.js.map} +1 -1
  22. package/dist/{chunk-MB22JQJD.cjs → chunk-MDYAGMLF.cjs} +7 -7
  23. package/dist/{chunk-MB22JQJD.cjs.map → chunk-MDYAGMLF.cjs.map} +1 -1
  24. package/dist/{chunk-K2VYQUVG.cjs → chunk-MVXX2JTT.cjs} +5 -5
  25. package/dist/{chunk-K2VYQUVG.cjs.map → chunk-MVXX2JTT.cjs.map} +1 -1
  26. package/dist/{chunk-QMUAEGAK.cjs → chunk-NW57Y4CP.cjs} +37 -37
  27. package/dist/{chunk-QMUAEGAK.cjs.map → chunk-NW57Y4CP.cjs.map} +1 -1
  28. package/dist/{chunk-IWBGKGKP.cjs → chunk-OQ4VKWYU.cjs} +9 -9
  29. package/dist/{chunk-IWBGKGKP.cjs.map → chunk-OQ4VKWYU.cjs.map} +1 -1
  30. package/dist/{chunk-MU6WKXSA.js → chunk-R2TWMVBP.js} +4 -4
  31. package/dist/{chunk-CK7MAR74.js → chunk-RESNZ4Z3.js} +2 -2
  32. package/dist/{chunk-INBIA4WS.cjs → chunk-SD2J3HJ5.cjs} +12 -12
  33. package/dist/{chunk-INBIA4WS.cjs.map → chunk-SD2J3HJ5.cjs.map} +1 -1
  34. package/dist/{chunk-PKIH7NV3.js → chunk-TFNK6B4T.js} +2 -2
  35. package/dist/{chunk-ELR54K5F.cjs → chunk-US3DF2WZ.cjs} +26 -26
  36. package/dist/{chunk-ELR54K5F.cjs.map → chunk-US3DF2WZ.cjs.map} +1 -1
  37. package/dist/{chunk-GUORQAA5.js → chunk-XVZ62VX4.js} +2 -2
  38. package/dist/components/case-studies/index.cjs +8 -8
  39. package/dist/components/case-studies/index.js +2 -2
  40. package/dist/components/chat/index.cjs +2 -2
  41. package/dist/components/chat/index.js +1 -1
  42. package/dist/components/contact/index.cjs +3 -3
  43. package/dist/components/contact/index.js +2 -2
  44. package/dist/components/docs/index.cjs +5 -5
  45. package/dist/components/docs/index.js +4 -4
  46. package/dist/components/embeds/index.cjs +3 -3
  47. package/dist/components/embeds/index.js +2 -2
  48. package/dist/components/faq/index.cjs +3 -3
  49. package/dist/components/faq/index.js +2 -2
  50. package/dist/components/features/index.cjs +2 -2
  51. package/dist/components/features/index.js +1 -1
  52. package/dist/components/help-center-pages/index.cjs +20 -20
  53. package/dist/components/help-center-pages/index.js +11 -11
  54. package/dist/components/index.cjs +121 -121
  55. package/dist/components/index.js +9 -9
  56. package/dist/components/navigation/index.cjs +2 -2
  57. package/dist/components/navigation/index.js +1 -1
  58. package/dist/components/onboarding-guides/index.cjs +5 -5
  59. package/dist/components/onboarding-guides/index.js +4 -4
  60. package/dist/components/related-content/index.cjs +3 -3
  61. package/dist/components/related-content/index.js +2 -2
  62. package/dist/components/tickets/index.cjs +5 -5
  63. package/dist/components/tickets/index.js +4 -4
  64. package/dist/components/ui/dashboard-info-card.d.ts +31 -1
  65. package/dist/components/ui/dashboard-info-card.d.ts.map +1 -1
  66. package/dist/components/ui/index.cjs +2 -2
  67. package/dist/components/ui/index.js +1 -1
  68. package/dist/index.cjs +2 -2
  69. package/dist/index.js +1 -1
  70. package/package.json +1 -1
  71. package/src/components/ui/dashboard-info-card.tsx +98 -17
  72. package/src/stories/DashboardInfoCard.stories.tsx +117 -0
  73. package/dist/chunk-6IJCVAJA.cjs.map +0 -1
  74. /package/dist/{chunk-2ULLQCWU.js.map → chunk-7D5UKWEA.js.map} +0 -0
  75. /package/dist/{chunk-EHFYP5DY.js.map → chunk-CIE66RSH.js.map} +0 -0
  76. /package/dist/{chunk-LM34VIFI.js.map → chunk-CPALUGYN.js.map} +0 -0
  77. /package/dist/{chunk-6S3UPKL4.js.map → chunk-JTW23UXA.js.map} +0 -0
  78. /package/dist/{chunk-5R72BDBH.js.map → chunk-KDJJPHQE.js.map} +0 -0
  79. /package/dist/{chunk-YXU5Q3PZ.js.map → chunk-KY6RWDEB.js.map} +0 -0
  80. /package/dist/{chunk-34OG3XPN.js.map → chunk-L5TSBYSQ.js.map} +0 -0
  81. /package/dist/{chunk-MU6WKXSA.js.map → chunk-R2TWMVBP.js.map} +0 -0
  82. /package/dist/{chunk-CK7MAR74.js.map → chunk-RESNZ4Z3.js.map} +0 -0
  83. /package/dist/{chunk-PKIH7NV3.js.map → chunk-TFNK6B4T.js.map} +0 -0
  84. /package/dist/{chunk-GUORQAA5.js.map → chunk-XVZ62VX4.js.map} +0 -0
@@ -4,10 +4,10 @@ import {
4
4
  EmptyState,
5
5
  init_unified_pagination,
6
6
  unified_pagination_exports
7
- } from "./chunk-YXU5Q3PZ.js";
7
+ } from "./chunk-KY6RWDEB.js";
8
8
  import {
9
9
  DetailPageSkeleton
10
- } from "./chunk-PKIH7NV3.js";
10
+ } from "./chunk-TFNK6B4T.js";
11
11
  import {
12
12
  useSelfFetch
13
13
  } from "./chunk-65VXW6GZ.js";
@@ -39,7 +39,7 @@ import {
39
39
  isModifierClick,
40
40
  resolveContentHref,
41
41
  useEntityCardLink
42
- } from "./chunk-B7EFUHUH.js";
42
+ } from "./chunk-LDTSPXZU.js";
43
43
  import {
44
44
  STICKY_HEADER_OFFSET_PX,
45
45
  contentFetch,
@@ -1461,4 +1461,4 @@ export {
1461
1461
  useLegalDocs,
1462
1462
  LegalDocumentPage
1463
1463
  };
1464
- //# sourceMappingURL=chunk-6S3UPKL4.js.map
1464
+ //# sourceMappingURL=chunk-JTW23UXA.js.map
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  ContactForm
4
- } from "./chunk-GUORQAA5.js";
4
+ } from "./chunk-XVZ62VX4.js";
5
5
  import {
6
6
  DeliveryRow,
7
7
  DevCardRowContent,
@@ -10,7 +10,7 @@ import {
10
10
  EmptyState,
11
11
  UnifiedPagination,
12
12
  init_unified_pagination
13
- } from "./chunk-YXU5Q3PZ.js";
13
+ } from "./chunk-KY6RWDEB.js";
14
14
  import {
15
15
  AlertDialog,
16
16
  AlertDialogAction,
@@ -37,7 +37,7 @@ import {
37
37
  getStatusColorScheme,
38
38
  useChatAttachments,
39
39
  useChatIdentity
40
- } from "./chunk-B7EFUHUH.js";
40
+ } from "./chunk-LDTSPXZU.js";
41
41
  import {
42
42
  STICKY_HEADER_OFFSET_PX,
43
43
  embedAuthedFetch,
@@ -1913,4 +1913,4 @@ export {
1913
1913
  HelpCenterCreateForm,
1914
1914
  HelpCenterList
1915
1915
  };
1916
- //# sourceMappingURL=chunk-5R72BDBH.js.map
1916
+ //# sourceMappingURL=chunk-KDJJPHQE.js.map
@@ -11,7 +11,7 @@ import {
11
11
  TASK_TYPE_TEXT_COLORS,
12
12
  getStatusColorScheme,
13
13
  init_pagination
14
- } from "./chunk-B7EFUHUH.js";
14
+ } from "./chunk-LDTSPXZU.js";
15
15
  import {
16
16
  init_next_navigation,
17
17
  usePathname,
@@ -459,4 +459,4 @@ export {
459
459
  DevCardRowSkeletonList,
460
460
  DeliveryRow
461
461
  };
462
- //# sourceMappingURL=chunk-YXU5Q3PZ.js.map
462
+ //# sourceMappingURL=chunk-KY6RWDEB.js.map
@@ -2,11 +2,11 @@
2
2
  import {
3
3
  ArticleAuthorByline,
4
4
  DetailPageSkeleton
5
- } from "./chunk-PKIH7NV3.js";
5
+ } from "./chunk-TFNK6B4T.js";
6
6
  import {
7
7
  DocSearchBar,
8
8
  useDocSearch
9
- } from "./chunk-EHFYP5DY.js";
9
+ } from "./chunk-CIE66RSH.js";
10
10
  import {
11
11
  useSelfFetch
12
12
  } from "./chunk-65VXW6GZ.js";
@@ -25,7 +25,7 @@ import {
25
25
  getCaptionsUrl,
26
26
  resolveContentHref,
27
27
  useVideoWarmup
28
- } from "./chunk-B7EFUHUH.js";
28
+ } from "./chunk-LDTSPXZU.js";
29
29
  import {
30
30
  buildOgPlaceholderUrl
31
31
  } from "./chunk-SWGXCGQ3.js";
@@ -391,4 +391,4 @@ export {
391
391
  useOnboardingGuide,
392
392
  useOnboardingGuideSections
393
393
  };
394
- //# sourceMappingURL=chunk-34OG3XPN.js.map
394
+ //# sourceMappingURL=chunk-L5TSBYSQ.js.map
@@ -22663,7 +22663,9 @@ function DashboardInfoCard({
22663
22663
  percentage,
22664
22664
  showProgress = false,
22665
22665
  progressVariant,
22666
+ percentageDisplay = "auto",
22666
22667
  progressOverflow,
22668
+ progressSize,
22667
22669
  className,
22668
22670
  href,
22669
22671
  tooltip,
@@ -22671,29 +22673,66 @@ function DashboardInfoCard({
22671
22673
  subValue
22672
22674
  }) {
22673
22675
  const formattedValue = typeof value === "number" ? value.toLocaleString() : value;
22676
+ const renderPercentage = () => {
22677
+ if (percentage === void 0) return null;
22678
+ const asTag = percentageDisplay === "tag" || percentageDisplay === "auto" && (progressVariant === "warning" || progressVariant === "error");
22679
+ if (asTag) {
22680
+ const tagVariant = progressVariant === "warning" || progressVariant === "error" ? progressVariant : progressVariant === "success" ? "success" : "grey";
22681
+ return /* @__PURE__ */ jsx158(Tag, { variant: tagVariant, label: `${percentage}%` });
22682
+ }
22683
+ return /* @__PURE__ */ jsxs126("p", { className: "text-h4 text-ods-text-secondary", children: [
22684
+ "(",
22685
+ percentage,
22686
+ "%)"
22687
+ ] });
22688
+ };
22689
+ const renderProgress = () => {
22690
+ if (!showProgress || percentage === void 0) return null;
22691
+ const strokeFor = (size) => Math.max(2, Math.round(size * 10 / 56));
22692
+ const common = {
22693
+ percentage,
22694
+ variant: progressVariant,
22695
+ overflow: progressOverflow,
22696
+ showLabel: false
22697
+ };
22698
+ if (progressSize === void 0) {
22699
+ return /* @__PURE__ */ jsx158(CircularProgress, { ...common });
22700
+ }
22701
+ if (typeof progressSize === "number") {
22702
+ return /* @__PURE__ */ jsx158(CircularProgress, { ...common, size: progressSize, strokeWidth: strokeFor(progressSize) });
22703
+ }
22704
+ return /* @__PURE__ */ jsxs126(Fragment31, { children: [
22705
+ /* @__PURE__ */ jsx158(
22706
+ CircularProgress,
22707
+ {
22708
+ ...common,
22709
+ size: progressSize.base,
22710
+ strokeWidth: strokeFor(progressSize.base),
22711
+ className: "lg:hidden"
22712
+ }
22713
+ ),
22714
+ /* @__PURE__ */ jsx158(
22715
+ CircularProgress,
22716
+ {
22717
+ ...common,
22718
+ size: progressSize.lg,
22719
+ strokeWidth: strokeFor(progressSize.lg),
22720
+ className: "hidden lg:block"
22721
+ }
22722
+ )
22723
+ ] });
22724
+ };
22674
22725
  const cardContent = /* @__PURE__ */ jsxs126(Fragment31, { children: [
22675
22726
  /* @__PURE__ */ jsxs126("div", { className: "flex-1 flex flex-col", children: [
22676
22727
  titleSlot ?? /* @__PURE__ */ jsx158("p", { className: "text-h5 text-ods-text-secondary", children: title }),
22677
22728
  /* @__PURE__ */ jsxs126("div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
22678
22729
  /* @__PURE__ */ jsx158("p", { className: cn("text-h2 text-ods-text-primary", valueClassName), children: formattedValue }),
22679
22730
  subValue && /* @__PURE__ */ jsx158("p", { className: "text-h6 text-ods-text-secondary", children: subValue }),
22680
- percentage !== void 0 && (progressVariant === "warning" || progressVariant === "error" ? /* @__PURE__ */ jsx158(Tag, { variant: progressVariant, label: `${percentage}%` }) : /* @__PURE__ */ jsxs126("p", { className: "text-h4 text-ods-text-secondary", children: [
22681
- "(",
22682
- percentage,
22683
- "%)"
22684
- ] })),
22731
+ renderPercentage(),
22685
22732
  tooltip && /* @__PURE__ */ jsx158(FloatingTooltip, { content: tooltip, side: "top", children: /* @__PURE__ */ jsx158("span", { className: "cursor-help text-ods-text-secondary", children: /* @__PURE__ */ jsx158(QuestionCircleIcon, { size: 20 }) }) })
22686
22733
  ] })
22687
22734
  ] }),
22688
- showProgress && percentage !== void 0 && /* @__PURE__ */ jsx158(
22689
- CircularProgress,
22690
- {
22691
- percentage,
22692
- variant: progressVariant,
22693
- overflow: progressOverflow,
22694
- showLabel: false
22695
- }
22696
- )
22735
+ renderProgress()
22697
22736
  ] });
22698
22737
  const baseClassName = "bg-ods-card border border-ods-border rounded-sm p-[var(--spacing-system-m)] flex gap-[var(--spacing-system-s)] items-center transition-all";
22699
22738
  if (href) {
@@ -50060,4 +50099,4 @@ export {
50060
50099
  FAE_AVATAR_DATA_URI,
50061
50100
  assets
50062
50101
  };
50063
- //# sourceMappingURL=chunk-B7EFUHUH.js.map
50102
+ //# sourceMappingURL=chunk-LDTSPXZU.js.map