@burdenoff/microfe-security 2026.624.2 → 2026.625.1

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.
@@ -1,39 +1,40 @@
1
1
  import { cn as e } from "../utils/cn.js";
2
- import { Card as t } from "./ui.js";
3
- import { jsx as n, jsxs as r } from "react/jsx-runtime";
4
- import { AlertTriangle as i, CheckCircle as a, Shield as o, XCircle as s } from "lucide-react";
2
+ import { jsx as t, jsxs as n } from "react/jsx-runtime";
3
+ import { AlertTriangle as r, CheckCircle as i, Shield as a, XCircle as o } from "lucide-react";
4
+ import { GlassCard as s } from "@burdenoff/fe-libs/ui";
5
5
  //#region src/security/components/SecurityScoreCard.tsx
6
6
  var c = ({ score: c, className: l }) => {
7
7
  let u = ((e) => e >= 80 ? {
8
8
  label: "Excellent",
9
9
  color: "text-status-success-text",
10
10
  bg: "bg-status-success-bg",
11
- Icon: a
11
+ Icon: i
12
12
  } : e >= 60 ? {
13
13
  label: "Good",
14
14
  color: "text-status-info-text",
15
15
  bg: "bg-accent-blue",
16
- Icon: o
16
+ Icon: a
17
17
  } : e >= 40 ? {
18
18
  label: "Fair",
19
19
  color: "text-status-warning-text",
20
20
  bg: "bg-status-warning-bg",
21
- Icon: i
21
+ Icon: r
22
22
  } : {
23
23
  label: "Needs Attention",
24
24
  color: "text-status-error-text",
25
25
  bg: "bg-status-error-bg",
26
- Icon: s
26
+ Icon: o
27
27
  })(c), d = u.Icon, f = 2 * Math.PI * 37, p = f - c / 100 * f;
28
- return /* @__PURE__ */ r(t, {
28
+ return /* @__PURE__ */ n(s, {
29
+ treatment: "glass",
29
30
  className: e("p-5 flex flex-col items-center gap-2", l),
30
- children: [/* @__PURE__ */ r("div", {
31
+ children: [/* @__PURE__ */ n("div", {
31
32
  className: "relative",
32
- children: [/* @__PURE__ */ r("svg", {
33
+ children: [/* @__PURE__ */ n("svg", {
33
34
  width: 80,
34
35
  height: 80,
35
36
  viewBox: "0 0 80 80",
36
- children: [/* @__PURE__ */ n("circle", {
37
+ children: [/* @__PURE__ */ t("circle", {
37
38
  cx: 80 / 2,
38
39
  cy: 80 / 2,
39
40
  r: 37,
@@ -41,7 +42,7 @@ var c = ({ score: c, className: l }) => {
41
42
  stroke: "currentColor",
42
43
  strokeWidth: 6,
43
44
  className: "text-muted/30"
44
- }), /* @__PURE__ */ n("circle", {
45
+ }), /* @__PURE__ */ t("circle", {
45
46
  cx: 80 / 2,
46
47
  cy: 80 / 2,
47
48
  r: 37,
@@ -54,22 +55,22 @@ var c = ({ score: c, className: l }) => {
54
55
  className: e(u.color, "transition-all duration-200"),
55
56
  transform: `rotate(-90 ${80 / 2} ${80 / 2})`
56
57
  })]
57
- }), /* @__PURE__ */ n("div", {
58
+ }), /* @__PURE__ */ t("div", {
58
59
  className: "absolute inset-0 flex items-center justify-center",
59
- children: /* @__PURE__ */ n("span", {
60
- className: e("text-xl font-bold", u.color),
60
+ children: /* @__PURE__ */ t("span", {
61
+ className: e("text-xl font-bold tabular-nums", u.color),
61
62
  children: c
62
63
  })
63
64
  })]
64
- }), /* @__PURE__ */ r("div", {
65
+ }), /* @__PURE__ */ n("div", {
65
66
  className: "text-center",
66
- children: [/* @__PURE__ */ r("div", {
67
+ children: [/* @__PURE__ */ n("div", {
67
68
  className: "flex items-center gap-1",
68
- children: [/* @__PURE__ */ n(d, { className: e("h-4 w-4", u.color) }), /* @__PURE__ */ n("span", {
69
+ children: [/* @__PURE__ */ t(d, { className: e("h-4 w-4", u.color) }), /* @__PURE__ */ t("span", {
69
70
  className: e("text-sm font-semibold", u.color),
70
71
  children: u.label
71
72
  })]
72
- }), /* @__PURE__ */ n("p", {
73
+ }), /* @__PURE__ */ t("p", {
73
74
  className: "text-xs text-text-secondary mt-0.5",
74
75
  children: "Health Score"
75
76
  })]
@@ -1 +1 @@
1
- {"version":3,"file":"SecurityScoreCard.js","names":[],"sources":["../../../src/security/components/SecurityScoreCard.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Shield, CheckCircle, AlertTriangle, XCircle } from 'lucide-react';\nimport { cn } from '../utils/cn';\nimport { Card } from './ui';\n\ninterface SecurityScoreCardProps {\n score: number;\n className?: string;\n}\n\n/**\n * Visual card displaying the security health score as a circular gauge.\n */\nexport const SecurityScoreCard: FC<SecurityScoreCardProps> = ({ score, className }) => {\n const getScoreConfig = (s: number) => {\n if (s >= 80)\n return {\n label: 'Excellent',\n color: 'text-status-success-text',\n bg: 'bg-status-success-bg',\n Icon: CheckCircle,\n };\n if (s >= 60)\n return { label: 'Good', color: 'text-status-info-text', bg: 'bg-accent-blue', Icon: Shield };\n if (s >= 40)\n return {\n label: 'Fair',\n color: 'text-status-warning-text',\n bg: 'bg-status-warning-bg',\n Icon: AlertTriangle,\n };\n return {\n label: 'Needs Attention',\n color: 'text-status-error-text',\n bg: 'bg-status-error-bg',\n Icon: XCircle,\n };\n };\n\n const config = getScoreConfig(score);\n const Icon = config.Icon;\n\n // SVG circle properties\n const size = 80;\n const strokeWidth = 6;\n const radius = (size - strokeWidth) / 2;\n const circumference = 2 * Math.PI * radius;\n const offset = circumference - (score / 100) * circumference;\n\n return (\n <Card className={cn('p-5 flex flex-col items-center gap-2', className)}>\n <div className=\"relative\">\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>\n {/* Background circle */}\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={strokeWidth}\n className=\"text-muted/30\"\n />\n {/* Score circle */}\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={strokeWidth}\n strokeDasharray={circumference}\n strokeDashoffset={offset}\n strokeLinecap=\"round\"\n className={cn(config.color, 'transition-all duration-200')}\n transform={`rotate(-90 ${size / 2} ${size / 2})`}\n />\n </svg>\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <span className={cn('text-xl font-bold', config.color)}>{score}</span>\n </div>\n </div>\n <div className=\"text-center\">\n <div className=\"flex items-center gap-1\">\n <Icon className={cn('h-4 w-4', config.color)} />\n <span className={cn('text-sm font-semibold', config.color)}>{config.label}</span>\n </div>\n <p className=\"text-xs text-text-secondary mt-0.5\">Health Score</p>\n </div>\n </Card>\n );\n};\n"],"mappings":";;;;;AAaA,IAAa,KAAiD,EAAE,UAAO,mBAAgB;CA0BrF,IAAM,MAzBkB,MAClB,KAAK,KACA;EACL,OAAO;EACP,OAAO;EACP,IAAI;EACJ,MAAM;EACP,GACC,KAAK,KACA;EAAE,OAAO;EAAQ,OAAO;EAAyB,IAAI;EAAkB,MAAM;EAAQ,GAC1F,KAAK,KACA;EACL,OAAO;EACP,OAAO;EACP,IAAI;EACJ,MAAM;EACP,GACI;EACL,OAAO;EACP,OAAO;EACP,IAAI;EACJ,MAAM;EACP,EAG2B,EAAM,EAC9B,IAAO,EAAO,MAMd,IAAgB,IAAI,KAAK,KAAK,IAC9B,IAAS,IAAiB,IAAQ,MAAO;AAE/C,QACE,kBAAC,GAAD;EAAM,WAAW,EAAG,wCAAwC,EAAU;YAAtE,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD;IAAK,OAAO;IAAM,QAAQ;IAAM,SAAS;cAAzC,CAEE,kBAAC,UAAD;KACE,IAAI,KAAO;KACX,IAAI,KAAO;KACX,GAAG;KACH,MAAK;KACL,QAAO;KACM;KACb,WAAU;KACV,CAAA,EAEF,kBAAC,UAAD;KACE,IAAI,KAAO;KACX,IAAI,KAAO;KACX,GAAG;KACH,MAAK;KACL,QAAO;KACM;KACb,iBAAiB;KACjB,kBAAkB;KAClB,eAAc;KACd,WAAW,EAAG,EAAO,OAAO,8BAA8B;KAC1D,WAAW,cAAc,KAAO,EAAE,GAAG,KAAO,EAAE;KAC9C,CAAA,CACE;OACN,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,QAAD;KAAM,WAAW,EAAG,qBAAqB,EAAO,MAAM;eAAG;KAAa,CAAA;IAClE,CAAA,CACF;MACN,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD,EAAM,WAAW,EAAG,WAAW,EAAO,MAAM,EAAI,CAAA,EAChD,kBAAC,QAAD;KAAM,WAAW,EAAG,yBAAyB,EAAO,MAAM;eAAG,EAAO;KAAa,CAAA,CAC7E;OACN,kBAAC,KAAD;IAAG,WAAU;cAAqC;IAAgB,CAAA,CAC9D;KACD"}
1
+ {"version":3,"file":"SecurityScoreCard.js","names":[],"sources":["../../../src/security/components/SecurityScoreCard.tsx"],"sourcesContent":["import type { FC } from 'react';\nimport { Shield, CheckCircle, AlertTriangle, XCircle } from 'lucide-react';\nimport { GlassCard } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\ninterface SecurityScoreCardProps {\n score: number;\n className?: string;\n}\n\n/**\n * Visual card displaying the security health score as a circular gauge.\n */\nexport const SecurityScoreCard: FC<SecurityScoreCardProps> = ({ score, className }) => {\n const getScoreConfig = (s: number) => {\n if (s >= 80)\n return {\n label: 'Excellent',\n color: 'text-status-success-text',\n bg: 'bg-status-success-bg',\n Icon: CheckCircle,\n };\n if (s >= 60)\n return { label: 'Good', color: 'text-status-info-text', bg: 'bg-accent-blue', Icon: Shield };\n if (s >= 40)\n return {\n label: 'Fair',\n color: 'text-status-warning-text',\n bg: 'bg-status-warning-bg',\n Icon: AlertTriangle,\n };\n return {\n label: 'Needs Attention',\n color: 'text-status-error-text',\n bg: 'bg-status-error-bg',\n Icon: XCircle,\n };\n };\n\n const config = getScoreConfig(score);\n const Icon = config.Icon;\n\n // SVG circle properties\n const size = 80;\n const strokeWidth = 6;\n const radius = (size - strokeWidth) / 2;\n const circumference = 2 * Math.PI * radius;\n const offset = circumference - (score / 100) * circumference;\n\n return (\n <GlassCard treatment=\"glass\" className={cn('p-5 flex flex-col items-center gap-2', className)}>\n <div className=\"relative\">\n <svg width={size} height={size} viewBox={`0 0 ${size} ${size}`}>\n {/* Background circle */}\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={strokeWidth}\n className=\"text-muted/30\"\n />\n {/* Score circle */}\n <circle\n cx={size / 2}\n cy={size / 2}\n r={radius}\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth={strokeWidth}\n strokeDasharray={circumference}\n strokeDashoffset={offset}\n strokeLinecap=\"round\"\n className={cn(config.color, 'transition-all duration-200')}\n transform={`rotate(-90 ${size / 2} ${size / 2})`}\n />\n </svg>\n <div className=\"absolute inset-0 flex items-center justify-center\">\n <span className={cn('text-xl font-bold tabular-nums', config.color)}>{score}</span>\n </div>\n </div>\n <div className=\"text-center\">\n <div className=\"flex items-center gap-1\">\n <Icon className={cn('h-4 w-4', config.color)} />\n <span className={cn('text-sm font-semibold', config.color)}>{config.label}</span>\n </div>\n <p className=\"text-xs text-text-secondary mt-0.5\">Health Score</p>\n </div>\n </GlassCard>\n );\n};\n"],"mappings":";;;;;AAaA,IAAa,KAAiD,EAAE,UAAO,mBAAgB;CA0BrF,IAAM,MAzBkB,MAClB,KAAK,KACA;EACL,OAAO;EACP,OAAO;EACP,IAAI;EACJ,MAAM;EACP,GACC,KAAK,KACA;EAAE,OAAO;EAAQ,OAAO;EAAyB,IAAI;EAAkB,MAAM;EAAQ,GAC1F,KAAK,KACA;EACL,OAAO;EACP,OAAO;EACP,IAAI;EACJ,MAAM;EACP,GACI;EACL,OAAO;EACP,OAAO;EACP,IAAI;EACJ,MAAM;EACP,EAG2B,EAAM,EAC9B,IAAO,EAAO,MAMd,IAAgB,IAAI,KAAK,KAAK,IAC9B,IAAS,IAAiB,IAAQ,MAAO;AAE/C,QACE,kBAAC,GAAD;EAAW,WAAU;EAAQ,WAAW,EAAG,wCAAwC,EAAU;YAA7F,CACE,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD;IAAK,OAAO;IAAM,QAAQ;IAAM,SAAS;cAAzC,CAEE,kBAAC,UAAD;KACE,IAAI,KAAO;KACX,IAAI,KAAO;KACX,GAAG;KACH,MAAK;KACL,QAAO;KACM;KACb,WAAU;KACV,CAAA,EAEF,kBAAC,UAAD;KACE,IAAI,KAAO;KACX,IAAI,KAAO;KACX,GAAG;KACH,MAAK;KACL,QAAO;KACM;KACb,iBAAiB;KACjB,kBAAkB;KAClB,eAAc;KACd,WAAW,EAAG,EAAO,OAAO,8BAA8B;KAC1D,WAAW,cAAc,KAAO,EAAE,GAAG,KAAO,EAAE;KAC9C,CAAA,CACE;OACN,kBAAC,OAAD;IAAK,WAAU;cACb,kBAAC,QAAD;KAAM,WAAW,EAAG,kCAAkC,EAAO,MAAM;eAAG;KAAa,CAAA;IAC/E,CAAA,CACF;MACN,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,OAAD;IAAK,WAAU;cAAf,CACE,kBAAC,GAAD,EAAM,WAAW,EAAG,WAAW,EAAO,MAAM,EAAI,CAAA,EAChD,kBAAC,QAAD;KAAM,WAAW,EAAG,yBAAyB,EAAO,MAAM;eAAG,EAAO;KAAa,CAAA,CAC7E;OACN,kBAAC,KAAD;IAAG,WAAU;cAAqC;IAAgB,CAAA,CAC9D;KACI"}
@@ -40,12 +40,12 @@ var i = ({ children: n, variant: r = "default", className: i }) => /* @__PURE__
40
40
  })]
41
41
  }), s = ({ children: n, className: r, onClick: i, ...a }) => i ? /* @__PURE__ */ t("button", {
42
42
  type: "button",
43
- className: e("block w-full text-left rounded-lg border border-border-subtle bg-bg-surface text-text-primary shadow-sm", "cursor-pointer hover:shadow-md hover:border-primary/30 transition-all", r),
43
+ className: e("block w-full text-left rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-[var(--shadow-pop)]", "cursor-pointer transition-[box-shadow,border-color] duration-200 hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong", r),
44
44
  onClick: i,
45
45
  ...a,
46
46
  children: n
47
47
  }) : /* @__PURE__ */ t("div", {
48
- className: e("rounded-lg border border-border-subtle bg-bg-surface text-text-primary shadow-sm", r),
48
+ className: e("rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-elevation-1", r),
49
49
  ...a,
50
50
  children: n
51
51
  }), c = ({ icon: e, title: n, description: i, action: a, className: o }) => /* @__PURE__ */ t("div", {
@@ -1 +1 @@
1
- {"version":3,"file":"ui.js","names":[],"sources":["../../../src/security/components/ui.tsx"],"sourcesContent":["import type {\n FC,\n ReactNode,\n ButtonHTMLAttributes,\n InputHTMLAttributes,\n HTMLAttributes,\n} from 'react';\nimport { EmptyState as CanonicalEmptyState } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\n/**\n * Badge component\n */\nexport const Badge: FC<{\n children: ReactNode;\n variant?: 'default' | 'success' | 'warning' | 'destructive' | 'outline';\n className?: string;\n}> = ({ children, variant = 'default', className }) => {\n const variants = {\n default: 'bg-action-primary-bg/10 text-primary',\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n outline: 'border border-border-subtle text-text-secondary',\n };\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variants[variant],\n className\n )}\n >\n {children}\n </span>\n );\n};\n\n/**\n * Button component\n */\nexport const Button: FC<\n ButtonHTMLAttributes<HTMLButtonElement> & {\n variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';\n size?: 'sm' | 'md' | 'lg';\n }\n> = ({ children, variant = 'primary', size = 'md', className, ...props }) => {\n const variants = {\n primary: 'bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n outline: 'border border-border-subtle bg-transparent hover:bg-accent hover:text-text-primary',\n ghost: 'hover:bg-accent hover:text-text-primary',\n destructive: 'bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90',\n link: 'text-primary underline-offset-4 hover:underline h-auto p-0',\n };\n\n const sizes = {\n sm: 'h-8 px-3 text-xs',\n md: 'h-9 px-4 text-sm',\n lg: 'h-10 px-6 text-sm',\n };\n\n return (\n <button\n type=\"button\"\n className={cn(\n 'inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:pointer-events-none disabled:opacity-50',\n variants[variant],\n variant !== 'link' && sizes[size],\n className\n )}\n {...props}\n >\n {children}\n </button>\n );\n};\n\n/**\n * Input component\n */\nexport const Input: FC<InputHTMLAttributes<HTMLInputElement> & { label?: string }> = ({\n label,\n className,\n id,\n ...props\n}) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <input\n id={id}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'placeholder:text-text-secondary',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n );\n};\n\n/**\n * Card component\n */\nexport const Card: FC<HTMLAttributes<HTMLDivElement> & { onClick?: () => void }> = ({\n children,\n className,\n onClick,\n ...props\n}) => {\n if (onClick) {\n return (\n <button\n type=\"button\"\n className={cn(\n 'block w-full text-left rounded-lg border border-border-subtle bg-bg-surface text-text-primary shadow-sm',\n 'cursor-pointer hover:shadow-md hover:border-primary/30 transition-all',\n className\n )}\n onClick={onClick}\n {...(props as HTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </button>\n );\n }\n\n return (\n <div\n className={cn(\n 'rounded-lg border border-border-subtle bg-bg-surface text-text-primary shadow-sm',\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n};\n\n/**\n * Empty state component\n */\nexport const EmptyState: FC<{\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}> = ({ icon, title, description, action, className }) => {\n return (\n <div className={className}>\n <CanonicalEmptyState icon={icon} title={title} description={description} action={action} />\n </div>\n );\n};\n\n/**\n * Select component\n */\nexport const Select: FC<{\n label?: string;\n value: string;\n onChange: (value: string) => void;\n options: Array<{ value: string; label: string }>;\n className?: string;\n disabled?: boolean;\n id?: string;\n}> = ({ label, value, onChange, options, className, disabled, id }) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <select\n id={id}\n value={value}\n onChange={(e) => onChange(e.target.value)}\n disabled={disabled}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n >\n {options.map((opt) => (\n <option key={opt.value} value={opt.value}>\n {opt.label}\n </option>\n ))}\n </select>\n </div>\n );\n};\n"],"mappings":";;;;AAaA,IAAa,KAIP,EAAE,aAAU,aAAU,WAAW,mBAUnC,kBAAC,QAAD;CACE,WAAW,EACT,iFAXW;EACf,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,SAAS;EACV,CAMc,IACT,EACD;CAEA;CACI,CAAA,EAOE,KAKR,EAAE,aAAU,aAAU,WAAW,UAAO,MAAM,cAAW,GAAG,QAiB7D,kBAAC,UAAD;CACE,MAAK;CACL,WAAW,EACT,0FACA,gGACA,oDArBW;EACf,SAAS;EACT,WAAW;EACX,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;EACP,CAec,IACT,MAAY,UAdJ;EACZ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,CAUiC,IAC5B,EACD;CACD,GAAI;CAEH;CACM,CAAA,EAOA,KAAyE,EACpF,UACA,cACA,OACA,GAAG,QAGD,kBAAC,OAAD;CAAK,WAAU;WAAf,CACG,KACC,kBAAC,SAAD;EAAO,SAAS;EAAI,WAAU;YAC3B;EACK,CAAA,EAEV,kBAAC,SAAD;EACM;EACJ,WAAW,EACT,0FACA,mCACA,gGACA,mDACA,EACD;EACD,GAAI;EACJ,CAAA,CACE;IAOG,KAAuE,EAClF,aACA,cACA,YACA,GAAG,QAEC,IAEA,kBAAC,UAAD;CACE,MAAK;CACL,WAAW,EACT,2GACA,yEACA,EACD;CACQ;CACT,GAAK;CAEJ;CACM,CAAA,GAKX,kBAAC,OAAD;CACE,WAAW,EACT,oFACA,EACD;CACD,GAAI;CAEH;CACG,CAAA,EAOG,KAMP,EAAE,SAAM,UAAO,gBAAa,WAAQ,mBAEtC,kBAAC,OAAD;CAAgB;WACd,kBAAC,GAAD;EAA2B;EAAa;EAAoB;EAAqB;EAAU,CAAA;CACvF,CAAA,EAOG,KAQP,EAAE,UAAO,UAAO,aAAU,YAAS,cAAW,aAAU,YAE1D,kBAAC,OAAD;CAAK,WAAU;WAAf,CACG,KACC,kBAAC,SAAD;EAAO,SAAS;EAAI,WAAU;YAC3B;EACK,CAAA,EAEV,kBAAC,UAAD;EACM;EACG;EACP,WAAW,MAAM,EAAS,EAAE,OAAO,MAAM;EAC/B;EACV,WAAW,EACT,0FACA,gGACA,mDACA,EACD;YAEA,EAAQ,KAAK,MACZ,kBAAC,UAAD;GAAwB,OAAO,EAAI;aAChC,EAAI;GACE,EAFI,EAAI,MAER,CACT;EACK,CAAA,CACL"}
1
+ {"version":3,"file":"ui.js","names":[],"sources":["../../../src/security/components/ui.tsx"],"sourcesContent":["import type {\n FC,\n ReactNode,\n ButtonHTMLAttributes,\n InputHTMLAttributes,\n HTMLAttributes,\n} from 'react';\nimport { EmptyState as CanonicalEmptyState } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\n/**\n * Badge component\n */\nexport const Badge: FC<{\n children: ReactNode;\n variant?: 'default' | 'success' | 'warning' | 'destructive' | 'outline';\n className?: string;\n}> = ({ children, variant = 'default', className }) => {\n const variants = {\n default: 'bg-action-primary-bg/10 text-primary',\n success: 'bg-status-success-bg-subtle text-status-success-text',\n warning: 'bg-status-warning-bg-subtle text-status-warning-text',\n destructive: 'bg-status-error-bg-subtle text-status-error-text',\n outline: 'border border-border-subtle text-text-secondary',\n };\n\n return (\n <span\n className={cn(\n 'inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium',\n variants[variant],\n className\n )}\n >\n {children}\n </span>\n );\n};\n\n/**\n * Button component\n */\nexport const Button: FC<\n ButtonHTMLAttributes<HTMLButtonElement> & {\n variant?: 'primary' | 'secondary' | 'outline' | 'ghost' | 'destructive' | 'link';\n size?: 'sm' | 'md' | 'lg';\n }\n> = ({ children, variant = 'primary', size = 'md', className, ...props }) => {\n const variants = {\n primary: 'bg-action-primary-bg text-action-primary-text hover:bg-action-primary-bg/90',\n secondary: 'bg-secondary text-secondary-foreground hover:bg-secondary/80',\n outline: 'border border-border-subtle bg-transparent hover:bg-accent hover:text-text-primary',\n ghost: 'hover:bg-accent hover:text-text-primary',\n destructive: 'bg-status-error-bg text-status-error-text hover:bg-status-error-bg/90',\n link: 'text-primary underline-offset-4 hover:underline h-auto p-0',\n };\n\n const sizes = {\n sm: 'h-8 px-3 text-xs',\n md: 'h-9 px-4 text-sm',\n lg: 'h-10 px-6 text-sm',\n };\n\n return (\n <button\n type=\"button\"\n className={cn(\n 'inline-flex items-center justify-center gap-2 rounded-md font-medium transition-colors',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:pointer-events-none disabled:opacity-50',\n variants[variant],\n variant !== 'link' && sizes[size],\n className\n )}\n {...props}\n >\n {children}\n </button>\n );\n};\n\n/**\n * Input component\n */\nexport const Input: FC<InputHTMLAttributes<HTMLInputElement> & { label?: string }> = ({\n label,\n className,\n id,\n ...props\n}) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <input\n id={id}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'placeholder:text-text-secondary',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n {...props}\n />\n </div>\n );\n};\n\n/**\n * Card component\n */\nexport const Card: FC<HTMLAttributes<HTMLDivElement> & { onClick?: () => void }> = ({\n children,\n className,\n onClick,\n ...props\n}) => {\n if (onClick) {\n return (\n <button\n type=\"button\"\n className={cn(\n 'block w-full text-left rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-[var(--shadow-pop)]',\n // No-movement policy (Boff UI 2.0): hover only intensifies shadow/border\n // (a calm highlight). Never translate or scale the card.\n 'cursor-pointer transition-[box-shadow,border-color] duration-200 hover:shadow-[var(--shadow-pop-hover)] hover:border-border-strong',\n className\n )}\n onClick={onClick}\n {...(props as HTMLAttributes<HTMLButtonElement>)}\n >\n {children}\n </button>\n );\n }\n\n return (\n <div\n className={cn(\n 'rounded-card border border-border-seam bg-bg-surface text-text-primary shadow-elevation-1',\n className\n )}\n {...props}\n >\n {children}\n </div>\n );\n};\n\n/**\n * Empty state component\n */\nexport const EmptyState: FC<{\n icon?: ReactNode;\n title: string;\n description?: string;\n action?: ReactNode;\n className?: string;\n}> = ({ icon, title, description, action, className }) => {\n return (\n <div className={className}>\n <CanonicalEmptyState icon={icon} title={title} description={description} action={action} />\n </div>\n );\n};\n\n/**\n * Select component\n */\nexport const Select: FC<{\n label?: string;\n value: string;\n onChange: (value: string) => void;\n options: Array<{ value: string; label: string }>;\n className?: string;\n disabled?: boolean;\n id?: string;\n}> = ({ label, value, onChange, options, className, disabled, id }) => {\n return (\n <div className=\"space-y-1.5\">\n {label && (\n <label htmlFor={id} className=\"text-sm font-medium text-text-primary\">\n {label}\n </label>\n )}\n <select\n id={id}\n value={value}\n onChange={(e) => onChange(e.target.value)}\n disabled={disabled}\n className={cn(\n 'flex h-9 w-full rounded-md border border-border-subtle bg-bg-surface px-3 py-1 text-sm',\n 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)]',\n 'disabled:cursor-not-allowed disabled:opacity-50',\n className\n )}\n >\n {options.map((opt) => (\n <option key={opt.value} value={opt.value}>\n {opt.label}\n </option>\n ))}\n </select>\n </div>\n );\n};\n"],"mappings":";;;;AAaA,IAAa,KAIP,EAAE,aAAU,aAAU,WAAW,mBAUnC,kBAAC,QAAD;CACE,WAAW,EACT,iFAXW;EACf,SAAS;EACT,SAAS;EACT,SAAS;EACT,aAAa;EACb,SAAS;EACV,CAMc,IACT,EACD;CAEA;CACI,CAAA,EAOE,KAKR,EAAE,aAAU,aAAU,WAAW,UAAO,MAAM,cAAW,GAAG,QAiB7D,kBAAC,UAAD;CACE,MAAK;CACL,WAAW,EACT,0FACA,gGACA,oDArBW;EACf,SAAS;EACT,WAAW;EACX,SAAS;EACT,OAAO;EACP,aAAa;EACb,MAAM;EACP,CAec,IACT,MAAY,UAdJ;EACZ,IAAI;EACJ,IAAI;EACJ,IAAI;EACL,CAUiC,IAC5B,EACD;CACD,GAAI;CAEH;CACM,CAAA,EAOA,KAAyE,EACpF,UACA,cACA,OACA,GAAG,QAGD,kBAAC,OAAD;CAAK,WAAU;WAAf,CACG,KACC,kBAAC,SAAD;EAAO,SAAS;EAAI,WAAU;YAC3B;EACK,CAAA,EAEV,kBAAC,SAAD;EACM;EACJ,WAAW,EACT,0FACA,mCACA,gGACA,mDACA,EACD;EACD,GAAI;EACJ,CAAA,CACE;IAOG,KAAuE,EAClF,aACA,cACA,YACA,GAAG,QAEC,IAEA,kBAAC,UAAD;CACE,MAAK;CACL,WAAW,EACT,4HAGA,sIACA,EACD;CACQ;CACT,GAAK;CAEJ;CACM,CAAA,GAKX,kBAAC,OAAD;CACE,WAAW,EACT,6FACA,EACD;CACD,GAAI;CAEH;CACG,CAAA,EAOG,KAMP,EAAE,SAAM,UAAO,gBAAa,WAAQ,mBAEtC,kBAAC,OAAD;CAAgB;WACd,kBAAC,GAAD;EAA2B;EAAa;EAAoB;EAAqB;EAAU,CAAA;CACvF,CAAA,EAOG,KAQP,EAAE,UAAO,UAAO,aAAU,YAAS,cAAW,aAAU,YAE1D,kBAAC,OAAD;CAAK,WAAU;WAAf,CACG,KACC,kBAAC,SAAD;EAAO,SAAS;EAAI,WAAU;YAC3B;EACK,CAAA,EAEV,kBAAC,UAAD;EACM;EACG;EACP,WAAW,MAAM,EAAS,EAAE,OAAO,MAAM;EAC/B;EACV,WAAW,EACT,0FACA,gGACA,mDACA,EACD;YAEA,EAAQ,KAAK,MACZ,kBAAC,UAAD;GAAwB,OAAO,EAAI;aAChC,EAAI;GACE,EAFI,EAAI,MAER,CACT;EACK,CAAA,CACL"}
@@ -3,225 +3,220 @@ import { cn as t } from "../utils/cn.js";
3
3
  import { PageLayout as n } from "../components/PageLayout.js";
4
4
  import { Badge as r, Button as i, Card as a } from "../components/ui.js";
5
5
  import { ConfirmDialog as o } from "../components/ConfirmDialog.js";
6
- import { useDeleteIntegration as s, useTriggerSync as c, useVaultIntegrations as ee, useVaultSyncLogs as l } from "../hooks/useProviderQueries.js";
7
- import { getProviderTypeInfo as u } from "../constants/providers.js";
8
- import { nativeConfirm as d, nativeImpact as f, nativeNotify as p } from "../../utils/nativeBridge.js";
9
- import { useState as m } from "react";
10
- import { useNavigate as h, useParams as g } from "react-router-dom";
11
- import { jsx as _, jsxs as v } from "react/jsx-runtime";
12
- import { AlertTriangle as y, ArrowLeft as b, CheckCircle as x, Clock as S, Cloud as C, Info as w, Loader2 as T, RefreshCw as E, Trash2 as D, XCircle as O } from "lucide-react";
13
- import { ResponsiveTable as k } from "@burdenoff/fe-libs/ui";
6
+ import { useDeleteIntegration as s, useTriggerSync as c, useVaultIntegrations as l, useVaultSyncLogs as u } from "../hooks/useProviderQueries.js";
7
+ import { getProviderTypeInfo as d } from "../constants/providers.js";
8
+ import { nativeConfirm as f, nativeImpact as p, nativeNotify as m } from "../../utils/nativeBridge.js";
9
+ import { useState as h } from "react";
10
+ import { useNavigate as g, useParams as _ } from "react-router-dom";
11
+ import { jsx as v, jsxs as y } from "react/jsx-runtime";
12
+ import { AlertTriangle as b, ArrowLeft as x, CheckCircle as S, Clock as C, Cloud as w, Info as ee, Loader2 as T, RefreshCw as E, Trash2 as D, XCircle as O } from "lucide-react";
13
+ import { CTAOverflowMenu as k, ResponsiveTable as A } from "@burdenoff/fe-libs/ui";
14
14
  //#region src/security/pages/ProviderDetailPage.tsx
15
- function A() {
16
- let { vaultId: A, providerId: j } = g(), { basePath: M = "/", navigate: N } = e(), P = h(), { data: F, loading: I, error: L } = ee(A), R = (F?.getVaultIntegrations?.items ?? []).find((e) => e.id === j), { data: z, loading: B } = l(j), V = z?.getVaultSyncLogs?.items ?? [], [H, { loading: U }] = s(), [W, { loading: G }] = c(), [K, q] = m(!1), J = (e) => {
17
- N ? N(e) : P(e);
18
- }, Y = () => J(`${M}/providers`), X = async () => {
19
- if (j) try {
20
- await W({ variables: { integrationId: j } });
15
+ function j() {
16
+ let { vaultId: j, providerId: M } = _(), { basePath: N = "/", navigate: P } = e(), F = g(), { data: I, loading: L, error: R } = l(j), z = (I?.getVaultIntegrations?.items ?? []).find((e) => e.id === M), { data: B, loading: V } = u(M), H = B?.getVaultSyncLogs?.items ?? [], [U, { loading: W }] = s(), [G, { loading: K }] = c(), [q, J] = h(!1), Y = (e) => {
17
+ P ? P(e) : F(e);
18
+ }, X = () => Y(`${N}/providers`), Z = async () => {
19
+ if (M) try {
20
+ await G({ variables: { integrationId: M } });
21
21
  } catch (e) {
22
22
  console.error("Sync failed:", e);
23
23
  }
24
- }, Z = async () => {
25
- if (j) try {
26
- await H({ variables: { id: j } }), p("success"), Y();
24
+ }, Q = async () => {
25
+ if (M) try {
26
+ await U({ variables: { id: M } }), m("success"), X();
27
27
  } catch (e) {
28
- console.error("Delete failed:", e), p("error");
28
+ console.error("Delete failed:", e), m("error");
29
29
  }
30
- }, Q = async () => {
31
- f("medium");
32
- let e = await d({
30
+ }, te = async () => {
31
+ p("medium");
32
+ let e = await f({
33
33
  title: "Delete Provider",
34
34
  message: "Delete this provider? This cannot be undone.",
35
35
  okButtonTitle: "Delete",
36
36
  cancelButtonTitle: "Cancel"
37
37
  });
38
38
  if (e === null) {
39
- q(!0);
39
+ J(!0);
40
40
  return;
41
41
  }
42
- e && await Z();
42
+ e && await Q();
43
43
  };
44
- if (I && !R) return /* @__PURE__ */ _(n, {
44
+ if (L && !z) return /* @__PURE__ */ v(n, {
45
45
  title: "Loading...",
46
46
  breadcrumbs: [{
47
47
  label: "Security",
48
- path: M
48
+ path: N
49
49
  }, {
50
50
  label: "Providers",
51
- path: `${M}/providers`
51
+ path: `${N}/providers`
52
52
  }],
53
- children: /* @__PURE__ */ _("div", {
53
+ children: /* @__PURE__ */ v("div", {
54
54
  className: "flex items-center justify-center py-16",
55
- children: /* @__PURE__ */ _(T, { className: "size-8 animate-spin text-primary" })
55
+ children: /* @__PURE__ */ v(T, { className: "size-8 animate-spin text-primary" })
56
56
  })
57
57
  });
58
- if (L || !I && !R) return /* @__PURE__ */ _(n, {
58
+ if (R || !L && !z) return /* @__PURE__ */ v(n, {
59
59
  title: "Error",
60
60
  breadcrumbs: [{
61
61
  label: "Security",
62
- path: M
62
+ path: N
63
63
  }, {
64
64
  label: "Providers",
65
- path: `${M}/providers`
65
+ path: `${N}/providers`
66
66
  }],
67
- children: /* @__PURE__ */ _(a, {
67
+ children: /* @__PURE__ */ v(a, {
68
68
  className: "p-6",
69
- children: /* @__PURE__ */ v("div", {
69
+ children: /* @__PURE__ */ y("div", {
70
70
  className: "flex items-start gap-4",
71
- children: [/* @__PURE__ */ _(y, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ v("div", { children: [
72
- /* @__PURE__ */ _("h3", {
71
+ children: [/* @__PURE__ */ v(b, { className: "size-6 text-status-error-text" }), /* @__PURE__ */ y("div", { children: [
72
+ /* @__PURE__ */ v("h3", {
73
73
  className: "font-semibold text-status-error-text",
74
74
  children: "Provider not found"
75
75
  }),
76
- /* @__PURE__ */ _("p", {
76
+ /* @__PURE__ */ v("p", {
77
77
  className: "text-sm text-text-secondary mt-1",
78
- children: L?.message ?? "The requested provider could not be found."
78
+ children: R?.message ?? "The requested provider could not be found."
79
79
  }),
80
- /* @__PURE__ */ v(i, {
80
+ /* @__PURE__ */ y(i, {
81
81
  variant: "outline",
82
82
  size: "sm",
83
83
  className: "mt-4",
84
- onClick: Y,
85
- children: [/* @__PURE__ */ _(b, { className: "size-4" }), "Back to Providers"]
84
+ onClick: X,
85
+ children: [/* @__PURE__ */ v(x, { className: "size-4" }), "Back to Providers"]
86
86
  })
87
87
  ] })]
88
88
  })
89
89
  })
90
90
  });
91
- let $ = u(R.providerType);
92
- return /* @__PURE__ */ v(n, {
93
- title: R.displayName || $.label,
91
+ let $ = d(z.providerType);
92
+ return /* @__PURE__ */ y(n, {
93
+ title: z.displayName || $.label,
94
94
  description: $.description,
95
95
  breadcrumbs: [
96
96
  {
97
97
  label: "Security",
98
- path: M
98
+ path: N
99
99
  },
100
100
  {
101
101
  label: "Providers",
102
- path: `${M}/providers`
102
+ path: `${N}/providers`
103
103
  },
104
- { label: R.displayName || $.label }
104
+ { label: z.displayName || $.label }
105
105
  ],
106
- actions: /* @__PURE__ */ v("div", {
106
+ actions: /* @__PURE__ */ y("div", {
107
107
  className: "flex items-center gap-2",
108
- children: [
109
- /* @__PURE__ */ v(i, {
110
- variant: "outline",
111
- size: "sm",
112
- onClick: Y,
113
- children: [/* @__PURE__ */ _(b, { className: "size-4" }), /* @__PURE__ */ _("span", {
114
- className: "hidden sm:inline",
115
- children: "Back"
116
- })]
117
- }),
118
- /* @__PURE__ */ v(i, {
119
- variant: "outline",
120
- size: "sm",
121
- onClick: X,
122
- disabled: G,
123
- children: [/* @__PURE__ */ _(E, { className: t("size-4", G && "animate-spin") }), G ? "Syncing..." : "Sync Now"]
124
- }),
125
- /* @__PURE__ */ v(i, {
126
- variant: "destructive",
127
- size: "sm",
128
- onClick: () => void Q(),
129
- disabled: U,
130
- children: [/* @__PURE__ */ _(D, { className: "size-4" }), /* @__PURE__ */ _("span", {
131
- className: "hidden sm:inline",
132
- children: "Remove"
133
- })]
134
- })
135
- ]
108
+ children: [/* @__PURE__ */ y(i, {
109
+ variant: "outline",
110
+ size: "sm",
111
+ onClick: X,
112
+ children: [/* @__PURE__ */ v(x, { className: "size-4" }), /* @__PURE__ */ v("span", {
113
+ className: "hidden sm:inline",
114
+ children: "Back"
115
+ })]
116
+ }), /* @__PURE__ */ v(k, {
117
+ primary: {
118
+ label: K ? "Syncing..." : "Sync Now",
119
+ icon: /* @__PURE__ */ v(E, { className: t("size-4", K && "animate-spin") }),
120
+ disabled: K,
121
+ onSelect: () => void Z()
122
+ },
123
+ actions: [{
124
+ label: "Remove",
125
+ icon: /* @__PURE__ */ v(D, { className: "size-4" }),
126
+ intent: "destructive",
127
+ disabled: W,
128
+ onSelect: () => void te()
129
+ }]
130
+ })]
136
131
  }),
137
- children: [/* @__PURE__ */ v("div", {
132
+ children: [/* @__PURE__ */ y("div", {
138
133
  className: "space-y-6",
139
- children: [/* @__PURE__ */ v(a, {
134
+ children: [/* @__PURE__ */ y(a, {
140
135
  className: "p-6",
141
- children: [/* @__PURE__ */ v("div", {
136
+ children: [/* @__PURE__ */ y("div", {
142
137
  className: "flex items-center gap-2 mb-6",
143
- children: [/* @__PURE__ */ _("div", {
138
+ children: [/* @__PURE__ */ v("div", {
144
139
  className: "p-2 rounded-lg bg-action-primary-bg/10 text-primary",
145
- children: /* @__PURE__ */ _(C, { className: "size-5" })
146
- }), /* @__PURE__ */ _("h2", {
140
+ children: /* @__PURE__ */ v(w, { className: "size-5" })
141
+ }), /* @__PURE__ */ v("h2", {
147
142
  className: "text-lg font-bold text-text-primary",
148
143
  children: "Integration Settings"
149
144
  })]
150
- }), /* @__PURE__ */ v("div", {
145
+ }), /* @__PURE__ */ y("div", {
151
146
  className: "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6 text-sm",
152
147
  children: [
153
- /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
148
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
154
149
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
155
150
  children: "Provider Type"
156
- }), /* @__PURE__ */ _("p", {
151
+ }), /* @__PURE__ */ v("p", {
157
152
  className: "font-semibold text-text-primary",
158
153
  children: $.label
159
154
  })] }),
160
- /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
155
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
161
156
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
162
157
  children: "Sync Direction"
163
- }), /* @__PURE__ */ _("p", {
158
+ }), /* @__PURE__ */ v("p", {
164
159
  className: "font-semibold text-text-primary capitalize",
165
- children: R.syncDirection ?? "bidirectional"
160
+ children: z.syncDirection ?? "bidirectional"
166
161
  })] }),
167
- /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
162
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
168
163
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
169
164
  children: "Status"
170
- }), /* @__PURE__ */ _(r, {
171
- variant: R.syncEnabled ? "success" : "outline",
172
- children: R.syncEnabled ? "Enabled" : "Disabled"
165
+ }), /* @__PURE__ */ v(r, {
166
+ variant: z.syncEnabled ? "success" : "outline",
167
+ children: z.syncEnabled ? "Enabled" : "Disabled"
173
168
  })] }),
174
- /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
169
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
175
170
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
176
171
  children: "Sync Interval"
177
- }), /* @__PURE__ */ v("p", {
172
+ }), /* @__PURE__ */ y("p", {
178
173
  className: "font-semibold text-text-primary",
179
- children: [R.syncIntervalMinutes ?? 0, " minutes"]
174
+ children: [z.syncIntervalMinutes ?? 0, " minutes"]
180
175
  })] }),
181
- /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
176
+ /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
182
177
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
183
178
  children: "Added On"
184
- }), /* @__PURE__ */ _("p", {
179
+ }), /* @__PURE__ */ v("p", {
185
180
  className: "font-semibold text-text-primary",
186
- children: new Date(R.createdAt).toLocaleDateString()
181
+ children: new Date(z.createdAt).toLocaleDateString()
187
182
  })] }),
188
- R.lastSyncAt && /* @__PURE__ */ v("div", { children: [/* @__PURE__ */ _("p", {
183
+ z.lastSyncAt && /* @__PURE__ */ y("div", { children: [/* @__PURE__ */ v("p", {
189
184
  className: "text-xs font-medium text-text-secondary uppercase tracking-wider mb-1",
190
185
  children: "Last Successful Sync"
191
- }), /* @__PURE__ */ v("div", {
186
+ }), /* @__PURE__ */ y("div", {
192
187
  className: "flex items-center gap-1.5 font-semibold text-text-primary",
193
- children: [/* @__PURE__ */ _(x, { className: "size-3.5 text-status-success-text" }), new Date(R.lastSyncAt).toLocaleString()]
188
+ children: [/* @__PURE__ */ v(S, { className: "size-3.5 text-status-success-text" }), new Date(z.lastSyncAt).toLocaleString()]
194
189
  })] })
195
190
  ]
196
191
  })]
197
- }), /* @__PURE__ */ v(a, {
192
+ }), /* @__PURE__ */ y(a, {
198
193
  className: "p-6 shadow-sm border-border-subtle/60",
199
- children: [/* @__PURE__ */ v("div", {
194
+ children: [/* @__PURE__ */ y("div", {
200
195
  className: "flex items-center justify-between mb-6",
201
- children: [/* @__PURE__ */ v("div", {
196
+ children: [/* @__PURE__ */ y("div", {
202
197
  className: "flex items-center gap-2",
203
- children: [/* @__PURE__ */ _(S, { className: "size-5 text-primary" }), /* @__PURE__ */ _("h2", {
198
+ children: [/* @__PURE__ */ v(C, { className: "size-5 text-primary" }), /* @__PURE__ */ v("h2", {
204
199
  className: "text-lg font-bold text-text-primary",
205
200
  children: "Sync History"
206
201
  })]
207
- }), /* @__PURE__ */ v(r, {
202
+ }), /* @__PURE__ */ y(r, {
208
203
  variant: "outline",
209
204
  className: "bg-bg-sunken",
210
- children: [V.length, " runs"]
205
+ children: [H.length, " runs"]
211
206
  })]
212
- }), B ? /* @__PURE__ */ _("div", {
207
+ }), V ? /* @__PURE__ */ v("div", {
213
208
  className: "flex justify-center py-12",
214
- children: /* @__PURE__ */ _(T, { className: "size-8 animate-spin text-primary/40" })
215
- }) : V.length > 0 ? /* @__PURE__ */ _(k, {
209
+ children: /* @__PURE__ */ v(T, { className: "size-8 animate-spin text-primary/40" })
210
+ }) : H.length > 0 ? /* @__PURE__ */ v(A, {
216
211
  className: "border border-border-subtle/60 rounded-lg",
217
- data: V,
212
+ data: H,
218
213
  rowKey: (e) => e.id,
219
214
  columns: [
220
215
  {
221
216
  key: "time",
222
217
  header: "Time",
223
218
  priority: "primary",
224
- cell: (e) => /* @__PURE__ */ _("span", {
219
+ cell: (e) => /* @__PURE__ */ v("span", {
225
220
  className: "whitespace-nowrap",
226
221
  children: new Date(e.startedAt).toLocaleString()
227
222
  })
@@ -229,7 +224,7 @@ function A() {
229
224
  {
230
225
  key: "status",
231
226
  header: "Status",
232
- cell: (e) => /* @__PURE__ */ _(r, {
227
+ cell: (e) => /* @__PURE__ */ v(r, {
233
228
  variant: e.status === "COMPLETED" ? "success" : e.status === "FAILED" ? "destructive" : "warning",
234
229
  className: "text-[10px] uppercase",
235
230
  children: e.status
@@ -238,7 +233,7 @@ function A() {
238
233
  {
239
234
  key: "synced",
240
235
  header: "Synced",
241
- cell: (e) => /* @__PURE__ */ _("span", {
236
+ cell: (e) => /* @__PURE__ */ v("span", {
242
237
  className: "font-medium text-text-primary tabular-nums",
243
238
  children: e.secretsSynced
244
239
  })
@@ -246,7 +241,7 @@ function A() {
246
241
  {
247
242
  key: "duration",
248
243
  header: "Duration",
249
- cell: (e) => /* @__PURE__ */ _("span", {
244
+ cell: (e) => /* @__PURE__ */ v("span", {
250
245
  className: "text-text-secondary tabular-nums",
251
246
  children: e.durationMs ? `${e.durationMs}ms` : "-"
252
247
  })
@@ -254,46 +249,46 @@ function A() {
254
249
  {
255
250
  key: "errors",
256
251
  header: "Errors",
257
- cell: (e) => e.errorMessage ? /* @__PURE__ */ v("div", {
252
+ cell: (e) => e.errorMessage ? /* @__PURE__ */ y("div", {
258
253
  className: "flex items-center gap-1.5 text-status-error-text max-w-xs truncate",
259
- children: [/* @__PURE__ */ _(O, { className: "size-3.5" }), /* @__PURE__ */ _("span", {
254
+ children: [/* @__PURE__ */ v(O, { className: "size-3.5" }), /* @__PURE__ */ v("span", {
260
255
  className: "truncate",
261
256
  title: e.errorMessage,
262
257
  children: e.errorMessage
263
258
  })]
264
- }) : /* @__PURE__ */ _("span", {
259
+ }) : /* @__PURE__ */ v("span", {
265
260
  className: "text-text-secondary",
266
261
  children: "-"
267
262
  })
268
263
  }
269
264
  ]
270
- }) : /* @__PURE__ */ v("div", {
265
+ }) : /* @__PURE__ */ y("div", {
271
266
  className: "text-center py-12 border-2 border-dashed border-border-subtle/40 rounded-xl bg-bg-sunken/10",
272
267
  children: [
273
- /* @__PURE__ */ _(w, { className: "size-12 text-text-secondary/30 mx-auto mb-3" }),
274
- /* @__PURE__ */ _("p", {
268
+ /* @__PURE__ */ v(ee, { className: "size-12 text-text-secondary/30 mx-auto mb-3" }),
269
+ /* @__PURE__ */ v("p", {
275
270
  className: "text-sm text-text-secondary font-medium",
276
271
  children: "No sync logs found."
277
272
  }),
278
- /* @__PURE__ */ _("p", {
273
+ /* @__PURE__ */ v("p", {
279
274
  className: "text-xs text-text-secondary mt-1",
280
275
  children: "Sync history will appear here after the first synchronization run."
281
276
  })
282
277
  ]
283
278
  })]
284
279
  })]
285
- }), /* @__PURE__ */ _(o, {
286
- isOpen: K,
287
- onClose: () => q(!1),
288
- onConfirm: Z,
280
+ }), /* @__PURE__ */ v(o, {
281
+ isOpen: q,
282
+ onClose: () => J(!1),
283
+ onConfirm: Q,
289
284
  title: "Remove Provider",
290
285
  description: `Are you sure you want to remove this ${$.label} connection? Synced secrets will remain but will no longer auto-update.`,
291
- confirmLabel: U ? "Removing..." : "Remove Provider",
286
+ confirmLabel: W ? "Removing..." : "Remove Provider",
292
287
  variant: "destructive"
293
288
  })]
294
289
  });
295
290
  }
296
291
  //#endregion
297
- export { A as ProviderDetailPage };
292
+ export { j as ProviderDetailPage };
298
293
 
299
294
  //# sourceMappingURL=ProviderDetailPage.js.map