@homebound/beam 4.12.1 → 4.13.0

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.cjs CHANGED
@@ -15344,10 +15344,11 @@ var import_jsx_runtime62 = require("react/jsx-runtime");
15344
15344
  function AiLoadingPanel(props) {
15345
15345
  const {
15346
15346
  title = "Importing Details...",
15347
- message = defaultMessage,
15348
- omitBg = false
15347
+ omitBg = false,
15348
+ progressText
15349
15349
  } = props;
15350
15350
  const tid = useTestIds(props, "aiLoadingPanel");
15351
+ const message = props.message ?? `${progressText === void 0 ? "This process can take a few minutes. " : ""}Feel free to keep working in another tab. Once imported, you may edit or add to content before saving.`;
15351
15352
  const card = (
15352
15353
  // `status` rather than `alert` so assistive tech waits for a pause instead of interrupting, and
15353
15354
  // `aria-busy` so it knows the surrounding content is still settling.
@@ -15362,12 +15363,31 @@ function AiLoadingPanel(props) {
15362
15363
  "--color": "var(--b-on-surface)"
15363
15364
  }],
15364
15365
  textAlign: "tac"
15365
- }), ...tid.message, children: message })
15366
+ }), ...tid.message, children: message }),
15367
+ progressText !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { ...(0, import_runtime51.trussProps)({
15368
+ width: "w100",
15369
+ display: "df",
15370
+ alignItems: "aic",
15371
+ justifyContent: "jcc",
15372
+ gap: "g_1",
15373
+ marginTop: "mt1",
15374
+ paddingTop: "pt2",
15375
+ borderTopStyle: "bts_solid",
15376
+ borderTopWidth: "btw_1px",
15377
+ borderColor: ["bc_var", {
15378
+ "--borderColor": "var(--b-surface-separator)"
15379
+ }],
15380
+ fontWeight: "fw4",
15381
+ fontSize: "fz_12px",
15382
+ lineHeight: "lh_16px"
15383
+ }), children: [
15384
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Icon, { icon: "time", inc: 2 }),
15385
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("span", { ...tid.progressText, children: progressText })
15386
+ ] })
15366
15387
  ] }) })
15367
15388
  );
15368
15389
  return omitBg ? card : /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(AiPanel, { padding: "lg", ...tid, children: card });
15369
15390
  }
15370
- var defaultMessage = "This process can take a few minutes. Feel free to keep working in another tab. Once imported, you may edit or add to content before saving.";
15371
15391
 
15372
15392
  // src/components/AiSlimBanner.tsx
15373
15393
  var import_jsx_runtime63 = require("react/jsx-runtime");