@allurereport/web-components 3.8.2 → 3.10.0

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/mixins.scss CHANGED
@@ -1,27 +1,93 @@
1
1
  @mixin status-bg-and-text {
2
2
  &.status-passed {
3
- background-color: var(--bg-support-castor);
4
- color: var(--constant-on-text-primary);
3
+ background-color: var(--color-status-passed-bg);
4
+ color: var(--color-status-passed-on-bg);
5
5
  }
6
6
 
7
7
  &.status-failed {
8
- background-color: var(--bg-support-capella);
9
- color: var(--constant-on-text-primary);
8
+ background-color: var(--color-status-failed-bg);
9
+ color: var(--color-status-failed-on-bg);
10
10
  }
11
11
 
12
12
  &.status-broken {
13
- background-color: var(--bg-support-atlas);
14
- color: var(--constant-on-text-primary);
13
+ background-color: var(--color-status-broken-bg);
14
+ color: var(--color-status-broken-on-bg);
15
15
  }
16
16
 
17
17
  &.status-skipped {
18
- background-color: var(--bg-support-rau);
19
- color: var(--constant-on-text-primary);
18
+ background-color: var(--color-status-skipped-bg);
19
+ color: var(--color-status-skipped-on-bg);
20
20
  }
21
21
 
22
22
  &.status-unknown {
23
- background-color: var(--bg-support-skat);
24
- color: var(--constant-on-text-primary);
23
+ background-color: var(--color-status-unknown-bg);
24
+ color: var(--color-status-unknown-on-bg);
25
+ }
26
+ }
27
+
28
+ @mixin status-label-shape($root-class, $icon-class, $text-class) {
29
+ .#{$root-class} {
30
+ --status-label-bg: var(--color-status-unknown-bg);
31
+ --status-label-fg: var(--color-status-unknown-on-bg);
32
+ --status-label-icon-bg: var(--color-bg-primary);
33
+ --status-label-icon-fg: var(--color-status-unknown-text);
34
+
35
+ align-items: center;
36
+ gap: var(--space-0-5);
37
+ padding: var(--space-0-25) var(--space-1) var(--space-0-25) var(--space-0-25);
38
+ display: inline-flex;
39
+ border-radius: var(--radius-pill);
40
+ background-color: var(--status-label-bg);
41
+ color: var(--status-label-fg);
42
+ height: max-content;
43
+ }
44
+
45
+ .#{$text-class} {
46
+ padding: 0;
47
+ color: var(--status-label-fg);
48
+ }
49
+
50
+ .#{$icon-class} {
51
+ --tree-item-icon-padding: 0;
52
+
53
+ padding: 0;
54
+ }
55
+
56
+ .#{$root-class} .#{$icon-class} {
57
+ --tree-item-icon-bg: var(--status-label-icon-bg);
58
+ --tree-item-icon-fg: var(--status-label-icon-fg);
59
+
60
+ color: var(--status-label-icon-bg);
61
+ }
62
+
63
+ .#{$root-class}.status-passed {
64
+ --status-label-bg: var(--color-status-passed-bg);
65
+ --status-label-fg: var(--color-status-passed-on-bg);
66
+ --status-label-icon-fg: var(--color-status-passed-text);
67
+ }
68
+
69
+ .#{$root-class}.status-failed {
70
+ --status-label-bg: var(--color-status-failed-bg);
71
+ --status-label-fg: var(--color-status-failed-on-bg);
72
+ --status-label-icon-fg: var(--color-status-failed-text);
73
+ }
74
+
75
+ .#{$root-class}.status-broken {
76
+ --status-label-bg: var(--color-status-broken-bg);
77
+ --status-label-fg: var(--color-status-broken-on-bg);
78
+ --status-label-icon-fg: var(--color-status-broken-text);
79
+ }
80
+
81
+ .#{$root-class}.status-skipped {
82
+ --status-label-bg: var(--color-status-skipped-bg);
83
+ --status-label-fg: var(--color-status-skipped-on-bg);
84
+ --status-label-icon-fg: var(--color-status-skipped-text);
85
+ }
86
+
87
+ .#{$root-class}.status-unknown {
88
+ --status-label-bg: var(--color-status-unknown-bg);
89
+ --status-label-fg: var(--color-status-unknown-on-bg);
90
+ --status-label-icon-fg: var(--color-status-unknown-text);
25
91
  }
26
92
  }
27
93
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allurereport/web-components",
3
- "version": "3.8.2",
3
+ "version": "3.10.0",
4
4
  "description": "Collection of Preact components used across the web Allure reports",
