@flamingo-stack/openframe-frontend-core 0.0.823 → 0.0.825

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 (119) hide show
  1. package/dist/build/export-map.json +1 -1
  2. package/dist/chat-protocol/events.d.ts +0 -3
  3. package/dist/chat-protocol/events.d.ts.map +1 -1
  4. package/dist/chat-protocol/frames.d.ts +10 -7
  5. package/dist/chat-protocol/frames.d.ts.map +1 -1
  6. package/dist/chat-protocol/index.cjs +238 -234
  7. package/dist/chat-protocol/leading-frames.d.ts.map +1 -1
  8. package/dist/chat-protocol/leading-frames.js +6 -3
  9. package/dist/chat-protocol/progress.d.ts +13 -20
  10. package/dist/chat-protocol/progress.d.ts.map +1 -1
  11. package/dist/chat-protocol/progress.js +13 -11
  12. package/dist/{chunk-QCRJVO6Y.cjs → chunk-2IWAHBCC.cjs} +1 -1
  13. package/dist/{chunk-2LT2WR4O.cjs → chunk-2U7GXE3T.cjs} +2789 -2819
  14. package/dist/{chunk-DEWT25QK.cjs → chunk-47SHKOCY.cjs} +65 -72
  15. package/dist/{chunk-UUFL4FDS.cjs → chunk-4IY5FKYL.cjs} +14 -14
  16. package/dist/{chunk-TJFVIJPV.cjs → chunk-5S2GW6YG.cjs} +2 -2
  17. package/dist/{chunk-AK7MYM25.cjs → chunk-6LVJKPR3.cjs} +3 -3
  18. package/dist/{chunk-HWXFUI3R.cjs → chunk-7DJWIVQC.cjs} +30 -30
  19. package/dist/{chunk-K7NGDYBG.cjs → chunk-AO6YVNAH.cjs} +136 -136
  20. package/dist/{chunk-Y7BTM2NC.cjs → chunk-APTFXX2C.cjs} +39 -39
  21. package/dist/{chunk-L7YE6APP.cjs → chunk-AUBR3FGY.cjs} +11 -11
  22. package/dist/{chunk-XEIZL3I3.cjs → chunk-B7NSH7IK.cjs} +6 -6
  23. package/dist/{chunk-3JCDSZ6D.cjs → chunk-BN7QENV7.cjs} +4 -4
  24. package/dist/{chunk-U7CH53FT.cjs → chunk-DNZCSPMU.cjs} +13 -13
  25. package/dist/{chunk-KWS7YKCO.cjs → chunk-IMMTH3F3.cjs} +13 -13
  26. package/dist/{chunk-GP2Y3DBE.cjs → chunk-MALCUN2G.cjs} +6 -6
  27. package/dist/{chunk-Y3MPERIZ.cjs → chunk-MHR4C465.cjs} +3 -3
  28. package/dist/{chunk-YMDSCI4E.cjs → chunk-N7IDLF2G.cjs} +32 -32
  29. package/dist/{chunk-2U6MAM6D.cjs → chunk-NL34HKLS.cjs} +63 -63
  30. package/dist/{chunk-SBXL5EKE.cjs → chunk-P25RVNGX.cjs} +23 -23
  31. package/dist/{chunk-GBILLSRM.cjs → chunk-QOOMUGF2.cjs} +4 -4
  32. package/dist/{chunk-DYSMAPSI.cjs → chunk-XJMLZ63Y.cjs} +4 -4
  33. package/dist/{chunk-2YUWBIZM.cjs → chunk-Z7BLMJEI.cjs} +46 -46
  34. package/dist/{cloud-tenants-VQQ2KNJI.cjs → cloud-tenants-M4VFFN33.cjs} +6 -6
  35. package/dist/components/case-studies/index.cjs +20 -20
  36. package/dist/components/chat/embeddable-chat.d.ts +0 -2
  37. package/dist/components/chat/embeddable-chat.d.ts.map +1 -1
  38. package/dist/components/chat/embeddable-chat.js +1 -5
  39. package/dist/components/chat/entity-cards/blog-card.js +1 -1
  40. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
  41. package/dist/components/chat/hooks/use-sse-chat-adapter.js +0 -2
  42. package/dist/components/chat/hooks/use-unified-chat.d.ts.map +1 -1
  43. package/dist/components/chat/hooks/use-unified-chat.js +0 -1
  44. package/dist/components/chat/index.cjs +5 -5
  45. package/dist/components/chat/mingo-welcome.js +1 -1
  46. package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -1
  47. package/dist/components/chat/stream/chat-dialog-store.js +0 -1
  48. package/dist/components/chat/stream/chat-stream-reducer.d.ts +0 -4
  49. package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -1
  50. package/dist/components/chat/stream/chat-stream-reducer.js +6 -13
  51. package/dist/components/chat/types/unified-chat-state.types.d.ts +0 -5
  52. package/dist/components/chat/types/unified-chat-state.types.d.ts.map +1 -1
  53. package/dist/components/contact/index.cjs +7 -7
  54. package/dist/components/docs/index.cjs +10 -10
  55. package/dist/components/embeds/index.cjs +7 -7
  56. package/dist/components/faq/index.cjs +8 -8
  57. package/dist/components/features/filters-dropdown.js +2 -2
  58. package/dist/components/features/index.cjs +6 -6
  59. package/dist/components/features/notifications/approval-request-notification-tile.js +1 -1
  60. package/dist/components/help-center-pages/index.cjs +80 -80
  61. package/dist/components/index.cjs +48 -48
  62. package/dist/components/loading/index.d.ts.map +1 -1
  63. package/dist/components/meeting-scheduler/index.cjs +31 -31
  64. package/dist/components/navigation/index.cjs +9 -9
  65. package/dist/components/onboarding-guides/index.cjs +9 -9
  66. package/dist/components/product-demo/index.cjs +15 -15
  67. package/dist/components/related-content/index.cjs +4 -4
  68. package/dist/components/shared/article-author-byline.js +4 -4
  69. package/dist/components/tickets/index.cjs +11 -11
  70. package/dist/components/tickets/ticket-row.js +10 -17
  71. package/dist/components/ui/date-picker.js +1 -1
  72. package/dist/components/ui/index.cjs +6 -6
  73. package/dist/components/ui/markdown/base-components.js +1 -1
  74. package/dist/components/ui/markdown/engine.js +2 -2
  75. package/dist/components/ui/navigation-menu.js +1 -1
  76. package/dist/components/ui/radio-group.d.ts.map +1 -1
  77. package/dist/components/ui/radio-group.js +1 -1
  78. package/dist/components/ui/sticky-action-bar.js +1 -1
  79. package/dist/{devices-KKJHYQ72.cjs → devices-DW5NDXMD.cjs} +7 -7
  80. package/dist/{embeddable-chat-MQGYFYGX.cjs → embeddable-chat-NBJMXEXB.cjs} +67 -71
  81. package/dist/index.cjs +10 -10
  82. package/dist/{knowledge-VMLXNFDI.cjs → knowledge-EYJG2TNW.cjs} +7 -7
  83. package/dist/loading-standard/engine.d.mts.map +1 -1
  84. package/dist/{logs-EFXRQ6LV.cjs → logs-2LV7DTSL.cjs} +14 -14
  85. package/dist/{policies-SU3NQPFV.cjs → policies-HSDYIQBX.cjs} +10 -10
  86. package/dist/{scripts-WLLAUOAA.cjs → scripts-UI6V7ANQ.cjs} +11 -11
  87. package/dist/{software-update-WKUDBC3U.cjs → software-update-WMLY7VHH.cjs} +9 -9
  88. package/eslint-config/README.md +21 -0
  89. package/eslint-config/base.js +12 -0
  90. package/eslint-config/dead-classes.js +256 -0
  91. package/package.json +2 -1
  92. package/src/chat-protocol/events.ts +0 -3
  93. package/src/chat-protocol/frames.ts +12 -8
  94. package/src/chat-protocol/leading-frames.ts +7 -4
  95. package/src/chat-protocol/progress.ts +31 -28
  96. package/src/components/chat/embeddable-chat.tsx +2 -12
  97. package/src/components/chat/entity-cards/blog-card.tsx +1 -1
  98. package/src/components/chat/hooks/use-sse-chat-adapter.ts +0 -2
  99. package/src/components/chat/hooks/use-unified-chat.ts +0 -1
  100. package/src/components/chat/mingo-welcome.tsx +1 -1
  101. package/src/components/chat/stream/chat-dialog-store.ts +0 -1
  102. package/src/components/chat/stream/chat-stream-reducer.ts +6 -17
  103. package/src/components/chat/types/unified-chat-state.types.ts +0 -6
  104. package/src/components/features/filters-dropdown.tsx +2 -2
  105. package/src/components/features/notifications/approval-request-notification-tile.tsx +1 -1
  106. package/src/components/loading/index.ts +0 -5
  107. package/src/components/shared/article-author-byline.tsx +4 -4
  108. package/src/components/tickets/ticket-row.tsx +1 -4
  109. package/src/components/ui/date-picker.tsx +1 -1
  110. package/src/components/ui/markdown/base-components.tsx +1 -1
  111. package/src/components/ui/markdown/engine.tsx +4 -4
  112. package/src/components/ui/navigation-menu.tsx +1 -1
  113. package/src/components/ui/radio-group.tsx +1 -2
  114. package/src/components/ui/sticky-action-bar.tsx +1 -1
  115. package/src/loading-standard/engine.mjs +1 -2
  116. package/dist/components/loading/openmsp-heartbeat.d.ts +0 -7
  117. package/dist/components/loading/openmsp-heartbeat.d.ts.map +0 -1
  118. package/dist/components/loading/openmsp-heartbeat.js +0 -68
  119. package/src/components/loading/openmsp-heartbeat.tsx +0 -69
