@e-llm-studio/federated-dashboard-components 0.0.1-beta.8 → 0.0.1-beta.9

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 (98) hide show
  1. package/dist/cjs/components/DashboardCard/BreakingNewsBanner.js +2 -0
  2. package/dist/cjs/components/DashboardCard/BreakingNewsBanner.js.map +1 -0
  3. package/dist/cjs/components/DashboardCard/CardShell.js +2 -0
  4. package/dist/cjs/components/DashboardCard/CardShell.js.map +1 -0
  5. package/dist/cjs/components/DashboardCard/CenteredCell.js +2 -0
  6. package/dist/cjs/components/DashboardCard/CenteredCell.js.map +1 -0
  7. package/dist/cjs/components/DashboardCard/DashboardCard.js +2 -0
  8. package/dist/cjs/components/DashboardCard/DashboardCard.js.map +1 -0
  9. package/dist/cjs/components/DashboardCard/DetailRow.js +2 -0
  10. package/dist/cjs/components/DashboardCard/DetailRow.js.map +1 -0
  11. package/dist/cjs/components/DashboardCard/EventsSection.js +2 -0
  12. package/dist/cjs/components/DashboardCard/EventsSection.js.map +1 -0
  13. package/dist/cjs/components/DashboardCard/FooterLinkButton.js +2 -0
  14. package/dist/cjs/components/DashboardCard/FooterLinkButton.js.map +1 -0
  15. package/dist/cjs/components/DashboardCard/GridSection.js +2 -0
  16. package/dist/cjs/components/DashboardCard/GridSection.js.map +1 -0
  17. package/dist/cjs/components/DashboardCard/ListSection.js +2 -0
  18. package/dist/cjs/components/DashboardCard/ListSection.js.map +1 -0
  19. package/dist/cjs/components/DashboardCard/SectionHeadingBar.js +2 -0
  20. package/dist/cjs/components/DashboardCard/SectionHeadingBar.js.map +1 -0
  21. package/dist/cjs/components/DashboardCard/SkeletonRow.js +2 -0
  22. package/dist/cjs/components/DashboardCard/SkeletonRow.js.map +1 -0
  23. package/dist/cjs/components/DashboardCard/TagsSection.js +2 -0
  24. package/dist/cjs/components/DashboardCard/TagsSection.js.map +1 -0
  25. package/dist/cjs/components/DashboardCard/TopDropdownMenu.js +2 -0
  26. package/dist/cjs/components/DashboardCard/TopDropdownMenu.js.map +1 -0
  27. package/dist/cjs/components/DashboardCard/sectionContent.js +2 -0
  28. package/dist/cjs/components/DashboardCard/sectionContent.js.map +1 -0
  29. package/dist/cjs/components/DashboardCard/styles/DashboardCardStyles.js +2 -0
  30. package/dist/cjs/components/DashboardCard/styles/DashboardCardStyles.js.map +1 -0
  31. package/dist/cjs/index.js +1 -1
  32. package/dist/components/DashboardCard/BreakingNewsBanner.js +2 -0
  33. package/dist/components/DashboardCard/BreakingNewsBanner.js.map +1 -0
  34. package/dist/components/DashboardCard/CardShell.js +2 -0
  35. package/dist/components/DashboardCard/CardShell.js.map +1 -0
  36. package/dist/components/DashboardCard/CenteredCell.js +2 -0
  37. package/dist/components/DashboardCard/CenteredCell.js.map +1 -0
  38. package/dist/components/DashboardCard/DashboardCard.js +2 -0
  39. package/dist/components/DashboardCard/DashboardCard.js.map +1 -0
  40. package/dist/components/DashboardCard/DetailRow.js +2 -0
  41. package/dist/components/DashboardCard/DetailRow.js.map +1 -0
  42. package/dist/components/DashboardCard/EventsSection.js +2 -0
  43. package/dist/components/DashboardCard/EventsSection.js.map +1 -0
  44. package/dist/components/DashboardCard/FooterLinkButton.js +2 -0
  45. package/dist/components/DashboardCard/FooterLinkButton.js.map +1 -0
  46. package/dist/components/DashboardCard/GridSection.js +2 -0
  47. package/dist/components/DashboardCard/GridSection.js.map +1 -0
  48. package/dist/components/DashboardCard/ListSection.js +2 -0
  49. package/dist/components/DashboardCard/ListSection.js.map +1 -0
  50. package/dist/components/DashboardCard/SectionHeadingBar.js +2 -0
  51. package/dist/components/DashboardCard/SectionHeadingBar.js.map +1 -0
  52. package/dist/components/DashboardCard/SkeletonRow.js +2 -0
  53. package/dist/components/DashboardCard/SkeletonRow.js.map +1 -0
  54. package/dist/components/DashboardCard/TagsSection.js +2 -0
  55. package/dist/components/DashboardCard/TagsSection.js.map +1 -0
  56. package/dist/components/DashboardCard/TopDropdownMenu.js +2 -0
  57. package/dist/components/DashboardCard/TopDropdownMenu.js.map +1 -0
  58. package/dist/components/DashboardCard/sectionContent.js +2 -0
  59. package/dist/components/DashboardCard/sectionContent.js.map +1 -0
  60. package/dist/components/DashboardCard/styles/DashboardCardStyles.js +2 -0
  61. package/dist/components/DashboardCard/styles/DashboardCardStyles.js.map +1 -0
  62. package/dist/index.js +1 -1
  63. package/dist/types/App.d.ts.map +1 -1
  64. package/dist/types/components/DashboardCard/BreakingNewsBanner.d.ts +9 -0
  65. package/dist/types/components/DashboardCard/BreakingNewsBanner.d.ts.map +1 -0
  66. package/dist/types/components/DashboardCard/CardShell.d.ts +22 -0
  67. package/dist/types/components/DashboardCard/CardShell.d.ts.map +1 -0
  68. package/dist/types/components/DashboardCard/CenteredCell.d.ts +6 -0
  69. package/dist/types/components/DashboardCard/CenteredCell.d.ts.map +1 -0
  70. package/dist/types/components/DashboardCard/DashboardCard.d.ts +5 -0
  71. package/dist/types/components/DashboardCard/DashboardCard.d.ts.map +1 -0
  72. package/dist/types/components/DashboardCard/DetailRow.d.ts +9 -0
  73. package/dist/types/components/DashboardCard/DetailRow.d.ts.map +1 -0
  74. package/dist/types/components/DashboardCard/EventsSection.d.ts +3 -0
  75. package/dist/types/components/DashboardCard/EventsSection.d.ts.map +1 -0
  76. package/dist/types/components/DashboardCard/FooterLinkButton.d.ts +6 -0
  77. package/dist/types/components/DashboardCard/FooterLinkButton.d.ts.map +1 -0
  78. package/dist/types/components/DashboardCard/GridSection.d.ts +3 -0
  79. package/dist/types/components/DashboardCard/GridSection.d.ts.map +1 -0
  80. package/dist/types/components/DashboardCard/ListSection.d.ts +4 -0
  81. package/dist/types/components/DashboardCard/ListSection.d.ts.map +1 -0
  82. package/dist/types/components/DashboardCard/SectionHeadingBar.d.ts +9 -0
  83. package/dist/types/components/DashboardCard/SectionHeadingBar.d.ts.map +1 -0
  84. package/dist/types/components/DashboardCard/SkeletonRow.d.ts +3 -0
  85. package/dist/types/components/DashboardCard/SkeletonRow.d.ts.map +1 -0
  86. package/dist/types/components/DashboardCard/TagsSection.d.ts +3 -0
  87. package/dist/types/components/DashboardCard/TagsSection.d.ts.map +1 -0
  88. package/dist/types/components/DashboardCard/TopDropdownMenu.d.ts +6 -0
  89. package/dist/types/components/DashboardCard/TopDropdownMenu.d.ts.map +1 -0
  90. package/dist/types/components/DashboardCard/sectionContent.d.ts +4 -0
  91. package/dist/types/components/DashboardCard/sectionContent.d.ts.map +1 -0
  92. package/dist/types/components/DashboardCard/styles/DashboardCardStyles.d.ts +17 -0
  93. package/dist/types/components/DashboardCard/styles/DashboardCardStyles.d.ts.map +1 -0
  94. package/dist/types/components/DashboardCard/types.d.ts +156 -0
  95. package/dist/types/components/DashboardCard/types.d.ts.map +1 -0
  96. package/dist/types/index.d.ts +2 -0
  97. package/dist/types/index.d.ts.map +1 -1
  98. package/package.json +1 -1
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),n=require("./styles/DashboardCardStyles.js");exports.BreakingNewsBanner=function(r){var t=r.items,a=r.accentBg,i=r.accentBorder,_=r.accentText;if(0===t.length)return null;var l={backgroundColor:a,borderColor:i};return s.jsxs(s.Fragment,{children:[s.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.newsBanner),l)},{children:s.jsx("p",e.__assign({style:e.__assign(e.__assign({},n.default.newsBannerTitle),{color:_})},{children:"Breaking News"}))})),t.map(function(r,a){return s.jsxs("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},n.default.newsItem),l),a===t.length-1?n.default.newsItemLast:{})},{children:[s.jsx("span",{style:e.__assign(e.__assign({},n.default.newsItemDot),{backgroundColor:n.NEWS_DOT_COLORS[r.level]})}),s.jsx("p",e.__assign({style:e.__assign(e.__assign({},n.default.newsItemText),{color:_})},{children:r.text}))]}),a)})]})};
2
+ //# sourceMappingURL=BreakingNewsBanner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreakingNewsBanner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),s=require("react"),n=require("./styles/DashboardCardStyles.js");exports.CardShell=function(a){for(var l=a.accent,r=a.iconBg,i=a.icon,c=a.title,o=a.badge,d=a.heroValue,h=a.heroLabel,u=a.heroColor,x=a.heroDelta,f=a.chartData,_=a.chartLabels,g=a.chartColor,y=a.chartPrefix,p=a.footer,j=a.children,v=s.useState(null),m=v[0],b=v[1],C=s.useRef(null),M=240,S=90,k=18,L=12,D=f&&f.length>0?Math.min.apply(Math,f):0,w=f&&f.length>0?Math.max.apply(Math,f):100,A=w-D===0?1:w-D,R=(f||[]).map(function(e,t){var s=f.length;return{x:s>1?k+t/(s-1)*204:120,y:78-(e-D)/A*66,value:e,index:t}}),W=R.length>0?"M ".concat(R[0].x," ").concat(R[0].y):"",T=0;T<R.length-1;T++){var q=R[T],B=R[T+1];W+=" C ".concat(q.x+(B.x-q.x)/3," ").concat(q.y,", ").concat(q.x+2*(B.x-q.x)/3," ").concat(B.y,", ").concat(B.x," ").concat(B.y)}var F,O,E=R.length>0?"".concat(W," L ").concat(R[R.length-1].x," ").concat(78," L ").concat(R[0].x," ").concat(78," Z"):"",H=null!==m?R[m]:null,P=function(e){return c.toLowerCase().includes("security")?String(Math.round(e)):"$"===y?"$".concat(e.toFixed(2)):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):String(e)},V=function(e){if(!e)return"Recent";var t=e.split(":");if(t.length<2)return e;var s=parseInt(t[0],10),n=t[1],a=s>=12?"PM":"AM";return"".concat(s=s%12||12,":").concat(n," ").concat(a)},z=(F=c.toLowerCase(),O=l.toLowerCase(),F.includes("security")||O.includes("red")||O.includes("rose")?n.default.themeRose:F.includes("finops")||O.includes("violet")||O.includes("purple")?n.default.themeViolet:F.includes("health")||O.includes("sky")||O.includes("emerald")?n.default.themeSky:F.includes("change")||O.includes("amber")||O.includes("orange")?n.default.themeAmber:n.default.themeNeutral);return t.jsxs("div",e.__assign({style:n.default.card},{children:[t.jsx("style",{children:n.DASHBOARD_CARD_KEYFRAMES}),t.jsxs("div",e.__assign({style:e.__assign(e.__assign({},n.default.cardHeader),z)},{children:[t.jsxs("div",e.__assign({style:n.default.headerTop},{children:[t.jsxs("div",e.__assign({style:n.default.headerIconTitle},{children:[t.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.iconWrap),{backgroundColor:r})},{children:i})),t.jsx("h3",e.__assign({style:n.default.title},{children:c}))]})),t.jsx("span",e.__assign({style:n.default.badge},{children:o}))]})),t.jsxs("div",e.__assign({style:n.default.heroRow},{children:[t.jsxs("div",e.__assign({style:n.default.hero},{children:[t.jsx("span",e.__assign({style:e.__assign(e.__assign({},n.default.heroValue),{color:u})},{children:d})),t.jsx("span",e.__assign({style:n.default.heroLabel},{children:h})),x&&t.jsx("span",e.__assign({style:e.__assign(e.__assign({},n.default.heroDelta),x.up?n.default.heroDeltaUp:n.default.heroDeltaDown)},{children:x.text}))]})),t.jsxs("div",e.__assign({style:n.default.chartCol},{children:[t.jsxs("div",e.__assign({style:n.default.chartHeader},{children:[t.jsx("span",{children:"Trend Timeline"}),H&&t.jsx("span",e.__assign({style:n.default.chartTooltip},{children:c.toLowerCase().includes("security")?"".concat(P(H.value)," alerts at ").concat(_?V(_[H.index]):""):"".concat(_?"".concat(V(_[H.index]),": "):"").concat(P(H.value))}))]})),t.jsx("div",e.__assign({style:n.default.chartWrap},{children:f&&f.length>1?t.jsxs("svg",e.__assign({ref:C,viewBox:"0 0 ".concat(M," ").concat(S),style:n.default.chartSvg,onMouseMove:function(e){if(C.current&&0!==R.length){for(var t=C.current.getBoundingClientRect(),s=(e.clientX-t.left)/t.width*M,n=0,a=Math.abs(R[0].x-s),l=1;l<R.length;l++){var r=Math.abs(R[l].x-s);r<a&&(a=r,n=l)}b(n)}},onMouseLeave:function(){return b(null)}},{children:[t.jsx("defs",{children:t.jsxs("linearGradient",e.__assign({id:"grad-".concat(c.replace(/\s+/g,"")),x1:"0",y1:"0",x2:"0",y2:"1"},{children:[t.jsx("stop",{offset:"0%",stopColor:g,stopOpacity:.12}),t.jsx("stop",{offset:"100%",stopColor:g,stopOpacity:0})]}))}),t.jsx("text",e.__assign({x:12,y:15,textAnchor:"end",style:{fontSize:8,fontWeight:900,letterSpacing:"-0.05em",fill:"#020617"}},{children:P(w)})),t.jsx("text",e.__assign({x:12,y:81,textAnchor:"end",style:{fontSize:8,fontWeight:900,letterSpacing:"-0.05em",fill:"#020617"}},{children:P(D)})),t.jsx("path",{d:E,fill:"url(#grad-".concat(c.replace(/\s+/g,""),")")}),t.jsx("path",{d:W,fill:"none",stroke:g,strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"}),H?t.jsxs(t.Fragment,{children:[t.jsx("line",{x1:H.x,y1:L,x2:H.x,y2:78,stroke:"#64748b",strokeWidth:.75,strokeDasharray:"2,2"}),t.jsx("circle",{cx:H.x,cy:H.y,r:4,fill:g,opacity:.2}),t.jsx("circle",{cx:H.x,cy:H.y,r:2,fill:g,stroke:"#ffffff",strokeWidth:1})]}):R.length>0&&t.jsx("circle",{cx:R[R.length-1].x,cy:R[R.length-1].y,r:2.5,fill:g})]})):t.jsx("span",e.__assign({style:n.default.chartEmpty},{children:"No live telemetry"}))}))]}))]}))]})),t.jsx("div",e.__assign({style:n.default.body},{children:j})),p&&t.jsx("div",e.__assign({style:n.default.footer},{children:p}))]}))};
2
+ //# sourceMappingURL=CardShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardShell.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),l=require("./styles/DashboardCardStyles.js"),r=require("./TopDropdownMenu.js");exports.CenteredCell=function(n){var o=n.item;return s.jsxs("div",e.__assign({style:l.default.centeredCell,onClick:o.onClick},{children:[o.dropdown&&s.jsx(r.TopDropdownMenu,{config:o.dropdown}),s.jsx("div",e.__assign({style:l.default.centeredCellLabel},{children:o.label})),s.jsx("div",e.__assign({style:e.__assign(e.__assign({},l.default.centeredCellValue),o.valueColor?{color:o.valueColor}:{})},{children:o.value})),o.sub&&s.jsx("div",e.__assign({style:e.__assign(e.__assign({},l.default.centeredCellSub),o.subColor?{color:o.subColor}:{})},{children:o.sub}))]}))};
2
+ //# sourceMappingURL=CenteredCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CenteredCell.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),t=require("react"),n=require("./styles/DashboardCardStyles.js"),o=require("./CardShell.js"),a=require("./SkeletonRow.js"),i=require("./BreakingNewsBanner.js"),l=require("./SectionHeadingBar.js"),s=require("./FooterLinkButton.js"),c=require("./sectionContent.js");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var d=u(t);exports.DashboardCard=function(t){var u=t.accent,h=t.iconBg,g=t.icon,f=t.title,j=t.badge,b=void 0===j?"Today":j,x=t.heroValue,C=t.heroLabel,B=t.heroColor,_=t.heroDelta,k=t.chartData,q=t.chartLabels,v=t.chartColor,p=void 0===v?"#6366f1":v,L=t.chartPrefix,y=void 0===L?"":L,S=t.loading,m=t.footer,D=t.footerLinks,w=t.breakingNews,F=t.accentBg,N=t.accentBorder,P=t.accentText,T=t.sections,H=null!=m?m:D&&D.length>0?r.jsx("div",e.__assign({style:e.__assign(e.__assign({},n.default.footerLinks),D.length>1?n.default.footerLinksMulti:{})},{children:D.map(function(e,t){return r.jsx(s.FooterLinkButton,{label:e.label,onClick:e.onClick},t)})})):null;return r.jsx(o.CardShell,e.__assign({accent:u,iconBg:h,icon:g,title:f,badge:b,heroValue:x,heroLabel:C,heroColor:B,heroDelta:_,chartData:null!=k?k:null,chartLabels:q,chartColor:p,chartPrefix:y,footer:H},{children:S?r.jsx(r.Fragment,{children:[0,1,2].map(function(e){return r.jsx(a.SkeletonRow,{},e)})}):r.jsxs("div",e.__assign({style:n.default.bodyContent},{children:[r.jsx(i.BreakingNewsBanner,{items:w,accentBg:F,accentBorder:N,accentText:P}),T.map(function(e,t){return r.jsxs(d.default.Fragment,{children:[r.jsx(l.SectionHeadingBar,{label:e.heading,color:e.headingColor,dotColor:e.dotColor,count:e.count,pulse:e.pulse}),c.renderSectionContent(e)]},t)})]}))}))};
2
+ //# sourceMappingURL=DashboardCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),a=require("react"),t=require("lucide-react"),i=require("./styles/DashboardCardStyles.js");exports.DetailRow=function(l){var r=l.label,n=l.value,o=l.sub,u=l.onClick,d=l.valueColor,_=a.useState(!1),c=_[0],f=_[1],g=u?"button":"div";return s.jsxs(g,e.__assign({onClick:u,onMouseEnter:function(){return u&&f(!0)},onMouseLeave:function(){return u&&f(!1)},style:e.__assign(e.__assign(e.__assign({},i.default.detailRow),u?i.default.detailRowClickable:{}),u&&c?{backgroundColor:"#f8fafc"}:{})},{children:[s.jsxs("div",e.__assign({style:i.default.detailRowMain},{children:[s.jsx("p",e.__assign({style:i.default.detailRowLabel},{children:r})),s.jsx("p",e.__assign({style:e.__assign(e.__assign({},i.default.detailRowValue),d?{color:d}:{})},{children:n})),o&&s.jsx("p",e.__assign({style:i.default.detailRowSub},{children:o}))]})),u&&s.jsx(t.ChevronRight,{size:14,style:e.__assign(e.__assign({},i.default.detailRowChevron),c?i.default.detailRowChevronHover:{})})]}))};
2
+ //# sourceMappingURL=DetailRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DetailRow.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),t=require("react/jsx-runtime"),s=require("react"),n=require("lucide-react"),a=require("./styles/DashboardCardStyles.js"),l={BLOCKED:{action:"Request blocked — review policy rule",color:a.ACTION_COLORS.BLOCKED},FLAGGED:{action:"Flagged for review — investigate source",color:a.ACTION_COLORS.FLAGGED},ALLOWED:{action:"Allowed through — monitor for patterns",color:a.ACTION_COLORS.ALLOWED}};function i(e){var t=Math.floor((Date.now()-e.getTime())/1e3);if(t<60)return"just now";var s=Math.floor(t/60);if(s<60)return"".concat(s,"m ago");var n=Math.floor(s/60);return n<24?"".concat(n,"h ago"):"".concat(Math.floor(n/24),"d ago")}var r=function(r){var o,d,u,c,_=r.event,g=s.useState(!1),f=g[0],v=g[1],y=s.useState(!1),h=y[0],m=y[1],x=s.useState(!1),j=x[0],S=x[1],T=null!==(o=a.SEV_BADGE_STYLES[_.severity])&&void 0!==o?o:a.SEV_BADGE_DEFAULT,L=_.status&&null!==(d=l[_.status])&&void 0!==d?d:null;return t.jsxs("div",e.__assign({style:a.default.eventRowWrap},{children:[t.jsxs("button",e.__assign({onClick:function(){return v(!0)},onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)},style:e.__assign(e.__assign({},a.default.eventRow),h?a.default.eventRowHover:{})},{children:[t.jsx("span",{style:e.__assign(e.__assign({},a.default.eventRowDot),{backgroundColor:null!==(u=a.SEV_DOT_COLORS[_.severity])&&void 0!==u?u:"#cbd5e1"})}),t.jsx("p",e.__assign({style:a.default.eventRowTitle},{children:_.title})),t.jsx("span",e.__assign({style:a.default.eventRowTime},{children:i(_.timestamp)})),t.jsx(n.ChevronRight,{size:10,style:a.default.eventRowChevron})]})),f&&t.jsx("div",e.__assign({style:a.default.modalOverlay},{children:t.jsxs("div",e.__assign({style:a.default.modal},{children:[t.jsxs("div",e.__assign({style:a.default.modalHeader},{children:[t.jsxs("div",e.__assign({style:a.default.modalHeaderLeft},{children:[t.jsx("span",e.__assign({style:e.__assign(e.__assign({},a.default.modalBadge),T)},{children:_.severity})),_.status&&t.jsx("span",e.__assign({style:e.__assign(e.__assign({},a.default.modalStatusBadge),null!==(c=a.STATUS_BADGE_STYLES[_.status])&&void 0!==c?c:a.STATUS_BADGE_DEFAULT)},{children:_.status})),t.jsx("span",e.__assign({style:a.default.modalTitle},{children:_.title}))]})),t.jsx("button",e.__assign({onClick:function(){return v(!1)},style:a.default.modalClose,onMouseEnter:function(e){e.currentTarget.style.color="#475569",e.currentTarget.style.backgroundColor="rgba(226,232,240,0.5)"},onMouseLeave:function(e){e.currentTarget.style.color="#94a3b8",e.currentTarget.style.backgroundColor="transparent"}},{children:t.jsx(n.X,{size:14})}))]})),t.jsxs("div",e.__assign({style:a.default.modalBody},{children:[_.triageSummary&&t.jsxs("div",{children:[t.jsx("h4",e.__assign({style:a.default.modalSectionTitle},{children:"Summary"})),t.jsx("p",e.__assign({style:a.default.modalSummaryText},{children:_.triageSummary}))]}),_.details&&_.details.length>0&&t.jsxs("div",e.__assign({style:a.default.modalBodySpacer},{children:[t.jsx("h4",e.__assign({style:e.__assign(e.__assign({},a.default.modalSectionTitle),a.default.modalSectionTitleTight)},{children:"Metadata Details"})),t.jsx("div",e.__assign({style:a.default.modalDetailsGrid},{children:_.details.map(function(s){return t.jsxs("div",e.__assign({style:a.default.modalDetail},{children:[t.jsx("span",e.__assign({style:a.default.modalDetailLabel},{children:s.label})),t.jsx("span",e.__assign({style:a.default.modalDetailValue},{children:s.value}))]}),s.label)})}))]})),_.incidentUrl&&t.jsx("div",e.__assign({style:e.__assign(e.__assign({},a.default.modalLinkRow),a.default.modalBodySpacer)},{children:t.jsx("a",e.__assign({href:_.incidentUrl,target:"_blank",rel:"noopener noreferrer",style:a.default.modalLink,onMouseEnter:function(e){e.currentTarget.style.color="#4338ca",e.currentTarget.style.textDecoration="underline"},onMouseLeave:function(e){e.currentTarget.style.color="#6366f1",e.currentTarget.style.textDecoration="none"}},{children:"View External Incident →"}))}))]})),L&&t.jsx("div",e.__assign({style:a.default.modalActionRow},{children:t.jsxs("button",e.__assign({onClick:function(){var e;v(!1),null===(e=_.onAction)||void 0===e||e.call(_)},onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)},style:e.__assign(e.__assign({},a.default.modalActionBtn),j?a.default.modalActionBtnHover:{})},{children:[t.jsx("span",e.__assign({style:e.__assign(e.__assign({},a.default.modalActionText),{color:L.color})},{children:L.action})),t.jsx(n.ChevronRight,{size:12,style:e.__assign(e.__assign(e.__assign({},a.default.modalActionChevron),{color:L.color}),j?a.default.modalActionChevronHover:{})})]}))}))]}))}))]}))};exports.renderEventsSection=function(e){return t.jsx("div",{children:e.map(function(e){return t.jsx(r,{event:e},e.id)})})};
2
+ //# sourceMappingURL=EventsSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventsSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),t=require("lucide-react"),n=require("./styles/DashboardCardStyles.js");exports.FooterLinkButton=function(o){var s=o.label,u=o.onClick;return r.jsxs("button",e.__assign({onClick:u,style:n.default.footerLink,onMouseEnter:function(e){return e.currentTarget.style.color="#4338ca"},onMouseLeave:function(e){return e.currentTarget.style.color="#6366f1"}},{children:[s," ",r.jsx(t.ChevronRight,{size:11})]}))};
2
+ //# sourceMappingURL=FooterLinkButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterLinkButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),r=require("react/jsx-runtime"),i=require("./styles/DashboardCardStyles.js"),l=require("./CenteredCell.js"),s=require("./TopDropdownMenu.js"),n=require("./DetailRow.js");exports.renderGridSection=function(d,o,a){for(var t=[],u=0;u<d.length;u+=o)t.push(d.slice(u,u+o));return r.jsx("div",{children:t.map(function(d,t){return r.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.gridRow),{gridTemplateColumns:"repeat(".concat(o,", minmax(0, 1fr))")}),t>0?i.default.gridRowDivider:{})},{children:d.map(function(d,o){return r.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},i.default.gridCell),a?{}:i.default.gridCellPadded),o>0?i.default.gridCellDivider:{})},{children:a?r.jsx(l.CenteredCell,{item:d}):r.jsxs(r.Fragment,{children:[d.dropdown&&r.jsx(s.TopDropdownMenu,{config:d.dropdown}),r.jsx("div",e.__assign({style:i.default.gridCellInner,onClick:d.dropdown?d.onClick:void 0},{children:r.jsx(n.DetailRow,{label:d.label,value:d.value,sub:d.sub,onClick:d.dropdown?void 0:d.onClick,valueColor:d.valueColor})}))]})}),o)})}),t)})})};
2
+ //# sourceMappingURL=GridSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("react"),t=require("./styles/DashboardCardStyles.js"),n=function(n){var l,r,a=n.item,o=n.compact,u=i.useState(!1),d=u[0],c=u[1];return s.jsx("div",e.__assign({style:e.__assign(e.__assign(e.__assign({},t.default.listRow),o?t.default.listRowCompact:{}),d?t.default.listRowHover:{}),onClick:a.onClick,onMouseEnter:function(){return c(!0)},onMouseLeave:function(){return c(!1)}},{children:o?s.jsxs(s.Fragment,{children:[s.jsx("span",{style:e.__assign(e.__assign({},t.default.listRowDot),{backgroundColor:null!==(l=a.dotColor)&&void 0!==l?l:"#cbd5e1",animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"})}),s.jsx("p",e.__assign({style:t.default.alertRowValue},{children:a.value})),a.sub&&s.jsx("span",e.__assign({style:t.default.alertRowSub},{children:a.sub}))]}):s.jsxs(s.Fragment,{children:[s.jsx("span",{style:e.__assign(e.__assign({},t.default.listRowDot),{backgroundColor:null!==(r=a.dotColor)&&void 0!==r?r:"#cbd5e1"})}),s.jsxs("div",e.__assign({style:t.default.listRowMain},{children:[s.jsx("p",e.__assign({style:t.default.listRowValue},{children:a.value})),a.sub&&s.jsx("p",e.__assign({style:t.default.listRowSub},{children:a.sub}))]})),s.jsx("span",e.__assign({style:t.default.listRowLabel},{children:a.label}))]})}))};exports.renderAlertsSection=function(i){return s.jsx("div",{children:i.map(function(i,l){return s.jsx("div",e.__assign({style:l>0?t.default.listRowDivider:void 0},{children:s.jsx(n,{item:i,compact:!0})}),l)})})},exports.renderListSection=function(i){return s.jsx("div",{children:i.map(function(i,l){return s.jsx("div",e.__assign({style:l>0?t.default.listRowDivider:void 0},{children:s.jsx(n,{item:i})}),l)})})};
2
+ //# sourceMappingURL=ListSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),i=require("./styles/DashboardCardStyles.js");exports.SectionHeadingBar=function(n){var a=n.label,t=n.color,l=n.dotColor,r=n.count,o=n.pulse;return s.jsxs("div",e.__assign({style:e.__assign(e.__assign({},i.default.sectionHeading),null!=t?t:i.default.sectionHeadingDefault)},{children:[l&&s.jsx("span",{style:e.__assign(e.__assign(e.__assign({},i.default.sectionHeadingDot),{backgroundColor:l}),o?{animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"}:{})}),s.jsx("p",e.__assign({style:i.default.sectionHeadingLabel},{children:a})),void 0!==r&&s.jsx("span",e.__assign({style:i.default.sectionHeadingCount},{children:r}))]}))};
2
+ //# sourceMappingURL=SectionHeadingBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeadingBar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),s=require("react/jsx-runtime"),t=require("./styles/DashboardCardStyles.js");exports.SkeletonRow=function(){return s.jsxs("div",e.__assign({style:t.default.skeletonRow},{children:[s.jsx("div",{style:e.__assign(e.__assign({},t.default.skeletonLine),t.default.skeletonLineTitle)}),s.jsx("div",{style:e.__assign(e.__assign({},t.default.skeletonLine),t.default.skeletonLineValue)})]}))};
2
+ //# sourceMappingURL=SkeletonRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkeletonRow.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var s=require("../../_virtual/_tslib.js"),e=require("react/jsx-runtime"),t=require("./styles/DashboardCardStyles.js");exports.renderTagsSection=function(a){var l,n;return e.jsxs("div",s.__assign({style:t.default.tags},{children:[e.jsx("div",s.__assign({style:t.default.tagsTop},{children:e.jsxs("div",s.__assign({style:t.default.tagsMeta},{children:[e.jsx("span",s.__assign({style:t.default.tagsLabel},{children:a.label})),e.jsxs("span",s.__assign({style:t.default.tagsCount},{children:[a.count," ",null!==(l=a.countSuffix)&&void 0!==l?l:1===a.count?"Item":"Items"]}))]}))})),e.jsx("div",s.__assign({style:t.default.tagsList},{children:a.tags.length>0?a.tags.map(function(a,l){var n;return e.jsxs("span",s.__assign({style:t.default.tag},{children:[e.jsx("span",{style:s.__assign(s.__assign({},t.default.tagDot),{backgroundColor:null!==(n=a.dotColor)&&void 0!==n?n:"#94a3b8"})}),a.label]}),l)}):e.jsx("span",s.__assign({style:t.default.tagsEmpty},{children:null!==(n=a.emptyText)&&void 0!==n?n:"No items detected"}))}))]}))};
2
+ //# sourceMappingURL=TagsSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("../../_virtual/_tslib.js"),n=require("react/jsx-runtime"),r=require("react"),t=require("./styles/DashboardCardStyles.js");exports.TopDropdownMenu=function(s){var o=s.config,a=r.useState(!1),i=a[0],l=a[1];return n.jsxs(n.Fragment,{children:[n.jsxs("button",e.__assign({onClick:function(e){e.stopPropagation(),l(!i)},style:e.__assign(e.__assign({},t.default.dropdownTrigger),i?t.default.dropdownTriggerOpen:t.default.dropdownTriggerClosed)},{children:["Top ",o.items.length," ▾"]})),i&&n.jsx("div",e.__assign({style:t.default.dropdownPanel,onMouseLeave:function(){return l(!1)}},{children:n.jsxs("div",e.__assign({style:t.default.dropdownInner},{children:[n.jsx("span",e.__assign({style:t.default.dropdownTitle},{children:o.title})),o.items.map(function(r,s){return n.jsxs("button",e.__assign({onClick:function(e){var n;e.stopPropagation(),null===(n=o.onClick)||void 0===n||n.call(o)},style:t.default.dropdownItem,onMouseEnter:function(e){return e.currentTarget.style.backgroundColor="#f8fafc"},onMouseLeave:function(e){return e.currentTarget.style.backgroundColor="transparent"}},{children:[n.jsxs("span",e.__assign({style:t.default.dropdownItemName},{children:[s+1,". ",r.name]})),n.jsx("span",e.__assign({style:t.default.dropdownItemValue},{children:r.value}))]}),s)})]}))}))]})};
2
+ //# sourceMappingURL=TopDropdownMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopDropdownMenu.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./GridSection.js"),t=require("./ListSection.js"),r=require("./TagsSection.js"),n=require("./EventsSection.js");exports.renderSectionContent=function(i){var s,o;if(i.content)return i.content;if("tags"===i.format&&i.tagsConfig)return r.renderTagsSection(i.tagsConfig);if("events"===i.format&&i.events)return n.renderEventsSection(i.events);if(!i.items||0===i.items.length)return null;switch(i.format){case"grid":return e.renderGridSection(i.items,null!==(s=i.columns)&&void 0!==s?s:2,i.centered);case"list":return t.renderListSection(i.items);case"alerts":return t.renderAlertsSection(i.items);default:return e.renderGridSection(i.items,null!==(o=i.columns)&&void 0!==o?o:2,i.centered)}};
2
+ //# sourceMappingURL=sectionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e='ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',o={card:{display:"flex",flexDirection:"column",background:"#ffffff",borderRadius:12,border:"1px solid #f1f5f9",boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",overflow:"visible",textAlign:"left",height:"100%",fontFamily:e,lineHeight:1.5},cardHeader:{padding:16,borderRadius:"12px 12px 0 0",position:"relative",borderBottom:"1px solid rgba(241,245,249,0.6)"},themeRose:{background:"linear-gradient(to bottom, rgba(255,228,230,0.6), rgba(254,242,242,0.35), #ffffff)"},themeViolet:{background:"linear-gradient(to bottom, rgba(237,233,254,0.6), rgba(250,245,255,0.35), #ffffff)"},themeSky:{background:"linear-gradient(to bottom, rgba(224,242,254,0.5), rgba(238,242,255,0.3), #ffffff)"},themeAmber:{background:"linear-gradient(to bottom, rgba(254,249,195,0.5), rgba(255,251,235,0.3), #ffffff)"},themeNeutral:{background:"linear-gradient(to bottom, rgba(241,245,249,0.5), rgba(248,250,252,0.25), #ffffff)"},headerTop:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},headerIconTitle:{display:"flex",alignItems:"center",gap:6},iconWrap:{padding:4,borderRadius:4,flexShrink:0},title:{margin:0,fontSize:12,fontWeight:700,color:"#334155",textTransform:"uppercase",letterSpacing:"0.05em"},badge:{fontSize:10,fontWeight:700,color:"#64748b",background:"rgba(255,255,255,0.8)",padding:"2px 6px",borderRadius:9999,boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",border:"1px solid rgba(241,245,249,0.4)"},heroRow:{display:"grid",gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gap:12,alignItems:"center",minHeight:96},hero:{gridColumn:"span 4 / span 4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",borderRight:"1px solid rgba(241,245,249,0.8)",paddingRight:8},heroValue:{fontSize:24,fontWeight:800,letterSpacing:"-0.025em",lineHeight:1},heroLabel:{fontSize:9,fontWeight:700,color:"#334155",marginTop:4,lineHeight:1.25,textTransform:"uppercase",letterSpacing:"0.025em"},heroDelta:{fontSize:9,fontWeight:700,marginTop:4},heroDeltaUp:{color:"#f43f5e"},heroDeltaDown:{color:"#059669"},chartCol:{gridColumn:"span 8 / span 8",width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"visible",userSelect:"none",paddingLeft:4},chartHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:8,fontWeight:900,color:"#1e293b",textTransform:"uppercase",padding:"0 4px",letterSpacing:"0.05em"},chartTooltip:{color:"#4f46e5",background:"#eef2ff",padding:"2px 6px",borderRadius:4,fontWeight:900,fontSize:9,whiteSpace:"nowrap",boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",border:"1px solid rgba(224,231,255,0.3)"},chartWrap:{width:"100%",flex:"1 1 0%",position:"relative",overflow:"visible",marginTop:4},chartSvg:{width:"100%",height:"100%",overflow:"visible",cursor:"crosshair"},chartEmpty:{fontSize:10,color:"#94a3b8",fontWeight:700,position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},body:{flex:"1 1 0%",overflow:"visible"},footer:{background:"rgba(248,250,252,0.6)",padding:"8px 16px",borderTop:"1px solid #f1f5f9",borderRadius:"0 0 12px 12px",overflow:"visible"},bodyContent:{display:"flex",flexDirection:"column",color:"#334155"},footerLinks:{display:"flex"},footerLinksMulti:{width:"100%",justifyContent:"space-between",alignItems:"center"},footerLink:{textAlign:"left",padding:"12px 16px",fontSize:12,color:"#6366f1",display:"flex",alignItems:"center",gap:2,transition:"color 0.15s ease",background:"none",border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},skeletonRow:{padding:"12px 16px"},skeletonLine:{borderRadius:4,background:"#f8fafc",animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"},skeletonLineTitle:{height:12,width:64},skeletonLineValue:{height:16,width:96,background:"#f1f5f9",marginTop:6},sectionHeading:{padding:"8px 16px",display:"flex",alignItems:"center",gap:8,borderTop:"1px solid",borderBottom:"1px solid"},sectionHeadingDefault:{background:"#f8fafc",borderColor:"#e2e8f0",color:"#64748b"},sectionHeadingDot:{width:8,height:8,borderRadius:9999,flexShrink:0},sectionHeadingLabel:{margin:0,fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em",color:"inherit"},sectionHeadingCount:{fontSize:10,fontWeight:600,padding:"2px 8px",borderRadius:9999,marginLeft:"auto",opacity:.8,background:"rgba(0,0,0,0.06)"},newsBanner:{padding:"8px 16px",display:"flex",alignItems:"center",gap:8,borderTop:"1px solid",borderBottom:"1px solid"},newsBannerTitle:{margin:0,fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em"},newsItem:{display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderBottom:"1px solid"},newsItemLast:{borderBottom:"none"},newsItemDot:{width:6,height:6,borderRadius:9999,marginTop:4,flexShrink:0,animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"},newsItemText:{margin:0,fontSize:11,fontWeight:500,lineHeight:1.625},dropdownTrigger:{position:"absolute",right:6,top:4,padding:"2px 4px",borderRadius:4,fontSize:8,fontWeight:900,letterSpacing:"0.025em",textTransform:"uppercase",transition:"background-color 0.15s ease, color 0.15s ease",zIndex:10,border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},dropdownTriggerClosed:{background:"#f1f5f9",color:"#64748b"},dropdownTriggerOpen:{background:"#4f46e5",color:"#ffffff"},dropdownPanel:{position:"absolute",left:0,right:0,top:36,paddingTop:4,zIndex:50,pointerEvents:"auto"},dropdownInner:{background:"#ffffff",border:"1px solid #e2e8f0",borderRadius:8,boxShadow:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)",padding:8,display:"flex",flexDirection:"column",gap:4,textAlign:"left"},dropdownTitle:{fontSize:9,fontWeight:700,color:"#4f46e5",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:2,padding:"0 4px"},dropdownItem:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:10,padding:4,borderRadius:4,transition:"background-color 0.15s ease",textAlign:"left",background:"none",border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},dropdownItemName:{fontWeight:600,color:"#334155",maxWidth:95,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},dropdownItemValue:{color:"#6366f1",fontWeight:500,flexShrink:0},detailRow:{width:"100%",textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",background:"none",border:"none",margin:0,fontFamily:"inherit"},detailRowClickable:{cursor:"pointer",transition:"background-color 0.15s ease"},detailRowMain:{minWidth:0},detailRowLabel:{margin:0,fontSize:12,color:"#94a3b8"},detailRowValue:{margin:0,fontSize:14,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:2,color:"#1e293b"},detailRowSub:{margin:0,fontSize:12,color:"#94a3b8",marginTop:2},detailRowChevron:{color:"#e2e8f0",transition:"color 0.15s ease",flexShrink:0},detailRowChevronHover:{color:"#94a3b8"},centeredCell:{padding:"16px 8px",minWidth:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",userSelect:"none",position:"relative"},centeredCellLabel:{fontSize:10,color:"#94a3b8",fontWeight:500,lineHeight:1,width:"100%"},centeredCellValue:{fontSize:14,fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:6,width:"100%",maxWidth:100,color:"#334155"},centeredCellSub:{fontSize:10,fontWeight:700,marginTop:6,lineHeight:1.25,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#94a3b8"},gridRow:{display:"grid"},gridCell:{minWidth:0,position:"relative"},gridCellPadded:{padding:6},gridCellInner:{padding:6},gridRowDivider:{borderTop:"1px solid #f1f5f9"},gridCellDivider:{borderLeft:"1px solid #f1f5f9"},listRow:{display:"flex",alignItems:"center",gap:8,padding:"12px 16px",transition:"background-color 0.15s ease"},listRowCompact:{padding:"8px 16px"},listRowDivider:{borderTop:"1px solid rgba(241,245,249,0.6)"},listRowHover:{background:"rgba(248,250,252,0.4)"},listRowDot:{width:6,height:6,borderRadius:9999,flexShrink:0},listRowDotDefault:{background:"#cbd5e1"},listRowMain:{minWidth:0,flex:"1 1 0%",textAlign:"left"},listRowValue:{margin:0,fontSize:12,color:"#475569",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},listRowSub:{margin:0,fontSize:10,color:"#cbd5e1",lineHeight:1,marginTop:2},listRowLabel:{fontSize:10,color:"#94a3b8",flexShrink:0,fontWeight:500},alertRowValue:{margin:0,fontSize:12,color:"#475569",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:"1 1 0%",textAlign:"left"},alertRowSub:{fontSize:10,color:"#cbd5e1",flexShrink:0},tags:{borderBottom:"1px solid #f1f5f9",padding:"16px 20px",display:"flex",flexDirection:"column",textAlign:"left"},tagsTop:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},tagsMeta:{display:"flex",flexDirection:"column"},tagsLabel:{fontSize:11,color:"#94a3b8",fontWeight:500},tagsCount:{fontSize:14,fontWeight:700,color:"#334155",marginTop:2},tagsList:{display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,marginTop:8,fontSize:11,color:"#64748b",fontWeight:500},tag:{display:"flex",alignItems:"center",gap:4},tagDot:{width:4,height:4,borderRadius:9999,flexShrink:0},tagDotDefault:{background:"#94a3b8"},tagsEmpty:{fontStyle:"italic",color:"#94a3b8"},eventRowWrap:{borderTop:"1px solid #f1f5f9"},eventRow:{width:"100%",display:"flex",alignItems:"center",gap:8,padding:"14px 16px",transition:"background-color 0.15s ease",background:"none",border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},eventRowHover:{background:"rgba(248,250,252,0.8)"},eventRowDot:{width:4,height:4,borderRadius:9999,flexShrink:0},eventRowDotDefault:{background:"#cbd5e1"},eventRowTitle:{margin:0,fontSize:11,color:"#475569",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:"1 1 0%",textAlign:"left"},eventRowTime:{fontSize:9,color:"#cbd5e1",flexShrink:0,marginRight:4},eventRowChevron:{color:"#cbd5e1",flexShrink:0},modalOverlay:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(15,23,42,0.4)",backdropFilter:"blur(4px)",padding:16},modal:{background:"#ffffff",width:"100%",maxWidth:512,borderRadius:12,boxShadow:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)",border:"1px solid #e2e8f0",overflow:"hidden"},modalHeader:{padding:"12px 16px",background:"#f8fafc",borderBottom:"1px solid rgba(226,232,240,0.8)",display:"flex",alignItems:"center",justifyContent:"space-between"},modalHeaderLeft:{display:"flex",alignItems:"center",gap:8,maxWidth:"85%"},modalBadge:{fontSize:10,fontWeight:600,padding:"2px 6px",borderRadius:6},modalStatusBadge:{fontSize:10,fontWeight:600,padding:"2px 6px",borderRadius:6},modalTitle:{margin:0,fontSize:12,fontWeight:600,color:"#334155",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},modalClose:{color:"#94a3b8",padding:4,borderRadius:8,transition:"background-color 0.15s ease, color 0.15s ease",background:"none",border:"none",cursor:"pointer",display:"flex",margin:0,fontFamily:"inherit"},modalCloseHover:{color:"#475569",background:"rgba(226,232,240,0.5)"},modalBody:{maxHeight:"60vh",overflowY:"auto",padding:16},modalBodySpacer:{marginTop:16},modalSectionTitle:{margin:0,fontSize:10,fontWeight:700,color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:4},modalSectionTitleTight:{marginBottom:6},modalSummaryText:{margin:0,fontSize:12,color:"#475569",lineHeight:1.625,background:"#f8fafc",padding:10,borderRadius:8,border:"1px solid #f1f5f9"},modalDetailsGrid:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",columnGap:16,rowGap:8,background:"rgba(248,250,252,0.5)",padding:12,borderRadius:8,border:"1px solid #f1f5f9"},modalDetail:{display:"flex",flexDirection:"column"},modalDetailLabel:{fontSize:10,color:"#94a3b8",fontWeight:500},modalDetailValue:{fontSize:12,color:"#334155",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},modalLinkRow:{display:"flex",alignItems:"center",gap:12,paddingTop:8},modalLink:{fontSize:12,fontWeight:500,color:"#6366f1",textDecoration:"none"},modalActionRow:{borderTop:"1px solid #f1f5f9",background:"rgba(248,250,252,0.5)",padding:12,display:"flex",justifyContent:"flex-end"},modalActionBtn:{display:"flex",alignItems:"center",gap:6,padding:"6px 12px",background:"#ffffff",border:"1px solid #e2e8f0",borderRadius:8,boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",transition:"background-color 0.15s ease",cursor:"pointer",margin:0,fontFamily:"inherit"},modalActionBtnHover:{background:"#f8fafc"},modalActionText:{fontSize:12,fontWeight:600},modalActionChevron:{transition:"transform 0.15s ease"},modalActionChevronHover:{transform:"translateX(2px)"}};exports.ACTION_COLORS={BLOCKED:"#dc2626",FLAGGED:"#d97706",ALLOWED:"#059669"},exports.DASHBOARD_CARD_FONT_FAMILY=e,exports.DASHBOARD_CARD_KEYFRAMES="\n@keyframes dc-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n",exports.NEWS_DOT_COLORS={critical:"#ef4444",warning:"#fbbf24",info:"#34d399"},exports.SEV_BADGE_DEFAULT={background:"#f8fafc",color:"#64748b"},exports.SEV_BADGE_STYLES={CRITICAL:{background:"#fef2f2",color:"#dc2626"},HIGH:{background:"#fffbeb",color:"#d97706"},MEDIUM:{background:"#fefce8",color:"#a16207"},LOW:{background:"#ecfdf5",color:"#059669"},POLICY:{background:"#f5f3ff",color:"#7c3aed"}},exports.SEV_DOT_COLORS={CRITICAL:"#ef4444",HIGH:"#f59e0b",MEDIUM:"#facc15",LOW:"#34d399",POLICY:"#8b5cf6"},exports.STATUS_BADGE_DEFAULT={background:"#f1f5f9",color:"#64748b"},exports.STATUS_BADGE_STYLES={BLOCKED:{background:"#fee2e2",color:"#b91c1c"},FLAGGED:{background:"#fef3c7",color:"#b45309"},ALLOWED:{background:"#d1fae5",color:"#047857"}},exports.default=o;
2
+ //# sourceMappingURL=DashboardCardStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCardStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/cjs/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/Graph/Graph.js"),r=require("./components/Graph/LineChart.js"),t=require("./components/Graph/PlotBySelector.js"),o=require("./components/Graph/types.js"),a=require("./components/ui/chart.js"),s=require("./components/DashboardDateFilter/DashboardDateFilter.js"),n=require("./components/MetricCard/MetricCard.js"),p=require("./components/FiltersSidebar/FiltersSidebar.js"),i=require("./components/Table/FTable.js"),l=require("./components/Table/TableCard.js"),d=require("./components/DashboardDateFilter/datePreset.js");exports.Graph=e.default,exports.LineChart=r.default,exports.PlotBySelector=t.default,exports.DEFAULT_COLORS=o.DEFAULT_COLORS,exports.colorForIndex=o.colorForIndex,exports.ChartContainer=a.ChartContainer,exports.ChartLegend=a.ChartLegend,exports.ChartLegendContent=a.ChartLegendContent,exports.ChartTooltip=a.ChartTooltip,exports.ChartTooltipContent=a.ChartTooltipContent,exports.useChart=a.useChart,exports.DashboardDateFilter=s.default,exports.MetricCard=n.default,exports.FiltersSidebar=p.default,exports.FTable=i.default,exports.TableCard=l.default,exports.DATE_PRESETS=d.DATE_PRESETS,exports.DEFAULT_DATE_PRESETS=d.DEFAULT_DATE_PRESETS;
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("./components/Graph/Graph.js"),r=require("./components/Graph/LineChart.js"),t=require("./components/Graph/PlotBySelector.js"),o=require("./components/Graph/types.js"),a=require("./components/ui/chart.js"),s=require("./components/DashboardDateFilter/DashboardDateFilter.js"),n=require("./components/MetricCard/MetricCard.js"),p=require("./components/FiltersSidebar/FiltersSidebar.js"),d=require("./components/Table/FTable.js"),i=require("./components/Table/TableCard.js"),l=require("./components/DashboardDateFilter/datePreset.js"),C=require("./components/DashboardCard/DashboardCard.js");exports.Graph=e.default,exports.LineChart=r.default,exports.PlotBySelector=t.default,exports.DEFAULT_COLORS=o.DEFAULT_COLORS,exports.colorForIndex=o.colorForIndex,exports.ChartContainer=a.ChartContainer,exports.ChartLegend=a.ChartLegend,exports.ChartLegendContent=a.ChartLegendContent,exports.ChartTooltip=a.ChartTooltip,exports.ChartTooltipContent=a.ChartTooltipContent,exports.useChart=a.useChart,exports.DashboardDateFilter=s.default,exports.MetricCard=n.default,exports.FiltersSidebar=p.default,exports.FTable=d.default,exports.TableCard=i.default,exports.DATE_PRESETS=l.DATE_PRESETS,exports.DEFAULT_DATE_PRESETS=l.DEFAULT_DATE_PRESETS,exports.DashboardCard=C.DashboardCard;
2
2
  //# sourceMappingURL=index.js.map
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as r,Fragment as t,jsx as n}from"react/jsx-runtime";import l,{NEWS_DOT_COLORS as o}from"./styles/DashboardCardStyles.js";var s=function(s){var a=s.items,i=s.accentBg,c=s.accentBorder,d=s.accentText;if(0===a.length)return null;var m={backgroundColor:i,borderColor:c};return r(t,{children:[n("div",e({style:e(e({},l.newsBanner),m)},{children:n("p",e({style:e(e({},l.newsBannerTitle),{color:d})},{children:"Breaking News"}))})),a.map(function(t,s){return r("div",e({style:e(e(e({},l.newsItem),m),s===a.length-1?l.newsItemLast:{})},{children:[n("span",{style:e(e({},l.newsItemDot),{backgroundColor:o[t.level]})}),n("p",e({style:e(e({},l.newsItemText),{color:d})},{children:t.text}))]}),s)})]})};export{s as BreakingNewsBanner};
2
+ //# sourceMappingURL=BreakingNewsBanner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreakingNewsBanner.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as n,Fragment as r}from"react/jsx-runtime";import{useState as l,useRef as c}from"react";import o,{DASHBOARD_CARD_KEYFRAMES as i}from"./styles/DashboardCardStyles.js";var a=function(a){for(var h=a.accent,s=a.iconBg,d=a.icon,y=a.title,u=a.badge,p=a.heroValue,f=a.heroLabel,x=a.heroColor,g=a.heroDelta,v=a.chartData,m=a.chartLabels,b=a.chartColor,C=a.chartPrefix,M=a.footer,k=a.children,L=l(null),S=L[0],w=L[1],D=c(null),W=240,T=90,j=18,A=12,R=v&&v.length>0?Math.min.apply(Math,v):0,B=v&&v.length>0?Math.max.apply(Math,v):100,V=B-R===0?1:B-R,z=(v||[]).map(function(e,t){var n=v.length;return{x:n>1?j+t/(n-1)*204:120,y:78-(e-R)/V*66,value:e,index:t}}),F=z.length>0?"M ".concat(z[0].x," ").concat(z[0].y):"",H=0;H<z.length-1;H++){var I=z[H],N=z[H+1];F+=" C ".concat(I.x+(N.x-I.x)/3," ").concat(I.y,", ").concat(I.x+2*(N.x-I.x)/3," ").concat(N.y,", ").concat(N.x," ").concat(N.y)}var O,P,$=z.length>0?"".concat(F," L ").concat(z[z.length-1].x," ").concat(78," L ").concat(z[0].x," ").concat(78," Z"):"",_=null!==S?z[S]:null,E=function(e){return y.toLowerCase().includes("security")?String(Math.round(e)):"$"===C?"$".concat(e.toFixed(2)):e>=1e3?"".concat((e/1e3).toFixed(1),"K"):String(e)},G=function(e){if(!e)return"Recent";var t=e.split(":");if(t.length<2)return e;var n=parseInt(t[0],10),r=t[1],l=n>=12?"PM":"AM";return"".concat(n=n%12||12,":").concat(r," ").concat(l)},K=(O=y.toLowerCase(),P=h.toLowerCase(),O.includes("security")||P.includes("red")||P.includes("rose")?o.themeRose:O.includes("finops")||P.includes("violet")||P.includes("purple")?o.themeViolet:O.includes("health")||P.includes("sky")||P.includes("emerald")?o.themeSky:O.includes("change")||P.includes("amber")||P.includes("orange")?o.themeAmber:o.themeNeutral);return t("div",e({style:o.card},{children:[n("style",{children:i}),t("div",e({style:e(e({},o.cardHeader),K)},{children:[t("div",e({style:o.headerTop},{children:[t("div",e({style:o.headerIconTitle},{children:[n("div",e({style:e(e({},o.iconWrap),{backgroundColor:s})},{children:d})),n("h3",e({style:o.title},{children:y}))]})),n("span",e({style:o.badge},{children:u}))]})),t("div",e({style:o.heroRow},{children:[t("div",e({style:o.hero},{children:[n("span",e({style:e(e({},o.heroValue),{color:x})},{children:p})),n("span",e({style:o.heroLabel},{children:f})),g&&n("span",e({style:e(e({},o.heroDelta),g.up?o.heroDeltaUp:o.heroDeltaDown)},{children:g.text}))]})),t("div",e({style:o.chartCol},{children:[t("div",e({style:o.chartHeader},{children:[n("span",{children:"Trend Timeline"}),_&&n("span",e({style:o.chartTooltip},{children:y.toLowerCase().includes("security")?"".concat(E(_.value)," alerts at ").concat(m?G(m[_.index]):""):"".concat(m?"".concat(G(m[_.index]),": "):"").concat(E(_.value))}))]})),n("div",e({style:o.chartWrap},{children:v&&v.length>1?t("svg",e({ref:D,viewBox:"0 0 ".concat(W," ").concat(T),style:o.chartSvg,onMouseMove:function(e){if(D.current&&0!==z.length){for(var t=D.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width*W,r=0,l=Math.abs(z[0].x-n),c=1;c<z.length;c++){var o=Math.abs(z[c].x-n);o<l&&(l=o,r=c)}w(r)}},onMouseLeave:function(){return w(null)}},{children:[n("defs",{children:t("linearGradient",e({id:"grad-".concat(y.replace(/\s+/g,"")),x1:"0",y1:"0",x2:"0",y2:"1"},{children:[n("stop",{offset:"0%",stopColor:b,stopOpacity:.12}),n("stop",{offset:"100%",stopColor:b,stopOpacity:0})]}))}),n("text",e({x:12,y:15,textAnchor:"end",style:{fontSize:8,fontWeight:900,letterSpacing:"-0.05em",fill:"#020617"}},{children:E(B)})),n("text",e({x:12,y:81,textAnchor:"end",style:{fontSize:8,fontWeight:900,letterSpacing:"-0.05em",fill:"#020617"}},{children:E(R)})),n("path",{d:$,fill:"url(#grad-".concat(y.replace(/\s+/g,""),")")}),n("path",{d:F,fill:"none",stroke:b,strokeWidth:1.75,strokeLinecap:"round",strokeLinejoin:"round"}),_?t(r,{children:[n("line",{x1:_.x,y1:A,x2:_.x,y2:78,stroke:"#64748b",strokeWidth:.75,strokeDasharray:"2,2"}),n("circle",{cx:_.x,cy:_.y,r:4,fill:b,opacity:.2}),n("circle",{cx:_.x,cy:_.y,r:2,fill:b,stroke:"#ffffff",strokeWidth:1})]}):z.length>0&&n("circle",{cx:z[z.length-1].x,cy:z[z.length-1].y,r:2.5,fill:b})]})):n("span",e({style:o.chartEmpty},{children:"No live telemetry"}))}))]}))]}))]})),n("div",e({style:o.body},{children:k})),M&&n("div",e({style:o.footer},{children:M}))]}))};export{a as CardShell};
2
+ //# sourceMappingURL=CardShell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardShell.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as l,jsx as r}from"react/jsx-runtime";import o from"./styles/DashboardCardStyles.js";import{TopDropdownMenu as t}from"./TopDropdownMenu.js";var i=function(i){var d=i.item;return l("div",e({style:o.centeredCell,onClick:d.onClick},{children:[d.dropdown&&r(t,{config:d.dropdown}),r("div",e({style:o.centeredCellLabel},{children:d.label})),r("div",e({style:e(e({},o.centeredCellValue),d.valueColor?{color:d.valueColor}:{})},{children:d.value})),d.sub&&r("div",e({style:e(e({},o.centeredCellSub),d.subColor?{color:d.subColor}:{})},{children:d.sub}))]}))};export{i as CenteredCell};
2
+ //# sourceMappingURL=CenteredCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CenteredCell.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as o}from"../../_virtual/_tslib.js";import{jsx as r,Fragment as e,jsxs as t}from"react/jsx-runtime";import n from"react";import a from"./styles/DashboardCardStyles.js";import{CardShell as l}from"./CardShell.js";import{SkeletonRow as i}from"./SkeletonRow.js";import{BreakingNewsBanner as c}from"./BreakingNewsBanner.js";import{SectionHeadingBar as s}from"./SectionHeadingBar.js";import{FooterLinkButton as h}from"./FooterLinkButton.js";import{renderSectionContent as m}from"./sectionContent.js";var d=function(d){var f=d.accent,u=d.iconBg,p=d.icon,g=d.title,b=d.badge,C=void 0===b?"Today":b,B=d.heroValue,j=d.heroLabel,k=d.heroColor,v=d.heroDelta,L=d.chartData,x=d.chartLabels,y=d.chartColor,D=void 0===y?"#6366f1":y,S=d.chartPrefix,w=void 0===S?"":S,T=d.loading,F=d.footer,N=d.footerLinks,P=d.breakingNews,V=d.accentBg,_=d.accentBorder,H=d.accentText,M=d.sections,R=null!=F?F:N&&N.length>0?r("div",o({style:o(o({},a.footerLinks),N.length>1?a.footerLinksMulti:{})},{children:N.map(function(o,e){return r(h,{label:o.label,onClick:o.onClick},e)})})):null;return r(l,o({accent:f,iconBg:u,icon:p,title:g,badge:C,heroValue:B,heroLabel:j,heroColor:k,heroDelta:v,chartData:null!=L?L:null,chartLabels:x,chartColor:D,chartPrefix:w,footer:R},{children:T?r(e,{children:[0,1,2].map(function(o){return r(i,{},o)})}):t("div",o({style:a.bodyContent},{children:[r(c,{items:P,accentBg:V,accentBorder:_,accentText:H}),M.map(function(o,e){return t(n.Fragment,{children:[r(s,{label:o.heading,color:o.headingColor,dotColor:o.dotColor,count:o.count,pulse:o.pulse}),m(o)]},e)})]}))}))};export{d as DashboardCard};
2
+ //# sourceMappingURL=DashboardCard.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCard.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as o,jsx as r}from"react/jsx-runtime";import{useState as l}from"react";import{ChevronRight as t}from"lucide-react";import i from"./styles/DashboardCardStyles.js";var a=function(a){var n=a.label,d=a.value,c=a.sub,s=a.onClick,u=a.valueColor,f=l(!1),m=f[0],v=f[1];return o(s?"button":"div",e({onClick:s,onMouseEnter:function(){return s&&v(!0)},onMouseLeave:function(){return s&&v(!1)},style:e(e(e({},i.detailRow),s?i.detailRowClickable:{}),s&&m?{backgroundColor:"#f8fafc"}:{})},{children:[o("div",e({style:i.detailRowMain},{children:[r("p",e({style:i.detailRowLabel},{children:n})),r("p",e({style:e(e({},i.detailRowValue),u?{color:u}:{})},{children:d})),c&&r("p",e({style:i.detailRowSub},{children:c}))]})),s&&r(t,{size:14,style:e(e({},i.detailRowChevron),m?i.detailRowChevronHover:{})})]}))};export{a as DetailRow};
2
+ //# sourceMappingURL=DetailRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DetailRow.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as o}from"react/jsx-runtime";import{useState as n}from"react";import{ChevronRight as r,X as l}from"lucide-react";import i,{SEV_BADGE_STYLES as a,SEV_BADGE_DEFAULT as c,SEV_DOT_COLORS as d,STATUS_BADGE_STYLES as s,STATUS_BADGE_DEFAULT as u,ACTION_COLORS as m}from"./styles/DashboardCardStyles.js";var v={BLOCKED:{action:"Request blocked — review policy rule",color:m.BLOCKED},FLAGGED:{action:"Flagged for review — investigate source",color:m.FLAGGED},ALLOWED:{action:"Allowed through — monitor for patterns",color:m.ALLOWED}};function y(e){var t=Math.floor((Date.now()-e.getTime())/1e3);if(t<60)return"just now";var o=Math.floor(t/60);if(o<60)return"".concat(o,"m ago");var n=Math.floor(o/60);return n<24?"".concat(n,"h ago"):"".concat(Math.floor(n/24),"d ago")}var h=function(m){var h,f,g,p,T=m.event,b=n(!1),D=b[0],L=b[1],w=n(!1),C=w[0],M=w[1],A=n(!1),E=A[0],S=A[1],k=null!==(h=a[T.severity])&&void 0!==h?h:c,R=T.status&&null!==(f=v[T.status])&&void 0!==f?f:null;return o("div",e({style:i.eventRowWrap},{children:[o("button",e({onClick:function(){return L(!0)},onMouseEnter:function(){return M(!0)},onMouseLeave:function(){return M(!1)},style:e(e({},i.eventRow),C?i.eventRowHover:{})},{children:[t("span",{style:e(e({},i.eventRowDot),{backgroundColor:null!==(g=d[T.severity])&&void 0!==g?g:"#cbd5e1"})}),t("p",e({style:i.eventRowTitle},{children:T.title})),t("span",e({style:i.eventRowTime},{children:y(T.timestamp)})),t(r,{size:10,style:i.eventRowChevron})]})),D&&t("div",e({style:i.modalOverlay},{children:o("div",e({style:i.modal},{children:[o("div",e({style:i.modalHeader},{children:[o("div",e({style:i.modalHeaderLeft},{children:[t("span",e({style:e(e({},i.modalBadge),k)},{children:T.severity})),T.status&&t("span",e({style:e(e({},i.modalStatusBadge),null!==(p=s[T.status])&&void 0!==p?p:u)},{children:T.status})),t("span",e({style:i.modalTitle},{children:T.title}))]})),t("button",e({onClick:function(){return L(!1)},style:i.modalClose,onMouseEnter:function(e){e.currentTarget.style.color="#475569",e.currentTarget.style.backgroundColor="rgba(226,232,240,0.5)"},onMouseLeave:function(e){e.currentTarget.style.color="#94a3b8",e.currentTarget.style.backgroundColor="transparent"}},{children:t(l,{size:14})}))]})),o("div",e({style:i.modalBody},{children:[T.triageSummary&&o("div",{children:[t("h4",e({style:i.modalSectionTitle},{children:"Summary"})),t("p",e({style:i.modalSummaryText},{children:T.triageSummary}))]}),T.details&&T.details.length>0&&o("div",e({style:i.modalBodySpacer},{children:[t("h4",e({style:e(e({},i.modalSectionTitle),i.modalSectionTitleTight)},{children:"Metadata Details"})),t("div",e({style:i.modalDetailsGrid},{children:T.details.map(function(n){return o("div",e({style:i.modalDetail},{children:[t("span",e({style:i.modalDetailLabel},{children:n.label})),t("span",e({style:i.modalDetailValue},{children:n.value}))]}),n.label)})}))]})),T.incidentUrl&&t("div",e({style:e(e({},i.modalLinkRow),i.modalBodySpacer)},{children:t("a",e({href:T.incidentUrl,target:"_blank",rel:"noopener noreferrer",style:i.modalLink,onMouseEnter:function(e){e.currentTarget.style.color="#4338ca",e.currentTarget.style.textDecoration="underline"},onMouseLeave:function(e){e.currentTarget.style.color="#6366f1",e.currentTarget.style.textDecoration="none"}},{children:"View External Incident →"}))}))]})),R&&t("div",e({style:i.modalActionRow},{children:o("button",e({onClick:function(){var e;L(!1),null===(e=T.onAction)||void 0===e||e.call(T)},onMouseEnter:function(){return S(!0)},onMouseLeave:function(){return S(!1)},style:e(e({},i.modalActionBtn),E?i.modalActionBtnHover:{})},{children:[t("span",e({style:e(e({},i.modalActionText),{color:R.color})},{children:R.action})),t(r,{size:12,style:e(e(e({},i.modalActionChevron),{color:R.color}),E?i.modalActionChevronHover:{})})]}))}))]}))}))]}))},f=function(e){return t("div",{children:e.map(function(e){return t(h,{event:e},e.id)})})};export{f as renderEventsSection};
2
+ //# sourceMappingURL=EventsSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventsSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as r}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as e}from"react/jsx-runtime";import{ChevronRight as o}from"lucide-react";import n from"./styles/DashboardCardStyles.js";var i=function(i){var l=i.label,c=i.onClick;return t("button",r({onClick:c,style:n.footerLink,onMouseEnter:function(r){return r.currentTarget.style.color="#4338ca"},onMouseLeave:function(r){return r.currentTarget.style.color="#6366f1"}},{children:[l," ",e(o,{size:11})]}))};export{i as FooterLinkButton};
2
+ //# sourceMappingURL=FooterLinkButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterLinkButton.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as r}from"../../_virtual/_tslib.js";import{jsx as o,jsxs as e,Fragment as i}from"react/jsx-runtime";import l from"./styles/DashboardCardStyles.js";import{CenteredCell as d}from"./CenteredCell.js";import{TopDropdownMenu as n}from"./TopDropdownMenu.js";import{DetailRow as t}from"./DetailRow.js";var a=function(a,m,s){for(var p=[],c=0;c<a.length;c+=m)p.push(a.slice(c,c+m));return o("div",{children:p.map(function(a,p){return o("div",r({style:r(r(r({},l.gridRow),{gridTemplateColumns:"repeat(".concat(m,", minmax(0, 1fr))")}),p>0?l.gridRowDivider:{})},{children:a.map(function(a,m){return o("div",r({style:r(r(r({},l.gridCell),s?{}:l.gridCellPadded),m>0?l.gridCellDivider:{})},{children:s?o(d,{item:a}):e(i,{children:[a.dropdown&&o(n,{config:a.dropdown}),o("div",r({style:l.gridCellInner,onClick:a.dropdown?a.onClick:void 0},{children:o(t,{label:a.label,value:a.value,sub:a.sub,onClick:a.dropdown?void 0:a.onClick,valueColor:a.valueColor})}))]})}),m)})}),p)})})};export{a as renderGridSection};
2
+ //# sourceMappingURL=GridSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as i}from"../../_virtual/_tslib.js";import{jsx as t,jsxs as e,Fragment as l}from"react/jsx-runtime";import{useState as o}from"react";import r from"./styles/DashboardCardStyles.js";var n=function(n){var s,c,d=n.item,u=n.compact,a=o(!1),v=a[0],m=a[1];return t("div",i({style:i(i(i({},r.listRow),u?r.listRowCompact:{}),v?r.listRowHover:{}),onClick:d.onClick,onMouseEnter:function(){return m(!0)},onMouseLeave:function(){return m(!1)}},{children:e(l,u?{children:[t("span",{style:i(i({},r.listRowDot),{backgroundColor:null!==(s=d.dotColor)&&void 0!==s?s:"#cbd5e1",animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"})}),t("p",i({style:r.alertRowValue},{children:d.value})),d.sub&&t("span",i({style:r.alertRowSub},{children:d.sub}))]}:{children:[t("span",{style:i(i({},r.listRowDot),{backgroundColor:null!==(c=d.dotColor)&&void 0!==c?c:"#cbd5e1"})}),e("div",i({style:r.listRowMain},{children:[t("p",i({style:r.listRowValue},{children:d.value})),d.sub&&t("p",i({style:r.listRowSub},{children:d.sub}))]})),t("span",i({style:r.listRowLabel},{children:d.label}))]})}))},s=function(e){return t("div",{children:e.map(function(e,l){return t("div",i({style:l>0?r.listRowDivider:void 0},{children:t(n,{item:e})}),l)})})},c=function(e){return t("div",{children:e.map(function(e,l){return t("div",i({style:l>0?r.listRowDivider:void 0},{children:t(n,{item:e,compact:!0})}),l)})})};export{c as renderAlertsSection,s as renderListSection};
2
+ //# sourceMappingURL=ListSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as i,jsx as t}from"react/jsx-runtime";import n from"./styles/DashboardCardStyles.js";var o=function(o){var r=o.label,l=o.color,s=o.dotColor,a=o.count,c=o.pulse;return i("div",e({style:e(e({},n.sectionHeading),null!=l?l:n.sectionHeadingDefault)},{children:[s&&t("span",{style:e(e(e({},n.sectionHeadingDot),{backgroundColor:s}),c?{animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"}:{})}),t("p",e({style:n.sectionHeadingLabel},{children:r})),void 0!==a&&t("span",e({style:n.sectionHeadingCount},{children:a}))]}))};export{o as SectionHeadingBar};
2
+ //# sourceMappingURL=SectionHeadingBar.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeadingBar.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as e}from"../../_virtual/_tslib.js";import{jsxs as t,jsx as i}from"react/jsx-runtime";import r from"./styles/DashboardCardStyles.js";var s=function(){return t("div",e({style:r.skeletonRow},{children:[i("div",{style:e(e({},r.skeletonLine),r.skeletonLineTitle)}),i("div",{style:e(e({},r.skeletonLine),r.skeletonLineValue)})]}))};export{s as SkeletonRow};
2
+ //# sourceMappingURL=SkeletonRow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkeletonRow.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as t}from"../../_virtual/_tslib.js";import{jsxs as e,jsx as l}from"react/jsx-runtime";import s from"./styles/DashboardCardStyles.js";var a=function(a){var r,n;return e("div",t({style:s.tags},{children:[l("div",t({style:s.tagsTop},{children:e("div",t({style:s.tagsMeta},{children:[l("span",t({style:s.tagsLabel},{children:a.label})),e("span",t({style:s.tagsCount},{children:[a.count," ",null!==(r=a.countSuffix)&&void 0!==r?r:1===a.count?"Item":"Items"]}))]}))})),l("div",t({style:s.tagsList},{children:a.tags.length>0?a.tags.map(function(a,r){var n;return e("span",t({style:s.tag},{children:[l("span",{style:t(t({},s.tagDot),{backgroundColor:null!==(n=a.dotColor)&&void 0!==n?n:"#94a3b8"})}),a.label]}),r)}):l("span",t({style:s.tagsEmpty},{children:null!==(n=a.emptyText)&&void 0!==n?n:"No items detected"}))}))]}))};export{a as renderTagsSection};
2
+ //# sourceMappingURL=TagsSection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsSection.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{__assign as r}from"../../_virtual/_tslib.js";import{jsxs as n,Fragment as o,jsx as e}from"react/jsx-runtime";import{useState as t}from"react";import i from"./styles/DashboardCardStyles.js";var l=function(l){var d=l.config,a=t(!1),s=a[0],c=a[1];return n(o,{children:[n("button",r({onClick:function(r){r.stopPropagation(),c(!s)},style:r(r({},i.dropdownTrigger),s?i.dropdownTriggerOpen:i.dropdownTriggerClosed)},{children:["Top ",d.items.length," ▾"]})),s&&e("div",r({style:i.dropdownPanel,onMouseLeave:function(){return c(!1)}},{children:n("div",r({style:i.dropdownInner},{children:[e("span",r({style:i.dropdownTitle},{children:d.title})),d.items.map(function(o,t){return n("button",r({onClick:function(r){var n;r.stopPropagation(),null===(n=d.onClick)||void 0===n||n.call(d)},style:i.dropdownItem,onMouseEnter:function(r){return r.currentTarget.style.backgroundColor="#f8fafc"},onMouseLeave:function(r){return r.currentTarget.style.backgroundColor="transparent"}},{children:[n("span",r({style:i.dropdownItemName},{children:[t+1,". ",o.name]})),e("span",r({style:i.dropdownItemValue},{children:o.value}))]}),t)})]}))}))]})};export{l as TopDropdownMenu};
2
+ //# sourceMappingURL=TopDropdownMenu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopDropdownMenu.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ import{renderGridSection as t}from"./GridSection.js";import{renderAlertsSection as e,renderListSection as r}from"./ListSection.js";import{renderTagsSection as n}from"./TagsSection.js";import{renderEventsSection as i}from"./EventsSection.js";var s=function(s){var o,m;if(s.content)return s.content;if("tags"===s.format&&s.tagsConfig)return n(s.tagsConfig);if("events"===s.format&&s.events)return i(s.events);if(!s.items||0===s.items.length)return null;switch(s.format){case"grid":return t(s.items,null!==(o=s.columns)&&void 0!==o?o:2,s.centered);case"list":return r(s.items);case"alerts":return e(s.items);default:return t(s.items,null!==(m=s.columns)&&void 0!==m?m:2,s.centered)}};export{s as renderSectionContent};
2
+ //# sourceMappingURL=sectionContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionContent.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ var e='ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"',o={card:{display:"flex",flexDirection:"column",background:"#ffffff",borderRadius:12,border:"1px solid #f1f5f9",boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",overflow:"visible",textAlign:"left",height:"100%",fontFamily:e,lineHeight:1.5},cardHeader:{padding:16,borderRadius:"12px 12px 0 0",position:"relative",borderBottom:"1px solid rgba(241,245,249,0.6)"},themeRose:{background:"linear-gradient(to bottom, rgba(255,228,230,0.6), rgba(254,242,242,0.35), #ffffff)"},themeViolet:{background:"linear-gradient(to bottom, rgba(237,233,254,0.6), rgba(250,245,255,0.35), #ffffff)"},themeSky:{background:"linear-gradient(to bottom, rgba(224,242,254,0.5), rgba(238,242,255,0.3), #ffffff)"},themeAmber:{background:"linear-gradient(to bottom, rgba(254,249,195,0.5), rgba(255,251,235,0.3), #ffffff)"},themeNeutral:{background:"linear-gradient(to bottom, rgba(241,245,249,0.5), rgba(248,250,252,0.25), #ffffff)"},headerTop:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:12},headerIconTitle:{display:"flex",alignItems:"center",gap:6},iconWrap:{padding:4,borderRadius:4,flexShrink:0},title:{margin:0,fontSize:12,fontWeight:700,color:"#334155",textTransform:"uppercase",letterSpacing:"0.05em"},badge:{fontSize:10,fontWeight:700,color:"#64748b",background:"rgba(255,255,255,0.8)",padding:"2px 6px",borderRadius:9999,boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",border:"1px solid rgba(241,245,249,0.4)"},heroRow:{display:"grid",gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gap:12,alignItems:"center",minHeight:96},hero:{gridColumn:"span 4 / span 4",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",borderRight:"1px solid rgba(241,245,249,0.8)",paddingRight:8},heroValue:{fontSize:24,fontWeight:800,letterSpacing:"-0.025em",lineHeight:1},heroLabel:{fontSize:9,fontWeight:700,color:"#334155",marginTop:4,lineHeight:1.25,textTransform:"uppercase",letterSpacing:"0.025em"},heroDelta:{fontSize:9,fontWeight:700,marginTop:4},heroDeltaUp:{color:"#f43f5e"},heroDeltaDown:{color:"#059669"},chartCol:{gridColumn:"span 8 / span 8",width:"100%",height:"100%",position:"relative",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"visible",userSelect:"none",paddingLeft:4},chartHeader:{display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:8,fontWeight:900,color:"#1e293b",textTransform:"uppercase",padding:"0 4px",letterSpacing:"0.05em"},chartTooltip:{color:"#4f46e5",background:"#eef2ff",padding:"2px 6px",borderRadius:4,fontWeight:900,fontSize:9,whiteSpace:"nowrap",boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",border:"1px solid rgba(224,231,255,0.3)"},chartWrap:{width:"100%",flex:"1 1 0%",position:"relative",overflow:"visible",marginTop:4},chartSvg:{width:"100%",height:"100%",overflow:"visible",cursor:"crosshair"},chartEmpty:{fontSize:10,color:"#94a3b8",fontWeight:700,position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center"},body:{flex:"1 1 0%",overflow:"visible"},footer:{background:"rgba(248,250,252,0.6)",padding:"8px 16px",borderTop:"1px solid #f1f5f9",borderRadius:"0 0 12px 12px",overflow:"visible"},bodyContent:{display:"flex",flexDirection:"column",color:"#334155"},footerLinks:{display:"flex"},footerLinksMulti:{width:"100%",justifyContent:"space-between",alignItems:"center"},footerLink:{textAlign:"left",padding:"12px 16px",fontSize:12,color:"#6366f1",display:"flex",alignItems:"center",gap:2,transition:"color 0.15s ease",background:"none",border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},skeletonRow:{padding:"12px 16px"},skeletonLine:{borderRadius:4,background:"#f8fafc",animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"},skeletonLineTitle:{height:12,width:64},skeletonLineValue:{height:16,width:96,background:"#f1f5f9",marginTop:6},sectionHeading:{padding:"8px 16px",display:"flex",alignItems:"center",gap:8,borderTop:"1px solid",borderBottom:"1px solid"},sectionHeadingDefault:{background:"#f8fafc",borderColor:"#e2e8f0",color:"#64748b"},sectionHeadingDot:{width:8,height:8,borderRadius:9999,flexShrink:0},sectionHeadingLabel:{margin:0,fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em",color:"inherit"},sectionHeadingCount:{fontSize:10,fontWeight:600,padding:"2px 8px",borderRadius:9999,marginLeft:"auto",opacity:.8,background:"rgba(0,0,0,0.06)"},newsBanner:{padding:"8px 16px",display:"flex",alignItems:"center",gap:8,borderTop:"1px solid",borderBottom:"1px solid"},newsBannerTitle:{margin:0,fontSize:12,fontWeight:700,textTransform:"uppercase",letterSpacing:"0.05em"},newsItem:{display:"flex",alignItems:"flex-start",gap:8,padding:"8px 16px",borderBottom:"1px solid"},newsItemLast:{borderBottom:"none"},newsItemDot:{width:6,height:6,borderRadius:9999,marginTop:4,flexShrink:0,animation:"dc-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite"},newsItemText:{margin:0,fontSize:11,fontWeight:500,lineHeight:1.625},dropdownTrigger:{position:"absolute",right:6,top:4,padding:"2px 4px",borderRadius:4,fontSize:8,fontWeight:900,letterSpacing:"0.025em",textTransform:"uppercase",transition:"background-color 0.15s ease, color 0.15s ease",zIndex:10,border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},dropdownTriggerClosed:{background:"#f1f5f9",color:"#64748b"},dropdownTriggerOpen:{background:"#4f46e5",color:"#ffffff"},dropdownPanel:{position:"absolute",left:0,right:0,top:36,paddingTop:4,zIndex:50,pointerEvents:"auto"},dropdownInner:{background:"#ffffff",border:"1px solid #e2e8f0",borderRadius:8,boxShadow:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)",padding:8,display:"flex",flexDirection:"column",gap:4,textAlign:"left"},dropdownTitle:{fontSize:9,fontWeight:700,color:"#4f46e5",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:2,padding:"0 4px"},dropdownItem:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",fontSize:10,padding:4,borderRadius:4,transition:"background-color 0.15s ease",textAlign:"left",background:"none",border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},dropdownItemName:{fontWeight:600,color:"#334155",maxWidth:95,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},dropdownItemValue:{color:"#6366f1",fontWeight:500,flexShrink:0},detailRow:{width:"100%",textAlign:"left",display:"flex",alignItems:"center",justifyContent:"space-between",gap:8,padding:"12px 16px",background:"none",border:"none",margin:0,fontFamily:"inherit"},detailRowClickable:{cursor:"pointer",transition:"background-color 0.15s ease"},detailRowMain:{minWidth:0},detailRowLabel:{margin:0,fontSize:12,color:"#94a3b8"},detailRowValue:{margin:0,fontSize:14,fontWeight:600,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:2,color:"#1e293b"},detailRowSub:{margin:0,fontSize:12,color:"#94a3b8",marginTop:2},detailRowChevron:{color:"#e2e8f0",transition:"color 0.15s ease",flexShrink:0},detailRowChevronHover:{color:"#94a3b8"},centeredCell:{padding:"16px 8px",minWidth:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",textAlign:"center",cursor:"pointer",userSelect:"none",position:"relative"},centeredCellLabel:{fontSize:10,color:"#94a3b8",fontWeight:500,lineHeight:1,width:"100%"},centeredCellValue:{fontSize:14,fontWeight:700,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",marginTop:6,width:"100%",maxWidth:100,color:"#334155"},centeredCellSub:{fontSize:10,fontWeight:700,marginTop:6,lineHeight:1.25,maxWidth:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",color:"#94a3b8"},gridRow:{display:"grid"},gridCell:{minWidth:0,position:"relative"},gridCellPadded:{padding:6},gridCellInner:{padding:6},gridRowDivider:{borderTop:"1px solid #f1f5f9"},gridCellDivider:{borderLeft:"1px solid #f1f5f9"},listRow:{display:"flex",alignItems:"center",gap:8,padding:"12px 16px",transition:"background-color 0.15s ease"},listRowCompact:{padding:"8px 16px"},listRowDivider:{borderTop:"1px solid rgba(241,245,249,0.6)"},listRowHover:{background:"rgba(248,250,252,0.4)"},listRowDot:{width:6,height:6,borderRadius:9999,flexShrink:0},listRowDotDefault:{background:"#cbd5e1"},listRowMain:{minWidth:0,flex:"1 1 0%",textAlign:"left"},listRowValue:{margin:0,fontSize:12,color:"#475569",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},listRowSub:{margin:0,fontSize:10,color:"#cbd5e1",lineHeight:1,marginTop:2},listRowLabel:{fontSize:10,color:"#94a3b8",flexShrink:0,fontWeight:500},alertRowValue:{margin:0,fontSize:12,color:"#475569",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:"1 1 0%",textAlign:"left"},alertRowSub:{fontSize:10,color:"#cbd5e1",flexShrink:0},tags:{borderBottom:"1px solid #f1f5f9",padding:"16px 20px",display:"flex",flexDirection:"column",textAlign:"left"},tagsTop:{display:"flex",alignItems:"center",justifyContent:"space-between",width:"100%"},tagsMeta:{display:"flex",flexDirection:"column"},tagsLabel:{fontSize:11,color:"#94a3b8",fontWeight:500},tagsCount:{fontSize:14,fontWeight:700,color:"#334155",marginTop:2},tagsList:{display:"flex",flexWrap:"wrap",alignItems:"center",columnGap:8,rowGap:4,marginTop:8,fontSize:11,color:"#64748b",fontWeight:500},tag:{display:"flex",alignItems:"center",gap:4},tagDot:{width:4,height:4,borderRadius:9999,flexShrink:0},tagDotDefault:{background:"#94a3b8"},tagsEmpty:{fontStyle:"italic",color:"#94a3b8"},eventRowWrap:{borderTop:"1px solid #f1f5f9"},eventRow:{width:"100%",display:"flex",alignItems:"center",gap:8,padding:"14px 16px",transition:"background-color 0.15s ease",background:"none",border:"none",cursor:"pointer",margin:0,fontFamily:"inherit"},eventRowHover:{background:"rgba(248,250,252,0.8)"},eventRowDot:{width:4,height:4,borderRadius:9999,flexShrink:0},eventRowDotDefault:{background:"#cbd5e1"},eventRowTitle:{margin:0,fontSize:11,color:"#475569",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",flex:"1 1 0%",textAlign:"left"},eventRowTime:{fontSize:9,color:"#cbd5e1",flexShrink:0,marginRight:4},eventRowChevron:{color:"#cbd5e1",flexShrink:0},modalOverlay:{position:"fixed",inset:0,zIndex:50,display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(15,23,42,0.4)",backdropFilter:"blur(4px)",padding:16},modal:{background:"#ffffff",width:"100%",maxWidth:512,borderRadius:12,boxShadow:"0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1)",border:"1px solid #e2e8f0",overflow:"hidden"},modalHeader:{padding:"12px 16px",background:"#f8fafc",borderBottom:"1px solid rgba(226,232,240,0.8)",display:"flex",alignItems:"center",justifyContent:"space-between"},modalHeaderLeft:{display:"flex",alignItems:"center",gap:8,maxWidth:"85%"},modalBadge:{fontSize:10,fontWeight:600,padding:"2px 6px",borderRadius:6},modalStatusBadge:{fontSize:10,fontWeight:600,padding:"2px 6px",borderRadius:6},modalTitle:{margin:0,fontSize:12,fontWeight:600,color:"#334155",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},modalClose:{color:"#94a3b8",padding:4,borderRadius:8,transition:"background-color 0.15s ease, color 0.15s ease",background:"none",border:"none",cursor:"pointer",display:"flex",margin:0,fontFamily:"inherit"},modalCloseHover:{color:"#475569",background:"rgba(226,232,240,0.5)"},modalBody:{maxHeight:"60vh",overflowY:"auto",padding:16},modalBodySpacer:{marginTop:16},modalSectionTitle:{margin:0,fontSize:10,fontWeight:700,color:"#94a3b8",textTransform:"uppercase",letterSpacing:"0.05em",marginBottom:4},modalSectionTitleTight:{marginBottom:6},modalSummaryText:{margin:0,fontSize:12,color:"#475569",lineHeight:1.625,background:"#f8fafc",padding:10,borderRadius:8,border:"1px solid #f1f5f9"},modalDetailsGrid:{display:"grid",gridTemplateColumns:"repeat(2, minmax(0, 1fr))",columnGap:16,rowGap:8,background:"rgba(248,250,252,0.5)",padding:12,borderRadius:8,border:"1px solid #f1f5f9"},modalDetail:{display:"flex",flexDirection:"column"},modalDetailLabel:{fontSize:10,color:"#94a3b8",fontWeight:500},modalDetailValue:{fontSize:12,color:"#334155",fontWeight:500,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},modalLinkRow:{display:"flex",alignItems:"center",gap:12,paddingTop:8},modalLink:{fontSize:12,fontWeight:500,color:"#6366f1",textDecoration:"none"},modalActionRow:{borderTop:"1px solid #f1f5f9",background:"rgba(248,250,252,0.5)",padding:12,display:"flex",justifyContent:"flex-end"},modalActionBtn:{display:"flex",alignItems:"center",gap:6,padding:"6px 12px",background:"#ffffff",border:"1px solid #e2e8f0",borderRadius:8,boxShadow:"0 1px 2px 0 rgba(0,0,0,0.05)",transition:"background-color 0.15s ease",cursor:"pointer",margin:0,fontFamily:"inherit"},modalActionBtnHover:{background:"#f8fafc"},modalActionText:{fontSize:12,fontWeight:600},modalActionChevron:{transition:"transform 0.15s ease"},modalActionChevronHover:{transform:"translateX(2px)"}},i={critical:"#ef4444",warning:"#fbbf24",info:"#34d399"},t={CRITICAL:"#ef4444",HIGH:"#f59e0b",MEDIUM:"#facc15",LOW:"#34d399",POLICY:"#8b5cf6"},n={CRITICAL:{background:"#fef2f2",color:"#dc2626"},HIGH:{background:"#fffbeb",color:"#d97706"},MEDIUM:{background:"#fefce8",color:"#a16207"},LOW:{background:"#ecfdf5",color:"#059669"},POLICY:{background:"#f5f3ff",color:"#7c3aed"}},r={background:"#f8fafc",color:"#64748b"},a={BLOCKED:{background:"#fee2e2",color:"#b91c1c"},FLAGGED:{background:"#fef3c7",color:"#b45309"},ALLOWED:{background:"#d1fae5",color:"#047857"}},l={background:"#f1f5f9",color:"#64748b"},d={BLOCKED:"#dc2626",FLAGGED:"#d97706",ALLOWED:"#059669"},f="\n@keyframes dc-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n";export{d as ACTION_COLORS,e as DASHBOARD_CARD_FONT_FAMILY,f as DASHBOARD_CARD_KEYFRAMES,i as NEWS_DOT_COLORS,r as SEV_BADGE_DEFAULT,n as SEV_BADGE_STYLES,t as SEV_DOT_COLORS,l as STATUS_BADGE_DEFAULT,a as STATUS_BADGE_STYLES,o as default};
2
+ //# sourceMappingURL=DashboardCardStyles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCardStyles.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
- export{default as Graph}from"./components/Graph/Graph.js";export{default as LineChart}from"./components/Graph/LineChart.js";export{default as PlotBySelector}from"./components/Graph/PlotBySelector.js";export{DEFAULT_COLORS,colorForIndex}from"./components/Graph/types.js";export{ChartContainer,ChartLegend,ChartLegendContent,ChartTooltip,ChartTooltipContent,useChart}from"./components/ui/chart.js";export{default as DashboardDateFilter}from"./components/DashboardDateFilter/DashboardDateFilter.js";export{default as MetricCard}from"./components/MetricCard/MetricCard.js";export{default as FiltersSidebar}from"./components/FiltersSidebar/FiltersSidebar.js";export{default as FTable}from"./components/Table/FTable.js";export{default as TableCard}from"./components/Table/TableCard.js";export{DATE_PRESETS,DEFAULT_DATE_PRESETS}from"./components/DashboardDateFilter/datePreset.js";
1
+ export{default as Graph}from"./components/Graph/Graph.js";export{default as LineChart}from"./components/Graph/LineChart.js";export{default as PlotBySelector}from"./components/Graph/PlotBySelector.js";export{DEFAULT_COLORS,colorForIndex}from"./components/Graph/types.js";export{ChartContainer,ChartLegend,ChartLegendContent,ChartTooltip,ChartTooltipContent,useChart}from"./components/ui/chart.js";export{default as DashboardDateFilter}from"./components/DashboardDateFilter/DashboardDateFilter.js";export{default as MetricCard}from"./components/MetricCard/MetricCard.js";export{default as FiltersSidebar}from"./components/FiltersSidebar/FiltersSidebar.js";export{default as FTable}from"./components/Table/FTable.js";export{default as TableCard}from"./components/Table/TableCard.js";export{DATE_PRESETS,DEFAULT_DATE_PRESETS}from"./components/DashboardDateFilter/datePreset.js";export{DashboardCard}from"./components/DashboardCard/DashboardCard.js";
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAQA,OAAO,WAAW,CAAC;AAoRnB,wBAAgB,GAAG,4CAqxBlB"}
1
+ {"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../src/App.tsx"],"names":[],"mappings":"AAQA,OAAO,WAAW,CAAC;AAqRnB,wBAAgB,GAAG,4CAw1BlB"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import type { NewsItem } from './types';
3
+ export declare const BreakingNewsBanner: React.FC<{
4
+ items: NewsItem[];
5
+ accentBg: string;
6
+ accentBorder: string;
7
+ accentText: string;
8
+ }>;
9
+ //# sourceMappingURL=BreakingNewsBanner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BreakingNewsBanner.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/BreakingNewsBanner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC;IACxC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACpB,CAgBA,CAAC"}
@@ -0,0 +1,22 @@
1
+ import React from 'react';
2
+ export declare const CardShell: React.FC<{
3
+ accent: string;
4
+ iconBg: string;
5
+ icon: React.ReactNode;
6
+ title: string;
7
+ badge: string;
8
+ heroValue: string;
9
+ heroLabel: string;
10
+ heroColor: string;
11
+ heroDelta?: {
12
+ text: string;
13
+ up: boolean;
14
+ } | null;
15
+ chartData: number[] | null;
16
+ chartLabels?: string[];
17
+ chartColor: string;
18
+ chartPrefix: string;
19
+ footer: React.ReactNode;
20
+ children: React.ReactNode;
21
+ }>;
22
+ //# sourceMappingURL=CardShell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CardShell.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/CardShell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAGhD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IACjD,SAAS,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC3B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B,CA0JA,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { SectionItem } from './types';
3
+ export declare const CenteredCell: React.FC<{
4
+ item: SectionItem;
5
+ }>;
6
+ //# sourceMappingURL=CenteredCell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CenteredCell.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/CenteredCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC;IAClC,IAAI,EAAE,WAAW,CAAC;CACnB,CASA,CAAC"}
@@ -0,0 +1,5 @@
1
+ import React from 'react';
2
+ import type { DashboardCardProps } from './types';
3
+ export * from './types';
4
+ export declare const DashboardCard: React.FC<DashboardCardProps>;
5
+ //# sourceMappingURL=DashboardCard.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCard.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/DashboardCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,cAAc,SAAS,CAAC;AAgHxB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CA6DtD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare const DetailRow: React.FC<{
3
+ label: string;
4
+ value: React.ReactNode;
5
+ sub?: string;
6
+ onClick?: () => void;
7
+ valueColor?: string;
8
+ }>;
9
+ //# sourceMappingURL=DetailRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DetailRow.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/DetailRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAwBA,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { EventItem } from './types';
2
+ export declare const renderEventsSection: (events: EventItem[]) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=EventsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventsSection.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/EventsSection.tsx"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAoHzC,eAAO,MAAM,mBAAmB,WAAY,SAAS,EAAE,4CAItD,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export declare const FooterLinkButton: React.FC<{
3
+ label: string;
4
+ onClick: () => void;
5
+ }>;
6
+ //# sourceMappingURL=FooterLinkButton.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FooterLinkButton.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/FooterLinkButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,IAAI,CAAA;CAAE,CAS7E,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { SectionItem } from './types';
2
+ export declare const renderGridSection: (items: SectionItem[], columns: number, centered?: boolean) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=GridSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GridSection.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/GridSection.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,eAAO,MAAM,iBAAiB,UAAW,WAAW,EAAE,WAAW,MAAM,aAAa,OAAO,4CA2B1F,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { SectionItem } from './types';
2
+ export declare const renderListSection: (items: SectionItem[]) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const renderAlertsSection: (items: SectionItem[]) => import("react/jsx-runtime").JSX.Element;
4
+ //# sourceMappingURL=ListSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ListSection.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/ListSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AA+B3C,eAAO,MAAM,iBAAiB,UAAW,WAAW,EAAE,4CAQrD,CAAC;AAEF,eAAO,MAAM,mBAAmB,UAAW,WAAW,EAAE,4CAQvD,CAAC"}
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export declare const SectionHeadingBar: React.FC<{
3
+ label: string;
4
+ color?: React.CSSProperties;
5
+ dotColor?: string;
6
+ count?: number;
7
+ pulse?: boolean;
8
+ }>;
9
+ //# sourceMappingURL=SectionHeadingBar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SectionHeadingBar.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/SectionHeadingBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,CAQA,CAAC"}
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const SkeletonRow: React.FC;
3
+ //# sourceMappingURL=SkeletonRow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SkeletonRow.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/SkeletonRow.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAK/B,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { TagsSectionConfig } from './types';
2
+ export declare const renderTagsSection: (config: TagsSectionConfig) => import("react/jsx-runtime").JSX.Element;
3
+ //# sourceMappingURL=TagsSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TagsSection.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/TagsSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAEjD,eAAO,MAAM,iBAAiB,WAAY,iBAAiB,4CAuB1D,CAAC"}
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ import type { DropdownConfig } from './types';
3
+ export declare const TopDropdownMenu: React.FC<{
4
+ config: DropdownConfig;
5
+ }>;
6
+ //# sourceMappingURL=TopDropdownMenu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TopDropdownMenu.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/TopDropdownMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE9C,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC;IACrC,MAAM,EAAE,cAAc,CAAC;CACxB,CAiCA,CAAC"}
@@ -0,0 +1,4 @@
1
+ /// <reference types="react" />
2
+ import type { DashboardSection } from './types';
3
+ export declare const renderSectionContent: (section: DashboardSection) => string | number | true | Iterable<import("react").ReactNode> | import("react/jsx-runtime").JSX.Element | null;
4
+ //# sourceMappingURL=sectionContent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sectionContent.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/sectionContent.tsx"],"names":[],"mappings":";AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAEhD,eAAO,MAAM,oBAAoB,YAAa,gBAAgB,kHAa7D,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { CSSProperties } from 'react';
2
+ /** Default sans-serif stack (matches what Tailwind's Preflight applied globally
3
+ * before — needed explicitly now since nothing resets `html`'s font anymore). */
4
+ export declare const DASHBOARD_CARD_FONT_FAMILY: string;
5
+ declare const DASHBOARD_CARD_STYLES: Record<string, CSSProperties>;
6
+ export declare const NEWS_DOT_COLORS: Record<string, string>;
7
+ export declare const SEV_DOT_COLORS: Record<string, string>;
8
+ export declare const SEV_BADGE_STYLES: Record<string, CSSProperties>;
9
+ export declare const SEV_BADGE_DEFAULT: CSSProperties;
10
+ export declare const STATUS_BADGE_STYLES: Record<string, CSSProperties>;
11
+ export declare const STATUS_BADGE_DEFAULT: CSSProperties;
12
+ export declare const ACTION_COLORS: Record<string, string>;
13
+ /** Single injected <style> block — only used for the @keyframes pulse animation,
14
+ * which inline styles cannot express on their own. */
15
+ export declare const DASHBOARD_CARD_KEYFRAMES = "\n@keyframes dc-pulse {\n 0%, 100% { opacity: 1; }\n 50% { opacity: 0.5; }\n}\n";
16
+ export default DASHBOARD_CARD_STYLES;
17
+ //# sourceMappingURL=DashboardCardStyles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DashboardCardStyles.d.ts","sourceRoot":"","sources":["../../../../../src/components/DashboardCard/styles/DashboardCardStyles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C;kFACkF;AAClF,eAAO,MAAM,0BAA0B,QAGE,CAAC;AAE1C,QAAA,MAAM,qBAAqB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAkMxD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIlD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAEjD,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAM1D,CAAC;AACF,eAAO,MAAM,iBAAiB,EAAE,aAA2D,CAAC;AAE5F,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,aAAa,CAI7D,CAAC;AACF,eAAO,MAAM,oBAAoB,EAAE,aAA2D,CAAC;AAE/F,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAIhD,CAAC;AAEF;uDACuD;AACvD,eAAO,MAAM,wBAAwB,sFAKpC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,156 @@
1
+ import type { ReactNode, CSSProperties } from 'react';
2
+ /** Breaking news item */
3
+ export interface NewsItem {
4
+ text: string;
5
+ level: 'critical' | 'warning' | 'info';
6
+ }
7
+ /** Dropdown menu config for a grid item's "Top N" button */
8
+ export interface DropdownConfig {
9
+ /** Dropdown header title (e.g. "Top 3 Agents") */
10
+ title: string;
11
+ /** List of dropdown entries */
12
+ items: {
13
+ name: string;
14
+ value: string;
15
+ }[];
16
+ /** Click handler when a dropdown entry is clicked */
17
+ onClick?: () => void;
18
+ }
19
+ /** Data item for grid/list/alerts sections */
20
+ export interface SectionItem {
21
+ /** Row label (small grey text) */
22
+ label: string;
23
+ /** Primary display value (bold) */
24
+ value: string;
25
+ /** Secondary text below value */
26
+ sub?: string;
27
+ /** Click handler — adds chevron and hover state */
28
+ onClick?: () => void;
29
+ /** CSS color for the dot, used in list/alerts items (e.g. "#ef4444") */
30
+ dotColor?: string;
31
+ /** CSS color to override the value text (e.g. for budget thresholds) */
32
+ valueColor?: string;
33
+ /** CSS color to override the sub text (e.g. for cost amounts) */
34
+ subColor?: string;
35
+ /** Dropdown "Top N" button attached to this grid cell */
36
+ dropdown?: DropdownConfig;
37
+ }
38
+ /** Tag item for "tags" format sections */
39
+ export interface TagItem {
40
+ /** Tag label text */
41
+ label: string;
42
+ /** CSS color for the dot */
43
+ dotColor?: string;
44
+ }
45
+ /** Event detail metadata row */
46
+ export interface EventDetail {
47
+ label: string;
48
+ value: string;
49
+ }
50
+ /** Event item for "events" format sections */
51
+ export interface EventItem {
52
+ /** Unique event ID */
53
+ id: string;
54
+ /** Event title */
55
+ title: string;
56
+ /** Severity level */
57
+ severity: 'CRITICAL' | 'HIGH' | 'MEDIUM' | 'LOW' | 'POLICY' | string;
58
+ /** Event status */
59
+ status?: 'BLOCKED' | 'FLAGGED' | 'ALLOWED' | string;
60
+ /** Event timestamp */
61
+ timestamp: Date;
62
+ /** Triage summary text */
63
+ triageSummary?: string;
64
+ /** Metadata detail rows (label/value pairs) */
65
+ details?: EventDetail[];
66
+ /** Incident URL link */
67
+ incidentUrl?: string;
68
+ /** Action button click handler (e.g. navigate to events page) */
69
+ onAction?: () => void;
70
+ }
71
+ /** Tags section config */
72
+ export interface TagsSectionConfig {
73
+ /** Header label (e.g. "Active Categories") */
74
+ label: string;
75
+ /** Count displayed next to label */
76
+ count: number;
77
+ /** Count suffix (e.g. "Categories") */
78
+ countSuffix?: string;
79
+ /** List of tag items */
80
+ tags: TagItem[];
81
+ /** Fallback text when no tags */
82
+ emptyText?: string;
83
+ }
84
+ /** Section within the card */
85
+ export interface DashboardSection {
86
+ /** Section heading text (uppercase) */
87
+ heading: string;
88
+ /** Style override for the heading bar (background / borderColor / color). Defaults to neutral grey. */
89
+ headingColor?: CSSProperties;
90
+ /** CSS color for the dot before heading */
91
+ dotColor?: string;
92
+ /** Count badge on heading right side */
93
+ count?: number;
94
+ /** Pulse animation on the dot */
95
+ pulse?: boolean;
96
+ /**
97
+ * Layout format:
98
+ * - "grid": columns with dividers (set `columns`, default 2)
99
+ * - "list": vertical list with optional dots
100
+ * - "alerts": compact list with pulsing dots
101
+ * - "tags": tag pills with dots (use `tagsConfig`)
102
+ * - "events": expandable event cards with modal (use `events`)
103
+ */
104
+ format?: 'grid' | 'list' | 'alerts' | 'tags' | 'events';
105
+ /** Grid column count (default: 2) */
106
+ columns?: number;
107
+ /** Center-align grid cells (for budget-style compact metrics) */
108
+ centered?: boolean;
109
+ /** Data items for grid/list/alerts */
110
+ items?: SectionItem[];
111
+ /** Tags config for "tags" format */
112
+ tagsConfig?: TagsSectionConfig;
113
+ /** Event items for "events" format */
114
+ events?: EventItem[];
115
+ /** Custom ReactNode content — overrides format/items/events */
116
+ content?: ReactNode;
117
+ }
118
+ /** Footer link config */
119
+ export interface FooterLinkConfig {
120
+ label: string;
121
+ onClick: () => void;
122
+ }
123
+ export interface DashboardCardProps {
124
+ /** Semantic theme keyword (matched against title too) — drives the header gradient. Not rendered directly. */
125
+ accent: string;
126
+ /** CSS color applied to the icon's background wrapper */
127
+ iconBg: string;
128
+ icon: ReactNode;
129
+ title: string;
130
+ badge?: string;
131
+ heroValue: string;
132
+ heroLabel: string;
133
+ /** CSS color applied to the hero value text */
134
+ heroColor: string;
135
+ heroDelta?: {
136
+ text: string;
137
+ up: boolean;
138
+ } | null;
139
+ chartData?: number[] | null;
140
+ chartLabels?: string[];
141
+ chartColor?: string;
142
+ chartId?: string;
143
+ chartPrefix?: string;
144
+ loading: boolean;
145
+ footer?: ReactNode;
146
+ footerLinks?: FooterLinkConfig[];
147
+ breakingNews: NewsItem[];
148
+ /** CSS color applied to the breaking-news banner background */
149
+ accentBg: string;
150
+ /** CSS color applied to the breaking-news banner border */
151
+ accentBorder: string;
152
+ /** CSS color applied to the breaking-news banner text */
153
+ accentText: string;
154
+ sections: DashboardSection[];
155
+ }
156
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/DashboardCard/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAEtD,yBAAyB;AACzB,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;CACxC;AAED,4DAA4D;AAC5D,MAAM,WAAW,cAAc;IAC7B,kDAAkD;IAClD,KAAK,EAAE,MAAM,CAAC;IACd,+BAA+B;IAC/B,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;IACzC,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAED,8CAA8C;AAC9C,MAAM,WAAW,WAAW;IAC1B,kCAAkC;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,iCAAiC;IACjC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wEAAwE;IACxE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,QAAQ,CAAC,EAAE,cAAc,CAAC;CAC3B;AAED,0CAA0C;AAC1C,MAAM,WAAW,OAAO;IACtB,qBAAqB;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,gCAAgC;AAChC,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,8CAA8C;AAC9C,MAAM,WAAW,SAAS;IACxB,sBAAsB;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,kBAAkB;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,QAAQ,EAAE,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,CAAC;IACrE,mBAAmB;IACnB,MAAM,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,MAAM,CAAC;IACpD,sBAAsB;IACtB,SAAS,EAAE,IAAI,CAAC;IAChB,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,WAAW,EAAE,CAAC;IACxB,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;CACvB;AAED,0BAA0B;AAC1B,MAAM,WAAW,iBAAiB;IAChC,8CAA8C;IAC9C,KAAK,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wBAAwB;IACxB,IAAI,EAAE,OAAO,EAAE,CAAC;IAChB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,8BAA8B;AAC9B,MAAM,WAAW,gBAAgB;IAC/B,uCAAuC;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,uGAAuG;IACvG,YAAY,CAAC,EAAE,aAAa,CAAC;IAC7B,2CAA2C;IAC3C,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAC;IAEhB;;;;;;;OAOG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,GAAG,QAAQ,CAAC;IACxD,qCAAqC;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sCAAsC;IACtC,KAAK,CAAC,EAAE,WAAW,EAAE,CAAC;IACtB,oCAAoC;IACpC,UAAU,CAAC,EAAE,iBAAiB,CAAC;IAC/B,sCAAsC;IACtC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IAErB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB;AAED,yBAAyB;AACzB,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAED,MAAM,WAAW,kBAAkB;IACjC,8GAA8G;IAC9G,MAAM,EAAE,MAAM,CAAC;IACf,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAC;IAEjD,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,OAAO,EAAE,OAAO,CAAC;IAEjB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAEjC,YAAY,EAAE,QAAQ,EAAE,CAAC;IACzB,+DAA+D;IAC/D,QAAQ,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,YAAY,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,EAAE,gBAAgB,EAAE,CAAC;CAC9B"}
@@ -15,4 +15,6 @@ export * from './components/DashboardDateFilter/datePreset';
15
15
  export type { MetricCardProps } from './components/MetricCard/MetricCard';
