@rh-support/cases 2.6.43 → 2.6.44
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BookmarkedSearchesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/BookmarkedSearchesSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BookmarkedSearchesSelector.d.ts","sourceRoot":"","sources":["../../../../../src/components/case-list/case-search/BookmarkedSearchesSelector.tsx"],"names":[],"mappings":"AAsBA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAGvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAahE,UAAU,MAAM;IACZ,uBAAuB,EAAE,MAAM,CAAC;IAChC,iBAAiB,EAAE,mBAAmB,CAAC;IACvC,qBAAqB,EAAE,OAAO,CAAC;IAC/B,sBAAsB,EAAE,MAAM,CAAC;CAClC;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,qBAyTvD"}
|
|
@@ -7,7 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { Button, ButtonVariant, Divider, MenuToggle, MenuToggleAction, Select, SelectOption, Split, SplitItem, } from '@patternfly/react-core';
|
|
10
|
+
import { Button, ButtonVariant, Divider, MenuToggle, MenuToggleAction, Select, SelectOption, Split, SplitItem, Truncate, } from '@patternfly/react-core';
|
|
11
11
|
import PencilAltIcon from '@patternfly/react-icons/dist/js/icons/pencil-alt-icon';
|
|
12
12
|
import StarIcon from '@patternfly/react-icons/dist/js/icons/star-icon';
|
|
13
13
|
import { ConfirmationServiceProvider } from '@rh-support/components';
|
|
@@ -170,9 +170,9 @@ export function BookmarkedSearchesSelector(props) {
|
|
|
170
170
|
React.createElement(Split, { key: `split-parent-${bookmarkedSearch}` },
|
|
171
171
|
React.createElement(SplitItem, { isFilled: true, key: `split-left-${bookmarkedSearch}` },
|
|
172
172
|
React.createElement(Button, { icon: React.createElement(React.Fragment, null,
|
|
173
|
-
((_a = bookmarkedSearches[bookmarkedSearch]) === null || _a === void 0 ? void 0 : _a.defaultChecked) && (React.createElement(StarIcon, { title:
|
|
173
|
+
((_a = bookmarkedSearches[bookmarkedSearch]) === null || _a === void 0 ? void 0 : _a.defaultChecked) && (React.createElement(StarIcon, { title: t('Default search'), color: "#F0AB00", className: "pf-v6-u-mr-sm", "aria-label": t('Default search') })),
|
|
174
174
|
' ',
|
|
175
|
-
bookmarkedSearch), variant: ButtonVariant.plain, isBlock: true, className: "pf-v6-u-text-align-left", onClick: onBookmarkSelectorChange(bookmarkedSearch, bookmarkedSearches[bookmarkedSearch], true) })),
|
|
175
|
+
React.createElement(Truncate, { content: bookmarkedSearch, style: { maxWidth: '200px' } })), variant: ButtonVariant.plain, isBlock: true, className: "pf-v6-u-text-align-left bookmark-search-button-text", onClick: onBookmarkSelectorChange(bookmarkedSearch, bookmarkedSearches[bookmarkedSearch], true) })),
|
|
176
176
|
React.createElement(SplitItem, { key: `split-right-${bookmarkedSearch}` },
|
|
177
177
|
' ',
|
|
178
178
|
React.createElement(Button, { "aria-label": t('Edit or delete saved search'), className: "pf-v6-u-pr-sm", onClick: onEditSavedSearchClick(bookmarkedSearch), variant: ButtonVariant.link, icon: React.createElement(PencilAltIcon, null) })))));
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -36,6 +36,13 @@ div.pf-v6-c-modal-box__body {
|
|
|
36
36
|
min-width: 30rem;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
.bookmark-search-button-text {
|
|
40
|
+
&:hover {
|
|
41
|
+
background-color: transparent !important;
|
|
42
|
+
color: inherit !important;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
39
46
|
.save-for-later-button {
|
|
40
47
|
flex: 1;
|
|
41
48
|
font-size: 16px;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/cases",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.44",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -96,5 +96,5 @@
|
|
|
96
96
|
"defaults and supports es6-module",
|
|
97
97
|
"maintained node versions"
|
|
98
98
|
],
|
|
99
|
-
"gitHead": "
|
|
99
|
+
"gitHead": "40f7bb68143a6cd096c7b3ee2e524083317d6957"
|
|
100
100
|
}
|