@iroco/ui 0.62.0 → 0.62.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.
@@ -4,6 +4,8 @@ export let height = "5rem";
4
4
 
5
5
  <svg
6
6
  xmlns="http://www.w3.org/2000/svg"
7
+ role="button"
8
+ aria-label="menu button"
7
9
  {width}
8
10
  {height}
9
11
  fill="none"
@@ -4,6 +4,8 @@ export let height = "5rem";
4
4
 
5
5
  <svg
6
6
  xmlns="http://www.w3.org/2000/svg"
7
+ role="img"
8
+ aria-label="Close icon"
7
9
  {width}
8
10
  {height}
9
11
  fill="none"
@@ -7,9 +7,9 @@ function clickOnLogo() {
7
7
  }
8
8
  </script>
9
9
 
10
- <a class="iroco-logo" href="/" on:click={clickOnLogo}>
11
- <svg viewBox="0 0 832.33 249.52" {width} {height}>
12
- <title>Iroco</title>
10
+ <a class="iroco-logo" href="/" aria-label="go to Iroco home" on:click={clickOnLogo}>
11
+ <svg viewBox="0 0 832.33 249.52" role="img" {width} {height}>
12
+ <title>Iroco Logo</title>
13
13
  <path
14
14
  fill="white"
15
15
  d="M412,81.41c-7.34,0-12.07-5.19-12.07-12.37S404.77,56.66,412,56.66,424.17,61.85,424.17,69,419.13,81.41,412,81.41Zm10.7,118.4H401V103.54h21.7Z"
@@ -26,7 +26,7 @@ $:
26
26
  </script>
27
27
 
28
28
  <nav data-testid={type} class="nav__{type}">
29
- <button on:click class="nav__{type}__close">
29
+ <button title="Close menu" on:click class="nav__{type}__close">
30
30
  <IconClose width="3em" height="3em" />
31
31
  </button>
32
32
 
@@ -21,7 +21,7 @@ let showMenu = false;
21
21
  {/if}
22
22
  </div>
23
23
 
24
- <button on:click={() => (showMenu = true)} class="navigation--mobile__button">
24
+ <button title="Menu button" on:click={() => (showMenu = true)} class="navigation--mobile__button">
25
25
  <IconBurger width="3em" height="3em" />
26
26
  </button>
27
27
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iroco/ui",
3
- "version": "0.62.0",
3
+ "version": "0.62.2",
4
4
  "description": "Iroco design system based on Svelte",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -12,41 +12,43 @@
12
12
  "test": "vitest --run",
13
13
  "lint": "prettier --plugin-search-dir . --check . && eslint .",
14
14
  "format": "prettier --plugin-search-dir . --write .",
15
- "clean": "rm -rf dist && npm cache clean --force"
15
+ "clean": "rm -rf dist && npm cache clean --force",
16
+ "release": "npm run format && release-it --only-version"
16
17
  },
17
18
  "devDependencies": {
18
19
  "@sveltejs/adapter-auto": "^2.0.0",
19
- "@sveltejs/package": "^2.0.0",
20
20
  "@sveltejs/kit": "^1.20.4",
21
+ "@sveltejs/package": "^2.0.0",
22
+ "@testing-library/jest-dom": "^5.16.5",
23
+ "@testing-library/svelte": "^4.0.3",
24
+ "@testing-library/user-event": "^14.4.3",
21
25
  "@typescript-eslint/eslint-plugin": "^6.0.0",
22
26
  "@typescript-eslint/parser": "^6.0.0",
23
27
  "eslint": "^8.28.0",
24
28
  "eslint-config-prettier": "^8.5.0",
25
- "eslint-plugin-svelte": "^2.30.0",
26
- "prettier": "^2.8.0",
27
- "prettier-plugin-svelte": "^2.10.1",
28
- "svelte": "^4.0.5",
29
- "svelte-check": "^3.4.3",
30
- "tslib": "^2.4.1",
31
- "typescript": "^5.0.0",
32
- "vite": "^4.4.2",
33
- "vitest": "^0.34.0",
34
- "@testing-library/jest-dom": "^5.16.5",
35
- "@testing-library/svelte": "^4.0.3",
36
- "@testing-library/user-event": "^14.4.3",
37
29
  "eslint-plugin-storybook": "^0.6.8",
30
+ "eslint-plugin-svelte": "^2.30.0",
38
31
  "jsdom": "^20.0.3",
39
32
  "lint-staged": "^13.1.0",
33
+ "prettier": "^2.8.0",
34
+ "prettier-plugin-svelte": "^2.10.1",
40
35
  "react": "^18.2.0",
41
36
  "react-dom": "^18.2.0",
37
+ "release-it": "^17.0.0",
42
38
  "sass": "^1.57.0",
43
39
  "storybook": "^7.0.0-beta.12",
44
40
  "storybook-dark-mode": "^2.0.4",
45
- "testing-library": "^0.0.2"
41
+ "svelte": "^4.0.5",
42
+ "svelte-check": "^3.4.3",
43
+ "testing-library": "^0.0.2",
44
+ "tslib": "^2.4.1",
45
+ "typescript": "^5.0.0",
46
+ "vite": "^4.4.2",
47
+ "vitest": "^0.34.0"
46
48
  },
47
49
  "peerDependencies": {
48
- "svelte": "^4.2.1",
49
- "@sveltejs/kit": "^1.16.3"
50
+ "@sveltejs/kit": "^1.16.3",
51
+ "svelte": "^4.2.1"
50
52
  },
51
53
  "lint-staged": {
52
54
  "*.{js,ts,svelte}": [