16
16
  export type { FiltersSidebarProps } from './components/FiltersSidebar/FiltersSidebar';
17
17
  export type { FTableProps } from './components/Table/FTable';
18
+ export { DashboardCard } from './components/DashboardCard/DashboardCard';
19
+ export type { DashboardCardProps, DashboardSection, SectionItem, TagItem, TagsSectionConfig, EventItem, EventDetail, DropdownConfig, FooterLinkConfig, NewsItem, } from './components/DashboardCard/DashboardCard';
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGzE,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,QAAQ,GACT,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD,YAAY,EACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAGlE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,6CAA6C,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAE9E,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAGzE,OAAO,EACL,cAAc,EACd,YAAY,EACZ,mBAAmB,EACnB,WAAW,EACX,kBAAkB,EAClB,QAAQ,GACT,MAAM,uBAAuB,CAAC;AAC/B,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGzD,YAAY,EACV,UAAU,EACV,MAAM,EACN,SAAS,EACT,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,UAAU,EACV,eAAe,GAChB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,OAAO,IAAI,mBAAmB,EAAE,MAAM,sDAAsD,CAAC;AACtG,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAC3E,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAC,OAAO,IAAI,SAAS,EAAC,MAAM,8BAA8B,CAAC;AAGlE,cAAc,4DAA4D,CAAC;AAC3E,cAAc,6CAA6C,CAAC;AAC5D,YAAY,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAC1E,YAAY,EAAE,mBAAmB,EAAE,MAAM,4CAA4C,CAAC;AACtF,YAAY,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACzE,YAAY,EACV,kBAAkB,EAClB,gBAAgB,EAChB,WAAW,EACX,OAAO,EACP,iBAAiB,EACjB,SAAS,EACT,WAAW,EACX,cAAc,EACd,gBAAgB,EAChB,QAAQ,GACT,MAAM,0CAA0C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@e-llm-studio/federated-dashboard-components",
3
- "version": "0.0.1-beta.8",
3
+ "version": "0.0.1-beta.9",
4
4
  "author": "Hitesh Rathi",
5
5
  "description": "",
6
6
  "license": "MIT",