@imfusion/web-ui 0.10.1-dev.3.gc9ea991e → 0.10.1-dev.6.gf715361a

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 (2) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -247,6 +247,37 @@ AppShell sections draw no dividers. Delete overrides of the border properties, w
247
247
  - --imf-ui-appshell-border-width: var(--imf-ui-border-size-2);
248
248
  ```
249
249
 
250
+ Navbar sections pad themselves with `--imf-ui-appshell-navbar-padding`, and that rule outranks a single class. Delete your
251
+ own section padding, and set the variable when the gutter needs to change:
252
+
253
+ ```diff
254
+ - .navSection { padding: 0 var(--imf-ui-appshell-padding); }
255
+ + .root { --imf-ui-appshell-navbar-padding: var(--imf-ui-size-5); }
256
+ ```
257
+
258
+ Nav links widen past the gutter only as `AppShell.NavItem`. Replace hand-built navbar links, and pass a router link through
259
+ `render`:
260
+
261
+ ```diff
262
+ - <MyNavLink to="/products" icon={Box} label="Products" />
263
+ + <AppShell.NavItem render={<Link to="/products" />} icon={<Icon glyph={Box} />}>Products</AppShell.NavItem>
264
+ ```
265
+
266
+ Above `lg` the aside docks whether or not `open` is set. Render no aside when there is nothing to show, not an empty one:
267
+
268
+ ```diff
269
+ - <AppShell.Aside>{selected ? <Details /> : <div />}</AppShell.Aside>
270
+ + {selected ? <AppShell.Aside><Details /></AppShell.Aside> : null}
271
+ ```
272
+
273
+ The navbar's first row and Main's offset read the header height while an `AppShell.Header` is rendered, even when CSS hides
274
+ it. Render the header conditionally instead of hiding it or setting the height to `0`:
275
+
276
+ ```diff
277
+ - <AppShell.Header className={styles.hiddenOnDesktop}>…</AppShell.Header>
278
+ + {isDesktop ? null : <AppShell.Header>…</AppShell.Header>}
279
+ ```
280
+
250
281
  ### Breaking
251
282
 
252
283
  - **Breaking:** The library supports Safari 17.5, Chrome 123, and Firefox 120 or newer. — Nikolaus Brunner <brunner@imfusion.com>
@@ -254,6 +285,11 @@ AppShell sections draw no dividers. Delete overrides of the border properties, w
254
285
  - The JavaScript build targets the same versions.
255
286
  - **Breaking:** AppShell sections draw no dividers, and the `--imf-ui-appshell-border-color`, `--imf-ui-appshell-border-width`, and `--imf-ui-appshell-border-style` properties are removed. ([WEBSDK-243](https://imfusion.atlassian.net/browse/WEBSDK-243)) — Nikolaus Brunner <brunner@imfusion.com>
256
287
  - **Breaking:** `AppShell.Main` is the scroll container and the document does not scroll; window scroll listeners, scroll restoration, and `scrollTo` target `AppShell.Main`. ([WEBSDK-243](https://imfusion.atlassian.net/browse/WEBSDK-243)) — Nikolaus Brunner <brunner@imfusion.com>
288
+ - **Breaking:** AppShell owns its navbar and aside layout. ([WEBSDK-243](https://imfusion.atlassian.net/browse/WEBSDK-243)) — Nikolaus Brunner <brunner@imfusion.com>
289
+ - Navbar sections pad themselves with `--imf-ui-appshell-navbar-padding` through a rule that outranks a single class.
290
+ - Only `AppShell.NavItem` widens past the navbar gutter.
291
+ - Above `lg` the aside docks whether or not `open` is set.
292
+ - The navbar's first row and Main's offset read the header height whenever an `AppShell.Header` is rendered.
257
293
 
258
294
  ### Added
259
295
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imfusion/web-ui",
3
- "version": "0.10.1-dev.3.gc9ea991e",
3
+ "version": "0.10.1-dev.6.gf715361a",
4
4
  "description": "The official Web UI component library for ImFusion web apps",
5
5
  "author": "ImFusion GmbH",
6
6
  "homepage": "https://imfusion.com",