@rh-support/components 2.1.2 → 2.1.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.
Files changed (99) hide show
  1. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  2. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  3. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -1
  4. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  5. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -1
  6. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  7. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -1
  8. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  9. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -1
  10. package/lib/cjs/DropDownList/DropDownList.d.ts.map +1 -1
  11. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  12. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  13. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -1
  14. package/lib/cjs/ErrorPages/Generic403.d.ts.map +1 -1
  15. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -1
  16. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  17. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  18. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +1 -1
  19. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -1
  20. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  21. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -1
  22. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +1 -1
  23. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  24. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  25. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -1
  26. package/lib/cjs/LoginModal/LoginModal.d.ts.map +1 -1
  27. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -1
  28. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  29. package/lib/cjs/PhoneInput/PhoneInput.d.ts +4 -1
  30. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +1 -1
  31. package/lib/cjs/PhoneInput/PhoneInput.js +93 -64
  32. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  33. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  34. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  35. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  36. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -1
  37. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +1 -1
  38. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  39. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  40. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  41. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  42. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -1
  43. package/lib/cjs/Table/TableColumnSelector.d.ts.map +1 -1
  44. package/lib/cjs/Table/TablePagination.d.ts +0 -1
  45. package/lib/cjs/Table/TablePagination.d.ts.map +1 -1
  46. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  47. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  48. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -1
  49. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +1 -1
  50. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts +0 -1
  51. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  52. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +0 -1
  53. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  54. package/lib/esm/CoverSpinner/CoverSpinner.d.ts +0 -1
  55. package/lib/esm/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  56. package/lib/esm/CustomTextInput/CustomTextInput.d.ts +0 -1
  57. package/lib/esm/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  58. package/lib/esm/DropDownList/DropDownList.d.ts +0 -1
  59. package/lib/esm/DropDownList/DropDownList.d.ts.map +1 -1
  60. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -1
  61. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  62. package/lib/esm/ErrorPages/Generic403.d.ts +0 -1
  63. package/lib/esm/ErrorPages/Generic403.d.ts.map +1 -1
  64. package/lib/esm/FeedbackForm/FeedbackForm.d.ts +0 -1
  65. package/lib/esm/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  66. package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  67. package/lib/esm/Functional/CaseContactsSelectorExternal.js +1 -1
  68. package/lib/esm/LanguageSelector/LanguageSelector.d.ts +0 -1
  69. package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  70. package/lib/esm/LoadingDots/LoadingDots.d.ts +0 -1
  71. package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
  72. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts +0 -1
  73. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  74. package/lib/esm/LoginModal/LoginModal.d.ts +0 -1
  75. package/lib/esm/LoginModal/LoginModal.d.ts.map +1 -1
  76. package/lib/esm/PaginationCompact/PaginationCompact.d.ts +0 -1
  77. package/lib/esm/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  78. package/lib/esm/PhoneInput/PhoneInput.d.ts +4 -1
  79. package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -1
  80. package/lib/esm/PhoneInput/PhoneInput.js +83 -55
  81. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -1
  82. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  83. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -1
  84. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  85. package/lib/esm/SubscriptionAbuse/const.d.ts +0 -1
  86. package/lib/esm/SubscriptionAbuse/const.d.ts.map +1 -1
  87. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -1
  88. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  89. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -1
  90. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  91. package/lib/esm/Table/TableColumnSelector.d.ts +0 -1
  92. package/lib/esm/Table/TableColumnSelector.d.ts.map +1 -1
  93. package/lib/esm/Table/TablePagination.d.ts +0 -1
  94. package/lib/esm/Table/TablePagination.d.ts.map +1 -1
  95. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts +0 -1
  96. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  97. package/lib/esm/helperFunctions/errorMessage.d.ts +0 -1
  98. package/lib/esm/helperFunctions/errorMessage.d.ts.map +1 -1
  99. package/package.json +6 -6
