@burdenoff/microfe-healthybowl 2026.1123.3 → 2026.1124.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.
@@ -62,6 +62,13 @@ interface PageLayoutProps {
62
62
  * backdrop (Boff UI 2.0) for the MFE's primary page; `titleAccent` clips the key
63
63
  * noun into a brand gradient. `PageContainer` supplies the default page padding;
64
64
  * we re-add the inter-section vertical gap so header→content spacing is preserved.
65
+ *
66
+ * ★ The page sits on the CANVAS (`variant="canvas"`), as FluidGrids' pages do
67
+ * (BOFF-15552): the shell paints the canvas and, in the Navigation v2 shell, the
68
+ * depth layer's two-accent glow over the top of the page. The default `surface`
69
+ * variant painted a lighter panel over both, so every page read as a box inside the
70
+ * page, and the glow was hidden behind it. The page's own padding stays: the shell
71
+ * adds no gutters (FluidGrids' rule), so this padding IS the page's edge.
65
72
  */
66
73
  export declare const PageLayout: FC<PageLayoutProps>;
67
74
  export {};
@@ -19,6 +19,7 @@ var d = (e, t) => {
19
19
  actions: D
20
20
  });
21
21
  return /* @__PURE__ */ i(c, {
22
+ variant: "canvas",
22
23
  className: e("space-y-6", T),
23
24
  "data-testid": y,
24
25
  children: [
@@ -44,6 +44,7 @@ var S = () => {
44
44
  if (ve(() => {
45
45
  if (D && W) return b(D, W), () => x(D);
46
46
  }, [D, W]), !R) return /* @__PURE__ */ g(y, {
47
+ variant: "canvas",
47
48
  className: "space-y-6",
48
49
  children: Ce ? /* @__PURE__ */ g(a, {}) : we ? /* @__PURE__ */ g(r, {
49
50
  kind: "error",
@@ -133,6 +134,7 @@ var S = () => {
133
134
  }
134
135
  };
135
136
  return /* @__PURE__ */ _(y, {
137
+ variant: "canvas",
136
138
  className: "space-y-6",
137
139
  children: [
138
140
  /* @__PURE__ */ _("div", {
@@ -309,162 +309,165 @@ var D = () => {
309
309
  onClick: e,
310
310
  children: t
311
311
  });
312
- return /* @__PURE__ */ S(ke, { children: [
313
- /* @__PURE__ */ S("div", {
314
- className: "mx-auto flex w-full max-w-[1840px] flex-col gap-4",
315
- children: [/* @__PURE__ */ x(Ne, {
316
- title: k("healthybowl.crops.list.pageTitle", "Crops"),
317
- description: Ge,
318
- actions: /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(t, { prompt: "What is the Crops page for, and how do I use it?" }), /* @__PURE__ */ S(C, {
319
- onClick: G,
320
- children: [
321
- /* @__PURE__ */ x(v, { className: "h-4 w-4" }),
322
- " ",
323
- k("healthybowl.crops.list.actions.addCrop", "Add a crop")
324
- ]
325
- })] })
326
- }), Qe ? /* @__PURE__ */ x(e, {
327
- title: k("healthybowl.crops.list.new.title", "Add your first crop"),
328
- description: k("healthybowl.crops.list.new.message", "Follow each crop from sowing to harvest: its stage, its health, and when it will be ready. Crops grow on a field, so add one first if you have none."),
329
- kind: "first-use",
330
- glassIllustration: "plants",
331
- action: /* @__PURE__ */ S("div", {
332
- className: "flex flex-wrap justify-center gap-2",
333
- children: [/* @__PURE__ */ S(C, {
312
+ return /* @__PURE__ */ S(ke, {
313
+ variant: "canvas",
314
+ children: [
315
+ /* @__PURE__ */ S("div", {
316
+ className: "mx-auto flex w-full max-w-[1840px] flex-col gap-4",
317
+ children: [/* @__PURE__ */ x(Ne, {
318
+ title: k("healthybowl.crops.list.pageTitle", "Crops"),
319
+ description: Ge,
320
+ actions: /* @__PURE__ */ S(b, { children: [/* @__PURE__ */ x(t, { prompt: "What is the Crops page for, and how do I use it?" }), /* @__PURE__ */ S(C, {
334
321
  onClick: G,
335
322
  children: [
336
323
  /* @__PURE__ */ x(v, { className: "h-4 w-4" }),
337
324
  " ",
338
325
  k("healthybowl.crops.list.actions.addCrop", "Add a crop")
339
326
  ]
340
- }), /* @__PURE__ */ x(C, {
341
- variant: "outline",
342
- asChild: !0,
343
- children: /* @__PURE__ */ S(Te, {
344
- to: j("plant-catalog"),
327
+ })] })
328
+ }), Qe ? /* @__PURE__ */ x(e, {
329
+ title: k("healthybowl.crops.list.new.title", "Add your first crop"),
330
+ description: k("healthybowl.crops.list.new.message", "Follow each crop from sowing to harvest: its stage, its health, and when it will be ready. Crops grow on a field, so add one first if you have none."),
331
+ kind: "first-use",
332
+ glassIllustration: "plants",
333
+ action: /* @__PURE__ */ S("div", {
334
+ className: "flex flex-wrap justify-center gap-2",
335
+ children: [/* @__PURE__ */ S(C, {
336
+ onClick: G,
345
337
  children: [
346
- /* @__PURE__ */ x(we, { className: "h-4 w-4" }),
338
+ /* @__PURE__ */ x(v, { className: "h-4 w-4" }),
347
339
  " ",
348
- k("healthybowl.crops.list.new.browseCatalog", "Browse the plant catalog")
340
+ k("healthybowl.crops.list.actions.addCrop", "Add a crop")
349
341
  ]
350
- })
351
- })]
352
- })
353
- }) : /* @__PURE__ */ S(b, { children: [
354
- /* @__PURE__ */ x("div", {
355
- role: "group",
356
- "aria-label": k("healthybowl.crops.list.rail.aria", "Show crops by status"),
357
- className: "flex gap-2 overflow-x-auto pb-1",
358
- children: Xe.map((e) => {
359
- let t = Ye === e.id;
360
- return /* @__PURE__ */ S("button", {
361
- type: "button",
362
- "aria-pressed": t,
363
- onClick: () => $e(e.id),
364
- className: `inline-flex shrink-0 items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] ${t ? "border-action-primary-bg bg-action-primary-bg text-action-primary-text" : e.attention ? "border-status-warning-border bg-status-warning-bg-subtle text-status-warning-text hover:bg-bg-sunken" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"}`,
365
- children: [
366
- e.attention ? /* @__PURE__ */ x(Ce, {
367
- className: "size-3.5",
368
- "aria-hidden": "true"
369
- }) : null,
370
- e.label,
371
- e.count === void 0 ? null : /* @__PURE__ */ x("span", {
372
- className: "tabular-nums opacity-80",
373
- children: o(e.count)
374
- })
375
- ]
376
- }, e.id);
342
+ }), /* @__PURE__ */ x(C, {
343
+ variant: "outline",
344
+ asChild: !0,
345
+ children: /* @__PURE__ */ S(Te, {
346
+ to: j("plant-catalog"),
347
+ children: [
348
+ /* @__PURE__ */ x(we, { className: "h-4 w-4" }),
349
+ " ",
350
+ k("healthybowl.crops.list.new.browseCatalog", "Browse the plant catalog")
351
+ ]
352
+ })
353
+ })]
377
354
  })
378
- }),
379
- /* @__PURE__ */ x(w, {
380
- list: L,
381
- searchPlaceholder: k("healthybowl.crops.list.search", "Search crops, varieties and categories"),
382
- searchLabel: k("healthybowl.crops.list.searchLabel", "Search crops"),
383
- filters: qe,
384
- sorts: Je
385
- }),
386
- /* @__PURE__ */ x(T, {
387
- list: L,
388
- count: R.total,
389
- loading: R.loading && R.items.length === 0,
390
- error: R.error ?? void 0,
391
- onRetry: tt,
392
- errorTitle: k("healthybowl.crops.list.errorState.title", "Couldn’t load your crops"),
393
- errorDescription: k("healthybowl.crops.list.errorState.nothingLost", "The list didn’t load. Nothing is lost; your crops are still saved."),
394
- skeleton: /* @__PURE__ */ x(E, {
395
- minCardWidth: "20rem",
396
- children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ x(Ae, { className: "h-60 w-full rounded-xl" }, t))
397
- }),
398
- noResults: /* @__PURE__ */ x(e, {
399
- title: k("healthybowl.crops.list.noMatch.titleSearch", "No crops match “{{query}}”", { query: L.query }),
400
- description: k("healthybowl.crops.list.noMatch.messageSearch", "No crop’s name, variety or category has that in it."),
401
- icon: /* @__PURE__ */ x(y, { className: "h-12 w-12 text-text-secondary" }),
402
- kind: "no-results",
403
- size: "inline",
404
- action: $(L.clearSearch, k("healthybowl.crops.list.noMatch.clearSearch", "Clear the search"))
405
- }),
406
- filtered: /* @__PURE__ */ x(e, {
407
- title: k("healthybowl.crops.list.noMatch.title", "No crops match"),
408
- description: k("healthybowl.crops.list.noMatch.message", "No crop fits these filters."),
409
- icon: /* @__PURE__ */ x(y, { className: "h-12 w-12 text-text-secondary" }),
410
- kind: "filtered",
411
- size: "inline",
412
- action: $(L.clearFilters, k("healthybowl.crops.list.noMatch.clearFilters", "Clear filters"))
355
+ }) : /* @__PURE__ */ S(b, { children: [
356
+ /* @__PURE__ */ x("div", {
357
+ role: "group",
358
+ "aria-label": k("healthybowl.crops.list.rail.aria", "Show crops by status"),
359
+ className: "flex gap-2 overflow-x-auto pb-1",
360
+ children: Xe.map((e) => {
361
+ let t = Ye === e.id;
362
+ return /* @__PURE__ */ S("button", {
363
+ type: "button",
364
+ "aria-pressed": t,
365
+ onClick: () => $e(e.id),
366
+ className: `inline-flex shrink-0 items-center gap-1.5 rounded-full border px-3 py-1.5 text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--color-focus-ring)] ${t ? "border-action-primary-bg bg-action-primary-bg text-action-primary-text" : e.attention ? "border-status-warning-border bg-status-warning-bg-subtle text-status-warning-text hover:bg-bg-sunken" : "border-border-subtle bg-bg-surface text-text-primary hover:bg-bg-sunken"}`,
367
+ children: [
368
+ e.attention ? /* @__PURE__ */ x(Ce, {
369
+ className: "size-3.5",
370
+ "aria-hidden": "true"
371
+ }) : null,
372
+ e.label,
373
+ e.count === void 0 ? null : /* @__PURE__ */ x("span", {
374
+ className: "tabular-nums opacity-80",
375
+ children: o(e.count)
376
+ })
377
+ ]
378
+ }, e.id);
379
+ })
413
380
  }),
414
- pager: /* @__PURE__ */ S("div", {
415
- className: "flex flex-wrap items-center justify-between gap-3",
416
- children: [/* @__PURE__ */ x("div", {
417
- className: "min-w-0 flex-1",
418
- children: /* @__PURE__ */ x(Oe, {
419
- list: L,
420
- total: R.total
421
- })
422
- }), R.total > 0 ? /* @__PURE__ */ S("label", {
423
- className: "flex items-center gap-2 text-sm text-text-secondary",
424
- children: [k("healthybowl.crops.list.perPage", "Per page"), /* @__PURE__ */ x(je, {
425
- value: F,
426
- onChange: (e) => {
427
- let t = Number(e.target.value);
428
- ye(t) && et(t);
429
- },
430
- className: "h-9 rounded-md border border-border-subtle bg-bg-surface px-2 text-sm text-text-primary",
431
- children: u.map((e) => /* @__PURE__ */ x("option", {
432
- value: e,
433
- children: e
434
- }, e))
435
- })]
436
- }) : null]
381
+ /* @__PURE__ */ x(w, {
382
+ list: L,
383
+ searchPlaceholder: k("healthybowl.crops.list.search", "Search crops, varieties and categories"),
384
+ searchLabel: k("healthybowl.crops.list.searchLabel", "Search crops"),
385
+ filters: qe,
386
+ sorts: Je
437
387
  }),
438
- children: /* @__PURE__ */ x(E, {
439
- minCardWidth: "20rem",
440
- children: R.items.map((e) => /* @__PURE__ */ x(oe, {
441
- crop: e,
442
- plot: Ue(e),
443
- harvested: Ke.get(e.id) ?? null,
444
- now: ze,
445
- openPath: j(`crops/${e.id}`),
446
- onOpen: () => A(j(`crops/${e.id}`)),
447
- busy: U,
448
- onEdit: (e) => H({ crop: e }),
449
- onRecordHarvest: () => A(`${j("crops/harvest")}?action=new`),
450
- onDelete: (e) => void Ze(e)
451
- }, e.id))
388
+ /* @__PURE__ */ x(T, {
389
+ list: L,
390
+ count: R.total,
391
+ loading: R.loading && R.items.length === 0,
392
+ error: R.error ?? void 0,
393
+ onRetry: tt,
394
+ errorTitle: k("healthybowl.crops.list.errorState.title", "Couldn’t load your crops"),
395
+ errorDescription: k("healthybowl.crops.list.errorState.nothingLost", "The list didn’t load. Nothing is lost; your crops are still saved."),
396
+ skeleton: /* @__PURE__ */ x(E, {
397
+ minCardWidth: "20rem",
398
+ children: Array.from({ length: 6 }, (e, t) => /* @__PURE__ */ x(Ae, { className: "h-60 w-full rounded-xl" }, t))
399
+ }),
400
+ noResults: /* @__PURE__ */ x(e, {
401
+ title: k("healthybowl.crops.list.noMatch.titleSearch", "No crops match “{{query}}”", { query: L.query }),
402
+ description: k("healthybowl.crops.list.noMatch.messageSearch", "No crop’s name, variety or category has that in it."),
403
+ icon: /* @__PURE__ */ x(y, { className: "h-12 w-12 text-text-secondary" }),
404
+ kind: "no-results",
405
+ size: "inline",
406
+ action: $(L.clearSearch, k("healthybowl.crops.list.noMatch.clearSearch", "Clear the search"))
407
+ }),
408
+ filtered: /* @__PURE__ */ x(e, {
409
+ title: k("healthybowl.crops.list.noMatch.title", "No crops match"),
410
+ description: k("healthybowl.crops.list.noMatch.message", "No crop fits these filters."),
411
+ icon: /* @__PURE__ */ x(y, { className: "h-12 w-12 text-text-secondary" }),
412
+ kind: "filtered",
413
+ size: "inline",
414
+ action: $(L.clearFilters, k("healthybowl.crops.list.noMatch.clearFilters", "Clear filters"))
415
+ }),
416
+ pager: /* @__PURE__ */ S("div", {
417
+ className: "flex flex-wrap items-center justify-between gap-3",
418
+ children: [/* @__PURE__ */ x("div", {
419
+ className: "min-w-0 flex-1",
420
+ children: /* @__PURE__ */ x(Oe, {
421
+ list: L,
422
+ total: R.total
423
+ })
424
+ }), R.total > 0 ? /* @__PURE__ */ S("label", {
425
+ className: "flex items-center gap-2 text-sm text-text-secondary",
426
+ children: [k("healthybowl.crops.list.perPage", "Per page"), /* @__PURE__ */ x(je, {
427
+ value: F,
428
+ onChange: (e) => {
429
+ let t = Number(e.target.value);
430
+ ye(t) && et(t);
431
+ },
432
+ className: "h-9 rounded-md border border-border-subtle bg-bg-surface px-2 text-sm text-text-primary",
433
+ children: u.map((e) => /* @__PURE__ */ x("option", {
434
+ value: e,
435
+ children: e
436
+ }, e))
437
+ })]
438
+ }) : null]
439
+ }),
440
+ children: /* @__PURE__ */ x(E, {
441
+ minCardWidth: "20rem",
442
+ children: R.items.map((e) => /* @__PURE__ */ x(oe, {
443
+ crop: e,
444
+ plot: Ue(e),
445
+ harvested: Ke.get(e.id) ?? null,
446
+ now: ze,
447
+ openPath: j(`crops/${e.id}`),
448
+ onOpen: () => A(j(`crops/${e.id}`)),
449
+ busy: U,
450
+ onEdit: (e) => H({ crop: e }),
451
+ onRecordHarvest: () => A(`${j("crops/harvest")}?action=new`),
452
+ onDelete: (e) => void Ze(e)
453
+ }, e.id))
454
+ })
452
455
  })
453
- })
454
- ] })]
455
- }),
456
- V ? /* @__PURE__ */ x(se, {
457
- open: !0,
458
- editingCrop: V.crop,
459
- fields: n,
460
- submitting: U,
461
- onClose: Z,
462
- onSubmit: Q
463
- }, V.crop?.id ?? "new") : null,
464
- /* @__PURE__ */ x(re, {
465
- toasts: Ie,
466
- onDismiss: Le
467
- })
468
- ] });
456
+ ] })]
457
+ }),
458
+ V ? /* @__PURE__ */ x(se, {
459
+ open: !0,
460
+ editingCrop: V.crop,
461
+ fields: n,
462
+ submitting: U,
463
+ onClose: Z,
464
+ onSubmit: Q
465
+ }, V.crop?.id ?? "new") : null,
466
+ /* @__PURE__ */ x(re, {
467
+ toasts: Ie,
468
+ onDismiss: Le
469
+ })
470
+ ]
471
+ });
469
472
  };
470
473
  export { D as CropsPage };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-healthybowl",
3
- "version": "2026.1123.3",
3
+ "version": "2026.1124.1",
4
4
  "description": "Burdenoff HealthyBowl Microfrontend - Comprehensive organic farming and agro-foods management platform",
5
5
  "type": "module",
6
6
  "files": [