@@ -489,10 +489,10 @@ export const FiltersDropdown: FC<FiltersDropdownProps> = ({
489
489
  </div>
490
490
  {/* Action Buttons */}
491
491
  <div className="mt-4 flex shrink-0 gap-3">
492
- <Button variant="outline" onClick={handleReset} size="default" className="md:w-full!">
492
+ <Button variant="outline" onClick={handleReset} size="default">
493
493
  Reset
494
494
  </Button>
495
- <Button variant="accent" onClick={handleApply} size="default" className="md:w-full!">
495
+ <Button variant="accent" onClick={handleApply} size="default">
496
496
  Apply
497
497
  </Button>
498
498
  </div>
@@ -123,7 +123,7 @@ export function ApprovalRequestNotificationTile({
123
123
  disabled={processing}
124
124
  data-pressed={approvePressed || undefined}
125
125
  className={cn(
126
- 'ease-[cubic-bezier(.2,0,0,1)] transition-[filter,transform] duration-200 motion-reduce:transition-none',
126
+ 'transition-[filter,transform] duration-200 motion-reduce:transition-none',
127
127
  lockscreen ? LOCKSCREEN_APPROVAL_BUTTON_CLASS : APPROVAL_BUTTON_CLASS,
128
128
  approvePressed && 'scale-[0.98] brightness-75',
129
129
  )}
@@ -15,11 +15,6 @@ export {
15
15
  // New unified loading components
16
16
  export { ContentLoadingContainer, useContentLoading } from '../content-loading-container';
17
17
 
18
- // Note: OpenmspHeartbeatLoader is a client-only component and should be
19
- // imported directly from "./openmsp-heartbeat" in client components. Do NOT
20
- // export it here, otherwise server components that import this index will
21
- // break due to client-only code.
22
-
23
18
  export { LoadingRegion, type LoadingRegionProps } from './loading-region';
24
19
  export { LoadingStatus } from '../ui/loading-scope';
25
20
  export { LoadingFallback, LoadingSuspense } from './loading-fallback';
@@ -78,8 +78,8 @@ const AVATAR_BORDER_CLASS = 'rounded-full border-2 border-ods-border';
78
78
  const BODY_CLASS = 'min-w-0 flex-1';
79
79
  const NAME_ROW_CLASS = 'flex flex-wrap items-baseline gap-x-3 gap-y-1';
80
80
  const NAME_CLASS = 'text-ods-text-primary text-h5';
81
- const JOB_TITLE_CLASS = 'text-body-sm mt-0.5 font-body text-ods-text-secondary';
82
- const BIO_CLASS = 'text-body-md mt-2 font-body leading-relaxed text-ods-text-secondary';
81
+ const JOB_TITLE_CLASS = 'mt-0.5 font-body text-ods-text-secondary';
82
+ const BIO_CLASS = 'mt-2 font-body leading-relaxed text-ods-text-secondary';
83
83
 
84
84
  function formatDate(value: string | Date): string {
85
85
  // A published date is a content date: UTC-pinned through the one renderer, so
@@ -147,7 +147,7 @@ export function ArticleAuthorByline({
147
147
  )}
148
148
  </h3>
149
149
  {dateLabel && (
150
- <span className="text-body-sm inline-flex items-center gap-1 font-body text-ods-text-secondary">
150
+ <span className="inline-flex items-center gap-1 font-body text-ods-text-secondary">
151
151
  <Calendar className="h-3 w-3" />
152
152
  {dateLabel}
153
153
  </span>
@@ -157,7 +157,7 @@ export function ArticleAuthorByline({
157
157
  {formattedBio ? (
158
158
  <p className={BIO_CLASS}>{formattedBio}</p>
159
159
  ) : fallbackBio ? (
160
- <p className="text-body-md mt-2 font-body italic text-ods-text-secondary">{fallbackBio}</p>
160
+ <p className="mt-2 font-body italic text-ods-text-secondary">{fallbackBio}</p>
161
161
  ) : null}
162
162
  </div>
163
163
  </div>
@@ -161,10 +161,7 @@ function TicketRowLoaded({
161
161
  aria-expanded={expanded && !optimistic}
162
162
  aria-controls={`ticket-drawer-${ticket.id}`}
163
163
  />
164
- <CollapsibleContent
165
- id={`ticket-drawer-${ticket.id}`}
166
- className="data-[state=closed]:animate-collapsible-up data-[state=open]:animate-collapsible-down overflow-hidden"
167
- >
164
+ <CollapsibleContent id={`ticket-drawer-${ticket.id}`} className="overflow-hidden">
168
165
  <TicketDetailDrawer
169
166
  ticket={ticket}
170
167
  busy={busy}
@@ -352,7 +352,7 @@ export function DatePickerCalendar({
352
352
  cellInner,
353
353
  'flex items-center justify-center',
354
354
  'cursor-pointer border-none bg-transparent outline-none',
355
- 'font-inherit text-inherit',
355
+ 'text-inherit',
356
356
  ),
357
357
  // Painted through the `todayTint` modifier instead — see `isUnclaimedToday`.
358
358
  today: '',
@@ -410,7 +410,7 @@ export function buildBaseComponents({
410
410
  // bottom row's `border-b` used to sit against the frame's own border as a
411
411
  // doubled line.
412
412
  table: ({ children }: MdRenderProps<'table'>) => (
413
- <div className="table-container my-6 overflow-x-auto rounded-lg border border-ods-border bg-ods-card">
413
+ <div className="my-6 overflow-x-auto rounded-lg border border-ods-border bg-ods-card">
414
414
  <table className="w-full table-fixed md:table-auto [&_tr:last-child_td]:border-b-0">{children}</table>
415
415
  </div>
416
416
  ),
@@ -217,13 +217,13 @@ const SKELETON_LEAD_LINES = { phone: 5, wide: 3 } as const;
217
217
  /** The renderer's root class, on the rendered document and on every skeleton of one: it names a markdown body. */
218
218
  export const MARKDOWN_RENDERER_CLASS = 'simple-markdown-renderer';
219
219
  const RENDERER_CLASS = MARKDOWN_RENDERER_CLASS;
220
- const CONTENT_WRAPPER_CLASS = 'content-wrapper max-w-none';
220
+ const CONTENT_WRAPPER_CLASS = 'max-w-none';
221
221
  /**
222
222
  * The rendered body. `[&>*:last-child]:mb-0`: the last block never pushes what follows the document further down.
223
- * Prose's own last-child reset has zero specificity, so a block that sets its own margin (a table's `my-6`) kept it,
224
- * and a document's distance to the next section depended on which block it ended with.
223
+ * Without it a block that sets its own margin (a table's `my-6`) kept it, and a document's distance to the next
224
+ * section depended on which block it ended with.
225
225
  */
226
- const ARTICLE_CLASS = 'prose prose-lg max-w-none [&>*:last-child]:mb-0';
226
+ const ARTICLE_CLASS = 'max-w-none [&>*:last-child]:mb-0';
227
227
 
228
228
  /**
229
229
  * One memoized completed block of a streaming message. Parent-level memos
@@ -14,7 +14,7 @@ const NavigationMenuViewport = forwardRef<
14
14
  <div className={cn('absolute left-0 top-full flex justify-center')}>
15
15
  <NavigationMenuPrimitive.Viewport
16
16
  className={cn(
17
- 'origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',
17
+ 'relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]',
18
18
  className,
19
19
  )}
20
20
  ref={ref}
@@ -244,8 +244,7 @@ const RadioGroupBlock = forwardRef<ComponentRef<typeof RadioGroupPrimitive.Root>
244
244
  )
245
245
  : cn(
246
246
  'rounded-[6px] border bg-ods-card p-[var(--spacing-system-sf)]',
247
- interactive &&
248
- 'has-[[data-state=checked]]:bg-[var(--ods-system-greys-soft-grey)]/30 has-[[data-state=checked]]:border-ods-accent/40',
247
+ interactive && 'has-[[data-state=checked]]:border-ods-accent/40',
249
248
  error ? 'border-ods-error' : 'border-ods-border',
250
249
  ),
251
250
  // Disabled matches a disabled field: flat `ods-bg` fill and
@@ -76,7 +76,7 @@ export function StickyActionBar({ visible, children, className }: StickyActionBa
76
76
  aria-hidden={!visible}
77
77
  inert={!visible}
78
78
  className={cn(
79
- 'duration-[180ms] ease-[cubic-bezier(.2,0,0,1)] fixed inset-x-0 bottom-0 z-[44] border-t border-ods-border bg-ods-bg px-4 pt-3 transition-transform motion-reduce:transition-none',
79
+ 'fixed inset-x-0 bottom-0 z-[44] border-t border-ods-border bg-ods-bg px-4 pt-3 transition-transform motion-reduce:transition-none',
80
80
  'pb-[calc(1rem+env(safe-area-inset-bottom))]',
81
81
  visible ? 'translate-y-0' : 'pointer-events-none translate-y-full',
82
82
  className,
@@ -281,8 +281,7 @@ export const CONFIGS = {
281
281
  },
282
282
  {
283
283
  why: "the loaders themselves (declared, never a screen state in the lib), the Button's own action progress, and the chat registry's card loader (a card read by id, drawn by the card's own skeleton)",
284
- files:
285
- /(?:^|\/)components\/(?:ui\/(?:[\w-]+-)?loader|loading\/openmsp-heartbeat|ui\/button\/button|chat\/entity-cards\/dispatch)\.tsx$/,
284
+ files: /(?:^|\/)components\/(?:ui\/(?:[\w-]+-)?loader|ui\/button\/button|chat\/entity-cards\/dispatch)\.tsx$/,
286
285
  rules: ['LOADER_COMPONENT', 'SPINNER', 'OWN_PULSE'],
287
286
  },
288
287
  ],
@@ -1,7 +0,0 @@
1
- export declare function OpenmspHeartbeatLoader({ className, progress, label, barWidth, }: {
2
- className?: string;
3
- progress?: number;
4
- label?: string;
5
- barWidth?: string;
6
- }): import("react").JSX.Element;
7
- //# sourceMappingURL=openmsp-heartbeat.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"openmsp-heartbeat.d.ts","sourceRoot":"","sources":["../../../src/components/loading/openmsp-heartbeat.tsx"],"names":[],"mappings":"AAIA,wBAAgB,sBAAsB,CAAC,EACrC,SAAc,EACd,QAAY,EACZ,KAAK,EACL,QAAkB,GACnB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,+BAsDA"}
@@ -1,68 +0,0 @@
1
- "use client";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { OpenmspLogoIcon } from "../icons-v2-generated/logos/openmsp-logo-icon.js";
4
- function OpenmspHeartbeatLoader({
5
- className = "",
6
- progress = 0,
7
- label,
8
- barWidth = "w-128"
9
- }) {
10
- return /* @__PURE__ */ jsxs(
11
- "div",
12
- {
13
- className: "max-w-screen flex max-h-screen min-h-screen items-center justify-center " + className,
14
- role: "status",
15
- "aria-label": "Generating report",
16
- children: [
17
- /* @__PURE__ */ jsx("style", { children: `
18
- /* Lub-dub double-beat: quick pulse, quick pulse, rest */
19
- @keyframes heartbeatInline {
20
- 0% { transform: scale(1); opacity: 0.96; }
21
- 8% { transform: scale(1.07); opacity: 1; }
22
- 16% { transform: scale(1); opacity: 0.98; }
23
- 24% { transform: scale(1.07); opacity: 1; }
24
- 32% { transform: scale(1); opacity: 0.96; }
25
- /* small rebound */
26
- 40% { transform: scale(0.97); opacity: 0.94; }
27
- /* rest */
28
- 70% { transform: scale(1); opacity: 0.96; }
29
- 100% { transform: scale(1); opacity: 0.96; }
30
- }
31
- ` }),
32
- /* @__PURE__ */ jsxs("div", { className: "justify-top flex flex-col items-center", children: [
33
- /* @__PURE__ */ jsx(
34
- "div",
35
- {
36
- style: {
37
- animation: "heartbeatInline 3.6s ease-in-out infinite",
38
- transformOrigin: "center center",
39
- display: "inline-flex"
40
- },
41
- children: /* @__PURE__ */ jsx(
42
- OpenmspLogoIcon,
43
- {
44
- secondaryColor: "var(--color-bg)",
45
- tertiaryColor: "var(--ods-open-yellow-base)",
46
- className: "mb-10 h-16 w-16 text-ods-accent opacity-90 md:h-24 md:w-24",
47
- color: "var(--color-text-primary)"
48
- }
49
- )
50
- }
51
- ),
52
- /* @__PURE__ */ jsxs("div", { className: `${barWidth} flex flex-col items-center justify-center`, children: [
53
- /* @__PURE__ */ jsxs("h2", { className: "mt-2 text-center font-bold text-ods-accent", children: [
54
- progress > 0 ? Math.floor(progress) : 0,
55
- "% ",
56
- /* @__PURE__ */ jsx("span", { className: "text-ods-text-secondary text-h6", children: "/100%" })
57
- ] }),
58
- /* @__PURE__ */ jsx("h3", { className: "mt-2 text-center text-ods-text-primary", children: label ?? `Processing\u2026` }),
59
- /* @__PURE__ */ jsx("p", { className: "mt-2 text-center text-ods-text-secondary", children: "You can safely navigate away from this page, report generation will continue in the background." })
60
- ] })
61
- ] })
62
- ]
63
- }
64
- );
65
- }
66
- export {
67
- OpenmspHeartbeatLoader
68
- };
@@ -1,69 +0,0 @@
1
- 'use client';
2
-
3
- import { OpenmspLogoIcon } from '../icons-v2-generated/logos/openmsp-logo-icon';
4
-
5
- export function OpenmspHeartbeatLoader({
6
- className = '',
7
- progress = 0,
8
- label,
9
- barWidth = 'w-128',
10
- }: {
11
- className?: string;
12
- progress?: number;
13
- label?: string;
14
- barWidth?: string;
15
- }) {
16
- return (
17
- <div
18
- className={'max-w-screen flex max-h-screen min-h-screen items-center justify-center ' + className}
19
- role="status"
20
- aria-label="Generating report"
21
- >
22
- {/* Inline keyframes to bypass Tailwind build issues */}
23
- <style>{`
24
- /* Lub-dub double-beat: quick pulse, quick pulse, rest */
25
- @keyframes heartbeatInline {
26
- 0% { transform: scale(1); opacity: 0.96; }
27
- 8% { transform: scale(1.07); opacity: 1; }
28
- 16% { transform: scale(1); opacity: 0.98; }
29
- 24% { transform: scale(1.07); opacity: 1; }
30
- 32% { transform: scale(1); opacity: 0.96; }
31
- /* small rebound */
32
- 40% { transform: scale(0.97); opacity: 0.94; }
33
- /* rest */
34
- 70% { transform: scale(1); opacity: 0.96; }
35
- 100% { transform: scale(1); opacity: 0.96; }
36
- }
37
- `}</style>
38
- <div className="justify-top flex flex-col items-center">
39
- <div
40
- style={{
41
- animation: 'heartbeatInline 3.6s ease-in-out infinite',
42
- transformOrigin: 'center center',
43
- display: 'inline-flex',
44
- }}
45
- >
46
- <OpenmspLogoIcon
47
- secondaryColor="var(--color-bg)"
48
- tertiaryColor="var(--ods-open-yellow-base)"
49
- className="mb-10 h-16 w-16 text-ods-accent opacity-90 md:h-24 md:w-24"
50
- color="var(--color-text-primary)"
51
- />
52
- </div>
53
-
54
- <div className={`${barWidth} flex flex-col items-center justify-center`}>
55
- {/* Progress text */}
56
- <h2 className="mt-2 text-center font-bold text-ods-accent">
57
- {progress > 0 ? Math.floor(progress) : 0}% <span className="text-ods-text-secondary text-h6">/100%</span>
58
- </h2>
59
-
60
- {/* Progress text */}
61
- <h3 className="mt-2 text-center text-ods-text-primary">{label ?? `Processing…`}</h3>
62
- <p className="mt-2 text-center text-ods-text-secondary">
63
- You can safely navigate away from this page, report generation will continue in the background.
64
- </p>
65
- </div>
66
- </div>
67
- </div>
68
- );
69
- }