@sentropic/design-system-svelte 0.34.65 → 0.34.67

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/README.md CHANGED
@@ -32,15 +32,15 @@ Import the package CSS once at the app or preview boundary, then render componen
32
32
  </ThemeProvider>
33
33
  ```
34
34
 
35
- `ThemeProvider` defaults to the Sent Tech theme. Tenant themes can be supplied from `@sentropic/design-system-themes`, `@sentropic/design-system-theme-dsfr`, or `@sentropic/design-system-theme-carbon`.
35
+ `ThemeProvider` defaults to the Sent Tech theme. Tenant themes can be supplied from `@sentropic/design-system-themes`, `@sentropic/design-system-theme-dsfr`, `@sentropic/design-system-theme-canada`, or `@sentropic/design-system-theme-quebec`.
36
36
 
37
37
  ```svelte
38
38
  <script>
39
39
  import { ThemeProvider } from "@sentropic/design-system-svelte";
40
- import { carbonTheme } from "@sentropic/design-system-theme-carbon";
40
+ import { dsfrTheme } from "@sentropic/design-system-theme-dsfr";
41
41
  </script>
42
42
 
43
- <ThemeProvider theme={carbonTheme}>
43
+ <ThemeProvider theme={dsfrTheme}>
44
44
  <!-- your content -->
45
45
  </ThemeProvider>
46
46
  ```
package/dist/.srchash ADDED
@@ -0,0 +1 @@
1
+ 5fa4af626e8a967b1e34a8ab542a01e4b9b3051441b1a26defa3e5b10ca0e657
@@ -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,
@@ -158,7 +158,8 @@
158
158
  align-items: flex-start;
159
159
  background: var(--st-semantic-surface-subtle);
160
160
  border-left: 3px solid var(--st-semantic-border-strong);
161
- border-radius: var(--st-radius-sm, 0.25rem);
161
+ /* Accent latéral fort = coins carrés. Ne pas arrondir une carte/exergue à liseré. */
162
+ border-radius: 0;
162
163
  display: flex;
163
164
  gap: var(--st-spacing-2, 0.5rem);
164
165
  padding: var(--st-spacing-2, 0.5rem) var(--st-spacing-3, 0.75rem);
@@ -37,7 +37,8 @@
37
37
  --st-highlight-accent: var(--st-semantic-action-primary);
38
38
  background: var(--st-semantic-surface-subtle);
39
39
  border-left: 4px solid var(--st-highlight-accent);
40
- border-radius: var(--st-radius-md, 0.375rem);
40
+ /* Accent latéral fort = coins carrés. Ne pas arrondir une carte/exergue à liseré. */
41
+ border-radius: 0;
41
42
  color: var(--st-semantic-text-primary);
42
43
  padding: var(--st-spacing-4, 1rem);
43
44
  }
@@ -234,9 +234,11 @@
234
234
  padding: var(--st-spacing-6, 1.5rem);
235
235
  }
236
236
 
237
- /* Accent catégoriel : liseré coloré à gauche. */
237
+ /* Accent catégoriel : liseré conservé, mais carte carrée pour éviter
238
+ le liseré arrondi sur conteneur arrondi. */
238
239
  .st-kpiCard--toned {
239
240
  border-inline-start-width: var(--st-spacing-1, 0.25rem);
241
+ border-radius: 0;
240
242
  }
241
243
 
242
244
  .st-kpiCard__label {
@@ -254,11 +254,21 @@
254
254
  width: 100%;
255
255
  }
256
256
 
257
- /* Opt-in accent bar: reserve the 2px gutter only when enabled so text never
258
- shifts on selection. */
257
+ /* Opt-in accent bar: reserve a 2px gutter without attaching a border to the
258
+ rounded host. The selected accent is painted by a square pseudo-element so
259
+ no one-sided stroke follows the row radius. */
259
260
  .st-selectableRow--accentBar {
260
261
  padding-left: calc(0.75rem - 2px);
261
- border-left: 2px solid transparent;
262
+ }
263
+
264
+ .st-selectableRow--accentBar::before {
265
+ background: transparent;
266
+ block-size: 100%;
267
+ content: "";
268
+ inline-size: 2px;
269
+ inset-block: 0;
270
+ inset-inline-start: 0;
271
+ position: absolute;
262
272
  }
263
273
 
264
274
  .st-selectableRow:hover:not(.st-selectableRow--disabled):not(.st-selectableRow--selected) {
@@ -291,8 +301,8 @@
291
301
  }
292
302
 
293
303
  /* The left accent bar paints only when opt-in AND selected. */
294
- .st-selectableRow--accentBar.st-selectableRow--selected {
295
- border-left-color: var(
304
+ .st-selectableRow--accentBar.st-selectableRow--selected::before {
305
+ background: var(
296
306
  --st-component-selectableRow-selectedAccent,
297
307
  var(--st-semantic-action-primary, #2563eb)
298
308
  );
@@ -305,7 +305,7 @@
305
305
  .st-streamingMessage__reasoning {
306
306
  background: var(--st-component-chatMessage-reasoningBackground, var(--st-semantic-surface-subtle));
307
307
  border-left: 2px solid var(--st-semantic-border-subtle);
308
- border-radius: var(--st-component-control-radius, 0.375rem);
308
+ border-radius: 0;
309
309
  margin: 0 0 0.5rem;
310
310
  padding: 0.4rem 0.6rem;
311
311
  }
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.67",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,7 +27,6 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@lucide/svelte": "^0.562.0",
30
- "@sentropic/design-system-theme-carbon": "0.2.2",
31
30
  "@sentropic/design-system-themes": "0.11.0"
32
31
  },
33
32
  "peerDependencies": {
@@ -39,7 +38,6 @@
39
38
  "test": "vitest run src"
40
39
  },
41
40
  "devDependencies": {
42
- "@sentropic/design-system-theme-carbon": "0.2.2",
43
41
  "@sentropic/design-system-theme-dsfr": "0.2.2",
44
42
  "@sentropic/design-system-themes": "0.11.0",
45
43
  "@sveltejs/package": "^2.5.0",