@allurereport/web-components 3.0.0-beta.10
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 +62 -0
- package/dist/components/ArrowButton/index.d.ts +10 -0
- package/dist/components/ArrowButton/index.d.ts.map +1 -0
- package/dist/components/Attachment/Attachment.d.ts +8 -0
- package/dist/components/Attachment/Attachment.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentCode.d.ts +10 -0
- package/dist/components/Attachment/AttachmentCode.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentEmpty.d.ts +5 -0
- package/dist/components/Attachment/AttachmentEmpty.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentImage.d.ts +8 -0
- package/dist/components/Attachment/AttachmentImage.d.ts.map +1 -0
- package/dist/components/Attachment/AttachmentVideo.d.ts +8 -0
- package/dist/components/Attachment/AttachmentVideo.d.ts.map +1 -0
- package/dist/components/Attachment/CodeViewer.d.ts +8 -0
- package/dist/components/Attachment/CodeViewer.d.ts.map +1 -0
- package/dist/components/Attachment/HtmlPreview.d.ts +8 -0
- package/dist/components/Attachment/HtmlPreview.d.ts.map +1 -0
- package/dist/components/Attachment/index.d.ts +8 -0
- package/dist/components/Attachment/index.d.ts.map +1 -0
- package/dist/components/Button/index.d.ts +29 -0
- package/dist/components/Button/index.d.ts.map +1 -0
- package/dist/components/Counter/index.d.ts +10 -0
- package/dist/components/Counter/index.d.ts.map +1 -0
- package/dist/components/Label/index.d.ts +3 -0
- package/dist/components/Label/index.d.ts.map +1 -0
- package/dist/components/Link/index.d.ts +9 -0
- package/dist/components/Link/index.d.ts.map +1 -0
- package/dist/components/Loadable/index.d.ts +16 -0
- package/dist/components/Loadable/index.d.ts.map +1 -0
- package/dist/components/Menu/index.d.ts +37 -0
- package/dist/components/Menu/index.d.ts.map +1 -0
- package/dist/components/Modal/Gallery.d.ts +5 -0
- package/dist/components/Modal/Gallery.d.ts.map +1 -0
- package/dist/components/Modal/Thumb.d.ts +10 -0
- package/dist/components/Modal/Thumb.d.ts.map +1 -0
- package/dist/components/Modal/index.d.ts +24 -0
- package/dist/components/Modal/index.d.ts.map +1 -0
- package/dist/components/PageLoader/index.d.ts +2 -0
- package/dist/components/PageLoader/index.d.ts.map +1 -0
- package/dist/components/SearchBox/index.d.ts +11 -0
- package/dist/components/SearchBox/index.d.ts.map +1 -0
- package/dist/components/Spinner/index.d.ts +5 -0
- package/dist/components/Spinner/index.d.ts.map +1 -0
- package/dist/components/SuccessRatePieChart/index.d.ts +13 -0
- package/dist/components/SuccessRatePieChart/index.d.ts.map +1 -0
- package/dist/components/SvgIcon/index.d.ts +67 -0
- package/dist/components/SvgIcon/index.d.ts.map +1 -0
- package/dist/components/Toggle/index.d.ts +9 -0
- package/dist/components/Toggle/index.d.ts.map +1 -0
- package/dist/components/Tooltip/index.d.ts +14 -0
- package/dist/components/Tooltip/index.d.ts.map +1 -0
- package/dist/components/Tree/Tree.d.ts +21 -0
- package/dist/components/Tree/Tree.d.ts.map +1 -0
- package/dist/components/Tree/TreeHeader.d.ts +16 -0
- package/dist/components/Tree/TreeHeader.d.ts.map +1 -0
- package/dist/components/Tree/TreeItem.d.ts +14 -0
- package/dist/components/Tree/TreeItem.d.ts.map +1 -0
- package/dist/components/Tree/TreeItemIcon.d.ts +9 -0
- package/dist/components/Tree/TreeItemIcon.d.ts.map +1 -0
- package/dist/components/Tree/index.d.ts +5 -0
- package/dist/components/Tree/index.d.ts.map +1 -0
- package/dist/components/TrendChart/index.d.ts +25 -0
- package/dist/components/TrendChart/index.d.ts.map +1 -0
- package/dist/components/Typography/index.d.ts +28 -0
- package/dist/components/Typography/index.d.ts.map +1 -0
- package/dist/fonts/JetBrainsMono_vf.woff +0 -0
- package/dist/fonts/JetBrainsMono_vf.woff2 +0 -0
- package/dist/fonts/pt-root-ui_vf.woff +0 -0
- package/dist/fonts/pt-root-ui_vf.woff2 +0 -0
- package/dist/hooks/useDebouncedCallback.d.ts +2 -0
- package/dist/hooks/useDebouncedCallback.d.ts.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +335 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -0
- package/dist/mixins.scss +50 -0
- package/package.json +148 -0
package/dist/mixins.scss
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@mixin status-bg-and-text {
|
|
2
|
+
&.status-passed {
|
|
3
|
+
background-color: var(--bg-support-castor);
|
|
4
|
+
color: var(--constant-on-text-primary);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&.status-failed {
|
|
8
|
+
background-color: var(--bg-support-capella);
|
|
9
|
+
color: var(--constant-on-text-primary);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.status-broken {
|
|
13
|
+
background-color: var(--bg-support-atlas);
|
|
14
|
+
color: var(--constant-on-text-primary);
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&.status-skipped {
|
|
18
|
+
background-color: var(--bg-support-rau);
|
|
19
|
+
color: var(--constant-on-text-primary);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&.status-unknown {
|
|
23
|
+
background-color: var(--bg-support-skat);
|
|
24
|
+
color: var(--constant-on-text-primary);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@mixin allure-fonts {
|
|
29
|
+
@font-face {
|
|
30
|
+
font-family: "PTRootUIWebVF";
|
|
31
|
+
font-display: swap;
|
|
32
|
+
font-weight: 300 700;
|
|
33
|
+
src:
|
|
34
|
+
url("~@allurereport/web-components/fonts/pt-root-ui_vf.woff") format("woff2 supports variations"),
|
|
35
|
+
url("~@allurereport/web-components/fonts/pt-root-ui_vf.woff2") format("woff2-variations"),
|
|
36
|
+
url("~@allurereport/web-components/fonts/pt-root-ui_vf.woff") format("woff supports variations"),
|
|
37
|
+
url("~@allurereport/web-components/fonts/pt-root-ui_vf.woff") format("woff-variations");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@font-face {
|
|
41
|
+
font-family: JetBrainsMonoVF;
|
|
42
|
+
font-display: swap;
|
|
43
|
+
font-weight: 100 800;
|
|
44
|
+
src:
|
|
45
|
+
url("~@allurereport/web-components/fonts/JetBrainsMono_vf.woff2") format("woff2 supports variations"),
|
|
46
|
+
url("~@allurereport/web-components/fonts/JetBrainsMono_vf.woff2") format("woff2-variations"),
|
|
47
|
+
url("~@allurereport/web-components/fonts/JetBrainsMono_vf.woff") format("woff supports variations"),
|
|
48
|
+
url("~@allurereport/web-components/fonts/JetBrainsMono_vf.woff") format("woff-variations");
|
|
49
|
+
}
|
|
50
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@allurereport/web-components",
|
|
3
|
+
"version": "3.0.0-beta.10",
|
|
4
|
+
"description": "Collection of Preact components used across the web Allure reports",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"allure",
|
|
7
|
+
"testing",
|
|
8
|
+
"design system",
|
|
9
|
+
"components"
|
|
10
|
+
],
|
|
11
|
+
"repository": "https://github.com/allure-framework/allure3",
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"author": "Qameta Software",
|
|
14
|
+
"type": "module",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": {
|
|
17
|
+
"import": "./dist/index.js",
|
|
18
|
+
"types": "./dist/index.d.ts",
|
|
19
|
+
"style": "./dist/index.css"
|
|
20
|
+
},
|
|
21
|
+
"./index.css": "./dist/index.css",
|
|
22
|
+
"./fonts/*": {
|
|
23
|
+
"import": "./dist/fonts/*",
|
|
24
|
+
"default": "./dist/fonts/*"
|
|
25
|
+
},
|
|
26
|
+
"./mixins.scss": "./dist/mixins.scss"
|
|
27
|
+
},
|
|
28
|
+
"main": "dist/index.js",
|
|
29
|
+
"module": "dist/index.js",
|
|
30
|
+
"types": "dist/index.d.ts",
|
|
31
|
+
"files": [
|
|
32
|
+
"dist"
|
|
33
|
+
],
|
|
34
|
+
"scripts": {
|
|
35
|
+
"build": "rimraf ./dist && rollup -c",
|
|
36
|
+
"build:watch": "rollup -c -w",
|
|
37
|
+
"build:ds": "storybook build",
|
|
38
|
+
"dev:ds": "storybook dev -p 6006",
|
|
39
|
+
"lint": "eslint --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
40
|
+
"test": "vitest run"
|
|
41
|
+
},
|
|
42
|
+
"dependencies": {
|
|
43
|
+
"@allurereport/web-commons": "3.0.0-beta.10",
|
|
44
|
+
"@floating-ui/dom": "^1.6.13",
|
|
45
|
+
"@nivo/core": "^0.88.0",
|
|
46
|
+
"@nivo/line": "^0.88.0",
|
|
47
|
+
"@preact/signals": "^1.3.0",
|
|
48
|
+
"d3-shape": "^3.2.0",
|
|
49
|
+
"preact": "^10.24.0",
|
|
50
|
+
"prismjs": "^1.29.0",
|
|
51
|
+
"react": "npm:@preact/compat@*",
|
|
52
|
+
"react-dom": "npm:@preact/compat@*",
|
|
53
|
+
"reset.css": "^2.0.2"
|
|
54
|
+
},
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@allurereport/core-api": "3.0.0-beta.10",
|
|
57
|
+
"@babel/core": "^7.25.2",
|
|
58
|
+
"@babel/plugin-transform-react-jsx": "^7.25.2",
|
|
59
|
+
"@babel/preset-env": "^7.25.4",
|
|
60
|
+
"@babel/preset-typescript": "^7.24.7",
|
|
61
|
+
"@chromatic-com/storybook": "^3.2.3",
|
|
62
|
+
"@eslint/js": "^9.10.0",
|
|
63
|
+
"@nivo/axes": "^0.88.0",
|
|
64
|
+
"@nivo/legends": "^0.88.0",
|
|
65
|
+
"@preact/compat": "^18.3.1",
|
|
66
|
+
"@preact/preset-vite": "^2.9.4",
|
|
67
|
+
"@preact/signals": "^1.3.0",
|
|
68
|
+
"@rollup/plugin-alias": "^5.1.1",
|
|
69
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
70
|
+
"@rollup/plugin-commonjs": "^28.0.2",
|
|
71
|
+
"@rollup/plugin-node-resolve": "^16.0.0",
|
|
72
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
73
|
+
"@rollup/plugin-typescript": "^12.1.2",
|
|
74
|
+
"@storybook/addon-essentials": "~8.4.7",
|
|
75
|
+
"@storybook/addon-interactions": "^8.4.7",
|
|
76
|
+
"@storybook/addon-webpack5-compiler-swc": "^1.0.5",
|
|
77
|
+
"@storybook/blocks": "^8.4.7",
|
|
78
|
+
"@storybook/manager-api": "^8.4.7",
|
|
79
|
+
"@storybook/preact": "^8.4.7",
|
|
80
|
+
"@storybook/preact-webpack5": "^8.4.7",
|
|
81
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
82
|
+
"@storybook/react": "^8.4.7",
|
|
83
|
+
"@storybook/test": "^8.4.7",
|
|
84
|
+
"@storybook/theming": "^8.4.7",
|
|
85
|
+
"@storybook/types": "^8.4.7",
|
|
86
|
+
"@stylistic/eslint-plugin": "^2.6.1",
|
|
87
|
+
"@svgr/rollup": "^8.1.0",
|
|
88
|
+
"@testing-library/jest-dom": "^6.6.3",
|
|
89
|
+
"@testing-library/preact": "^3.2.4",
|
|
90
|
+
"@types/babel__core": "^7.20.5",
|
|
91
|
+
"@types/d3-shape": "^3.1.6",
|
|
92
|
+
"@types/eslint": "^8.56.11",
|
|
93
|
+
"@types/md5": "^2.3.5",
|
|
94
|
+
"@types/node": "^20.17.9",
|
|
95
|
+
"@types/prismjs": "^1",
|
|
96
|
+
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
97
|
+
"@typescript-eslint/parser": "^8.0.0",
|
|
98
|
+
"@vitest/runner": "^2.1.8",
|
|
99
|
+
"@vitest/snapshot": "^2.1.8",
|
|
100
|
+
"allure-js-commons": "^3.0.9",
|
|
101
|
+
"allure-vitest": "^3.0.9",
|
|
102
|
+
"autoprefixer": "^10.4.20",
|
|
103
|
+
"babel-loader": "^9.2.1",
|
|
104
|
+
"babel-plugin-prismjs": "^2.1.0",
|
|
105
|
+
"clsx": "^2.1.1",
|
|
106
|
+
"css-loader": "^7.1.2",
|
|
107
|
+
"d3-shape": "^3.2.0",
|
|
108
|
+
"eslint": "^8.57.0",
|
|
109
|
+
"eslint-config-preact": "^1.5.0",
|
|
110
|
+
"eslint-config-prettier": "^9.1.0",
|
|
111
|
+
"eslint-plugin-compat": "^6.0.1",
|
|
112
|
+
"eslint-plugin-import": "^2.29.1",
|
|
113
|
+
"eslint-plugin-jsdoc": "^50.0.0",
|
|
114
|
+
"eslint-plugin-jsx-a11y": "^6.10.0",
|
|
115
|
+
"eslint-plugin-n": "^17.10.1",
|
|
116
|
+
"eslint-plugin-no-null": "^1.0.2",
|
|
117
|
+
"eslint-plugin-preact": "^0.1.0",
|
|
118
|
+
"eslint-plugin-prefer-arrow": "^1.2.3",
|
|
119
|
+
"eslint-plugin-react": "^7.36.1",
|
|
120
|
+
"eslint-plugin-react-hooks": "^4.6.2",
|
|
121
|
+
"eslint-plugin-storybook": "^0.11.1",
|
|
122
|
+
"globals": "^15.9.0",
|
|
123
|
+
"html-webpack-plugin": "^5.6.3",
|
|
124
|
+
"jsdom": "^26.0.0",
|
|
125
|
+
"mini-css-extract-plugin": "^2.9.1",
|
|
126
|
+
"npm-run-all2": "^7.0.1",
|
|
127
|
+
"postcss": "^8.4.49",
|
|
128
|
+
"postcss-import": "^16.1.0",
|
|
129
|
+
"preact": "^10.24.0",
|
|
130
|
+
"prismjs": "^1.29.0",
|
|
131
|
+
"rimraf": "^6.0.1",
|
|
132
|
+
"rollup": "^4.30.1",
|
|
133
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
134
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
135
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
136
|
+
"rollup-plugin-svg-sprites": "^1.2.5",
|
|
137
|
+
"sass": "^1.83.1",
|
|
138
|
+
"sass-loader": "^16.0.4",
|
|
139
|
+
"storybook": "^8.4.7",
|
|
140
|
+
"style-loader": "^4.0.0",
|
|
141
|
+
"svg-sprite-loader": "^6.0.11",
|
|
142
|
+
"ts-node": "^10.9.2",
|
|
143
|
+
"tslib": "^2.7.0",
|
|
144
|
+
"typescript": "^5.6.3",
|
|
145
|
+
"typescript-eslint": "^8.6.0",
|
|
146
|
+
"vitest": "^2.1.8"
|
|
147
|
+
}
|
|
148
|
+
}
|