@flamingo-stack/openframe-frontend-core 0.0.312 → 0.0.313

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 (76) hide show
  1. package/dist/{chunk-MI6TET5N.js → chunk-66JU4VP2.js} +24 -11
  2. package/dist/{chunk-MI6TET5N.js.map → chunk-66JU4VP2.js.map} +1 -1
  3. package/dist/{chunk-GZPOUZAY.js → chunk-6FZD5KFP.js} +2 -2
  4. package/dist/{chunk-6GKJXZZM.cjs → chunk-BFNTSETG.cjs} +14 -14
  5. package/dist/{chunk-6GKJXZZM.cjs.map → chunk-BFNTSETG.cjs.map} +1 -1
  6. package/dist/{chunk-AHVG5CFA.cjs → chunk-BFSKFC6S.cjs} +30 -30
  7. package/dist/{chunk-AHVG5CFA.cjs.map → chunk-BFSKFC6S.cjs.map} +1 -1
  8. package/dist/{chunk-GRBFBBSX.js → chunk-BVDHLEP2.js} +2 -2
  9. package/dist/{chunk-UFJVTOGS.cjs → chunk-DDLJTRF4.cjs} +26 -26
  10. package/dist/{chunk-UFJVTOGS.cjs.map → chunk-DDLJTRF4.cjs.map} +1 -1
  11. package/dist/{chunk-SPFV5TFS.cjs → chunk-DE2BQKQV.cjs} +9 -9
  12. package/dist/{chunk-SPFV5TFS.cjs.map → chunk-DE2BQKQV.cjs.map} +1 -1
  13. package/dist/{chunk-BX4MDVBL.js → chunk-E6BHNYTA.js} +2 -2
  14. package/dist/{chunk-DJBMLHN7.js → chunk-FXTT7K3A.js} +2 -2
  15. package/dist/{chunk-7G7QJNLY.cjs → chunk-GHK2FCIM.cjs} +37 -37
  16. package/dist/{chunk-7G7QJNLY.cjs.map → chunk-GHK2FCIM.cjs.map} +1 -1
  17. package/dist/{chunk-CGR2DPPQ.js → chunk-OZYAAJHM.js} +4 -4
  18. package/dist/{chunk-64JGK22Q.cjs → chunk-REHUG3RH.cjs} +12 -12
  19. package/dist/{chunk-64JGK22Q.cjs.map → chunk-REHUG3RH.cjs.map} +1 -1
  20. package/dist/{chunk-F45P357Q.js → chunk-RM3M3SZ6.js} +2 -2
  21. package/dist/{chunk-IHCOTCIG.js → chunk-SPFGSUNE.js} +2 -2
  22. package/dist/{chunk-NQDC366J.cjs → chunk-SQQXCVZZ.cjs} +24 -11
  23. package/dist/chunk-SQQXCVZZ.cjs.map +1 -0
  24. package/dist/{chunk-52MEECZB.cjs → chunk-XHGE5XBH.cjs} +5 -5
  25. package/dist/{chunk-52MEECZB.cjs.map → chunk-XHGE5XBH.cjs.map} +1 -1
  26. package/dist/{chunk-PH2RLC4E.js → chunk-YI2ACYRX.js} +2 -2
  27. package/dist/{chunk-7KKIACLD.cjs → chunk-YSMKPNYZ.cjs} +7 -7
  28. package/dist/{chunk-7KKIACLD.cjs.map → chunk-YSMKPNYZ.cjs.map} +1 -1
  29. package/dist/components/case-studies/index.cjs +8 -8
  30. package/dist/components/case-studies/index.js +2 -2
  31. package/dist/components/chat/index.cjs +2 -2
  32. package/dist/components/chat/index.js +1 -1
  33. package/dist/components/contact/index.cjs +3 -3
  34. package/dist/components/contact/index.js +2 -2
  35. package/dist/components/docs/index.cjs +5 -5
  36. package/dist/components/docs/index.js +4 -4
  37. package/dist/components/embeds/index.cjs +3 -3
  38. package/dist/components/embeds/index.js +2 -2
  39. package/dist/components/faq/index.cjs +3 -3
  40. package/dist/components/faq/index.js +2 -2
  41. package/dist/components/features/index.cjs +2 -2
  42. package/dist/components/features/index.js +1 -1
  43. package/dist/components/features/time-tracker/time-tracker-panel.d.ts +1 -1
  44. package/dist/components/features/time-tracker/time-tracker-panel.d.ts.map +1 -1
  45. package/dist/components/features/time-tracker/types.d.ts +2 -2
  46. package/dist/components/features/time-tracker/types.d.ts.map +1 -1
  47. package/dist/components/index.cjs +172 -172
  48. package/dist/components/index.js +8 -8
  49. package/dist/components/navigation/index.cjs +2 -2
  50. package/dist/components/navigation/index.js +1 -1
  51. package/dist/components/onboarding-guides/index.cjs +23 -23
  52. package/dist/components/onboarding-guides/index.js +3 -3
  53. package/dist/components/related-content/index.cjs +3 -3
  54. package/dist/components/related-content/index.js +2 -2
  55. package/dist/components/tickets/index.cjs +60 -60
  56. package/dist/components/tickets/index.js +3 -3
  57. package/dist/components/ui/dashboard-info-card.d.ts +3 -1
  58. package/dist/components/ui/dashboard-info-card.d.ts.map +1 -1
  59. package/dist/components/ui/index.cjs +2 -2
  60. package/dist/components/ui/index.js +1 -1
  61. package/dist/index.cjs +2 -2
  62. package/dist/index.js +1 -1
  63. package/package.json +1 -1
  64. package/src/components/features/time-tracker/time-tracker-panel.tsx +27 -9
  65. package/src/components/features/time-tracker/types.ts +2 -2
  66. package/src/components/ui/dashboard-info-card.tsx +9 -1
  67. package/src/stories/TimeTracker.stories.tsx +10 -10
  68. package/dist/chunk-NQDC366J.cjs.map +0 -1
  69. /package/dist/{chunk-GZPOUZAY.js.map → chunk-6FZD5KFP.js.map} +0 -0
  70. /package/dist/{chunk-GRBFBBSX.js.map → chunk-BVDHLEP2.js.map} +0 -0
  71. /package/dist/{chunk-BX4MDVBL.js.map → chunk-E6BHNYTA.js.map} +0 -0
  72. /package/dist/{chunk-DJBMLHN7.js.map → chunk-FXTT7K3A.js.map} +0 -0
  73. /package/dist/{chunk-CGR2DPPQ.js.map → chunk-OZYAAJHM.js.map} +0 -0
  74. /package/dist/{chunk-F45P357Q.js.map → chunk-RM3M3SZ6.js.map} +0 -0
  75. /package/dist/{chunk-IHCOTCIG.js.map → chunk-SPFGSUNE.js.map} +0 -0
  76. /package/dist/{chunk-PH2RLC4E.js.map → chunk-YI2ACYRX.js.map} +0 -0
