@rh-support/components 2.5.60 → 2.5.62

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,3 +1,2 @@
1
1
  export * from './PhoneInput';
2
- export * from './CountryData';
3
2
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -1,2 +1 @@
1
1
  export * from './PhoneInput';
2
- export * from './CountryData';
@@ -1 +1 @@
1
- {"version":3,"file":"AcceptTermsModal.d.ts","sourceRoot":"","sources":["../../../src/TermsAndConditions/AcceptTermsModal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAiBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAuI7C"}
1
+ {"version":3,"file":"AcceptTermsModal.d.ts","sourceRoot":"","sources":["../../../src/TermsAndConditions/AcceptTermsModal.tsx"],"names":[],"mappings":"AAeA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAOnD,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,SAAS,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAiBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,qBAkJ7C"}
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { publicApi } from '@cee-eng/hydrajs';
11
- import { Button, ButtonVariant, Checkbox, Flex, FlexItem, Modal, ModalFooter, ModalVariant, } from '@patternfly/react-core';
11
+ import { Button, ButtonVariant, Checkbox, Flex, FlexItem, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
12
+ import DownloadIcon from '@patternfly/react-icons/dist/js/icons/download-icon';
12
13
  import React, { useEffect, useState } from 'react';
13
14
  import { Trans, useTranslation } from 'react-i18next';
14
15
  import { useFetch } from '../hooks';
@@ -76,8 +77,12 @@ export function AcceptTermsModal(props) {
76
77
  label: getLocaleNameFromLocalCode(localeCode),
77
78
  value: localeCode,
78
79
  }));
79
- return (React.createElement(Modal, { variant: ModalVariant.medium, className: "pf-v6-u-font-size-sm", title: isFetching || !selectedTranslation ? 'Remote Access Rider' : selectedTranslation.translatedTermsName, isOpen: props.isModalOpen, onClose: handleModalToggle },
80
- isFetching || !selectedTranslation ? (React.createElement("div", { style: { height: '100px' } },
80
+ return (React.createElement(Modal, { variant: ModalVariant.medium, className: "pf-v6-u-font-size-sm", isOpen: props.isModalOpen, onClose: handleModalToggle },
81
+ React.createElement(ModalHeader, null,
82
+ React.createElement("h2", null, isFetching || !selectedTranslation
83
+ ? 'Remote Access Rider'
84
+ : selectedTranslation.translatedTermsName)),
85
+ React.createElement(ModalBody, null, isFetching || !selectedTranslation ? (React.createElement("div", { style: { height: '100px' } },
81
86
  React.createElement(LoadingIndicator, null))) : (React.createElement(React.Fragment, null,
82
87
  React.createElement("p", { className: "pf-v6-u-mb-md" }, selectedTranslation.translatedDescription),
83
88
  React.createElement("strong", null,
@@ -88,10 +93,12 @@ export function AcceptTermsModal(props) {
88
93
  React.createElement(SingleSelectDropdown, { ariaLabel: t('Select language'), id: "terms-language-selector", className: "pf-v6-u-mb-md", selected: getSelectedDropdownOption, options: getDropdownOptions(), onSelect: onLangChange, isDisabled: props.isSubmitting, placeholder: t('Select an option that best fits') })),
89
94
  React.createElement(FlexItem, null,
90
95
  React.createElement("a", { href: selectedTranslation.pdfDownloadUrl, "data-tracking-id": `${props.eventCode}-terms-download`, target: "_blank", rel: "noopener noreferrer" },
91
- React.createElement(Trans, null, "Download")))),
92
- React.createElement(Checkbox, { label: t('I have read and agree to the terms'), isChecked: termsAcked, onChange: (_event, checked) => {
93
- setTermsAcked(checked);
94
- }, "aria-label": t('I have read and agree to the terms'), id: "agree-terms", name: "agree-terms" }))),
96
+ React.createElement(Trans, null, "Download"),
97
+ React.createElement(DownloadIcon, { className: "pf-v6-u-ml-xs" })))),
98
+ React.createElement("div", { style: { marginTop: '10px' } },
99
+ React.createElement(Checkbox, { label: t('I have read and agree to the terms'), isChecked: termsAcked, onChange: (_event, checked) => {
100
+ setTermsAcked(checked);
101
+ }, "aria-label": t('I have read and agree to the terms'), id: "agree-terms", name: "agree-terms" }))))),
95
102
  React.createElement(ModalFooter, null,
96
103
  React.createElement(Button, { key: "confirm", variant: ButtonVariant.primary, isDisabled: !termsAcked || props.isSubmitting || props.isDisabled, isLoading: props.isDisabled || props.isSubmitting, "data-tracking-id": `${props.dataTrackingId || props.eventCode}-terms-accept`, onClick: onSubmitClick },
97
104
  React.createElement(Trans, null, "Submit")),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/components",
3
- "version": "2.5.60",
3
+ "version": "2.5.62",
4
4
  "description": "Contains all reusabel components for support app",
5
5
  "author": "Vikas Rathee <vrathee@redhat.com>",
6
6
  "license": "ISC",
@@ -106,5 +106,5 @@
106
106
  "defaults and supports es6-module",
107
107
  "maintained node versions"
108
108
  ],
109
- "gitHead": "1d5a823fc4474e5c1c6172eca4177510ece22f41"
109
+ "gitHead": "c5f0c0b18e82aff2ad923b11d474c44b75cb3d37"
110
110
  }