pxengine 0.1.91 → 0.1.92

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.
package/dist/index.d.cts CHANGED
@@ -3202,6 +3202,8 @@ interface PresentationJobCardProps {
3202
3202
  */
3203
3203
  shareUrl?: string;
3204
3204
  className?: string;
3205
+ /** Organization brand theme — when provided, the card adopts its colors. */
3206
+ theme?: WidgetTheme;
3205
3207
  onAction?: (action: string, payload?: any) => void;
3206
3208
  sendMessage?: (message: string) => void;
3207
3209
  /**
package/dist/index.d.ts CHANGED
@@ -3202,6 +3202,8 @@ interface PresentationJobCardProps {
3202
3202
  */
3203
3203
  shareUrl?: string;
3204
3204
  className?: string;
3205
+ /** Organization brand theme — when provided, the card adopts its colors. */
3206
+ theme?: WidgetTheme;
3205
3207
  onAction?: (action: string, payload?: any) => void;
3206
3208
  sendMessage?: (message: string) => void;
3207
3209
  /**
package/dist/index.mjs CHANGED
@@ -38925,9 +38925,12 @@ var PresentationJobCard = ({
38925
38925
  authToken,
38926
38926
  shareUrl,
38927
38927
  className,
38928
+ theme,
38928
38929
  onComplete,
38929
38930
  onFailed
38930
38931
  }) => {
38932
+ const t = th(theme);
38933
+ const accentGradient = theme?.gradient;
38931
38934
  const [status, setStatus] = useState10(initialStatus);
38932
38935
  const [title, setTitle] = useState10(initialTitle);
38933
38936
  const [slideCount, setSlideCount] = useState10(initialSlideCount ?? 0);
@@ -39091,22 +39094,30 @@ var PresentationJobCard = ({
39091
39094
  }
39092
39095
  };
39093
39096
  return /* @__PURE__ */ jsxs108("div", { className: cn("w-full", className), children: [
39094
- /* @__PURE__ */ jsxs108("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
39097
+ /* @__PURE__ */ jsxs108("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", style: t.root, children: [
39095
39098
  /* @__PURE__ */ jsx147(
39096
39099
  "div",
39097
39100
  {
39098
39101
  className: "h-[3px] bg-gradient-to-r from-indigo-500 via-purple-500 to-indigo-500 bg-[length:200%_100%] animate-[gradient-shift_2s_ease-in-out_infinite]",
39099
39102
  style: {
39100
39103
  backgroundSize: "200% 100%",
39101
- animation: "gradient-shift 2s ease-in-out infinite"
39104
+ animation: "gradient-shift 2s ease-in-out infinite",
39105
+ ...accentGradient ? { backgroundImage: accentGradient } : {}
39102
39106
  }
39103
39107
  }
39104
39108
  ),
39105
39109
  /* @__PURE__ */ jsxs108("div", { className: "p-5", children: [
39106
39110
  /* @__PURE__ */ jsxs108("div", { className: "flex items-start gap-3", children: [
39107
- /* @__PURE__ */ jsx147("div", { className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0", children: /* @__PURE__ */ jsx147("span", { className: "text-lg", children: getPhaseIcon() }) }),
39111
+ /* @__PURE__ */ jsx147(
39112
+ "div",
39113
+ {
39114
+ className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0",
39115
+ style: { ...t.accentSubtle(0.1), ...t.accentBorder },
39116
+ children: /* @__PURE__ */ jsx147("span", { className: "text-lg", children: getPhaseIcon() })
39117
+ }
39118
+ ),
39108
39119
  /* @__PURE__ */ jsxs108("div", { className: "flex-1 min-w-0", children: [
39109
- /* @__PURE__ */ jsx147("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", children: title || "Creating Presentation" }),
39120
+ /* @__PURE__ */ jsx147("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", style: t.text, children: title || "Creating Presentation" }),
39110
39121
  /* @__PURE__ */ jsxs108("p", { className: "text-xs text-zinc-500 mt-0.5", children: [
39111
39122
  slidesTotal > 0 ? `${slidesTotal} slides` : "Presentation",
39112
39123
  " \xB7 In progress"
@@ -39119,7 +39130,10 @@ var PresentationJobCard = ({
39119
39130
  "div",
39120
39131
  {
39121
39132
  className: "h-full bg-gradient-to-r from-indigo-500 to-purple-500 rounded-full transition-all duration-500 ease-out",
39122
- style: { width: `${Math.max(pct, 2)}%` }
39133
+ style: {
39134
+ width: `${Math.max(pct, 2)}%`,
39135
+ ...accentGradient ? { backgroundImage: accentGradient } : t.accentBg
39136
+ }
39123
39137
  }
39124
39138
  ) }),
39125
39139
  /* @__PURE__ */ jsxs108("span", { className: "absolute right-0 -top-5 text-xs text-zinc-500 font-medium tabular-nums", children: [
@@ -39128,7 +39142,7 @@ var PresentationJobCard = ({
39128
39142
  ] })
39129
39143
  ] }),
39130
39144
  /* @__PURE__ */ jsxs108("div", { className: "flex items-center gap-2", children: [
39131
- /* @__PURE__ */ jsx147("div", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-pulse" }),
39145
+ /* @__PURE__ */ jsx147("div", { className: "w-2 h-2 rounded-full bg-indigo-500 animate-pulse", style: t.accentBg }),
39132
39146
  /* @__PURE__ */ jsx147("span", { className: "text-xs text-zinc-400", children: step })
39133
39147
  ] }),
39134
39148
  phase === "ai_generation" && slidesTotal > 0 && /* @__PURE__ */ jsxs108("div", { className: "flex items-center gap-2 pt-1", children: [
@@ -39172,14 +39186,21 @@ var PresentationJobCard = ({
39172
39186
  const total = slideCount || 1;
39173
39187
  const hasHtml = Boolean(formats.html_url);
39174
39188
  return /* @__PURE__ */ jsxs108(Fragment5, { children: [
39175
- /* @__PURE__ */ jsx147("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsxs108("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", children: [
39176
- /* @__PURE__ */ jsx147("div", { className: "h-[3px]", style: { background: "linear-gradient(90deg, #8B7D5E, #C0AE82, #DCC99B)" } }),
39189
+ /* @__PURE__ */ jsx147("div", { className: cn("w-full", className), children: /* @__PURE__ */ jsxs108("div", { className: "bg-zinc-900 border border-zinc-800 rounded-2xl overflow-hidden", style: t.root, children: [
39190
+ /* @__PURE__ */ jsx147("div", { className: "h-[3px]", style: { background: accentGradient || "linear-gradient(90deg, #8B7D5E, #C0AE82, #DCC99B)" } }),
39177
39191
  /* @__PURE__ */ jsxs108("div", { className: "p-5", children: [
39178
39192
  /* @__PURE__ */ jsxs108("div", { className: "flex items-start gap-3", children: [
39179
- /* @__PURE__ */ jsx147("div", { className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0 text-indigo-400", children: /* @__PURE__ */ jsx147(SlidesIcon, {}) }),
39193
+ /* @__PURE__ */ jsx147(
39194
+ "div",
39195
+ {
39196
+ className: "w-10 h-10 rounded-xl bg-indigo-500/10 border border-indigo-500/20 flex items-center justify-center flex-shrink-0 text-indigo-400",
39197
+ style: { ...t.accentSubtle(0.1), ...t.accentBorder, ...t.accent },
39198
+ children: /* @__PURE__ */ jsx147(SlidesIcon, {})
39199
+ }
39200
+ ),
39180
39201
  /* @__PURE__ */ jsxs108("div", { className: "flex-1 min-w-0", children: [
39181
- /* @__PURE__ */ jsx147("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", children: title }),
39182
- /* @__PURE__ */ jsxs108("p", { className: "text-xs text-zinc-500 mt-0.5", children: [
39202
+ /* @__PURE__ */ jsx147("h3", { className: "text-sm font-semibold text-zinc-100 truncate leading-tight", style: t.text, children: title }),
39203
+ /* @__PURE__ */ jsxs108("p", { className: "text-xs text-zinc-500 mt-0.5", style: t.muted, children: [
39183
39204
  slideCount ? `${slideCount} slides` : "Presentation",
39184
39205
  " \xB7 Ready to export"
39185
39206
  ] })
@@ -39217,6 +39238,7 @@ var PresentationJobCard = ({
39217
39238
  {
39218
39239
  onClick: () => setShowExport(true),
39219
39240
  className: "flex items-center gap-1.5 px-2.5 h-7 bg-indigo-600 hover:bg-indigo-500 active:bg-indigo-700 text-white text-xs font-medium rounded-lg transition-colors",
39241
+ style: { ...t.accentBg, ...t.accentText },
39220
39242
  children: [
39221
39243
  /* @__PURE__ */ jsx147(DownloadIcon, {}),
39222
39244
  /* @__PURE__ */ jsx147("span", { children: "Export" })