@sentropic/design-system-svelte 0.34.65 → 0.34.66

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.
@@ -283,19 +283,32 @@
283
283
  z-index: var(--st-component-appShell-top-zIndex, 30);
284
284
  }
285
285
 
286
+ /* The shared styles.css styles `.st-appShell--workspace` as a 4/5-column grid
287
+ with named areas (rail/nav/main/context/utility) sized for a flat DOM. This
288
+ component nests the panels in `__body`, so span `__body` across every
289
+ inherited column track (`1 / -1`, row 2) — the outer grid then only stacks
290
+ top / body / bottom, and `__body` owns the horizontal layout.
291
+ `__body` itself is a flex row (not a fixed 5-track grid): a panel that isn't
292
+ rendered takes no space, so a dashboard providing only `main` gets no empty
293
+ rail/nav/context columns and `main` keeps the full width. `order` still
294
+ drives placement; `main` flexes to fill the remainder. */
286
295
  .st-appShell__body {
287
- display: grid;
288
- grid-template-columns:
289
- minmax(0, auto)
290
- minmax(0, auto)
291
- minmax(0, 1fr)
292
- minmax(0, auto)
293
- minmax(0, auto);
296
+ grid-column: 1 / -1;
297
+ grid-row: 2;
298
+ display: flex;
299
+ flex-flow: row nowrap;
294
300
  min-block-size: 0;
295
301
  min-inline-size: 0;
296
302
  position: relative;
297
303
  }
298
304
 
305
+ /* Only the bottom-utility variant needs wrapping (its utility panel uses
306
+ flex-basis:100% to drop onto its own row below). Other variants stay on a
307
+ single row and shrink panels to fit, matching the old minmax() grid. */
308
+ .st-appShell[data-utility-side="bottom"] .st-appShell__body {
309
+ flex-wrap: wrap;
310
+ }
311
+
299
312
  .st-appShell__primaryRail {
300
313
  inline-size: var(--st-appShell-rail-width);
301
314
  order: 10;
@@ -324,6 +337,7 @@
324
337
  .st-appShell__navigationPanel,
325
338
  .st-appShell__contextPanel,
326
339
  .st-appShell__utilityPanel {
340
+ flex: 0 1 auto;
327
341
  background: var(--st-component-appShell-panelSurface, var(--st-semantic-surface-raised));
328
342
  border-color: var(--st-component-appShell-border, var(--st-semantic-border-subtle));
329
343
  min-block-size: 0;
@@ -353,12 +367,13 @@
353
367
  .st-appShell[data-utility-side="bottom"] .st-appShell__utilityPanel {
354
368
  border-block-start: 1px solid var(--st-component-appShell-border, var(--st-semantic-border-subtle));
355
369
  border-inline-start-width: 0;
356
- grid-column: 1 / -1;
370
+ flex-basis: 100%;
357
371
  inline-size: auto;
358
372
  order: 60;
359
373
  }
360
374
 
361
375
  .st-appShell__main {
376
+ flex: 1 1 0;
362
377
  min-block-size: 0;
363
378
  min-inline-size: 0;
364
379
  overflow: auto;
@@ -406,8 +421,7 @@
406
421
 
407
422
  @media (max-width: 48rem) {
408
423
  .st-appShell__body {
409
- display: flex;
410
- flex-direction: column;
424
+ flex-flow: column nowrap;
411
425
  }
412
426
 
413
427
  .st-appShell__primaryRail,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sentropic/design-system-svelte",
3
- "version": "0.34.65",
3
+ "version": "0.34.66",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"