@@ -1 +1 @@
1
- {"version":3,"file":"DropDownList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/DropDownList.tsx"],"names":[],"mappings":";AAAA,OAAO,oBAAoB,CAAC;AAa5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAuB7C,iBAAS,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,eAoJhD;kBApJQ,QAAQ;;;AAsJjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
1
+ {"version":3,"file":"DropDownList.d.ts","sourceRoot":"","sources":["../../../src/DropDownList/DropDownList.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAa5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAuB7C,iBAAS,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,kBAAkB,CAAC,CAAC,CAAC,eAoJhD;kBApJQ,QAAQ;;;AAsJjB,OAAO,EAAE,QAAQ,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  export interface IErrorMsgInfo {
3
2
  errorType?: 'info' | 'warning' | 'error';
4
3
  title?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ErrorBoundaryFallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundaryFallbackComponent.tsx"],"names":[],"mappings":";AAQA,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,MAAO,SAAQ,aAAa;IAClC,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AASD,iBAAS,8BAA8B,CAAC,KAAK,EAAE,MAAM,eA4BpD;kBA5BQ,8BAA8B;;;AA+BvC,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
1
+ {"version":3,"file":"ErrorBoundaryFallbackComponent.d.ts","sourceRoot":"","sources":["../../../src/ErrorBoundary/ErrorBoundaryFallbackComponent.tsx"],"names":[],"mappings":"AAQA,MAAM,WAAW,aAAa;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,MAAO,SAAQ,aAAa;IAClC,gBAAgB,EAAE,OAAO,CAAC;CAC7B;AASD,iBAAS,8BAA8B,CAAC,KAAK,EAAE,MAAM,eA4BpD;kBA5BQ,8BAA8B;;;AA+BvC,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  export declare function Generic403(): JSX.Element;
3
2
  //# sourceMappingURL=Generic403.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Generic403.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/Generic403.tsx"],"names":[],"mappings":";AAGA,wBAAgB,UAAU,gBAQzB"}
1
+ {"version":3,"file":"Generic403.d.ts","sourceRoot":"","sources":["../../../src/ErrorPages/Generic403.tsx"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,gBAQzB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  buttonLabel: string;
4
3
  additionalBtnClass: string;
@@ -1 +1 @@
1
- {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":";AAkBA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAID,iBAAS,YAAY,CAAC,KAAK,EAAE,MAAM,eA2OlC;kBA3OQ,YAAY;;;AA8OrB,OAAO,EAAE,YAAY,EAAE,CAAC"}
1
+ {"version":3,"file":"FeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/FeedbackForm/FeedbackForm.tsx"],"names":[],"mappings":"AAkBA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAA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assign({}, restProps, { id: props.id || '',
193
193
  // @ts-expect-error
194
- className: props.className || '', filterBy: ['firstName', 'lastName', 'ssoUsername'], clearButton: !!props.clearButton, multiple: !!props.multiple, isLoading: contactList.isFetching || props.isUpdating, options: [...contactList.data, ...getCustomEmails()], selected: !isEmpty(props.selected) ? props.selected : [], onChange: onCustomerContactSelect, labelKey: props.multiple ? 'ssoUsername' : getHydraContactLabel, placeholder: props.placeholder || 'Search by name or username', renderMenuItemChildren: renderMenuItemChildren, onBlur: onCustomerContactSelectBlur, minLength: props.minLength || 0, disabled: isDisabled }, conditionalProps)));
194
+ className: props.className || '', filterBy: ['firstName', 'lastName', 'ssoUsername'], clearButton: !!props.clearButton, multiple: !!props.multiple, isLoading: contactList.isFetching || props.isUpdating, options: [...contactList.data, ...getCustomEmails()], selected: !isEmpty(props.selected) ? props.selected : [], onChange: onCustomerContactSelect, labelKey: props.multiple ? 'ssoUsername' : getHydraContactLabel, placeholder: props.placeholder || 'Search by name or username', renderMenuItemChildren: renderMenuItemChildren, onBlur: onCustomerContactSelectBlur, minLength: props.minLength || 0, disabled: isDisabled }, conditionalProps, { "data-tracking-id": "external-case-contact-selector" })));
195
195
  }
196
196
  export { CaseContactsSelectorExternal, renderMenuItemChildren, getHydraContactLabel };
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './languageSelector.css';
3
2
  import { IDClassNameProps } from '@rh-support/types/shared';
