@cucumber/react-components 23.0.0 → 23.1.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/src/components/app/CopyButton.module.scss +2 -2
- package/dist/src/components/app/ExecutionSummary.module.scss +2 -2
- package/dist/src/components/app/GherkinDocumentList.module.scss +6 -6
- package/dist/src/components/app/Header.module.scss +4 -4
- package/dist/src/components/app/HealthChart.module.scss +2 -2
- package/dist/src/components/app/NavigationButton.module.scss +2 -2
- package/dist/src/components/app/SearchBar.module.scss +5 -4
- package/dist/src/components/app/StatusesSummary.module.scss +2 -2
- package/dist/src/components/gherkin/Anchor.module.scss +2 -2
- package/dist/src/components/gherkin/Children.module.scss +1 -1
- package/dist/src/components/gherkin/DataTable.module.scss +2 -2
- package/dist/src/components/gherkin/Description.module.scss +2 -2
- package/dist/src/components/gherkin/DocString.module.scss +2 -2
- package/dist/src/components/gherkin/ErrorMessage.module.scss +3 -3
- package/dist/src/components/gherkin/ExampleDetail.module.scss +1 -1
- package/dist/src/components/gherkin/ExamplesTable.module.scss +3 -3
- package/dist/src/components/gherkin/Keyword.module.scss +2 -2
- package/dist/src/components/gherkin/Parameter.module.scss +2 -2
- package/dist/src/components/gherkin/StatusIcon.module.scss +4 -11
- package/dist/src/components/gherkin/Tags.module.scss +2 -2
- package/dist/src/components/gherkin/attachment/Attachment.module.scss +5 -5
- package/dist/src/styles/statuses.scss +13 -7
- package/dist/src/styles/tables.scss +3 -3
- package/dist/src/styles/theming.scss +15 -12
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.button {
|
|
4
4
|
background-color: transparent;
|
|
5
5
|
font-size: inherit;
|
|
6
6
|
padding: 0;
|
|
7
7
|
border: none;
|
|
8
|
-
color:
|
|
8
|
+
color: theming.$anchorColor;
|
|
9
9
|
cursor: pointer;
|
|
10
10
|
|
|
11
11
|
&:disabled {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.icon {
|
|
4
4
|
padding-top: 0.35em;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.accordion {
|
|
10
|
-
border: 1px solid
|
|
10
|
+
border: 1px solid theming.$panelAccentColor;
|
|
11
11
|
border-radius: 2px;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.accordionItem + .accordionItem {
|
|
15
|
-
border-top: 1px solid
|
|
15
|
+
border-top: 1px solid theming.$panelAccentColor;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.accordionButton {
|
|
@@ -20,13 +20,13 @@
|
|
|
20
20
|
width: 100%;
|
|
21
21
|
padding: 0.75em 1em;
|
|
22
22
|
border: none;
|
|
23
|
-
background-color:
|
|
24
|
-
color:
|
|
23
|
+
background-color: theming.$panelBackgroundColor;
|
|
24
|
+
color: theming.$panelTextColor;
|
|
25
25
|
cursor: pointer;
|
|
26
26
|
text-align: left;
|
|
27
27
|
|
|
28
28
|
&:hover {
|
|
29
|
-
background-color:
|
|
29
|
+
background-color: theming.$panelAccentColor;
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.section {
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: stretch;
|
|
6
6
|
justify-content: flex-start;
|
|
7
7
|
width: 100%;
|
|
8
|
-
border: 1px solid
|
|
8
|
+
border: 1px solid theming.$panelAccentColor;
|
|
9
9
|
margin: 0;
|
|
10
10
|
|
|
11
11
|
& + & {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
padding: 1rem;
|
|
22
22
|
|
|
23
23
|
& + & {
|
|
24
|
-
border-left: 1px solid
|
|
24
|
+
border-left: 1px solid theming.$panelAccentColor;
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
> svg {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
a {
|
|
32
|
-
color:
|
|
32
|
+
color: theming.$anchorColor;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.navigationButton {
|
|
4
4
|
display: flex;
|
|
5
5
|
align-items: center;
|
|
6
6
|
gap: 4px;
|
|
7
7
|
background-color: transparent;
|
|
8
|
-
color:
|
|
8
|
+
color: theming.$anchorColor;
|
|
9
9
|
font-family: inherit;
|
|
10
10
|
font-size: inherit;
|
|
11
11
|
padding: 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
@
|
|
2
|
-
@
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use '../../styles/theming';
|
|
3
|
+
@use '../../styles/statuses';
|
|
3
4
|
|
|
4
5
|
.field {
|
|
5
6
|
box-sizing: border-box;
|
|
@@ -49,9 +50,9 @@
|
|
|
49
50
|
white-space: nowrap;
|
|
50
51
|
cursor: pointer;
|
|
51
52
|
|
|
52
|
-
@each $name, $color in
|
|
53
|
+
@each $name, $color in statuses.$statusColors {
|
|
53
54
|
&[data-status='#{$name}'] {
|
|
54
|
-
background-color:
|
|
55
|
+
background-color: color.adjust($color, $alpha: -0.666);
|
|
55
56
|
|
|
56
57
|
svg {
|
|
57
58
|
color: $color;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/statuses';
|
|
2
2
|
|
|
3
3
|
.statusesList {
|
|
4
4
|
list-style: none;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
text-align: center;
|
|
20
20
|
text-transform: uppercase;
|
|
21
21
|
|
|
22
|
-
@each $name, $color in
|
|
22
|
+
@each $name, $color in statuses.$statusColors {
|
|
23
23
|
&[data-status='#{$name}'] {
|
|
24
24
|
background-color: $color;
|
|
25
25
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.wrapper {
|
|
4
4
|
position: relative;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
.anchor {
|
|
10
|
-
color:
|
|
10
|
+
color: theming.$anchorColor;
|
|
11
11
|
opacity: 0;
|
|
12
12
|
transition: all 0.35s ease-in-out;
|
|
13
13
|
position: absolute;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.message {
|
|
4
4
|
white-space: pre-wrap;
|
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
border-radius: 0.25em;
|
|
8
8
|
margin: 0;
|
|
9
9
|
overflow-x: auto;
|
|
10
|
-
background-color:
|
|
11
|
-
color:
|
|
10
|
+
background-color: theming.$errorBackgroundColor;
|
|
11
|
+
color: theming.$errorTextColor;
|
|
12
12
|
}
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
'SKIPPED' #00a0cc,
|
|
4
|
-
'PENDING' #ffad33,
|
|
5
|
-
'UNDEFINED' #ffad33,
|
|
6
|
-
'AMBIGUOUS' #f4ebfd,
|
|
7
|
-
'FAILED' #bb0000,
|
|
8
|
-
'UNKNOWN' #b6becb;
|
|
9
|
-
|
|
1
|
+
@use 'sass:color';
|
|
2
|
+
@use '../../styles/statuses';
|
|
10
3
|
.icon {
|
|
11
|
-
@each $name, $color in
|
|
4
|
+
@each $name, $color in statuses.$statusColors {
|
|
12
5
|
&[data-status='#{$name}'] {
|
|
13
|
-
color:
|
|
6
|
+
color: color.adjust($color, $alpha: -0.25);
|
|
14
7
|
}
|
|
15
8
|
}
|
|
16
9
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.tags {
|
|
4
4
|
padding: 0;
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
display: inline;
|
|
10
10
|
list-style-type: none;
|
|
11
11
|
padding: 8px 0;
|
|
12
|
-
color:
|
|
12
|
+
color: theming.$tagColor;
|
|
13
13
|
|
|
14
14
|
&:not(:last-child) {
|
|
15
15
|
margin-right: 10px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use '../../../styles/theming';
|
|
2
2
|
|
|
3
3
|
.text {
|
|
4
4
|
position: relative;
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
border-radius: 0.25em;
|
|
9
9
|
margin: 0;
|
|
10
10
|
overflow-x: auto;
|
|
11
|
-
background-color:
|
|
12
|
-
color:
|
|
11
|
+
background-color: theming.$codeBackgroundColor;
|
|
12
|
+
color: theming.$codeTextColor;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
.log {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
left: 0.75em;
|
|
23
23
|
text-transform: uppercase;
|
|
24
24
|
font-weight: bold;
|
|
25
|
-
color:
|
|
25
|
+
color: theming.$parameterColor;
|
|
26
26
|
opacity: 0.75;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
|
|
48
48
|
a {
|
|
49
49
|
text-decoration: none;
|
|
50
|
-
color:
|
|
50
|
+
color: theming.$anchorColor;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
svg {
|
|
@@ -1,8 +1,14 @@
|
|
|
1
1
|
$statusColors:
|
|
2
|
-
'PASSED'
|
|
3
|
-
|
|
4
|
-
'
|
|
5
|
-
|
|
6
|
-
'
|
|
7
|
-
|
|
8
|
-
'
|
|
2
|
+
'PASSED' oklch(72.3% 0.219 149.579),
|
|
3
|
+
// green-500
|
|
4
|
+
'SKIPPED' oklch(62.3% 0.214 259.815),
|
|
5
|
+
// blue-500
|
|
6
|
+
'PENDING' oklch(79.5% 0.184 86.047),
|
|
7
|
+
// yellow-500
|
|
8
|
+
'UNDEFINED' oklch(79.5% 0.184 86.047),
|
|
9
|
+
// yellow-500
|
|
10
|
+
'AMBIGUOUS' oklch(55.4% 0.046 257.417),
|
|
11
|
+
// slate-500
|
|
12
|
+
'FAILED' oklch(63.7% 0.237 25.331),
|
|
13
|
+
// red-500
|
|
14
|
+
'UNKNOWN' oklch(55.4% 0.046 257.417); // slate-500;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'theming';
|
|
2
2
|
|
|
3
3
|
@mixin cucumber-table-style {
|
|
4
4
|
border-collapse: collapse;
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
border-style: solid;
|
|
20
20
|
border-top: none;
|
|
21
21
|
border-bottom: none;
|
|
22
|
-
border-color:
|
|
23
|
-
color:
|
|
22
|
+
border-color: theming.$keywordColor;
|
|
23
|
+
color: theming.$parameterColor;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
$anchorColor: var(--cucumber-anchor-color,
|
|
2
|
-
$keywordColor: var(--cucumber-keyword-color,
|
|
3
|
-
$parameterColor: var(--cucumber-parameter-color,
|
|
4
|
-
$tagColor: var(--cucumber-tag-color,
|
|
5
|
-
$docstringColor: var(--cucumber-docstring-color,
|
|
6
|
-
$errorBackgroundColor: var(--cucumber-error-background-color,
|
|
7
|
-
$errorTextColor: var(--cucumber-error-text-color,
|
|
8
|
-
$codeBackgroundColor: var(--cucumber-code-background-color,
|
|
9
|
-
$codeTextColor: var(--cucumber-code-text-color,
|
|
10
|
-
$panelBackgroundColor: var(
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
$anchorColor: var(--cucumber-anchor-color, oklch(62.3% 0.214 259.815)); // blue-500
|
|
2
|
+
$keywordColor: var(--cucumber-keyword-color, oklch(37.9% 0.146 265.522)); // blue-900
|
|
3
|
+
$parameterColor: var(--cucumber-parameter-color, oklch(62.3% 0.214 259.815)); // blue-500
|
|
4
|
+
$tagColor: var(--cucumber-tag-color, oklch(68.1% 0.162 75.834)); // yellow-600
|
|
5
|
+
$docstringColor: var(--cucumber-docstring-color, oklch(51.1% 0.096 186.391)); // teal-700
|
|
6
|
+
$errorBackgroundColor: var(--cucumber-error-background-color, oklch(97.1% 0.013 17.38)); // red-50
|
|
7
|
+
$errorTextColor: var(--cucumber-error-text-color, oklch(44.4% 0.177 26.899)); // red-800
|
|
8
|
+
$codeBackgroundColor: var(--cucumber-code-background-color, oklch(98.4% 0.003 247.858)); // slate-50
|
|
9
|
+
$codeTextColor: var(--cucumber-code-text-color, oklch(27.9% 0.041 260.031)); // slate-800
|
|
10
|
+
$panelBackgroundColor: var(
|
|
11
|
+
--cucumber-panel-background-color,
|
|
12
|
+
oklch(96.8% 0.007 247.896)
|
|
13
|
+
); // slate-100
|
|
14
|
+
$panelAccentColor: var(--cucumber-panel-accent-color, oklch(92.9% 0.013 255.508)); // slate-200
|
|
15
|
+
$panelTextColor: var(--cucumber-panel-text-color, oklch(27.9% 0.041 260.031)); // slate-800
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cucumber/react-components",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.1.0",
|
|
4
4
|
"description": "React components for Cucumber",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/src/index.js",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"react": "18.2.0",
|
|
102
102
|
"react-dom": "18.2.0",
|
|
103
103
|
"react-is": "18.2.0",
|
|
104
|
-
"sass": "1.
|
|
104
|
+
"sass": "^1.89.2",
|
|
105
105
|
"sinon": "^17.0.1",
|
|
106
106
|
"sinon-chai": "^3.7.0",
|
|
107
107
|
"ts-node": "^10.9.1",
|