@@ -21534,7 +21534,8 @@ function DashboardInfoCard({
21534
21534
  className,
21535
21535
  href,
21536
21536
  tooltip,
21537
- valueClassName
21537
+ valueClassName,
21538
+ subValue
21538
21539
  }) {
21539
21540
  const formattedValue = typeof value === "number" ? value.toLocaleString() : value;
21540
21541
  const cardContent = /* @__PURE__ */ jsxs120(Fragment28, { children: [
@@ -21542,6 +21543,7 @@ function DashboardInfoCard({
21542
21543
  titleSlot ?? /* @__PURE__ */ jsx152("p", { className: "text-h5 text-ods-text-secondary", children: title }),
21543
21544
  /* @__PURE__ */ jsxs120("div", { className: "flex items-center gap-[var(--spacing-system-xs)]", children: [
21544
21545
  /* @__PURE__ */ jsx152("p", { className: cn("text-h2 text-ods-text-primary", valueClassName), children: formattedValue }),
21546
+ subValue && /* @__PURE__ */ jsx152("p", { className: "text-h6 text-ods-text-secondary", children: subValue }),
21545
21547
  percentage !== void 0 && (progressVariant === "warning" || progressVariant === "error" ? /* @__PURE__ */ jsx152(Tag, { variant: progressVariant, label: `${percentage}%` }) : /* @__PURE__ */ jsxs120("p", { className: "text-h4 text-ods-text-secondary", children: [
21546
21548
  "(",
21547
21549
  percentage,
@@ -29143,8 +29145,8 @@ function TimeTrackerPanel({
29143
29145
  runningSince,
29144
29146
  accumulatedMs,
29145
29147
  ticketOptions,
29146
- selectedTicketIds,
29147
- onSelectedTicketsChange,
29148
+ selectedTicketId,
29149
+ onSelectedTicketChange,
29148
29150
  onTicketSearch,
29149
29151
  ticketsLoading,
29150
29152
  notes,
@@ -29168,7 +29170,7 @@ function TimeTrackerPanel({
29168
29170
  const [showValidationError, setShowValidationError] = useState70(false);
29169
29171
  const isRunning = status === "tracking";
29170
29172
  const isActive = status !== "ready";
29171
- const hasContent = selectedTicketIds.length > 0 || notes.trim() !== "";
29173
+ const hasContent = selectedTicketId != null || notes.trim() !== "";
29172
29174
  const showFieldError = isActive && showValidationError && !hasContent;
29173
29175
  useEffect52(() => {
29174
29176
  if (status === "ready") setShowValidationError(false);
@@ -29180,6 +29182,18 @@ function TimeTrackerPanel({
29180
29182
  }
29181
29183
  onSubmit();
29182
29184
  };
29185
+ const handleManualEntry = onManualEntry ? () => {
29186
+ onClose();
29187
+ onManualEntry();
29188
+ } : void 0;
29189
+ const handleEntryClick = onEntryClick ? (entry) => {
29190
+ onClose();
29191
+ onEntryClick(entry);
29192
+ } : void 0;
29193
+ const handleOpenMyTime = onOpenMyTime ? () => {
29194
+ onClose();
29195
+ onOpenMyTime();
29196
+ } : void 0;
29183
29197
  const ticketAutocompleteOptions = ticketOptions.map((t) => ({
29184
29198
  label: t.label,
29185
29199
  value: t.id
@@ -29256,9 +29270,8 @@ function TimeTrackerPanel({
29256
29270
  /* @__PURE__ */ jsx222(
29257
29271
  Autocomplete,
29258
29272
  {
29259
- multiple: true,
29260
- value: selectedTicketIds,
29261
- onChange: onSelectedTicketsChange,
29273
+ value: selectedTicketId,
29274
+ onChange: onSelectedTicketChange,
29262
29275
  options: ticketAutocompleteOptions,
29263
29276
  placeholder: "Assign Ticket",
29264
29277
  loading: ticketsLoading,
@@ -29285,7 +29298,7 @@ function TimeTrackerPanel({
29285
29298
  /* @__PURE__ */ jsxs173("div", { className: "flex flex-col gap-[var(--spacing-system-m)]", children: [
29286
29299
  /* @__PURE__ */ jsxs173("div", { className: "flex flex-col gap-[var(--spacing-system-xs)]", children: [
29287
29300
  /* @__PURE__ */ jsx222("p", { className: "font-mono text-h6 uppercase tracking-wide text-ods-text-secondary", children: "Last Entries" }),
29288
- /* @__PURE__ */ jsx222("div", { className: "overflow-hidden rounded-md border border-ods-border bg-ods-card", children: visibleEntries.length === 0 ? /* @__PURE__ */ jsx222("div", { className: "flex items-center justify-center px-[var(--spacing-system-m)] py-[var(--spacing-system-l)]", children: /* @__PURE__ */ jsx222("p", { className: "text-h6 text-ods-text-secondary", children: "No tracked sessions yet" }) }) : visibleEntries.map((entry) => /* @__PURE__ */ jsx222(LastEntryRow, { entry, onClick: onEntryClick }, entry.id)) })
29301
+ /* @__PURE__ */ jsx222("div", { className: "overflow-hidden rounded-md border border-ods-border bg-ods-card", children: visibleEntries.length === 0 ? /* @__PURE__ */ jsx222("div", { className: "flex items-center justify-center px-[var(--spacing-system-m)] py-[var(--spacing-system-l)]", children: /* @__PURE__ */ jsx222("p", { className: "text-h6 text-ods-text-secondary", children: "No tracked sessions yet" }) }) : visibleEntries.map((entry) => /* @__PURE__ */ jsx222(LastEntryRow, { entry, onClick: handleEntryClick }, entry.id)) })
29289
29302
  ] }),
29290
29303
  /* @__PURE__ */ jsxs173("div", { className: "flex w-full flex-wrap gap-[var(--spacing-system-m)]", children: [
29291
29304
  /* @__PURE__ */ jsx222(
@@ -29293,7 +29306,7 @@ function TimeTrackerPanel({
29293
29306
  {
29294
29307
  variant: "outline",
29295
29308
  className: "min-w-0 flex-1",
29296
- onClick: onManualEntry,
29309
+ onClick: handleManualEntry,
29297
29310
  disabled: !onManualEntry,
29298
29311
  leftIcon: /* @__PURE__ */ jsx222(PlusCircleIcon, { className: "text-ods-text-secondary" }),
29299
29312
  children: "Manual Entry"
@@ -29303,7 +29316,7 @@ function TimeTrackerPanel({
29303
29316
  SplitButton,
29304
29317
  {
29305
29318
  variant: "outline",
29306
- onClick: onOpenMyTime,
29319
+ onClick: handleOpenMyTime,
29307
29320
  disabled: !onOpenMyTime && !onOpenMyTimeMenu,
29308
29321
  mainDisabled: !onOpenMyTime,
29309
29322
  groupAriaLabel: "Open my time",
@@ -49052,4 +49065,4 @@ export {
49052
49065
  LogsList,
49053
49066
  assets
49054
49067
  };
49055
- //# sourceMappingURL=chunk-MI6TET5N.js.map
49068
+ //# sourceMappingURL=chunk-66JU4VP2.js.map