4
3
  interface IProps extends IDClassNameProps {
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageSelector.d.ts","sourceRoot":"","sources":["../../../src/LanguageSelector/LanguageSelector.tsx"],"names":[],"mappings":";AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAC;AAOF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAyBtC;kBAzBQ,gBAAgB;;;AA4BzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"LanguageSelector.d.ts","sourceRoot":"","sources":["../../../src/LanguageSelector/LanguageSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAO5D,UAAU,MAAO,SAAQ,gBAAgB;IACrC,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,UAAU,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,aAAa;;;;;;;;;;;CAWzB,CAAC;AAOF,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAyBtC;kBAzBQ,gBAAgB;;;AA4BzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './LoadingDots.css';
3
2
  interface IProps {
4
3
  show?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":";AAAA,OAAO,mBAAmB,CAAC;AAK3B,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAkBjC;kBAlBQ,WAAW;;;AAoBpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
1
+ {"version":3,"file":"LoadingDots.d.ts","sourceRoot":"","sources":["../../../src/LoadingDots/LoadingDots.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAK3B,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACpB;AAKD,iBAAS,WAAW,CAAC,KAAK,EAAE,MAAM,eAkBjC;kBAlBQ,WAAW;;;AAoBpB,OAAO,EAAE,WAAW,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './loadingIndicator.css';
3
2
  interface IProps {
4
3
  size?: 'sm' | 'xs' | 'lg';
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":";AAAA,OAAO,wBAAwB,CAAC;AAIhC,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAQD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAgBtC;kBAhBQ,gBAAgB;;;AAkBzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
1
+ {"version":3,"file":"LoadingIndicator.d.ts","sourceRoot":"","sources":["../../../src/LoadingIndicator/LoadingIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAIhC,UAAU,MAAM;IACZ,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAQD,iBAAS,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAgBtC;kBAhBQ,gBAAgB;;;AAkBzB,OAAO,EAAE,gBAAgB,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  isOpen: boolean;
4
3
  login: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"LoginModal.d.ts","sourceRoot":"","sources":["../../../src/LoginModal/LoginModal.tsx"],"names":[],"mappings":";AAGA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAUD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAkBvC;yBAlBe,UAAU"}
1
+ {"version":3,"file":"LoginModal.d.ts","sourceRoot":"","sources":["../../../src/LoginModal/LoginModal.tsx"],"names":[],"mappings":"AAGA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,IAAI,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;CACpB;AAUD,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eAkBvC;yBAlBe,UAAU"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './paginationCompact.css';
3
2
  interface IProps {
4
3
  maxPage: number;
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationCompact.d.ts","sourceRoot":"","sources":["../../../src/PaginationCompact/PaginationCompact.tsx"],"names":[],"mappings":";AAAA,OAAO,yBAAyB,CAAC;AAOjC,UAAU,MAAM;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,eA0DlF"}
1
+ {"version":3,"file":"PaginationCompact.d.ts","sourceRoot":"","sources":["../../../src/PaginationCompact/PaginationCompact.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAOjC,UAAU,MAAM;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,eA0DlF"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './PhoneInput.scss';
3
2
  interface IProps {
4
3
  phoneValue: string;
@@ -11,6 +10,10 @@ interface IProps {
11
10
  isLoading?: boolean;
12
11
  isDisabled?: boolean;
13
12
  }
13
+ export declare const getPhoneObj: (phoneNumber: string) => {
14
+ countryCode: string;
15
+ phoneLine: string;
16
+ };
14
17
  export declare function PhoneInput(props: IProps): JSX.Element;
15
18
  export {};
16
19
  //# sourceMappingURL=PhoneInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":";AAAA,OAAO,mBAAmB,CAAC;AAS3B,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,OAAO,KAAA,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eA4OvC"}
1
+ {"version":3,"file":"PhoneInput.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/PhoneInput.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAU3B,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACrC,WAAW,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,CAAC;IACtE,mBAAmB,CAAC,EAAE,CAAC,MAAM,KAAA,KAAK,IAAI,CAAC;IACvC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,CAAC,OAAO,KAAA,KAAK,IAAI,CAAC;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AA0DD,eAAO,MAAM,WAAW,gBAAiB,MAAM;;;CAqB9C,CAAC;AAEF,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,eA+LvC"}
@@ -1,9 +1,79 @@
1
1
  import './PhoneInput.scss';
2
2
  import { InputGroup, Select, SelectOption, SelectVariant, Spinner, TextInput } from '@patternfly/react-core';
3
- import { isEmpty, isEqual } from 'lodash';
3
+ import isEmpty from 'lodash/isEmpty';
4
+ import isEqual from 'lodash/isEqual';
4
5
  import React, { useEffect, useState } from 'react';
5
6
  import { useTranslation } from 'react-i18next';
6
7
  import CountryData from './CountryData';
8
+ const PREFIX = '+';
9
+ const DEFAULT_MASK = '... ... ... ... ..';
10
+ const alwaysDefaultMask = false;
11
+ // Getting Country phone format
12
+ function getMask(prefix, dialCode, predefinedMask, defaultMask, alwaysDefaultMask) {
13
+ if (!predefinedMask || alwaysDefaultMask) {
14
+ return prefix + ''.padEnd(dialCode.length, '.') + ' ' + defaultMask;
15
+ }
16
+ else {
17
+ return prefix + ''.padEnd(dialCode.length, '.') + ' ' + predefinedMask;
18
+ }
19
+ }
20
+ const initializedCountries = CountryData.map((country) => {
21
+ const countryItem = {
22
+ name: country[0],
23
+ regions: country[1],
24
+ iso2: country[2],
25
+ countryCode: country[3],
26
+ dialCode: country[3],
27
+ format: getMask(PREFIX, country[3], country[4], DEFAULT_MASK, alwaysDefaultMask),
28
+ priority: country[5] || 0,
29
+ };
30
+ return countryItem;
31
+ });
32
+ // Formatting phone numbers according to country
33
+ const formatNumber = (fullPhoneNumber, localFormat) => {
34
+ if (isEmpty(fullPhoneNumber))
35
+ return '';
36
+ let localPhone = fullPhoneNumber.replace(PREFIX, '');
37
+ if (isEmpty(localPhone))
38
+ return '';
39
+ // Formatting inputted number
40
+ let phone = '';
41
+ [...fullPhoneNumber].forEach((ele) => {
42
+ if (ele >= '0' && ele <= '9') {
43
+ phone = phone.concat(ele);
44
+ }
45
+ });
46
+ let pattern = '';
47
+ let i = 0;
48
+ for (let j = 0; j < localFormat.length && i < phone.length; j++) {
49
+ if (localFormat[j] === '.') {
50
+ pattern += phone[i];
51
+ i++;
52
+ }
53
+ else {
54
+ pattern += localFormat[j];
55
+ }
56
+ }
57
+ return pattern;
58
+ };
59
+ // return phoneline and countrycode for any given phone
60
+ export const getPhoneObj = (phoneNumber) => {
61
+ let localPhone = phoneNumber.replace(/[^0-9]/g, '');
62
+ let countryCode = '';
63
+ // Guessing countries according to user input
64
+ const possibleCountries = initializedCountries.filter((country) => localPhone === null || localPhone === void 0 ? void 0 : localPhone.startsWith(country.dialCode.toString()));
65
+ const exactCountry = initializedCountries.filter((country) => country.dialCode.toString() === localPhone);
66
+ if (!isEmpty(exactCountry)) {
67
+ countryCode = exactCountry[0].dialCode.toString();
68
+ }
69
+ else if (!isEmpty(possibleCountries)) {
70
+ countryCode = possibleCountries[0].dialCode.toString();
71
+ }
72
+ return {
73
+ countryCode: PREFIX + countryCode,
74
+ phoneLine: localPhone.substring(countryCode.length, localPhone.length),
75
+ };
76
+ };
7
77
  export function PhoneInput(props) {
8
78
  const { phoneValue, countryCode, onCountryCodeChange, onPhoneValueChange, validations, setInvalid } = props;
9
79
  const { t } = useTranslation();
@@ -11,9 +81,6 @@ export function PhoneInput(props) {
11
81
  const [iso2, setIso2] = useState('');
12
82
  const [formattedNumber, setFormattedNumber] = useState('');
13
83
  const [format, setFormat] = useState('');
14
- const PREFIX = '+';
15
- const DEFAULT_MASK = '... ... ... ... ..';
16
- const alwaysDefaultMask = false;
17
84
  const [countryObj, setCountryObj] = useState({
18
85
  name: '',
19
86
  regions: [''],
@@ -22,27 +89,6 @@ export function PhoneInput(props) {
22
89
  dialCode: '',
23
90
  format: '', // Number Format (For US, '(...) ...-....' )
24
91
  });
25
- // Getting Country phone format
26
- function getMask(prefix, dialCode, predefinedMask, defaultMask, alwaysDefaultMask) {
27
- if (!predefinedMask || alwaysDefaultMask) {
28
- return prefix + ''.padEnd(dialCode.length, '.') + ' ' + defaultMask;
29
- }
30
- else {
31
- return prefix + ''.padEnd(dialCode.length, '.') + ' ' + predefinedMask;
32
- }
33
- }
34
- const initializedCountries = CountryData.map((country) => {
35
- const countryItem = {
36
- name: country[0],
37
- regions: country[1],
38
- iso2: country[2],
39
- countryCode: country[3],
40
- dialCode: country[3],
41
- format: getMask(PREFIX, country[3], country[4], DEFAULT_MASK, alwaysDefaultMask),
42
- priority: country[5] || 0,
43
- };
44
- return countryItem;
45
- });
46
92
  const setLocalFormat = (phoneNumber) => {
47
93
  let localPhone = phoneNumber.replace(PREFIX, '').trim();
48
94
  let localFormat;
@@ -113,33 +159,6 @@ export function PhoneInput(props) {
113
159
  });
114
160
  return getOptions(newOptions);
115
161
  };
116
- // Formatting phone numbers according to country
117
- const formatNumber = (fullPhoneNumber, localFormat) => {
118
- if (isEmpty(fullPhoneNumber))
119
- return '';
120
- let localPhone = fullPhoneNumber.replace(PREFIX, '');
121
- if (isEmpty(localPhone))
122
- return '';
123
- // Formatting inputted number
124
- let phone = '';
125
- [...fullPhoneNumber].forEach((ele) => {
126
- if (ele >= '0' && ele <= '9') {
127
- phone = phone.concat(ele);
128
- }
129
- });
130
- let pattern = '';
131
- let i = 0;
132
- for (let j = 0; j < localFormat.length && i < phone.length; j++) {
133
- if (localFormat[j] === '.') {
134
- pattern += phone[i];
135
- i++;
136
- }
137
- else {
138
- pattern += localFormat[j];
139
- }
140
- }
141
- return pattern;
142
- };
143
162
  const placeholder = (React.createElement("div", { className: "phone-number-select-placeholder" },
144
163
  React.createElement("div", { className: "pf-u-display-inline-flex" },
145
164
  React.createElement("div", { className: `flag ${iso2}`, style: { marginRight: '5px' } }),
@@ -166,14 +185,23 @@ export function PhoneInput(props) {
166
185
  // eslint-disable-next-line react-hooks/exhaustive-deps
167
186
  }, [countryObj]);
168
187
  useEffect(() => {
188
+ // when user types +, it will be replaced by empty string
189
+ if (isEqual(phoneValue.trim(), PREFIX) && isEmpty(iso2)) {
190
+ onPhoneValueChange('');
191
+ setFormattedNumber('');
192
+ return;
193
+ }
169
194
  if (isEmpty(phoneValue)) {
170
195
  setIso2('');
171
196
  setInvalid && setInvalid(false);
172
197
  setFormattedNumber('');
173
- }
174
- if (isEqual(phoneValue.trim(), PREFIX) && isEmpty(iso2)) {
175
198
  onPhoneValueChange('');
176
- setFormattedNumber('');
199
+ }
200
+ else {
201
+ onPhoneValueChange(phoneValue);
202
+ const localFormat = setLocalFormat(phoneValue);
203
+ const _formattedNumber = formatNumber(phoneValue, localFormat);
204
+ setFormattedNumber(_formattedNumber);
177
205
  }
178
206
  // eslint-disable-next-line react-hooks/exhaustive-deps
179
207
  }, [phoneValue]);
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './styles.css';
3
2
  import { CircularProgressbarDefaultProps, CircularProgressbarProps } from './types';
4
3
  declare function CircularProgressbar(props: CircularProgressbarProps): JSX.Element;
@@ -1 +1 @@
1
- {"version":3,"file":"CircularProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/ProgressBar/CircularProgressBar/CircularProgressBar.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,CAAC;AAMtB,OAAO,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA8BpF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eA6E3D;kBA7EQ,mBAAmB;;;AAiF5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"CircularProgressBar.d.ts","sourceRoot":"","sources":["../../../../src/ProgressBar/CircularProgressBar/CircularProgressBar.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAMtB,OAAO,EAAE,+BAA+B,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AA8BpF,iBAAS,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,eA6E3D;kBA7EQ,mBAAmB;;;AAiF5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  isOpen: boolean;
4
3
  onConfirm: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"SubscriptionAbuseModal.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/SubscriptionAbuseModal.tsx"],"names":[],"mappings":";AAMA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA0BnD"}
1
+ {"version":3,"file":"SubscriptionAbuseModal.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/SubscriptionAbuseModal.tsx"],"names":[],"mappings":"AAMA,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,eA0BnD"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare const SubscriptionAbuseModalTitle = "Please address your account issues";
3
2
  declare const SubscriptionAbuseModalText: JSX.Element;
4
3
  export { SubscriptionAbuseModalTitle, SubscriptionAbuseModalText };
@@ -1 +1 @@
1
- {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/const.tsx"],"names":[],"mappings":";AAEA,QAAA,MAAM,2BAA2B,uCAAuC,CAAC;AACzE,QAAA,MAAM,0BAA0B,aAS/B,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,CAAC"}
1
+ {"version":3,"file":"const.d.ts","sourceRoot":"","sources":["../../../src/SubscriptionAbuse/const.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,2BAA2B,uCAAuC,CAAC;AACzE,QAAA,MAAM,0BAA0B,aAS/B,CAAC;AAEF,OAAO,EAAE,2BAA2B,EAAE,0BAA0B,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  buttonLabel: string;
4
3
  additionalBtnClass: string;
@@ -1 +1 @@
1
- {"version":3,"file":"SupportFeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackForm.tsx"],"names":[],"mappings":";AAMA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAQD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAuBzC;kBAvBQ,mBAAmB;;;AA0B5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
1
+ {"version":3,"file":"SupportFeedbackForm.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackForm.tsx"],"names":[],"mappings":"AAMA,UAAU,MAAM;IACZ,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,OAAO,CAAC;CACrB;AAQD,iBAAS,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAuBzC;kBAvBQ,mBAAmB;;;AA0B5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  isModalOpen: boolean;
4
3
  onClose: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":";AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAuN1C;kBAvNQ,oBAAoB;;;AA0N7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
1
+ {"version":3,"file":"SupportFeedbackModal.d.ts","sourceRoot":"","sources":["../../../src/SupportFeedbackForm/SupportFeedbackModal.tsx"],"names":[],"mappings":"AAuBA,UAAU,MAAM;IACZ,WAAW,EAAE,OAAO,CAAC;IACrB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAMD,iBAAS,oBAAoB,CAAC,KAAK,EAAE,MAAM,eAuN1C;kBAvNQ,oBAAoB;;;AA0N7B,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './columnSelector.css';
3
2
  interface IProps {
4
3
  onColumnSelectorChange: (columns: string[]) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"TableColumnSelector.d.ts","sourceRoot":"","sources":["../../../src/Table/TableColumnSelector.tsx"],"names":[],"mappings":";AACA,OAAO,sBAAsB,CAAC;AAU9B,UAAU,MAAM;IACZ,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,mBAAmB,CAAC,EAAE,sBAAsB,EAAE,EAAE,MAAM,eAoCrE"}
1
+ {"version":3,"file":"TableColumnSelector.d.ts","sourceRoot":"","sources":["../../../src/Table/TableColumnSelector.tsx"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAU9B,UAAU,MAAM;IACZ,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,mBAAmB,CAAC,EAAE,sBAAsB,EAAE,EAAE,MAAM,eAoCrE"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { PaginationVariant } from '@patternfly/react-core';
3
2
  interface IProps {
4
3
  itemCount?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../src/Table/TablePagination.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKvE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eA6B5C"}
1
+ {"version":3,"file":"TablePagination.d.ts","sourceRoot":"","sources":["../../../src/Table/TablePagination.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAKvE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IAChD,eAAe,CAAC,EAAE,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE;;;KAAA,KAAK,IAAI,CAAC;IACtD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,eA6B5C"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  interface IProps {
3
2
  isModalOpen: boolean;
4
3
  onModalClose: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"AcceptTermsModal.d.ts","sourceRoot":"","sources":["../../../src/TermsAndConditions/AcceptTermsModal.tsx"],"names":[],"mappings":";AAmBA,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;CAC3B;AAiBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAyI7C"}
1
+ {"version":3,"file":"AcceptTermsModal.d.ts","sourceRoot":"","sources":["../../../src/TermsAndConditions/AcceptTermsModal.tsx"],"names":[],"mappings":"AAmBA,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;CAC3B;AAiBD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,eAyI7C"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import './errorMessage.scss';
3
2
  export interface IAppErrorObj {
4
3
  title: string;
@@ -1 +1 @@
1
- {"version":3,"file":"errorMessage.d.ts","sourceRoot":"","sources":["../../../src/helperFunctions/errorMessage.tsx"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAC;AAS7B,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,SAAS;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACxC;AAoDD,iBAAS,wBAAwB,CAAC,KAAK,KAAA,EAAE,aAAa,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAwCxF;AAED,iBAAS,iBAAiB,CAAC,KAAK,KAAA,EAAE,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAIjE;AAED,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"errorMessage.d.ts","sourceRoot":"","sources":["../../../src/helperFunctions/errorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAS7B,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,SAAS;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACxC;AAoDD,iBAAS,wBAAwB,CAAC,KAAK,KAAA,EAAE,aAAa,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAwCxF;AAED,iBAAS,iBAAiB,CAAC,KAAK,KAAA,EAAE,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAIjE;AAED,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/components",
3
- "version": "2.1.2",
3
+ "version": "2.1.4",
4
4
  "description": "Contains all reusabel components for support app",
5
5
  "author": "Vikas Rathee <vrathee@redhat.com>",
6
6
  "license": "ISC",
@@ -55,7 +55,7 @@
55
55
  "copy:img:cjs": "../../node_modules/.bin/copyfiles -V -u 1 -a 'src/**/*.png' 'src/**/*.jpg' 'src/**/*.gif' lib/cjs"
56
56
  },
57
57
  "peerDependencies": {
58
- "@cee-eng/hydrajs": "4.15.86",
58
+ "@cee-eng/hydrajs": "4.15.87",
59
59
  "@cee-eng/ui-toolkit": "1.1.6",
60
60
  "@patternfly/patternfly": "4.196.7",
61
61
  "@patternfly/react-core": "4.264.0",
@@ -74,14 +74,14 @@
74
74
  "use-deep-compare-effect": "^1.6.1"
75
75
  },
76
76
  "dependencies": {
77
- "@cee-eng/hydrajs": "4.15.86",
77
+ "@cee-eng/hydrajs": "4.15.87",
78
78
  "@cee-eng/ui-toolkit": "1.1.6",
79
79
  "@patternfly/patternfly": "4.196.7",
80
80
  "@patternfly/react-core": "4.264.0",
81
81
  "@patternfly/react-table": "4.111.33",
82
82
  "@rh-support/types": "2.0.2",
83
- "@rh-support/user-permissions": "2.1.2",
84
- "@rh-support/utils": "2.1.0",
83
+ "@rh-support/user-permissions": "2.1.3",
84
+ "@rh-support/utils": "2.1.1",
85
85
  "dompurify": "^2.2.6",
86
86
  "downshift": "^6.0.5",
87
87
  "js-worker-search": "^1.4.1",
@@ -117,5 +117,5 @@
117
117
  "defaults and supports es6-module",
118
118
  "maintained node versions"
119
119
  ],
120
- "gitHead": "01f23b19ee074f6515c54b2cdec744deb3ba2c1b"
120
+ "gitHead": "d0220cf8078eb0da56f34f1cf0598edad0704669"
121
121
  }