5
5
  "keywords": [
6
6
  "allure",
@@ -35,14 +35,18 @@
35
35
  "build": "rimraf ./dist && rollup -c",
36
36
  "build:watch": "rollup -c -w",
37
37
  "build:ds": "storybook build",
38
+ "check:theme-apca": "node scripts/check-theme-apca.mjs",
39
+ "check:theme-apca:html": "node scripts/check-theme-apca.mjs --report-only --html=docs/theme-apca-report.html",
40
+ "check:theme-apca:report": "node scripts/check-theme-apca.mjs --report-only --markdown=docs/theme-apca-report.md",
38
41
  "dev:ds": "storybook dev -p 6006",
39
42
  "lint": "oxlint --import-plugin src test features stories",
40
43
  "test": "vitest run",
41
44
  "lint:fix": "oxlint --import-plugin --fix src test features stories"
42
45
  },
43
46
  "dependencies": {
44
- "@allurereport/charts-api": "3.8.2",
45
- "@allurereport/web-commons": "3.8.2",
47
+ "@allurereport/charts-api": "3.10.0",
48
+ "@allurereport/core-api": "3.10.0",
49
+ "@allurereport/web-commons": "3.10.0",
46
50
  "@floating-ui/dom": "^1.7.4",
47
51
  "@nivo/bar": "^0.99.0",
48
52
  "@nivo/core": "^0.99.0",
@@ -70,6 +74,7 @@
70
74
  "d3-tip": "^0.9.1",
71
75
  "d3-transition": "^3.0.1",
72
76
  "lodash": "^4.18.1",
77
+ "markdown-it": "^14.1.0",
73
78
  "preact": "^10.28.2",
74
79
  "prismjs": "^1.30.0",
75
80
  "react": "npm:@preact/compat@*",
@@ -78,7 +83,7 @@
78
83
  "use-debounce": "^10.0.6"
79
84
  },
80
85
  "devDependencies": {
81
- "@allurereport/core-api": "3.8.2",
86
+ "@allurereport/core-api": "3.10.0",
82
87
  "@babel/core": "^7.27.4",
83
88
  "@babel/plugin-transform-react-jsx": "^7.27.1",
84
89
  "@babel/preset-env": "^7.27.2",
@@ -91,6 +96,7 @@
91
96
  "@rollup/plugin-alias": "^5.1.1",
92
97
  "@rollup/plugin-babel": "^6.0.4",
93
98
  "@rollup/plugin-commonjs": "^28.0.2",
99
+ "@rollup/plugin-inject": "^5.0.5",
94
100
  "@rollup/plugin-json": "^6.1.0",
95
101
  "@rollup/plugin-node-resolve": "^16.0.0",
96
102
  "@rollup/plugin-terser": "^0.4.4",
@@ -122,14 +128,15 @@
122
128
  "@types/d3-tip": "^0",
123
129
  "@types/d3-transition": "^3",
124
130
  "@types/lodash": "^4",
131
+ "@types/markdown-it": "^14.1.2",
125
132
  "@types/md5": "^2.3.5",
126
- "@types/node": "^20.17.9",
133
+ "@types/node": "^20",
127
134
  "@types/prismjs": "^1.26.5",
128
135
  "@types/sortablejs": "^1.15.8",
129
136
  "@vitest/runner": "^2.1.9",
130
137
  "@vitest/snapshot": "^2.1.9",
131
- "allure-js-commons": "^3.3.3",
132
- "allure-vitest": "^3.3.3",
138
+ "allure-js-commons": "^3.9.0",
139
+ "allure-vitest": "3.8.0",
133
140
  "autoprefixer": "^10.4.20",
134
141
  "babel-loader": "^9.2.1",
135
142
  "babel-plugin-prismjs": "^2.1.0",
@@ -140,10 +147,10 @@
140
147
  "jsdom": "^26.0.0",
141
148
  "mini-css-extract-plugin": "^2.9.1",
142
149
  "npm-run-all2": "^7.0.1",
143
- "postcss": "^8.5.6",
150
+ "postcss": "^8.5.10",
144
151
  "postcss-import": "^16.1.0",
145
152
  "postcss-loader": "^8.2.0",
146
- "rimraf": "^6.0.1",
153
+ "rimraf": "^6",
147
154
  "rollup": "^4.59.0",
148
155
  "rollup-plugin-copy": "^3.5.0",
149
156
  "rollup-plugin-dts": "^6.2.1",
@@ -156,7 +163,7 @@
156
163
  "svg-sprite-loader": "^6.0.11",
157
164
  "ts-node": "^10.9.2",
158
165
  "tslib": "^2.7.0",
159
- "typescript": "^5.6.3",
160
- "vitest": "^2.1.9"
166
+ "typescript": "^5",
167
+ "vitest": "^4.1.0"
161
168
  }
162
169
  }