@iroco/ui 1.10.0 → 1.10.2

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.
@@ -10,13 +10,11 @@ We plan to improve the following :
10
10
 
11
11
  - [x] Adapt npm package to our organization
12
12
  - [x] Keep credits to original author
13
- - [ ] Release with `release-it`
14
- - [ ] Add credit ourselves when modifying
15
- - [ ] Update to Svelte 5 peer dependencies
16
- - [ ] Update to node lts
17
- - [ ] Update vulnerable dependencies
13
+ - [x] Release with `release-it`
14
+ - [x] Add credit ourselves when modifying
15
+ - [x] Web accessibility: Treat as `role="progress"` aria
16
+ - [ ] Migrate to Svelte 5
18
17
  - [ ] Fix Svelte 5 warning : `WARNING: The following packages have a svelte field in their package.json but no exports condition for svelte.`
19
- - [ ] Web accessibility: Treat as `role="progress"` aria
20
18
 
21
19
  ## Previous task list
22
20
 
@@ -37,6 +37,14 @@
37
37
 
38
38
  ## Copyright
39
39
 
40
+ - 2025-08-07 : Use Iroco CSS var for steps label
41
+
42
+ Copyright (c) 2025, Iroco. All rights reserved.
43
+ Use of this source code is governed by a BSD-style license that can be found
44
+ in the LICENSE file.
45
+
46
+ ---
47
+
40
48
  Copyright (c) 2021, Jingshao Chen. All rights reserved.
41
49
  Use of this source code is governed by a BSD-style license that can be found
42
50
  in the LICENSE file.
@@ -52,6 +60,7 @@
52
60
  import { createEventDispatcher } from 'svelte';
53
61
  import Check from './Check.svelte';
54
62
  import Alert from './Alert.svelte';
63
+
55
64
  export let steps;
56
65
  export let current = 0;
57
66
  export let vertical = false;
@@ -144,7 +153,12 @@
144
153
 
145
154
  <div
146
155
  class="steps-container"
147
- style={`--size: ${size};
156
+ role="progressbar"
157
+ aria-valuemin="1"
158
+ aria-valuemax={`${(steps?.length ?? 0) + 1}`}
159
+ aria-valuenow={`${(current ?? 0) + 1}`}
160
+ aria-valuetext={`${steps[current]?.text}`}
161
+ style={`--size: ${size};
148
162
  --line-thickness: ${line};
149
163
  --primary: ${primary};
150
164
  --secondary: ${secondary};
@@ -314,33 +328,41 @@
314
328
  min-height: var(--size);
315
329
  font-size: calc(var(--size) * 0.5);
316
330
  }
331
+
317
332
  .hover-highlight:hover {
318
333
  cursor: pointer;
319
334
  filter: brightness(85%);
320
335
  box-sizing: border-box;
321
336
  }
337
+
322
338
  .steps__label {
323
339
  border-width: 0;
324
340
  background-color: transparent;
325
341
  font-size: larger;
326
342
  box-sizing: border-box;
343
+ color: var(--color-text);
327
344
  }
328
345
 
329
346
  .text-primary {
330
347
  color: var(--primary) !important;
331
348
  }
349
+
332
350
  .text-light {
333
351
  color: var(--light) !important;
334
352
  }
353
+
335
354
  .bg-secondary {
336
355
  background-color: var(--secondary) !important;
337
356
  }
357
+
338
358
  .bg-primary {
339
359
  background-color: var(--primary) !important;
340
360
  }
361
+
341
362
  .bg-danger {
342
363
  background-color: var(--danger) !important;
343
364
  }
365
+
344
366
  .shadow {
345
367
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
346
368
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "1.10.0",
3
+ "version": "1.10.2",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {