cortex-react-components 3.0.3 → 3.0.4

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 (118) hide show
  1. package/dist/{chunk-LBPVX5BQ.mjs → chunk-2QYYHKCF.mjs} +1 -1
  2. package/dist/{chunk-BXDKCANT.mjs → chunk-352XMFIA.mjs} +2 -2
  3. package/dist/{chunk-HLEMFDTD.mjs → chunk-3R2LCGLI.mjs} +1 -1
  4. package/dist/{chunk-YOPRYLFQ.mjs → chunk-3VMFZKXK.mjs} +8 -10
  5. package/dist/{chunk-57HPETD7.mjs → chunk-5GC4DBXT.mjs} +4 -4
  6. package/dist/{chunk-PJZ5PWKP.mjs → chunk-5OGDBGXG.mjs} +1 -1
  7. package/dist/{chunk-KIZUBPPQ.mjs → chunk-6GO5N6ZP.mjs} +1 -1
  8. package/dist/{chunk-Z4DNGL7M.mjs → chunk-6X55BFTD.mjs} +1 -1
  9. package/dist/{chunk-MZ5QY6FR.mjs → chunk-A45K7TLD.mjs} +1 -1
  10. package/dist/{chunk-F5IX63U6.mjs → chunk-BCF66L3Y.mjs} +2 -2
  11. package/dist/{chunk-XYLSOGTP.mjs → chunk-FP7MLBPR.mjs} +1 -1
  12. package/dist/{chunk-M62EDEAI.mjs → chunk-FTVOJKVA.mjs} +2 -2
  13. package/dist/{chunk-SJDKHYVC.mjs → chunk-HQE3OP6M.mjs} +10 -10
  14. package/dist/{chunk-CEDQJQTB.mjs → chunk-IAPDQHOE.mjs} +2 -2
  15. package/dist/{chunk-UHF447FN.mjs → chunk-IM6PU3RO.mjs} +8 -5
  16. package/dist/{chunk-QRFYWH62.mjs → chunk-IMWMWTDR.mjs} +1 -1
  17. package/dist/{chunk-RAHAHVM3.mjs → chunk-KAMWFZNX.mjs} +2 -2
  18. package/dist/{chunk-MAQCJ7GT.mjs → chunk-LAJ5FNY4.mjs} +1 -1
  19. package/dist/{chunk-GHJMJFGY.mjs → chunk-NV67QFQM.mjs} +3 -3
  20. package/dist/{chunk-QW6LT3YJ.mjs → chunk-O3CANERK.mjs} +1 -1
  21. package/dist/{chunk-72B7V3AA.mjs → chunk-OQ62XQNJ.mjs} +1 -1
  22. package/dist/{chunk-KHH36D4P.mjs → chunk-OUPOGRNP.mjs} +2 -2
  23. package/dist/{chunk-EGZL4DVZ.mjs → chunk-PAXCURFR.mjs} +1 -1
  24. package/dist/{chunk-FKQJ7IQO.mjs → chunk-PBJRNOV6.mjs} +1 -1
  25. package/dist/{chunk-SZ4XM4DO.mjs → chunk-PSU7NVB6.mjs} +1 -1
  26. package/dist/{chunk-RFZOUE5F.mjs → chunk-QOPCGZNQ.mjs} +1 -1
  27. package/dist/{chunk-4IIO3HGE.mjs → chunk-RYINW7OG.mjs} +1 -1
  28. package/dist/{chunk-FTLBZLKM.mjs → chunk-SGP3VC6H.mjs} +1 -1
  29. package/dist/{chunk-4LGHSMMQ.mjs → chunk-SP6YBXB2.mjs} +1 -1
  30. package/dist/chunk-T7TGES6Z.mjs +25 -0
  31. package/dist/{chunk-EHJIM6JR.mjs → chunk-VNLOFYZP.mjs} +2 -2
  32. package/dist/{chunk-R2LCV7J4.mjs → chunk-VNSEHNDX.mjs} +1 -1
  33. package/dist/{chunk-KN5M6SSZ.mjs → chunk-VTDHFYD3.mjs} +5 -5
  34. package/dist/components/Blocks/Banner.mjs +7 -7
  35. package/dist/components/Blocks/CallToAction.mjs +7 -7
  36. package/dist/components/Blocks/CollapsibleArea.mjs +8 -8
  37. package/dist/components/Blocks/Content.mjs +8 -8
  38. package/dist/components/Blocks/FeaturesBlock.mjs +7 -7
  39. package/dist/components/Blocks/ImageBlock.mjs +3 -3
  40. package/dist/components/Blocks/MediaBlock.mjs +3 -3
  41. package/dist/components/Blocks/RelatedPosts.mjs +9 -9
  42. package/dist/components/Blocks/RenderBlocks.mjs +10 -10
  43. package/dist/components/Blocks/ReusableContentBlock.mjs +10 -10
  44. package/dist/components/Blocks/index.mjs +12 -12
  45. package/dist/components/Cards/ContentCard.mjs +7 -7
  46. package/dist/components/Cards/FeatureCard.mjs +7 -7
  47. package/dist/components/Cards/index.mjs +7 -7
  48. package/dist/components/Chat/ChatInterface.mjs +5 -5
  49. package/dist/components/Chat/CopilotInterface.mjs +6 -6
  50. package/dist/components/Chat/PartTypes/MessageHandler.mjs +4 -4
  51. package/dist/components/Chat/PartTypes/index.mjs +16 -16
  52. package/dist/components/Chat/demo-long-messages.mjs +6 -6
  53. package/dist/components/Chat/demo-tests.mjs +6 -6
  54. package/dist/components/Chat/demo.mjs +6 -6
  55. package/dist/components/Chat/example-usage.mjs +6 -6
  56. package/dist/components/Chat/example-with-vercel-ai.mjs +6 -6
  57. package/dist/components/Chat/index.mjs +6 -6
  58. package/dist/components/DeliveryLead/DeliveryLeadSubmission.js +14 -5
  59. package/dist/components/DeliveryLead/DeliveryLeadSubmission.mjs +2 -1
  60. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.js +24 -8
  61. package/dist/components/DeliveryLead/DeliveryLeadSubmissionList.mjs +2 -1
  62. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.js +29 -13
  63. package/dist/components/DeliveryLead/DeliveryLeadSubmissionWithList.mjs +4 -3
  64. package/dist/components/DeliveryLead/index.js +37 -17
  65. package/dist/components/DeliveryLead/index.mjs +12 -4
  66. package/dist/components/DeliveryLead/types.d.ts +53 -10
  67. package/dist/components/DeliveryLead/types.js +33 -0
  68. package/dist/components/DeliveryLead/types.mjs +11 -0
  69. package/dist/components/Foundary/Pages/dashboardpage.mjs +2 -2
  70. package/dist/components/Foundary/Views/index.mjs +4 -4
  71. package/dist/components/Foundary/index.mjs +6 -6
  72. package/dist/components/HeaderFooter/SectionHeading.mjs +8 -8
  73. package/dist/components/Heros/HighImpact/index.mjs +8 -8
  74. package/dist/components/Heros/LowImpact/index.mjs +8 -8
  75. package/dist/components/Heros/MediumImpact/index.mjs +8 -8
  76. package/dist/components/Heros/RenderHero.mjs +11 -11
  77. package/dist/components/Heros/index.mjs +13 -13
  78. package/dist/components/Layouts/OutputHeaderFooter.mjs +11 -11
  79. package/dist/components/Layouts/Print.mjs +15 -15
  80. package/dist/components/Layouts/SlideShow.mjs +16 -16
  81. package/dist/components/Layouts/index.mjs +17 -17
  82. package/dist/components/Payload/CollectionArchive/index.mjs +4 -4
  83. package/dist/components/Payload/Media/index.mjs +2 -2
  84. package/dist/components/Payload/PayloadCard/index.mjs +3 -3
  85. package/dist/components/Payload/RichText/index.mjs +7 -7
  86. package/dist/components/Payload/RichText/serialize.mjs +7 -7
  87. package/dist/components/Payload/index.mjs +12 -12
  88. package/dist/components/index.js +37 -15
  89. package/dist/components/index.mjs +51 -43
  90. package/dist/decorators/Intranet.mjs +35 -34
  91. package/dist/index.js +37 -15
  92. package/dist/index.mjs +64 -56
  93. package/dist/metafile-cjs.json +1 -1
  94. package/dist/metafile-esm.json +1 -1
  95. package/dist/pages/Blog.mjs +9 -9
  96. package/dist/pages/IndexPage.mjs +12 -12
  97. package/dist/pages/LandingPage.mjs +45 -44
  98. package/dist/pages/Page.mjs +12 -12
  99. package/dist/pages/Publish.mjs +36 -35
  100. package/dist/pages/Website.mjs +14 -14
  101. package/dist/payload-types.d.ts +1 -1
  102. package/dist/sections/AboutSection.mjs +9 -9
  103. package/dist/sections/BlogDetail.mjs +8 -8
  104. package/dist/sections/BlogList.mjs +9 -9
  105. package/dist/sections/BlogListSection.mjs +1 -1
  106. package/dist/sections/ContactSection.mjs +9 -9
  107. package/dist/sections/PageSections.mjs +45 -44
  108. package/dist/sections/PricingSection.mjs +9 -9
  109. package/dist/sections/ServiceDetail.mjs +8 -8
  110. package/dist/sections/ServiceDetailSection.mjs +8 -8
  111. package/dist/sections/ServiceSection.mjs +36 -35
  112. package/dist/sections/form/index.mjs +2 -2
  113. package/dist/sections/index.mjs +47 -46
  114. package/package.json +1 -1
  115. package/dist/{chunk-57INGMKK.mjs → chunk-ECCJ42NJ.mjs} +7 -7
  116. package/dist/{chunk-OT2SSFKS.mjs → chunk-GSG52WU5.mjs} +3 -3
  117. package/dist/{chunk-2YHN7ZCJ.mjs → chunk-NKRBXAPF.mjs} +3 -3
  118. package/dist/{chunk-NPH4VQCE.mjs → chunk-OUTPT474.mjs} +3 -3
@@ -225,6 +225,8 @@ __export(components_exports, {
225
225
  ProjectView: () => ProjectView,
226
226
  ProjectsIndexView: () => Home5,
227
227
  ProposalSummary: () => ProposalSummary,
228
+ RAG_COLOR_MAP: () => RAG_COLOR_MAP,
229
+ RAG_STATUS_OPTIONS: () => RAG_STATUS_OPTIONS,
228
230
  RelatedContent: () => RelatedContent,
229
231
  RelatedPagesMenu: () => RelatedPagesMenu,
230
232
  RelatedPosts: () => RelatedPosts,
@@ -330,6 +332,7 @@ __export(components_exports, {
330
332
  getDataPart: () => getDataPart,
331
333
  getFileParts: () => getFileParts,
332
334
  getInitials: () => getInitials,
335
+ getRagStatusLabel: () => getRagStatusLabel,
333
336
  getRoleBadgeColor: () => getRoleBadgeColor,
334
337
  getTextContent: () => getTextContent,
335
338
  getToolPart: () => getToolPart,
@@ -16002,15 +16005,36 @@ function getDataPart(message, dataType) {
16002
16005
  // src/components/DeliveryLead/DeliveryLeadSubmission.tsx
16003
16006
  var import_react59 = require("react");
16004
16007
  var import_lucide_react47 = require("lucide-react");
16008
+
16009
+ // src/components/DeliveryLead/types.ts
16010
+ var RAG_STATUS_OPTIONS = [
16011
+ { label: "Not Started", value: "Not-Started" },
16012
+ { label: "On Track", value: "On-Track" },
16013
+ { label: "Delayed", value: "Delayed" },
16014
+ { label: "At Risk", value: "At Risk" },
16015
+ { label: "Delivered", value: "Delivered" }
16016
+ ];
16017
+ var RAG_COLOR_MAP = {
16018
+ "Not-Started": "bg-gray-100 text-gray-800 border-gray-200",
16019
+ "On-Track": "bg-green-100 text-green-800 border-green-200",
16020
+ "Delayed": "bg-red-100 text-red-800 border-red-200",
16021
+ "At Risk": "bg-yellow-100 text-yellow-800 border-yellow-200",
16022
+ "Delivered": "bg-blue-100 text-blue-800 border-blue-200"
16023
+ };
16024
+ var getRagStatusLabel = (value) => {
16025
+ const option = RAG_STATUS_OPTIONS.find((opt) => opt.value === value);
16026
+ return option?.label ?? value;
16027
+ };
16028
+
16029
+ // src/components/DeliveryLead/DeliveryLeadSubmission.tsx
16005
16030
  var import_jsx_runtime145 = require("react/jsx-runtime");
16006
16031
  var createEmptyMilestone = () => ({
16007
16032
  name: "",
16008
16033
  commentary: "",
16009
16034
  dueDate: "",
16010
- rag: "On-Track",
16035
+ rag: "Not-Started",
16011
16036
  id: null
16012
16037
  });
16013
- var ragOptions = ["On-Track", "Off-Track", "At Risk", "Complete"];
16014
16038
  var formatDateInputValue = (value) => {
16015
16039
  if (!value) return "";
16016
16040
  const parsed = new Date(value);
@@ -16057,7 +16081,7 @@ var buildMilestonesFromPrefill = (prefilled) => {
16057
16081
  name: milestone?.name ?? "",
16058
16082
  commentary: milestone?.commentary ?? "",
16059
16083
  dueDate: formatDateInputValue(milestone?.dueDate ?? ""),
16060
- rag: milestone?.rag ?? "On-Track",
16084
+ rag: milestone?.rag ?? "Not-Started",
16061
16085
  id: milestone?.id ?? null
16062
16086
  }));
16063
16087
  };
@@ -16097,10 +16121,11 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
16097
16121
  const prefilledProject = getProjectOption(initialData?.project, getNumericId(initialData?.customer));
16098
16122
  const projectsForCustomer = (customerProjectPairs ?? []).filter((cp) => cp.customer.id === clientId).map((cp) => cp.project);
16099
16123
  const filteredProjects = clientId && prefilledProject && prefilledProject.customerId === clientId && !projectsForCustomer.some((project) => project.id === prefilledProject.id) ? [...projectsForCustomer, { id: prefilledProject.id, name: prefilledProject.name }] : projectsForCustomer;
16124
+ const ragValues = RAG_STATUS_OPTIONS.map((opt) => opt.value);
16100
16125
  const handleMilestoneChange = (idx, field, value) => {
16101
16126
  setMilestones((prev) => {
16102
16127
  const newMilestones = [...prev];
16103
- if (field === "rag" && !ragOptions.includes(value)) {
16128
+ if (field === "rag" && !ragValues.includes(value)) {
16104
16129
  return prev;
16105
16130
  }
16106
16131
  newMilestones[idx] = { ...newMilestones[idx], [field]: value };
@@ -16270,7 +16295,7 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
16270
16295
  className: "w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",
16271
16296
  value: m.rag,
16272
16297
  onChange: (e) => handleMilestoneChange(idx, "rag", e.target.value),
16273
- children: ragOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("option", { value: opt, children: opt }, opt))
16298
+ children: RAG_STATUS_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
16274
16299
  }
16275
16300
  )
16276
16301
  ] }),
@@ -16347,12 +16372,6 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
16347
16372
  var import_react60 = require("react");
16348
16373
  var import_lucide_react48 = require("lucide-react");
16349
16374
  var import_jsx_runtime146 = require("react/jsx-runtime");
16350
- var ragColorMap = {
16351
- "On-Track": "bg-green-100 text-green-800 border-green-200",
16352
- "Off-Track": "bg-red-100 text-red-800 border-red-200",
16353
- "At Risk": "bg-yellow-100 text-yellow-800 border-yellow-200",
16354
- Complete: "bg-blue-100 text-blue-800 border-blue-200"
16355
- };
16356
16375
  function DeliveryLeadSubmissionList({
16357
16376
  submissions,
16358
16377
  isLoading = false
@@ -16427,8 +16446,8 @@ function DeliveryLeadSubmissionList({
16427
16446
  submission.milestones?.slice(0, 3).map((milestone, idx) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
16428
16447
  "span",
16429
16448
  {
16430
- className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ragColorMap[milestone.rag]}`,
16431
- children: milestone.rag
16449
+ className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
16450
+ children: getRagStatusLabel(milestone.rag)
16432
16451
  },
16433
16452
  idx
16434
16453
  )),
@@ -16532,8 +16551,8 @@ function DeliveryLeadSubmissionList({
16532
16551
  /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("td", { className: "px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
16533
16552
  "span",
16534
16553
  {
16535
- className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ragColorMap[milestone.rag]}`,
16536
- children: milestone.rag
16554
+ className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
16555
+ children: getRagStatusLabel(milestone.rag)
16537
16556
  }
16538
16557
  ) })
16539
16558
  ] }, idx)) })
