@rh-support/components 2.5.29 → 2.5.31

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.
@@ -53,11 +53,6 @@
53
53
  padding: 8px 16px !important;
54
54
  }
55
55
 
56
- .edit-question input[type='text']:placeholder-shown,
57
- .edit-question .form-control:placeholder-shown {
58
- background-color: #f2f2f2 !important;
59
- }
60
-
61
56
  .edit-question input[type='text']:not(:placeholder-shown),
62
57
  .edit-question .form-control:not(:placeholder-shown) {
63
58
  background-color: #fff !important;
@@ -1,5 +1,5 @@
1
1
  .language-selector {
2
- max-width: 8rem;
2
+ width: 8rem;
3
3
  margin-left: auto;
4
4
  z-index: 100;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":"AAUA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,qBA2Q1C;kBA3QQ,oBAAoB;;;AA8Q7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":"AAUA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAanD,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,qBA0Q1C;kBA1QQ,oBAAoB;;;AA6Q7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -144,7 +144,6 @@ function SupportFeedbackModal(props) {
144
144
  React.createElement("span", { className: "form-required", "aria-hidden": "true" }, "*"),
145
145
  ' '),
146
146
  React.createElement("div", { className: "satisfaction-values-wrapper" }, sentiments.map((sentiment) => {
147
- console.log(sentiment, values.levelOfSatisfied);
148
147
  return (React.createElement("label", { className: `${sentiment.id} sentiment-label pf-v6-u-ml-md pf-v6-u-mr-md ${values.levelOfSatisfied === sentiment.label ? 'sentiment-selected' : ''}`, htmlFor: sentiment.id, key: sentiment.id },
149
148
  React.createElement("input", { type: "radio", id: sentiment.id, "aria-label": t(sentiment.label), disabled: isFetching, name: "levelOfSatisfied", value: sentiment.label, checked: values.levelOfSatisfied === sentiment.label, "aria-checked": values.levelOfSatisfied === sentiment.label, required: true, className: "feedback_button_values pf-v6-u-mb-sm pf-screen-reader", onChange: handleSentimentChange }),
150
149
  ' ',
@@ -1 +1 @@
1
- {"version":3,"file":"TopContentSearch.d.ts","sourceRoot":"","sources":["../../../src/TopContentSearch/TopContentSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAQ5F,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,2BAA2B,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACzD,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,CAAC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A2B,EAC3B,SAAS,EACT,WAAgB,EAChB,cAAc,EACd,UAAkB,GACrB,EAAE,MAAM,qBAkHR"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import './topContentSearch.scss';
11
11
  import { SearchInput } from '@patternfly/react-core';
12
- import { getAccessHostname } from '@rh-support/utils';
12
+ import { getAccessHostname, haltEvent } from '@rh-support/utils';
13
13
  import SearchApi, { INDEX_MODES } from 'js-worker-search';
14
14
  import debounce from 'lodash/debounce';
15
15
  import flatMap from 'lodash/flatMap';
@@ -90,10 +90,11 @@ export function TopContentSearch({ topContentData = [], topContentResultsWrapper
90
90
  // eslint-disable-next-line react-hooks/exhaustive-deps
91
91
  [highlightSearchResults, topContentData, onSearchInputClear]);
92
92
  const debounceSearch = useMemo(() => debounce(handleSearch, 500), [handleSearch]);
93
- const onSearchInputChange = (value) => {
93
+ const onSearchInputChange = (e, value) => {
94
94
  setSearchText(value);
95
95
  setSearchQuery && setSearchQuery(value);
96
96
  debounceSearch(value);
97
+ haltEvent(e);
97
98
  };
98
99
  useEffect(() => {
99
100
  if (searchQuery)
@@ -104,5 +105,5 @@ export function TopContentSearch({ topContentData = [], topContentResultsWrapper
104
105
  return (React.createElement("div", { className: className, ref: searchWrapperRef },
105
106
  React.createElement("label", { htmlFor: "top-content-search-input" },
106
107
  React.createElement(Trans, null, "Filter results:")),
107
- React.createElement(SearchInput, { id: "top-content-search-input", className: "top-content-search-input pf-v6-u-flex-grow-1", "aria-label": t('search top content'), placeholder: t('Enter relevant keywords'), value: searchText, "data-tracking-id": dataTrackingId, onChange: (e, val) => onSearchInputChange(val), onClear: onSearchInputClear, isDisabled: isDisabled })));
108
+ React.createElement(SearchInput, { id: "top-content-search-input", className: "top-content-search-input pf-v6-u-flex-grow-1", "aria-label": t('search top content'), placeholder: t('Enter relevant keywords'), value: searchText, "data-tracking-id": dataTrackingId, onChange: (e, val) => onSearchInputChange(e, val), onClear: onSearchInputClear, isDisabled: isDisabled })));
108
109
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/components",
3
- "version": "2.5.29",
3
+ "version": "2.5.31",
4
4
  "description": "Contains all reusabel components for support app",
5
5
  "author": "Vikas Rathee <vrathee@redhat.com>",
6
6
  "license": "ISC",
@@ -68,8 +68,8 @@
68
68
  "@patternfly/react-table": "6.2.1",
69
69
  "@patternfly/react-tokens": "6.2.1",
70
70
  "@rh-support/types": "2.0.5",
71
- "@rh-support/user-permissions": "2.5.19",
72
- "@rh-support/utils": "2.5.18",
71
+ "@rh-support/user-permissions": "2.5.20",
72
+ "@rh-support/utils": "2.5.19",
73
73
  "dompurify": "^2.2.6",
74
74
  "js-worker-search": "^1.4.1",
75
75
  "lazysizes": "^5.3.2",
@@ -106,5 +106,5 @@
106
106
  "defaults and supports es6-module",
107
107
  "maintained node versions"
108
108
  ],
109
- "gitHead": "e0bf8c7dfd320b0250ba6cb2efa66abcd1c0edf1"
109
+ "gitHead": "1987aef1be6d63188e3313e7f8a6d5d563f6aae4"
110
110
  }