@40rty/ams-ui 0.5.2 → 0.5.3

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.
Files changed (33) hide show
  1. package/dist/agent.js +1 -1
  2. package/dist/catalog-data.js +1 -1
  3. package/dist/catalog-entries.js +2 -2
  4. package/dist/{chunk-RKPDCXL4.js → chunk-2HM6EVDV.js} +18 -0
  5. package/dist/chunk-2QRYXSCB.js +5344 -0
  6. package/dist/{chunk-CKGGECAQ.js → chunk-KW2DLXHP.js} +1 -1
  7. package/dist/{chunk-LQLOG2V3.js → chunk-N5XACWEX.js} +1 -1
  8. package/dist/conversation/manifests/conversation/explain.md +13 -0
  9. package/dist/conversation/manifests/conversation/facts.md +13 -0
  10. package/dist/conversation/manifests/conversation/guidedPick.md +13 -0
  11. package/dist/conversation/manifests/conversation/note.md +13 -0
  12. package/dist/conversation/manifests/conversation/paths.md +13 -0
  13. package/dist/conversation/manifests/conversation/shortlist.md +13 -0
  14. package/dist/conversation/manifests/conversation/tradeoff.md +13 -0
  15. package/dist/conversation/manifests/conversation/verdict.md +13 -0
  16. package/dist/conversation.js +947 -0
  17. package/dist/css/conversation/conversation.css +20 -0
  18. package/dist/css/shell/mobile/island.css +2 -2
  19. package/dist/index.js +14 -12
  20. package/dist/shell.js +47 -5295
  21. package/dist/types/agent/presence/PresenceFiller.d.ts +1 -1
  22. package/dist/types/agent/presence/folded.d.ts +1 -1
  23. package/dist/types/components/ecommerce/product/AddToRegistry.d.ts +1 -1
  24. package/dist/types/components/ecommerce/product/PresenceProductRail.d.ts +1 -1
  25. package/dist/types/components/ecommerce/product/ProductGrid.d.ts +1 -1
  26. package/dist/types/components/layout/Modal.d.ts +1 -1
  27. package/dist/types/labels.d.ts +21 -2
  28. package/dist/types/shell/MenuDrawer.d.ts +2 -2
  29. package/dist/types/shell/ShellScaffold.d.ts +1 -1
  30. package/dist/types/shell/mobile/MobileChrome.d.ts +1 -1
  31. package/dist/types/shell/mobile/MorphIsland.d.ts +1 -1
  32. package/dist/types/shell/mobile/hero-entry-point.d.ts +1 -1
  33. package/package.json +7 -2