@@ -29795,6 +29814,8 @@ function TeamsIndexView({
29795
29814
  ProjectView,
29796
29815
  ProjectsIndexView,
29797
29816
  ProposalSummary,
29817
+ RAG_COLOR_MAP,
29818
+ RAG_STATUS_OPTIONS,
29798
29819
  RelatedContent,
29799
29820
  RelatedPagesMenu,
29800
29821
  RelatedPosts,
@@ -29900,6 +29921,7 @@ function TeamsIndexView({
29900
29921
  getDataPart,
29901
29922
  getFileParts,
29902
29923
  getInitials,
29924
+ getRagStatusLabel,
29903
29925
  getRoleBadgeColor,
29904
29926
  getTextContent,
29905
29927
  getToolPart,
@@ -2,20 +2,20 @@ import {
2
2
  FlowPrintable,
3
3
  PagePrintable,
4
4
  Printable
5
- } from "../chunk-RAHAHVM3.mjs";
5
+ } from "../chunk-KAMWFZNX.mjs";
6
6
  import {
7
7
  SlideShow
8
- } from "../chunk-CEDQJQTB.mjs";
9
- import "../chunk-4LGHSMMQ.mjs";
10
- import {
11
- PayloadPagination
12
- } from "../chunk-N42O5NIO.mjs";
8
+ } from "../chunk-IAPDQHOE.mjs";
9
+ import "../chunk-SP6YBXB2.mjs";
13
10
  import {
14
11
  CollectionArchive
15
- } from "../chunk-PJZ5PWKP.mjs";
12
+ } from "../chunk-5OGDBGXG.mjs";
16
13
  import {
17
14
  PageRange
18
15
  } from "../chunk-NR6HSUH7.mjs";
16
+ import {
17
+ PayloadPagination
18
+ } from "../chunk-N42O5NIO.mjs";
19
19
  import "../chunk-ZTCAYEGT.mjs";
20
20
  import {
21
21
  TextAndImages
@@ -42,19 +42,19 @@ import {
42
42
  HolidayGrid
43
43
  } from "../chunk-7ZMZT7I6.mjs";
44
44
  import {
45
- Home
46
- } from "../chunk-NPH4VQCE.mjs";
45
+ TeamsIndexView
46
+ } from "../chunk-A7BJP6MI.mjs";
47
47
  import {
48
- ColleaguesView
49
- } from "../chunk-XWCG4YG3.mjs";
48
+ Home
49
+ } from "../chunk-OUTPT474.mjs";
50
50
  import {
51
51
  KnowledgeView
52
52
  } from "../chunk-URDEWGQC.mjs";
