@imfusion/web-ui 0.11.1-dev.75.g4f81d8fd → 0.11.1-dev.83.g3251cc92

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/CHANGELOG.md CHANGED
@@ -10,6 +10,8 @@
10
10
 
11
11
  ### Added
12
12
 
13
+ - `Avatar` takes `size="xs"`, 16px with smaller initials, to sit in the slot of a 16px icon or swatch in a list row.
14
+ [Avatar](src/components/avatar/avatar.mdx) — Nikolaus Brunner <brunner@imfusion.com>
13
15
  - `Input` takes `shortcut` to show a key such as `/` or `Ctrl K` at its end and set `aria-keyshortcuts`. The key hides before the
14
16
  text or placeholder reaches it, and while a search input shows its clear button. With a shortcut, `className` also reaches
15
17
  a wrapping element. `shortcut=""` keeps that wrapper with no key shown, so a hint that switches on with state does not
@@ -96,6 +98,23 @@
96
98
 
97
99
  ### Changed
98
100
 
101
+ - `Menu`, `Popover`, `Select`, `Combobox` and `Autocomplete` positioners default to `sideOffset={8}`, so a popup sits clearly apart
102
+ from its trigger and all five open at the same distance. [Menu](src/components/menu/menu.mdx) — Nikolaus Brunner
103
+ <brunner@imfusion.com>
104
+ - `Popover.Popup` draws its edge like `Menu`: a 1px outline over `shadow-4`, so the translucent `fg-minor` edge reads the same
105
+ on both. [Popover](src/components/popover/popover.mdx) — Nikolaus Brunner <brunner@imfusion.com>
106
+ - A neutral `Popover.Popup` draws its edge and arrow in `fg-minor`, the quiet edge of `Card`, `Menu` and the `Select` popup;
107
+ its title stays `fg-main`. The primary, positive and negative variants keep their colour. [Popover](src/components/popover/popover.mdx)
108
+ — Nikolaus Brunner <brunner@imfusion.com>
109
+ - `Typo.H1` is larger: it scales with the viewport up to a cap below `Typo.Hero`, so the H2, H1, and Hero steps read as one
110
+ ladder. It has its own `--imf-ui-font-size-h1` and `--imf-ui-font-lineheight-h1` tokens; `H2` through `H6` are unchanged.
111
+ [Typo](src/components/typo/typo.mdx) — Nikolaus Brunner <brunner@imfusion.com>
112
+ - `--imf-ui-font-family-mono` defaults to CoFo Sans Mono and sets interface text in capitals: labels, buttons, eyebrows, and
113
+ table headers. Code has its own `--imf-ui-font-family-code`, which defaults to Paper Mono and sets code blocks and inline
114
+ code. The `Chip`, `Tabs`, `Callout`, `Popover`, `AccountCard`, `Typo.Eyebrow`, and `Code` language-tag labels moved from code
115
+ to mono. [Conventions](docs/conventions.md) — Nikolaus Brunner <brunner@imfusion.com>
116
+ - `Select.Trigger` shows the chosen value in the body family and its own case, like the value in an `Input`. Labels and group
117
+ labels keep their mono capitals. [Select](src/components/select/select.mdx) — Nikolaus Brunner <brunner@imfusion.com>
99
118
  - In dark mode, primary fills are lighter and primary text darker, so a primary heading and a primary button read as one
100
119
  blue: `--imf-ui-color-primary-bg-luma-dark` defaults to 0.66 and `--imf-ui-color-primary-fg-luma-dark` to 0.72.
101
120
  [Color system](docs/color-system.md) — Nikolaus Brunner <brunner@imfusion.com>
@@ -205,6 +224,11 @@
205
224
 
206
225
  ### Fixed
207
226
 
227
+ - `Toggle` sets its capitals in the mono family, like every other uppercase label.
228
+ [Toggle](src/components/toggle/toggle.mdx) — Nikolaus Brunner <brunner@imfusion.com>
229
+ - An md `ToggleGroup` is as tall as an md `Input` or `Button` (40px): its toggles shrink to 28px inside the frame, so a group
230
+ beside a field lines up with it. A standalone `Toggle` keeps its height. [ToggleGroup](src/components/toggle-group/toggle-group.mdx)
231
+ — Nikolaus Brunner <brunner@imfusion.com>
208
232
  - `Drawer.Title` wraps a long title instead of running past the panel edge.
