@ai-matrx/records-ui 0.101.8 → 0.101.10

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.js CHANGED
@@ -33196,9 +33196,9 @@ function ActionInbox({
33196
33196
  onKeyDown,
33197
33197
  "aria-label": "Inbox",
33198
33198
  children: [
33199
- /* @__PURE__ */ jsxs98("div", { className: "flex items-center gap-2", children: [
33199
+ /* @__PURE__ */ jsxs98("div", { className: "flex flex-wrap items-center gap-x-2 gap-y-1", children: [
33200
33200
  /* @__PURE__ */ jsx107("h3", { className: "sr-only", children: "Inbox" }),
33201
- /* @__PURE__ */ jsx107("div", { role: "tablist", "aria-label": "Inbox views", className: "flex items-center gap-0.5", children: INBOX_VIEWS.map((v) => {
33201
+ /* @__PURE__ */ jsx107("div", { role: "tablist", "aria-label": "Inbox views", className: "flex shrink-0 items-center gap-0.5", children: INBOX_VIEWS.map((v) => {
33202
33202
  const n = counts === null ? v === view ? shown3.length : null : v === "inbox" ? counts.waiting : v === "snoozed" ? counts.snoozed : counts.cleared;
33203
33203
  return /* @__PURE__ */ jsxs98(
33204
33204
  "button",
@@ -33213,7 +33213,7 @@ function ActionInbox({
33213
33213
  setSnoozing(null);
33214
33214
  },
33215
33215
  className: cn57(
33216
- "flex items-baseline gap-1 rounded px-1.5 py-0.5 text-xs",
33216
+ "flex items-baseline gap-1 whitespace-nowrap rounded px-1.5 py-0.5 text-xs",
33217
33217
  view === v ? "bg-accent font-medium text-foreground" : "text-muted-foreground"
33218
33218
  ),
33219
33219
  children: [
@@ -33230,7 +33230,7 @@ function ActionInbox({
33230
33230
  {
33231
33231
  role: "group",
33232
33232
  "aria-label": "Group by",
33233
- className: "ml-auto flex items-center rounded-md border border-border p-0.5 lg:ml-0",
33233
+ className: "ml-auto flex shrink-0 items-center rounded-md border border-border p-0.5 lg:ml-0",
33234
33234
  children: INBOX_GROUPINGS.map((g) => /* @__PURE__ */ jsx107(
33235
33235
  "button",
33236
33236
  {
@@ -33238,7 +33238,7 @@ function ActionInbox({
33238
33238
  "aria-pressed": groupBy === g,
33239
33239
  onClick: () => setGroupBy(g),
33240
33240
  className: cn57(
33241
- "rounded px-1.5 py-0.5 text-[11px]",
33241
+ "whitespace-nowrap rounded px-1.5 py-0.5 text-[11px]",
33242
33242
  groupBy === g ? "bg-accent font-medium text-foreground" : "text-muted-foreground"
33243
33243
  ),
33244
33244
  children: GROUPING_WORD[g]
@@ -33247,8 +33247,26 @@ function ActionInbox({
33247
33247
  ))
33248
33248
  }
33249
33249
  ),
33250
- view === "inbox" ? /* @__PURE__ */ jsx107(Button72, { size: "sm", variant: "ghost", className: "h-7 px-2 text-xs", onClick: () => setShowDecided((s) => !s), children: showDecided ? "Hide decided" : "Show decided" }) : null,
33251
- /* @__PURE__ */ jsx107(Button72, { size: "sm", variant: "ghost", className: "h-7 px-2 text-xs", onClick: () => void load(), children: "Refresh" })
33250
+ view === "inbox" ? /* @__PURE__ */ jsx107(
33251
+ Button72,
33252
+ {
33253
+ size: "sm",
33254
+ variant: "ghost",
33255
+ className: "h-7 shrink-0 whitespace-nowrap px-2 text-xs",
33256
+ onClick: () => setShowDecided((s) => !s),
33257
+ children: showDecided ? "Hide decided" : "Show decided"
33258
+ }
33259
+ ) : null,
33260
+ /* @__PURE__ */ jsx107(
33261
+ Button72,
33262
+ {
33263
+ size: "sm",
33264
+ variant: "ghost",
33265
+ className: "h-7 shrink-0 whitespace-nowrap px-2 text-xs",
33266
+ onClick: () => void load(),
33267
+ children: "Refresh"
33268
+ }
33269
+ )
33252
33270
  ] }),
33253
33271
  error ? /* @__PURE__ */ jsx107(RefusalNotice, { error }) : null,
33254
33272
  selected.size > 0 ? /* @__PURE__ */ jsxs98(
@@ -36805,7 +36823,7 @@ function FormStage({
36805
36823
  }
36806
36824
  const unresolved = questions.filter((q) => !q.field);
36807
36825
  const unanswerable = !whichAsked && questions.some((q) => q.showIf);
36808
- const signedInPublic = connected && form.isPublic === true;
36826
+ const signedInPublic = connected && form.isPublic === true && !preview;
36809
36827
  return /* @__PURE__ */ jsxs111(
36810
36828
  "section",
36811
36829
  {
@@ -46072,7 +46090,7 @@ function PreviewForms({ preview, booking }) {
46072
46090
  /* @__PURE__ */ jsx152("h2", { className: "text-lg font-semibold tracking-tight", children: "Forms and booking" }),
46073
46091
  /* @__PURE__ */ jsx152("div", { className: "grid min-w-0 gap-4 md:grid-cols-2", children: (forms ?? []).map((f) => /* @__PURE__ */ jsxs142("div", { className: "min-w-0 rounded-xl border border-border bg-card p-4", "data-template-preview-form": f.slug ?? f.id, children: [
46074
46092
  /* @__PURE__ */ jsx152("h3", { className: "mb-3 text-sm font-semibold", children: f.name }),
46075
- /* @__PURE__ */ jsx152(FormRunner, { form: f })
46093
+ /* @__PURE__ */ jsx152(FormRunner, { form: f, preview: true })
46076
46094
  ] }, f.id)) }),
46077
46095
  booking ? pages.map((p) => /* @__PURE__ */ jsxs142("div", { className: "min-w-0 rounded-xl border border-border bg-card p-4", "data-template-preview-booking": p.id, children: [
46078
46096
  /* @__PURE__ */ jsx152("h3", { className: "mb-3 text-sm font-semibold", children: String(p.page["title"] ?? "") }),