53
53
  import "../chunk-CIFGBEFV.mjs";
54
54
  import "../chunk-25EF7VEC.mjs";
55
55
  import {
56
- TeamsIndexView
57
- } from "../chunk-A7BJP6MI.mjs";
56
+ ColleaguesView
57
+ } from "../chunk-XWCG4YG3.mjs";
58
58
  import "../chunk-PR24SSJK.mjs";
59
59
  import {
60
60
  TeamForm
@@ -173,10 +173,10 @@ import "../chunk-RQVP4AS3.mjs";
173
173
  import "../chunk-IWG2URAU.mjs";
174
174
  import {
175
175
  DeliveryLeadSubmissionWithList
176
- } from "../chunk-M62EDEAI.mjs";
176
+ } from "../chunk-FTVOJKVA.mjs";
177
177
  import {
178
178
  DeliveryLeadSubmissionList
179
- } from "../chunk-YOPRYLFQ.mjs";
179
+ } from "../chunk-3VMFZKXK.mjs";
180
180
  import {
181
181
  getDataPart,
182
182
  getFileParts,
@@ -188,40 +188,45 @@ import {
188
188
  } from "../chunk-KGOOZJIY.mjs";
189
189
  import {
190
190
  DeliveryLeadSubmissionComponent
191
- } from "../chunk-UHF447FN.mjs";
191
+ } from "../chunk-IM6PU3RO.mjs";
192
+ import {
193
+ RAG_COLOR_MAP,
194
+ RAG_STATUS_OPTIONS,
195
+ getRagStatusLabel
196
+ } from "../chunk-T7TGES6Z.mjs";
192
197
  import {
193
198
  CapabilityMenu
194
199
  } from "../chunk-B3GN2ZRO.mjs";
195
200
  import {
196
201
  CopilotInterface
197
- } from "../chunk-R2LCV7J4.mjs";
202
+ } from "../chunk-VNSEHNDX.mjs";
198
203
  import "../chunk-IB4EINFP.mjs";
199
204
  import "../chunk-3SFZTG3H.mjs";
200
205
  import {
201
206
  ChatInterface
202
- } from "../chunk-MAQCJ7GT.mjs";
203
- import "../chunk-57INGMKK.mjs";
207
+ } from "../chunk-LAJ5FNY4.mjs";
208
+ import "../chunk-ECCJ42NJ.mjs";
209
+ import "../chunk-7RGM2O4X.mjs";
210
+ import "../chunk-HO77MNRT.mjs";
204
211
  import "../chunk-LY77BPMB.mjs";
205
212
  import "../chunk-GQGWBOHP.mjs";
206
213
  import "../chunk-AJ7OZYBW.mjs";
207
214
  import "../chunk-TWJKNMD2.mjs";
208
215
  import "../chunk-COGNES33.mjs";
209
- import "../chunk-7RGM2O4X.mjs";
210
216
  import {
211
217
  ChatCardArtefact
212
218
  } from "../chunk-G3MFNKC2.mjs";
213
219
  import {
214
220
  ChatCardTask
215
221
  } from "../chunk-APF7RJ2I.mjs";
216
- import "../chunk-G3L2ZUUL.mjs";
217
222
  import "../chunk-FAKMLOOM.mjs";
218
223
  import {
219
224
  OAuthModal
220
225
  } from "../chunk-5GWDAQL7.mjs";
226
+ import "../chunk-G3L2ZUUL.mjs";
221
227
  import "../chunk-3PLZRSCZ.mjs";