@@ -0,0 +1,20 @@
1
+ /* The conversation page's look (`@fourty/ui/conversation`): defaults drawn
2
+ from the brand's base tokens. A brand restyles it by setting these in its
3
+ own tokens — never by overriding the kit's classes. Zero specificity, so
4
+ any brand rule wins. */
5
+ :where(:root) {
6
+ --fourty-convo-sheet: var(--color-bg);
7
+ --fourty-convo-ink: var(--color-text);
8
+ --fourty-convo-muted: var(--color-text-muted);
9
+ --fourty-convo-surface: var(--color-border-soft);
10
+ --fourty-convo-rule: var(--color-border-soft);
11
+ --fourty-convo-accent: var(--color-accent);
12
+ --fourty-convo-on-accent: var(--color-on-dark);
13
+ --fourty-convo-highlight: var(--color-surface-alt);
14
+ --fourty-convo-on-highlight: var(--color-on-dark);
15
+ --fourty-convo-radius: var(--radius-button);
16
+ --fourty-convo-button-transform: none;
17
+ --fourty-convo-card-radius: var(--radius-card);
18
+ --fourty-convo-sheet-radius: var(--radius-card);
19
+ --fourty-convo-composer-radius: var(--radius-input);
20
+ }
@@ -21,7 +21,7 @@
21
21
  (the slab's own pair) — what the pill
22
22
  is painted in, for a brand whose slab
23
23
  is too close to its page to read at
24
- pill size; Babysense inverts here
24
+ pill size; a white-slab brand inverts here
25
25
  • --fourty-island-scrim (#121212) — canvas dim behind the sheet (TSX)
26
26
  Loaded via `@fourty/ui/motion.css`, so every brand pulling it gets the island.
27
27
  ============================================================================ */
@@ -98,7 +98,7 @@
98
98
  height: 5px;
99
99
  overflow: visible;
100
100
  /* The brand's secondary-text colour, not a mix: 42% of --color-text into a
101
- white surface came out #9fa2a1 on Peak Design (2.57:1, under the 3:1 a
101
+ white surface came out #9fa2a1 on one brand (2.57:1, under the 3:1 a
102
102
  control's glyph needs). --color-text-muted is the token every brand sets
103
103
  for legible secondary text. */
104
104
  color: var(--color-text-muted);
package/dist/index.js CHANGED
@@ -1,10 +1,10 @@
1
1
  'use client';
2
2
  import {
3
3
  catalog
4
- } from "./chunk-CKGGECAQ.js";
4
+ } from "./chunk-KW2DLXHP.js";
5
5
  import {
6
6
  comparisonTableProps
7
- } from "./chunk-LQLOG2V3.js";
7
+ } from "./chunk-N5XACWEX.js";
8
8
  import {
9
9
  AgentText_default,
10
10
  ProseSurface,
@@ -41,7 +41,7 @@ import {
41
41
  registerDefaultPresenceForms,
42
42
  useLabels,
43
43
  useMeasuredHeight
44
- } from "./chunk-RKPDCXL4.js";
44
+ } from "./chunk-2HM6EVDV.js";
45
45
  import {
46
46
  readFacts,
47
47
  readLabel,
@@ -3221,7 +3221,7 @@ var STRUCTURAL_BASELINE_RENDERERS = {
3221
3221
  // `page` because they are builtins: their entries carry the runtime's streaming
3222
3222
  // bindings (see spacestation's STRUCTURAL_BASELINE_CATALOG), so whether the
3223
3223
  // agent can speak is not a brand's choice. Brands used to re-list these
3224
- // themselves, which is how shiree ended up wiring a `display` renderer that no
3224
+ // themselves, which is how one brand ended up wiring a `display` renderer that no
3225
3225
  // longer existed.
3226
3226
  agentText: adaptComponent(AgentText_default),
3227
3227
  turn: adaptComponent(Turn_default),
@@ -4950,7 +4950,7 @@ import { jsx as jsx56, jsxs as jsxs43 } from "react/jsx-runtime";
4950
4950
  var variants2 = {
4951
4951
  // Reads --fourty-btn-bg/-color (see preset/globals.css) rather than
4952
4952
  // --fourty-color-primary directly, so a brand whose CTA color is its
4953
- // accent (e.g. babysense's teal) repoints this ONCE in its tokens.css —
4953
+ // accent (e.g. a teal accent) repoints this ONCE in its tokens.css —
4954
4954
  // every Button using the default variant picks it up automatically.
4955
4955
  primary: "bg-[var(--fourty-btn-bg)] text-[var(--fourty-btn-color)]",
4956
4956
  // Explicit accent tone for a one-off CTA on a brand whose primary variant
@@ -5581,18 +5581,20 @@ var BABYLIST_LOGO = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAW8AAABaCAYAA
5581
5581
  // src/components/ecommerce/product/AddToRegistry.tsx
5582
5582
  import { jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
5583
5583
  var LOGOS = {
5584
- amazon: AMAZON_LOGO,
5585
- babylist: BABYLIST_LOGO
5584
+ amazon: { src: AMAZON_LOGO, aspectRatio: "285 / 96" },
5585
+ babylist: { src: BABYLIST_LOGO, aspectRatio: "367 / 90" }
5586
5586
  };
5587
5587
  function RegistryLogo({ id, label }) {
5588
- const src = LOGOS[id];
5589
- if (!src) return /* @__PURE__ */ jsx72("span", { className: "registry__wordmark", children: label });
5588
+ const logo = LOGOS[id];
5589
+ if (!logo) return /* @__PURE__ */ jsx72("span", { className: "registry__wordmark", children: label });
5590
+ const mask = `url(${logo.src})`;
5590
5591
  return /* @__PURE__ */ jsx72(
5591
- "img",
5592
+ "span",
5592
5593
  {
5594
+ role: "img",
5595
+ "aria-label": label,
5593
5596
  className: `registry__logo registry__logo--${id}`,
5594
- src,
5595
- alt: label
5597
+ style: { maskImage: mask, WebkitMaskImage: mask, aspectRatio: logo.aspectRatio }
5596
5598
  }
5597
5599
  );
5598
5600
  }