@redhat-cloud-services/frontend-components 3.9.3 → 3.9.4
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/BulkSelect/bulk-select.scss +13 -13
- package/ConditionalFilter/conditional-filter.scss +78 -87
- package/CullingInfo/CullingInformation.scss +4 -4
- package/DownloadButton/DownloadButton.spec.ct.d.ts +1 -0
- package/DownloadButton/DownloadButton.spec.ct.js +24 -0
- package/EmptyTable/EmptyTable.scss +7 -7
- package/ErrorState/error-state.scss +3 -3
- package/FilterChips/filter-chips.scss +9 -10
- package/FilterHooks/tagFilterHook.scss +15 -16
- package/InsightsLabel/labels.scss +14 -12
- package/InvalidObject/icon-404.scss +5 -9
- package/LongTextTooltip/index.d.ts +1 -1
- package/LongTextTooltip/index.js +2 -2
- package/Main/main.scss +1 -1
- package/Maintenance/maintenance.scss +5 -5
- package/NotAuthorized/NotAuthorized.scss +5 -5
- package/PageHeader/page-header.scss +5 -5
- package/Pagination/pagination.scss +5 -6
- package/PrimaryToolbar/primary-toolbar.scss +40 -51
- package/Reboot/reboot.scss +7 -7
- package/SimpleTableFilter/simple-table-filter.scss +10 -10
- package/Skeleton/skeleton.scss +16 -16
- package/SkeletonTable/SkeletonTable.scss +1 -1
- package/Spinner/spinner.scss +15 -17
- package/TableToolbar/TableToolbar.scss +9 -9
- package/TagCount/tagCount.scss +4 -4
- package/TagModal/tagModal.scss +1 -1
- package/Unavailable/Unavailable.scss +1 -1
- package/cypress/cypress.webpack.config.js +37 -0
- package/cypress/fixtures/example.json +5 -0
- package/cypress/plugins/index.js +30 -0
- package/cypress/support/commands.js +25 -0
- package/cypress/support/index.js +21 -0
- package/cypress.json +9 -0
- package/esm/BulkSelect/bulk-select.scss +13 -13
- package/esm/ConditionalFilter/conditional-filter.scss +78 -87
- package/esm/CullingInfo/CullingInformation.scss +4 -4
- package/esm/DownloadButton/DownloadButton.spec.ct.js +19 -0
- package/esm/EmptyTable/EmptyTable.scss +7 -7
- package/esm/ErrorState/error-state.scss +3 -3
- package/esm/FilterChips/filter-chips.scss +9 -10
- package/esm/FilterHooks/tagFilterHook.scss +15 -16
- package/esm/InsightsLabel/labels.scss +14 -12
- package/esm/InvalidObject/icon-404.scss +5 -9
- package/esm/LongTextTooltip/index.js +1 -1
- package/esm/Main/main.scss +1 -1
- package/esm/Maintenance/maintenance.scss +5 -5
- package/esm/NotAuthorized/NotAuthorized.scss +5 -5
- package/esm/PageHeader/page-header.scss +5 -5
- package/esm/Pagination/pagination.scss +5 -6
- package/esm/PrimaryToolbar/primary-toolbar.scss +40 -51
- package/esm/Reboot/reboot.scss +7 -7
- package/esm/SimpleTableFilter/simple-table-filter.scss +10 -10
- package/esm/Skeleton/skeleton.scss +16 -16
- package/esm/SkeletonTable/SkeletonTable.scss +1 -1
- package/esm/Spinner/spinner.scss +15 -17
- package/esm/TableToolbar/TableToolbar.scss +9 -9
- package/esm/TagCount/tagCount.scss +4 -4
- package/esm/TagModal/tagModal.scss +1 -1
- package/esm/Unavailable/Unavailable.scss +1 -1
- package/esm/usePendoFeedback/usePendoFeedback.js +1 -5
- package/package.json +10 -2
- package/useChrome/useChrome.d.ts +1 -1
- package/usePendoFeedback/usePendoFeedback.d.ts +1 -1
- package/usePendoFeedback/usePendoFeedback.js +1 -5
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
.Icon404 {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
.cls-2{ opacity:0.5;}
|
|
9
|
-
|
|
10
|
-
.cls-4{ mask:url(#mask); }
|
|
2
|
+
height: 150px;
|
|
3
|
+
.cls-1 { fill:#fff; }
|
|
4
|
+
.cls-1,.cls-3{ fill-rule:evenodd;}
|
|
5
|
+
.cls-2{ opacity:0.5;}
|
|
6
|
+
.cls-4{ mask:url(#mask); }
|
|
11
7
|
}
|
package/esm/Main/main.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
.ins-c-empty-state__maintenance {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
.pf-c-empty-state__body {
|
|
3
|
+
color: var(--pf-global--Color--100);
|
|
4
|
+
}
|
|
5
|
+
.pf-c-empty-state__icon { fill: #EE0000; } // This is Red Hat's red, not Patternfly's red.
|
|
6
|
+
.pf-c-title { font-weight: 500; }
|
|
7
7
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
|
|
2
2
|
|
|
3
3
|
.pf-l-page__main-section.pf-l-page-header.pf-m-dark-200 {
|
|
4
|
-
|
|
4
|
+
h1.pf-c-title.pf-m-2xl, * { color: #fff; }
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.pf-l-page__main-section.pf-l-page-header {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
.pf-c-breadcrumb {
|
|
9
|
+
display: block;
|
|
10
|
+
@include rem('margin-bottom', 15px);
|
|
11
|
+
}
|
|
12
12
|
}
|
|
@@ -3,13 +3,12 @@
|
|
|
3
3
|
@import '~@patternfly/patternfly/components/OptionsMenu/options-menu.scss';
|
|
4
4
|
|
|
5
5
|
.ins-c-pagination-next .pf-c-options-menu {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
padding-left: 0;
|
|
11
|
-
}
|
|
6
|
+
.pf-c-dropdown__menu .pf-c-dropdown__menu-item {
|
|
7
|
+
display: flex;
|
|
8
|
+
.pf-c-options-menu__menu-item-icon {
|
|
9
|
+
padding-left: 0;
|
|
12
10
|
}
|
|
11
|
+
}
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
.pf-c-pagination .pf-c-pagination__nav .pf-c-pagination__nav-page-select input { width: 75px; }
|
|
@@ -1,64 +1,53 @@
|
|
|
1
1
|
.ins-c-primary-toolbar {
|
|
2
|
+
.pf-c-toolbar__item.ins-c-primary-toolbar__first-action {
|
|
3
|
+
display: initial;
|
|
4
|
+
}
|
|
5
|
+
.ins-c-primary-toolbar__first-action {
|
|
6
|
+
display: none;
|
|
7
|
+
}
|
|
8
|
+
.ins-c-primary-toolbar__pagination {
|
|
9
|
+
margin-left: auto;
|
|
10
|
+
}
|
|
11
|
+
.ins-c-primary-toolbar__sort-by {
|
|
12
|
+
display: initial
|
|
13
|
+
}
|
|
14
|
+
.ins-c-primary-toolbar__overflow-actions, .ins-c-primary-toolbar__overflow-actions-separator {
|
|
15
|
+
display: none;
|
|
16
|
+
}
|
|
17
|
+
.ins-m-actions--empty {
|
|
18
|
+
display: none;
|
|
19
|
+
}
|
|
20
|
+
.ins-c-primary-toolbar__group-filter {
|
|
21
|
+
flex-grow: initial;
|
|
22
|
+
.ins-c-primary-toolbar__filter {
|
|
23
|
+
flex: initial;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
@media only screen and (max-width: 768px) {
|
|
29
|
+
.ins-c-primary-toolbar {
|
|
2
30
|
.pf-c-toolbar__item.ins-c-primary-toolbar__first-action {
|
|
3
|
-
|
|
31
|
+
display: none;
|
|
4
32
|
}
|
|
5
|
-
|
|
6
33
|
.ins-c-primary-toolbar__first-action {
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ins-c-primary-toolbar__pagination {
|
|
11
|
-
margin-left: auto;
|
|
34
|
+
display: block;
|
|
12
35
|
}
|
|
13
|
-
|
|
14
36
|
.ins-c-primary-toolbar__sort-by {
|
|
15
|
-
|
|
37
|
+
display: none
|
|
16
38
|
}
|
|
17
|
-
|
|
18
39
|
.ins-c-primary-toolbar__overflow-actions, .ins-c-primary-toolbar__overflow-actions-separator {
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.ins-m-actions--empty {
|
|
23
|
-
display: none;
|
|
40
|
+
display: block;
|
|
24
41
|
}
|
|
25
|
-
|
|
26
42
|
.ins-c-primary-toolbar__group-filter {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
43
|
+
margin-right: 0;
|
|
44
|
+
flex-grow: 1;
|
|
45
|
+
.ins-c-primary-toolbar__filter {
|
|
46
|
+
flex: 1;
|
|
47
|
+
}
|
|
31
48
|
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
@media only screen and (max-width: 768px) {
|
|
35
|
-
.ins-c-primary-toolbar {
|
|
36
|
-
.pf-c-toolbar__item.ins-c-primary-toolbar__first-action {
|
|
37
|
-
display: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.ins-c-primary-toolbar__first-action {
|
|
41
|
-
display: block;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ins-c-primary-toolbar__sort-by {
|
|
45
|
-
display: none
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ins-c-primary-toolbar__overflow-actions, .ins-c-primary-toolbar__overflow-actions-separator {
|
|
49
|
-
display: block;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.ins-c-primary-toolbar__group-filter {
|
|
53
|
-
margin-right: 0;
|
|
54
|
-
flex-grow: 1;
|
|
55
|
-
.ins-c-primary-toolbar__filter {
|
|
56
|
-
flex: 1;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.ins-m-actions--empty {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
49
|
+
.ins-m-actions--empty {
|
|
50
|
+
display: block;
|
|
63
51
|
}
|
|
52
|
+
}
|
|
64
53
|
}
|
package/esm/Reboot/reboot.scss
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
@import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
|
|
2
2
|
|
|
3
3
|
.ins-c-reboot {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
span {
|
|
5
|
+
// 4px because the battery icon is 1px bigger than the reboot icon
|
|
6
|
+
@include rem('margin-left', 4px);
|
|
7
|
+
}
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
&.ins-m-red {
|
|
10
|
+
span, svg { color: var(--pf-global--danger-color--100); }
|
|
11
|
+
}
|
|
12
12
|
}
|
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
@import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
|
|
6
6
|
|
|
7
7
|
.pf-c-input-group.ins-c-filter {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
&.ins-u-no-title input {
|
|
9
|
+
@include rem('padding-right', 35px);
|
|
10
|
+
@include rem('margin-right', -23px);
|
|
11
|
+
}
|
|
12
|
+
.ins-c-search-icon {
|
|
13
|
+
color: var(--pf-global--secondary-color--100);
|
|
14
|
+
position: relative;
|
|
15
|
+
@include rem('left', -5px);
|
|
16
|
+
@include rem('top', 8px);
|
|
17
|
+
}
|
|
18
18
|
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
.ins-c-skeleton {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
2
|
+
&__xs { width: 16% !important; }
|
|
3
|
+
&__sm { width: 33% !important; }
|
|
4
|
+
&__md { width: 66% !important; }
|
|
5
|
+
&__lg { width: 100% !important; }
|
|
6
|
+
&.ins-m-dark {
|
|
7
|
+
--pf-c-skeleton--BackgroundColor: var(--pf-global--palette--black-600);
|
|
8
|
+
--pf-c-skeleton--after--LinearGradientColorStop1: var(
|
|
9
|
+
--pf-global--palette--black-600
|
|
10
|
+
);
|
|
11
|
+
--pf-c-skeleton--after--LinearGradientColorStop2: var(
|
|
12
|
+
--pf-global--palette--black-500
|
|
13
|
+
);
|
|
14
|
+
--pf-c-skeleton--after--LinearGradientColorStop3: var(
|
|
15
|
+
--pf-global--palette--black-600
|
|
16
|
+
);
|
|
17
|
+
}
|
|
18
18
|
}
|
package/esm/Spinner/spinner.scss
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
@import '~@redhat-cloud-services/frontend-components-utilities/styles/_all.scss';
|
|
2
2
|
|
|
3
3
|
@keyframes spinner {
|
|
4
|
-
|
|
4
|
+
to { transform: rotate(360deg); }
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.ins-c-spinner {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
animation: spinner 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
23
|
-
}
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
&.ins-m-center {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
}
|
|
13
|
+
&:before {
|
|
14
|
+
content: '';
|
|
15
|
+
@include rem('width', 30px);
|
|
16
|
+
@include rem('height', 30px);
|
|
17
|
+
border-radius: 50%;
|
|
18
|
+
border: 3px solid var(--pf-global--active-color--200);
|
|
19
|
+
border-top-color: var(--pf-global--active-color--100);
|
|
20
|
+
animation: spinner 1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
21
|
+
}
|
|
24
22
|
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.ins-c-table__toolbar, .ins-c-table__toolbar-results {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
background: var(--pf-global--Color--light-100);
|
|
10
|
+
border-bottom: 1px solid var(--pf-global--BorderColor--light-200);
|
|
11
|
+
padding: var(--ins-c-table-toolbar--PaddingVertical) var(--ins-c-table-toolbar--PaddingHorizontal);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ins-c-table__toolbar.ins-m-footer { border-top: 1px solid var(--pf-global--BorderColor--light-200); }
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
.ins-c-table__toolbar-results { color: var(--pf-global--Color--200); }
|
|
17
17
|
|
|
18
18
|
.ins-c-table__toolbar-results-count + .ins-c-table__toolbar-results-selected {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
@include rem('margin-left', 15px);
|
|
20
|
+
@include rem('padding-left', 15px);
|
|
21
|
+
border-left: 2px solid var(--pf-global--BorderColor--light);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
@media only screen and (max-width: 768px) {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
.ins-c-table__toolbar, .ins-c-table__toolbar-results {
|
|
26
|
+
padding: 0 0;
|
|
27
|
+
}
|
|
28
28
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
button.ins-c-tag-count {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
color: var(--pf-global--icon--Color--light);
|
|
3
|
+
display: flex;
|
|
4
|
+
align-content: center;
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
.ins-c-tag__text {
|
|
8
|
-
|
|
8
|
+
margin-left: 10px;
|
|
9
9
|
}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import useChrome from '../useChrome';
|
|
2
2
|
var usePendoFeedback = function () {
|
|
3
|
-
var args = [];
|
|
4
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
5
|
-
args[_i] = arguments[_i];
|
|
6
|
-
}
|
|
7
3
|
var usePendoFeedbackInternal = useChrome().usePendoFeedback;
|
|
8
4
|
if (typeof usePendoFeedbackInternal !== 'function') {
|
|
9
5
|
console.warn('The "usePendoFeedback" hook is not available in this enviroment. Default feedback form will be used. Wait for chrome updates.');
|
|
10
6
|
return;
|
|
11
7
|
}
|
|
12
|
-
return usePendoFeedbackInternal
|
|
8
|
+
return usePendoFeedbackInternal();
|
|
13
9
|
};
|
|
14
10
|
export default usePendoFeedback;
|
|
15
11
|
//# sourceMappingURL=usePendoFeedback.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redhat-cloud-services/frontend-components",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.4",
|
|
4
4
|
"description": "Common components for RedHat Cloud Services project.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"module": "esm/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"start": "concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\" \"npm run build:packages\"",
|
|
20
20
|
"build:esm": "tsc --module es2015 --target es5",
|
|
21
21
|
"build:js": "tsc -p tsconfig.cjs.json",
|
|
22
|
+
"test:ct": "cypress run-ct",
|
|
22
23
|
"transform:css": "node ../../scripts/transform-scss.js"
|
|
23
24
|
},
|
|
24
25
|
"repository": {
|
|
@@ -54,6 +55,13 @@
|
|
|
54
55
|
"devDependencies": {
|
|
55
56
|
"@patternfly/patternfly": ">=4.102.2",
|
|
56
57
|
"node-sass-package-importer": "^5.3.2",
|
|
57
|
-
"@types/react": "^16.9.34"
|
|
58
|
+
"@types/react": "^16.9.34",
|
|
59
|
+
"@cypress/react": "^5.12.4",
|
|
60
|
+
"@cypress/webpack-dev-server": "^1.8.4",
|
|
61
|
+
"css-loader": "^6.7.1",
|
|
62
|
+
"cypress": "^9.6.0",
|
|
63
|
+
"eslint-plugin-cypress": "^2.12.1",
|
|
64
|
+
"sass-loader": "^12.6.0",
|
|
65
|
+
"style-loader": "^3.3.1"
|
|
58
66
|
}
|
|
59
67
|
}
|
package/useChrome/useChrome.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { ChromeAPI } from '@redhat-cloud-services/types';
|
|
2
2
|
export declare type UseChromeSelector<T = any> = (chromeState: ChromeAPI) => T;
|
|
3
|
-
declare const useChrome: (selector?: UseChromeSelector<
|
|
3
|
+
declare const useChrome: <T = ChromeAPI>(selector?: UseChromeSelector<T> | undefined) => ChromeAPI | T;
|
|
4
4
|
export default useChrome;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const usePendoFeedback: (
|
|
1
|
+
declare const usePendoFeedback: () => void;
|
|
2
2
|
export default usePendoFeedback;
|
|
@@ -5,16 +5,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
var useChrome_1 = __importDefault(require("../useChrome"));
|
|
7
7
|
var usePendoFeedback = function () {
|
|
8
|
-
var args = [];
|
|
9
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
10
|
-
args[_i] = arguments[_i];
|
|
11
|
-
}
|
|
12
8
|
var usePendoFeedbackInternal = (0, useChrome_1.default)().usePendoFeedback;
|
|
13
9
|
if (typeof usePendoFeedbackInternal !== 'function') {
|
|
14
10
|
console.warn('The "usePendoFeedback" hook is not available in this enviroment. Default feedback form will be used. Wait for chrome updates.');
|
|
15
11
|
return;
|
|
16
12
|
}
|
|
17
|
-
return usePendoFeedbackInternal
|
|
13
|
+
return usePendoFeedbackInternal();
|
|
18
14
|
};
|
|
19
15
|
exports.default = usePendoFeedback;
|
|
20
16
|
//# sourceMappingURL=usePendoFeedback.js.map
|