222
228
  import "../chunk-QOUSJBT7.mjs";
223
229
  import "../chunk-NBOTEZO6.mjs";
224
- import "../chunk-HO77MNRT.mjs";
225
230
  import {
226
231
  ApprovalRequestModal
227
232
  } from "../chunk-RUVFSYMR.mjs";
@@ -324,10 +329,10 @@ import {
324
329
  } from "../chunk-64SYH2HO.mjs";
325
330
  import {
326
331
  RelatedPosts
327
- } from "../chunk-EHJIM6JR.mjs";
332
+ } from "../chunk-VNLOFYZP.mjs";
328
333
  import {
329
334
  PayloadCard
330
- } from "../chunk-EGZL4DVZ.mjs";
335
+ } from "../chunk-PAXCURFR.mjs";
331
336
  import "../chunk-WE7DY7DV.mjs";
332
337
  import {
333
338
  HeadingImage
@@ -346,7 +351,7 @@ import {
346
351
  import {
347
352
  Breadcrumbs,
348
353
  RenderHero
349
- } from "../chunk-KN5M6SSZ.mjs";
354
+ } from "../chunk-VTDHFYD3.mjs";
350
355
  import {
351
356
  SectionHero
352
357
  } from "../chunk-N77BYZ6A.mjs";
@@ -358,23 +363,20 @@ import {
358
363
  ReusableContentBlock,
359
364
  Theme,
360
365
  ThemeWithShapes
361
- } from "../chunk-57HPETD7.mjs";
362
- import "../chunk-RFZOUE5F.mjs";
366
+ } from "../chunk-5GC4DBXT.mjs";
367
+ import "../chunk-QOPCGZNQ.mjs";
363
368
  import {
364
369
  ContentBlock
365
- } from "../chunk-QRFYWH62.mjs";
366
- import {
367
- MediumImpactHero
368
- } from "../chunk-QW6LT3YJ.mjs";
370
+ } from "../chunk-IMWMWTDR.mjs";
369
371
  import {
370
372
  LowImpactHero
371
- } from "../chunk-4IIO3HGE.mjs";
373
+ } from "../chunk-RYINW7OG.mjs";
372
374
  import {
373
- HighImpactHero
374
- } from "../chunk-BXDKCANT.mjs";
375
+ MediumImpactHero
376
+ } from "../chunk-O3CANERK.mjs";
375
377
  import {
376
- Categories
377
- } from "../chunk-X373UDXT.mjs";
378
+ HighImpactHero
379
+ } from "../chunk-352XMFIA.mjs";
378
380
  import {
379
381
  PostHero
380
382
  } from "../chunk-R3LWKUWD.mjs";
@@ -473,6 +475,9 @@ import {
473
475
  CarouselPrevious,
474
476
  default as default2
475
477
  } from "../chunk-W5ROY7BH.mjs";
478
+ import {
479
+ Categories
480
+ } from "../chunk-X373UDXT.mjs";
476
481
  import {
477
482
  BannerBlock,
478
483
  CallToActionBlock,
@@ -481,14 +486,14 @@ import {
481
486
  FeatureCard,
482
487
  FeaturesBlock,
483
488
  RichText
484
- } from "../chunk-GHJMJFGY.mjs";
489
+ } from "../chunk-NV67QFQM.mjs";
485
490
  import "../chunk-YLULVMZ7.mjs";
486
491
  import {
487
492
  CMSLink
488
493
  } from "../chunk-2NXKZY7U.mjs";
489
- import "../chunk-OT2SSFKS.mjs";
490
- import "../chunk-G6EC37S7.mjs";
494
+ import "../chunk-GSG52WU5.mjs";
491
495
  import "../chunk-US72SCH3.mjs";
496
+ import "../chunk-G6EC37S7.mjs";
492
497
  import "../chunk-LTOFCHXU.mjs";
493
498
  import {
494
499
  Image
@@ -507,18 +512,18 @@ import {
507
512
  } from "../chunk-LIJ2ES4B.mjs";
508
513
  import {
509
514
  MediaBlock
510
- } from "../chunk-KIZUBPPQ.mjs";
515
+ } from "../chunk-6GO5N6ZP.mjs";
511
516
  import {
512
517
  CodeBlock
513
518
  } from "../chunk-WPX6MOFB.mjs";
514
519
  import {
515
520
  ImageBlock
516
- } from "../chunk-HLEMFDTD.mjs";
521
+ } from "../chunk-3R2LCGLI.mjs";
517
522
  import {
518
523
  Media
519
- } from "../chunk-2YHN7ZCJ.mjs";
520
- import "../chunk-ZYKYDIOF.mjs";
524
+ } from "../chunk-NKRBXAPF.mjs";
521
525
  import "../chunk-MW5UCIIC.mjs";
526
+ import "../chunk-ZYKYDIOF.mjs";
522
527
  import "../chunk-R57RJLFQ.mjs";
