@sentropic/design-system-svelte 0.34.64 → 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.
- package/dist/AppHeader.svelte +13 -3
- package/dist/AppShell.svelte +24 -10
- package/package.json +1 -1
package/dist/AppHeader.svelte
CHANGED
|
@@ -215,6 +215,8 @@
|
|
|
215
215
|
gap: var(--st-spacing-4, 1rem);
|
|
216
216
|
height: var(--st-component-appHeader-height, 3.5rem);
|
|
217
217
|
justify-content: space-between;
|
|
218
|
+
margin: 0;
|
|
219
|
+
max-width: none;
|
|
218
220
|
padding: 0 var(--st-spacing-4, 1rem);
|
|
219
221
|
width: 100%;
|
|
220
222
|
}
|
|
@@ -246,8 +248,7 @@
|
|
|
246
248
|
.st-appHeader__burger {
|
|
247
249
|
align-items: center;
|
|
248
250
|
display: flex;
|
|
249
|
-
|
|
250
|
-
justify-content: flex-end;
|
|
251
|
+
margin-left: auto;
|
|
251
252
|
}
|
|
252
253
|
|
|
253
254
|
.st-appHeader__burgerButton {
|
|
@@ -419,6 +420,13 @@
|
|
|
419
420
|
outline: none;
|
|
420
421
|
}
|
|
421
422
|
|
|
423
|
+
/* Variante mono-icône : carré (largeur = hauteur du control) */
|
|
424
|
+
:global(.st-appHeader__control--icon) {
|
|
425
|
+
justify-content: center;
|
|
426
|
+
padding: 0;
|
|
427
|
+
width: 2.25rem;
|
|
428
|
+
}
|
|
429
|
+
|
|
422
430
|
.st-appHeader__actions {
|
|
423
431
|
align-items: center;
|
|
424
432
|
display: flex;
|
|
@@ -442,10 +450,12 @@
|
|
|
442
450
|
box-shadow: var(--st-shadow-medium, 0 8px 24px rgb(15 23 42 / 0.12));
|
|
443
451
|
left: 0;
|
|
444
452
|
max-height: 100vh;
|
|
453
|
+
overflow-x: hidden;
|
|
445
454
|
overflow-y: auto;
|
|
455
|
+
padding: var(--st-spacing-4, 1rem);
|
|
446
456
|
position: fixed;
|
|
447
457
|
top: 0;
|
|
448
|
-
width: min(
|
|
458
|
+
width: min(24rem, 92vw);
|
|
449
459
|
z-index: calc(var(--st-zindex-overlay, 80) + 10);
|
|
450
460
|
}
|
|
451
461
|
</style>
|
package/dist/AppShell.svelte
CHANGED
|
@@ -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
|
-
|
|
288
|
-
grid-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
|
|
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
|
-
|
|
410
|
-
flex-direction: column;
|
|
424
|
+
flex-flow: column nowrap;
|
|
411
425
|
}
|
|
412
426
|
|
|
413
427
|
.st-appShell__primaryRail,
|