209
233
  [Drawer](src/components/drawer/drawer.stories.tsx#LongTitle) — Nikolaus Brunner <brunner@imfusion.com>
210
234
  - `Card` describes its coloured fills correctly: they set the background, and their content takes `oncolor` variants. —
@@ -1,7 +1,7 @@
1
1
  import { Avatar as AvatarPrimitive } from '@base-ui/react/avatar';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  declare const root: (props?: ({
4
- size?: "sm" | "md" | "lg" | null | undefined;
4
+ size?: "sm" | "md" | "lg" | "xs" | null | undefined;
5
5
  context?: "oncolor" | "default" | null | undefined;
6
6
  } & import('class-variance-authority/types').ClassProp) | undefined) => string;
7
7
  interface RootProps extends React.ComponentProps<typeof AvatarPrimitive.Root>, VariantProps<typeof root> {
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@ import { a as le, i as ue, n as de, r as fe, t as pe } from "./toggle-group-CVQz
5
5
  import { a as y, i as me, n as he, o as ge, r as _e, t as ve } from "./utils-J6vbjIt1.js";
6
6
  import { a as ye, i as be, n as xe, o as Se, r as Ce, t as we } from "./row-CaeE5pqs.js";
7
7
  import { a as Te, o as Ee, r as De, t as Oe } from "./code-72NzL5Cp.js";
8
- import { A as ke, D as Ae, M as je, N as Me, O as Ne, c as Pe, j as Fe, k as Ie, l as Le, m as Re, p as ze, s as Be, u as Ve } from "./tabs-Bl3YlG5t.js";
8
+ import { A as ke, D as Ae, M as je, N as Me, O as Ne, c as Pe, j as Fe, k as Ie, l as Le, m as Re, p as ze, s as Be, u as Ve } from "./tabs-BNz_OiWn.js";
9
9
  import { n as He, t as Ue } from "./toggle-group-ghJtINie.js";
10
10
  import { a as We, c as Ge, i as Ke, n as qe, o as Je, r as Ye, s as Xe, t as Ze } from "./scroll-area-CXQ_SxPX.js";
11
11
  import { l as Qe, t as $e } from "./separator-BxUMVvFE.js";
@@ -351,7 +351,7 @@ function Mn(e) {
351
351
  });
352
352
  }
353
353
  Mn.displayName = "Autocomplete.Backdrop";
354
- function Nn({ align: e = "start", sideOffset: t = 4, ...n }) {
354
+ function Nn({ align: e = "start", sideOffset: t = 8, ...n }) {
355
355
  return /* @__PURE__ */ S(E.Positioner, {
356
356
  ...n,
357
357
  align: e,
@@ -797,7 +797,7 @@ function Ar(e) {
797
797
  });
798
798
  }
799
799
  Ar.displayName = "Combobox.Backdrop";
800
- function jr({ align: e = "start", sideOffset: t = 4, ...n }) {
800
+ function jr({ align: e = "start", sideOffset: t = 8, ...n }) {
801
801
  return /* @__PURE__ */ S(D.Positioner, {
802
802
  ...n,
803
803
  align: e,
@@ -4079,7 +4079,7 @@ function il(e) {
4079
4079
  });
4080
4080
  }
4081
4081
  il.displayName = "Popover.Backdrop";
4082
- function al({ sideOffset: e = 4, ...t }) {
4082
+ function al({ sideOffset: e = 8, ...t }) {
4083
4083
  return /* @__PURE__ */ S(Tt.Positioner, {
4084
4084
  ...t,
4085
4085
  sideOffset: e,
@@ -4216,13 +4216,15 @@ var _l = {
4216
4216
  root: "imf-ui-avatar-module-root",
4217
4217
  sizeLg: "imf-ui-avatar-module-sizeLg",
4218
4218
  sizeMd: "imf-ui-avatar-module-sizeMd",
4219
- sizeSm: "imf-ui-avatar-module-sizeSm"
4219
+ sizeSm: "imf-ui-avatar-module-sizeSm",
4220
+ sizeXs: "imf-ui-avatar-module-sizeXs"
4220
4221
  }, xl = /* @__PURE__ */ e({
4221
4222
  Fallback: () => wl,
4222
4223
  Image: () => Tl,
4223
4224
  Root: () => Cl
4224
4225
  }), Sl = b(bl.root, { variants: {
4225
4226
  size: {
4227
+ xs: bl.sizeXs,
4226
4228
  sm: bl.sizeSm,
4227
4229
  md: bl.sizeMd,
4228
4230
  lg: bl.sizeLg
@@ -4782,7 +4784,7 @@ function Mu(e) {
4782
4784
  });
4783
4785
  }
4784
4786
  Mu.displayName = "Menu.Backdrop";
4785
- function Nu({ sideOffset: e = 4, alignOffset: t = 0, ...n }) {
4787
+ function Nu({ sideOffset: e = 8, alignOffset: t = 0, ...n }) {
4786
4788
  return /* @__PURE__ */ S(j.Positioner, {
4787
4789
  ...n,
4788
4790
  sideOffset: e,
@@ -2,7 +2,7 @@ import { sy as e, vM as t, yC as n } from "../icons-CMetKl2x.js";
2
2
  import { t as r } from "../meta-V_KyLeGn.js";
3
3
  import { n as i, t as a } from "../toggle-group-CVQzM3lQ.js";
4
4
  import { i as o, n as s, o as c, t as l } from "../row-CaeE5pqs.js";
5
- import { C as u, E as d, S as f, T as p, _ as m, a as h, b as g, d as _, f as v, g as y, h as b, i as x, n as S, o as C, r as w, t as T, v as E, w as D, x as ee, y as O } from "../tabs-Bl3YlG5t.js";
5
+ import { C as u, E as d, S as f, T as p, _ as m, a as h, b as g, d as _, f as v, g as y, h as b, i as x, n as S, o as C, r as w, t as T, v as E, w as D, x as ee, y as O } from "../tabs-BNz_OiWn.js";
6
6
  import { t as k } from "../scroll-area-CXQ_SxPX.js";
7
7
  import { a as A, c as j, i as M, n as te, o as ne, r as re, s as ie, t as N } from "../separator-BxUMVvFE.js";
8
8
  import { cva as ae } from "class-variance-authority";