523
528
  import {
524
529
  CopyButton
@@ -894,6 +899,8 @@ export {
894
899
  ProjectView,
895
900
  Home2 as ProjectsIndexView,
896
901
  ProposalSummary,
902
+ RAG_COLOR_MAP,
903
+ RAG_STATUS_OPTIONS,
897
904
  RelatedContent,
898
905
  RelatedPagesMenu,
899
906
  RelatedPosts,
@@ -999,6 +1006,7 @@ export {
999
1006
  getDataPart,
1000
1007
  getFileParts,
1001
1008
  getInitials,
1009
+ getRagStatusLabel,
1002
1010
  getRoleBadgeColor,
1003
1011
  getTextContent,
1004
1012
  getToolPart,
@@ -1,9 +1,9 @@
1
- import "../chunk-RAHAHVM3.mjs";
2
- import "../chunk-CEDQJQTB.mjs";
3
- import "../chunk-4LGHSMMQ.mjs";
4
- import "../chunk-N42O5NIO.mjs";
5
- import "../chunk-PJZ5PWKP.mjs";
1
+ import "../chunk-KAMWFZNX.mjs";
2
+ import "../chunk-IAPDQHOE.mjs";
3
+ import "../chunk-SP6YBXB2.mjs";
4
+ import "../chunk-5OGDBGXG.mjs";
6
5
  import "../chunk-NR6HSUH7.mjs";
6
+ import "../chunk-N42O5NIO.mjs";
7
7
  import "../chunk-ZTCAYEGT.mjs";
8
8
  import "../chunk-C2NN5W2Q.mjs";
9
9
  import "../chunk-G6V3RRSZ.mjs";
@@ -13,12 +13,12 @@ import "../chunk-HABWABS7.mjs";
13
13
  import "../chunk-7UVCCDPI.mjs";
14
14
  import "../chunk-LCRSPNPB.mjs";
15
15
  import "../chunk-7ZMZT7I6.mjs";
16
- import "../chunk-NPH4VQCE.mjs";
17
- import "../chunk-XWCG4YG3.mjs";
16
+ import "../chunk-A7BJP6MI.mjs";
17
+ import "../chunk-OUTPT474.mjs";
18
18
  import "../chunk-URDEWGQC.mjs";
19
19
  import "../chunk-CIFGBEFV.mjs";
20
20
  import "../chunk-25EF7VEC.mjs";
21
- import "../chunk-A7BJP6MI.mjs";
21
+ import "../chunk-XWCG4YG3.mjs";
22
22
  import "../chunk-PR24SSJK.mjs";
23
23
  import "../chunk-4PFDNMLD.mjs";
24
24
  import "../chunk-3W5H36HK.mjs";
@@ -79,31 +79,32 @@ import "../chunk-TP5AUT7W.mjs";
79
79
  import "../chunk-UYUP2DAL.mjs";
80
80
  import "../chunk-RQVP4AS3.mjs";
81
81
  import "../chunk-IWG2URAU.mjs";
82
- import "../chunk-M62EDEAI.mjs";
83
- import "../chunk-YOPRYLFQ.mjs";
82
+ import "../chunk-FTVOJKVA.mjs";
83
+ import "../chunk-3VMFZKXK.mjs";
84
84
  import "../chunk-KGOOZJIY.mjs";
85
- import "../chunk-UHF447FN.mjs";
85
+ import "../chunk-IM6PU3RO.mjs";
86
+ import "../chunk-T7TGES6Z.mjs";
86
87
  import "../chunk-B3GN2ZRO.mjs";
87
- import "../chunk-R2LCV7J4.mjs";
88
+ import "../chunk-VNSEHNDX.mjs";
88
89
  import "../chunk-IB4EINFP.mjs";
89
90
  import "../chunk-3SFZTG3H.mjs";
90
- import "../chunk-MAQCJ7GT.mjs";
91
- import "../chunk-57INGMKK.mjs";
91
+ import "../chunk-LAJ5FNY4.mjs";
92
+ import "../chunk-ECCJ42NJ.mjs";
93
+ import "../chunk-7RGM2O4X.mjs";
94
+ import "../chunk-HO77MNRT.mjs";
92
95
  import "../chunk-LY77BPMB.mjs";
93
96
  import "../chunk-GQGWBOHP.mjs";
94
97
  import "../chunk-AJ7OZYBW.mjs";
95
98
  import "../chunk-TWJKNMD2.mjs";
96
99
  import "../chunk-COGNES33.mjs";
97
- import "../chunk-7RGM2O4X.mjs";
98
100
  import "../chunk-G3MFNKC2.mjs";
99
101
  import "../chunk-APF7RJ2I.mjs";
100
- import "../chunk-G3L2ZUUL.mjs";
101
102
  import "../chunk-FAKMLOOM.mjs";
102
103
  import "../chunk-5GWDAQL7.mjs";
104
+ import "../chunk-G3L2ZUUL.mjs";
103
105
  import "../chunk-3PLZRSCZ.mjs";
104
106
  import "../chunk-QOUSJBT7.mjs";
105
107
  import "../chunk-NBOTEZO6.mjs";
106
- import "../chunk-HO77MNRT.mjs";
107
108
  import "../chunk-RUVFSYMR.mjs";
108
109
  import "../chunk-DAQOEDAR.mjs";
109
110
  import "../chunk-E6M7XAYT.mjs";
@@ -139,8 +140,8 @@ import "../chunk-ZEJD233P.mjs";
139
140
  import "../chunk-KC2JN5E4.mjs";
140
141
  import "../chunk-RVVTP5NL.mjs";
141
142
  import "../chunk-64SYH2HO.mjs";
142
- import "../chunk-EHJIM6JR.mjs";
143
- import "../chunk-EGZL4DVZ.mjs";
143
+ import "../chunk-VNLOFYZP.mjs";
144
+ import "../chunk-PAXCURFR.mjs";
144
145
  import "../chunk-WE7DY7DV.mjs";
145
146
  import "../chunk-R5QFVX2Y.mjs";
146
147
  import "../chunk-XPLDQMNA.mjs";
@@ -148,15 +149,14 @@ import "../chunk-4Z4X2GG7.mjs";
148
149
  import "../chunk-OZR2CEWZ.mjs";
149
150
  import "../chunk-R6GWYR6G.mjs";
150
151
  import "../chunk-VSL4NZ5W.mjs";
151
- import "../chunk-KN5M6SSZ.mjs";
152
+ import "../chunk-VTDHFYD3.mjs";
152
153
  import "../chunk-N77BYZ6A.mjs";
153
- import "../chunk-57HPETD7.mjs";
154
- import "../chunk-RFZOUE5F.mjs";
155
- import "../chunk-QRFYWH62.mjs";
156
- import "../chunk-QW6LT3YJ.mjs";
157
- import "../chunk-4IIO3HGE.mjs";
158
- import "../chunk-BXDKCANT.mjs";
159
- import "../chunk-X373UDXT.mjs";
154
+ import "../chunk-5GC4DBXT.mjs";
155
+ import "../chunk-QOPCGZNQ.mjs";
156
+ import "../chunk-IMWMWTDR.mjs";
157
+ import "../chunk-RYINW7OG.mjs";
158
+ import "../chunk-O3CANERK.mjs";
159
+ import "../chunk-352XMFIA.mjs";
160
160
  import "../chunk-R3LWKUWD.mjs";
161
161
  import "../chunk-JCFLPLDK.mjs";
162
162
  import "../chunk-IBQBZNEA.mjs";
@@ -174,24 +174,25 @@ import "../chunk-4UJUWE3A.mjs";
174
174
  import "../chunk-7CVOGGH6.mjs";
175
175
  import "../chunk-RFP2KGUZ.mjs";
176
176
  import "../chunk-W5ROY7BH.mjs";
177
- import "../chunk-GHJMJFGY.mjs";
177
+ import "../chunk-X373UDXT.mjs";
178
+ import "../chunk-NV67QFQM.mjs";
178
179
  import "../chunk-YLULVMZ7.mjs";
179
180
  import "../chunk-2NXKZY7U.mjs";
180
- import "../chunk-OT2SSFKS.mjs";
181
- import "../chunk-G6EC37S7.mjs";
181
+ import "../chunk-GSG52WU5.mjs";
182
182
  import "../chunk-US72SCH3.mjs";
183
+ import "../chunk-G6EC37S7.mjs";
183
184
  import "../chunk-LTOFCHXU.mjs";
184
185
  import "../chunk-GTHNG3Q7.mjs";
185
186
  import "../chunk-4GLXI5J3.mjs";
186
187
  import "../chunk-2X45TVQS.mjs";
187
188
  import "../chunk-DTQ2W22B.mjs";
188
189
  import "../chunk-LIJ2ES4B.mjs";
189
- import "../chunk-KIZUBPPQ.mjs";
190
+ import "../chunk-6GO5N6ZP.mjs";
190
191
  import "../chunk-WPX6MOFB.mjs";
191
- import "../chunk-HLEMFDTD.mjs";
192
- import "../chunk-2YHN7ZCJ.mjs";
193
- import "../chunk-ZYKYDIOF.mjs";
192
+ import "../chunk-3R2LCGLI.mjs";
193
+ import "../chunk-NKRBXAPF.mjs";
194
194
  import "../chunk-MW5UCIIC.mjs";
195
+ import "../chunk-ZYKYDIOF.mjs";
195
196
  import "../chunk-R57RJLFQ.mjs";
196
197
  import "../chunk-GIHP74M4.mjs";
197
198
  import "../chunk-3BYULUMU.mjs";
package/dist/index.js CHANGED
@@ -599,6 +599,8 @@ __export(index_exports, {
599
599
  ProjectsIndexView: () => Home5,
600
600
  ProposalSummary: () => ProposalSummary,
601
601
  Publish: () => Publish,
602
+ RAG_COLOR_MAP: () => RAG_COLOR_MAP,
603
+ RAG_STATUS_OPTIONS: () => RAG_STATUS_OPTIONS,
602
604
  RelatedContent: () => RelatedContent,
603
605
  RelatedPagesMenu: () => RelatedPagesMenu,
604
606
  RelatedPosts: () => RelatedPosts,
@@ -710,6 +712,7 @@ __export(index_exports, {
710
712
  getDataPart: () => getDataPart,
711
713
  getFileParts: () => getFileParts,
712
714
  getInitials: () => getInitials,
715
+ getRagStatusLabel: () => getRagStatusLabel,
713
716
  getRoleBadgeColor: () => getRoleBadgeColor,
714
717
  getTableOfContents: () => getTableOfContents,
715
718
  getTextContent: () => getTextContent,
@@ -16419,15 +16422,36 @@ function getDataPart(message, dataType) {
16419
16422
  // src/components/DeliveryLead/DeliveryLeadSubmission.tsx
16420
16423
  var import_react60 = require("react");
16421
16424
  var import_lucide_react47 = require("lucide-react");
16425
+
16426
+ // src/components/DeliveryLead/types.ts
16427
+ var RAG_STATUS_OPTIONS = [
16428
+ { label: "Not Started", value: "Not-Started" },
16429
+ { label: "On Track", value: "On-Track" },
16430
+ { label: "Delayed", value: "Delayed" },
16431
+ { label: "At Risk", value: "At Risk" },
16432
+ { label: "Delivered", value: "Delivered" }
16433
+ ];
16434
+ var RAG_COLOR_MAP = {
16435
+ "Not-Started": "bg-gray-100 text-gray-800 border-gray-200",
16436
+ "On-Track": "bg-green-100 text-green-800 border-green-200",
16437
+ "Delayed": "bg-red-100 text-red-800 border-red-200",
16438
+ "At Risk": "bg-yellow-100 text-yellow-800 border-yellow-200",
16439
+ "Delivered": "bg-blue-100 text-blue-800 border-blue-200"
16440
+ };
16441
+ var getRagStatusLabel = (value) => {
16442
+ const option = RAG_STATUS_OPTIONS.find((opt) => opt.value === value);
16443
+ return option?.label ?? value;
16444
+ };
16445
+
16446
+ // src/components/DeliveryLead/DeliveryLeadSubmission.tsx
16422
16447
  var import_jsx_runtime145 = require("react/jsx-runtime");
16423
16448
  var createEmptyMilestone = () => ({
16424
16449
  name: "",
16425
16450
  commentary: "",
16426
16451
  dueDate: "",
16427
- rag: "On-Track",
16452
+ rag: "Not-Started",
16428
16453
  id: null
16429
16454
  });
16430
- var ragOptions = ["On-Track", "Off-Track", "At Risk", "Complete"];
16431
16455
  var formatDateInputValue = (value) => {
16432
16456
  if (!value) return "";
16433
16457
  const parsed = new Date(value);
@@ -16474,7 +16498,7 @@ var buildMilestonesFromPrefill = (prefilled) => {
16474
16498
  name: milestone?.name ?? "",
16475
16499
  commentary: milestone?.commentary ?? "",
16476
16500
  dueDate: formatDateInputValue(milestone?.dueDate ?? ""),
16477
- rag: milestone?.rag ?? "On-Track",
16501
+ rag: milestone?.rag ?? "Not-Started",
16478
16502
  id: milestone?.id ?? null
16479
16503
  }));
16480
16504
  };
@@ -16514,10 +16538,11 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
16514
16538
  const prefilledProject = getProjectOption(initialData?.project, getNumericId(initialData?.customer));
16515
16539
  const projectsForCustomer = (customerProjectPairs ?? []).filter((cp) => cp.customer.id === clientId).map((cp) => cp.project);
16516
16540
  const filteredProjects = clientId && prefilledProject && prefilledProject.customerId === clientId && !projectsForCustomer.some((project) => project.id === prefilledProject.id) ? [...projectsForCustomer, { id: prefilledProject.id, name: prefilledProject.name }] : projectsForCustomer;
16541
+ const ragValues = RAG_STATUS_OPTIONS.map((opt) => opt.value);
16517
16542
  const handleMilestoneChange = (idx, field, value) => {
16518
16543
  setMilestones((prev) => {
16519
16544
  const newMilestones = [...prev];
16520
- if (field === "rag" && !ragOptions.includes(value)) {
16545
+ if (field === "rag" && !ragValues.includes(value)) {
16521
16546
  return prev;
16522
16547
  }
16523
16548
  newMilestones[idx] = { ...newMilestones[idx], [field]: value };
@@ -16687,7 +16712,7 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
16687
16712
  className: "w-full rounded-lg border border-zinc-300 dark:border-zinc-700 bg-zinc-50 dark:bg-zinc-900 text-zinc-900 dark:text-zinc-100 p-1 focus:ring-2 focus:ring-accent/40 focus:outline-none",
16688
16713
  value: m.rag,
16689
16714
  onChange: (e) => handleMilestoneChange(idx, "rag", e.target.value),
16690
- children: ragOptions.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("option", { value: opt, children: opt }, opt))
16715
+ children: RAG_STATUS_OPTIONS.map((opt) => /* @__PURE__ */ (0, import_jsx_runtime145.jsx)("option", { value: opt.value, children: opt.label }, opt.value))
16691
16716
  }
16692
16717
  )
16693
16718
  ] }),
@@ -16764,12 +16789,6 @@ function DeliveryLeadSubmissionComponent({ onSubmit, customerProjectPairs, initi
16764
16789
  var import_react61 = require("react");
16765
16790
  var import_lucide_react48 = require("lucide-react");
16766
16791
  var import_jsx_runtime146 = require("react/jsx-runtime");
16767
- var ragColorMap = {
16768
- "On-Track": "bg-green-100 text-green-800 border-green-200",
16769
- "Off-Track": "bg-red-100 text-red-800 border-red-200",
16770
- "At Risk": "bg-yellow-100 text-yellow-800 border-yellow-200",
16771
- Complete: "bg-blue-100 text-blue-800 border-blue-200"
16772
- };
16773
16792
  function DeliveryLeadSubmissionList({
16774
16793
  submissions,
16775
16794
  isLoading = false
@@ -16844,8 +16863,8 @@ function DeliveryLeadSubmissionList({
16844
16863
  submission.milestones?.slice(0, 3).map((milestone, idx) => /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
16845
16864
  "span",
16846
16865
  {
16847
- className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ragColorMap[milestone.rag]}`,
16848
- children: milestone.rag
16866
+ className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
16867
+ children: getRagStatusLabel(milestone.rag)
16849
16868
  },
16850
16869
  idx
16851
16870
  )),
@@ -16949,8 +16968,8 @@ function DeliveryLeadSubmissionList({
16949
16968
  /* @__PURE__ */ (0, import_jsx_runtime146.jsx)("td", { className: "px-4 py-2", children: /* @__PURE__ */ (0, import_jsx_runtime146.jsx)(
16950
16969
  "span",
16951
16970
  {
16952
- className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${ragColorMap[milestone.rag]}`,
16953
- children: milestone.rag
16971
+ className: `inline-flex items-center px-2 py-1 rounded-full text-xs font-medium border ${RAG_COLOR_MAP[milestone.rag]}`,
16972
+ children: getRagStatusLabel(milestone.rag)
16954
16973
  }
16955
16974
  ) })
16956
16975
  ] }, idx)) })
@@ -31350,6 +31369,8 @@ var Controls = ({ changeLayout, layout = "landscape" }) => {
31350
31369
  ProjectsIndexView,
31351
31370
  ProposalSummary,
31352
31371
  Publish,
31372
+ RAG_COLOR_MAP,
31373
+ RAG_STATUS_OPTIONS,
31353
31374
  RelatedContent,
31354
31375
  RelatedPagesMenu,
31355
31376
  RelatedPosts,
@@ -31461,6 +31482,7 @@ var Controls = ({ changeLayout, layout = "landscape" }) => {
31461
31482
  getDataPart,
31462
31483
  getFileParts,
31463
31484
  getInitials,
31485
+ getRagStatusLabel,
31464
31486
  getRoleBadgeColor,
31465
31487
  getTableOfContents,
31466
31488
  getTextContent,