@rh-support/components 2.1.48 → 2.1.50
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/lib/esm/Table/index.d.ts +0 -1
- package/lib/esm/Table/index.d.ts.map +1 -1
- package/lib/esm/Table/index.js +0 -1
- package/package.json +12 -23
- package/lib/cjs/AlertMessage/AlertMessage.css +0 -9
- package/lib/cjs/AlertMessage/AlertMessage.d.ts +0 -24
- package/lib/cjs/AlertMessage/AlertMessage.d.ts.map +0 -1
- package/lib/cjs/AlertMessage/AlertMessage.js +0 -30
- package/lib/cjs/AlertMessage/index.d.ts +0 -2
- package/lib/cjs/AlertMessage/index.d.ts.map +0 -1
- package/lib/cjs/AlertMessage/index.js +0 -18
- package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -7
- package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationContext.js +0 -57
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -30
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +0 -28
- package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +0 -36
- package/lib/cjs/ConfirmationModal/index.d.ts +0 -3
- package/lib/cjs/ConfirmationModal/index.d.ts.map +0 -1
- package/lib/cjs/ConfirmationModal/index.js +0 -18
- package/lib/cjs/CoverSpinner/CoverSpinner.css +0 -16
- package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -4
- package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +0 -1
- package/lib/cjs/CoverSpinner/CoverSpinner.js +0 -13
- package/lib/cjs/CoverSpinner/index.d.ts +0 -2
- package/lib/cjs/CoverSpinner/index.d.ts.map +0 -1
- package/lib/cjs/CoverSpinner/index.js +0 -17
- package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts +0 -15
- package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +0 -1
- package/lib/cjs/CustomContentLoader/CustomContentLoader.js +0 -62
- package/lib/cjs/CustomContentLoader/index.d.ts +0 -2
- package/lib/cjs/CustomContentLoader/index.d.ts.map +0 -1
- package/lib/cjs/CustomContentLoader/index.js +0 -17
- package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -14
- package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +0 -1
- package/lib/cjs/CustomTextInput/CustomTextInput.js +0 -50
- package/lib/cjs/CustomTextInput/index.d.ts +0 -2
- package/lib/cjs/CustomTextInput/index.d.ts.map +0 -1
- package/lib/cjs/CustomTextInput/index.js +0 -17
- package/lib/cjs/DropDownList/AsyncDropDownList.d.ts +0 -6
- package/lib/cjs/DropDownList/AsyncDropDownList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/AsyncDropDownList.js +0 -10
- package/lib/cjs/DropDownList/DropDownList.d.ts +0 -9
- package/lib/cjs/DropDownList/DropDownList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/DropDownList.js +0 -145
- package/lib/cjs/DropDownList/DropdownWrapper.d.ts +0 -16
- package/lib/cjs/DropDownList/DropdownWrapper.d.ts.map +0 -1
- package/lib/cjs/DropDownList/DropdownWrapper.js +0 -25
- package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts +0 -4
- package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/MultiSelectDropdownList.js +0 -7
- package/lib/cjs/DropDownList/Readme.md +0 -114
- package/lib/cjs/DropDownList/SearchableList.d.ts +0 -14
- package/lib/cjs/DropDownList/SearchableList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/SearchableList.js +0 -104
- package/lib/cjs/DropDownList/SelectList.d.ts +0 -11
- package/lib/cjs/DropDownList/SelectList.d.ts.map +0 -1
- package/lib/cjs/DropDownList/SelectList.js +0 -41
- package/lib/cjs/DropDownList/async.d.ts +0 -9
- package/lib/cjs/DropDownList/async.d.ts.map +0 -1
- package/lib/cjs/DropDownList/async.js +0 -142
- package/lib/cjs/DropDownList/dropdownList.css +0 -59
- package/lib/cjs/DropDownList/dropdownUtils.d.ts +0 -5
- package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +0 -1
- package/lib/cjs/DropDownList/dropdownUtils.js +0 -29
- package/lib/cjs/DropDownList/index.d.ts +0 -4
- package/lib/cjs/DropDownList/index.d.ts.map +0 -1
- package/lib/cjs/DropDownList/index.js +0 -19
- package/lib/cjs/DropDownList/types.d.ts +0 -54
- package/lib/cjs/DropDownList/types.d.ts.map +0 -1
- package/lib/cjs/DropDownList/types.js +0 -2
- package/lib/cjs/DropDownList/withMulti.d.ts +0 -5
- package/lib/cjs/DropDownList/withMulti.d.ts.map +0 -1
- package/lib/cjs/DropDownList/withMulti.js +0 -73
- package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts +0 -37
- package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
- package/lib/cjs/ErrorBoundary/ErrorBoundary.js +0 -66
- package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -15
- package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +0 -1
- package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +0 -39
- package/lib/cjs/ErrorBoundary/index.d.ts +0 -2
- package/lib/cjs/ErrorBoundary/index.d.ts.map +0 -1
- package/lib/cjs/ErrorBoundary/index.js +0 -17
- package/lib/cjs/ErrorPages/Generic403.d.ts +0 -3
- package/lib/cjs/ErrorPages/Generic403.d.ts.map +0 -1
- package/lib/cjs/ErrorPages/Generic403.js +0 -14
- package/lib/cjs/ErrorPages/index.d.ts +0 -2
- package/lib/cjs/ErrorPages/index.d.ts.map +0 -1
- package/lib/cjs/ErrorPages/index.js +0 -17
- package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -12
- package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +0 -1
- package/lib/cjs/FeedbackForm/FeedbackForm.js +0 -144
- package/lib/cjs/FeedbackForm/index.d.ts +0 -2
- package/lib/cjs/FeedbackForm/index.d.ts.map +0 -1
- package/lib/cjs/FeedbackForm/index.js +0 -17
- package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts +0 -30
- package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +0 -1
- package/lib/cjs/Functional/CaseContactsSelectorExternal.js +0 -227
- package/lib/cjs/Functional/index.d.ts +0 -2
- package/lib/cjs/Functional/index.d.ts.map +0 -1
- package/lib/cjs/Functional/index.js +0 -17
- package/lib/cjs/InlineEdit/InlineEdit.d.ts +0 -37
- package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +0 -1
- package/lib/cjs/InlineEdit/InlineEdit.js +0 -173
- package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +0 -41
- package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +0 -1
- package/lib/cjs/InlineEdit/NewInlineEdit.js +0 -182
- package/lib/cjs/InlineEdit/index.d.ts +0 -3
- package/lib/cjs/InlineEdit/index.d.ts.map +0 -1
- package/lib/cjs/InlineEdit/index.js +0 -18
- package/lib/cjs/InlineEdit/inlineEdit.css +0 -29
- package/lib/cjs/InlineEdit/newInlineEdit.css +0 -44
- package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -26
- package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +0 -1
- package/lib/cjs/LanguageSelector/LanguageSelector.js +0 -65
- package/lib/cjs/LanguageSelector/index.d.ts +0 -2
- package/lib/cjs/LanguageSelector/index.d.ts.map +0 -1
- package/lib/cjs/LanguageSelector/index.js +0 -17
- package/lib/cjs/LanguageSelector/languageSelector.css +0 -5
- package/lib/cjs/LoadingDots/LoadingDots.css +0 -33
- package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -13
- package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +0 -1
- package/lib/cjs/LoadingDots/LoadingDots.js +0 -25
- package/lib/cjs/LoadingDots/index.d.ts +0 -2
- package/lib/cjs/LoadingDots/index.d.ts.map +0 -1
- package/lib/cjs/LoadingDots/index.js +0 -18
- package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -15
- package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +0 -1
- package/lib/cjs/LoadingIndicator/LoadingIndicator.js +0 -25
- package/lib/cjs/LoadingIndicator/index.d.ts +0 -2
- package/lib/cjs/LoadingIndicator/index.d.ts.map +0 -1
- package/lib/cjs/LoadingIndicator/index.js +0 -17
- package/lib/cjs/LoadingIndicator/loadingIndicator.css +0 -79
- package/lib/cjs/LoginModal/LoginModal.d.ts +0 -15
- package/lib/cjs/LoginModal/LoginModal.d.ts.map +0 -1
- package/lib/cjs/LoginModal/LoginModal.js +0 -21
- package/lib/cjs/LoginModal/index.d.ts +0 -2
- package/lib/cjs/LoginModal/index.d.ts.map +0 -1
- package/lib/cjs/LoginModal/index.js +0 -17
- package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts +0 -45
- package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
- package/lib/cjs/MarkdownEditor/MarkdownEditor.js +0 -442
- package/lib/cjs/MarkdownEditor/index.d.ts +0 -2
- package/lib/cjs/MarkdownEditor/index.d.ts.map +0 -1
- package/lib/cjs/MarkdownEditor/index.js +0 -17
- package/lib/cjs/MarkdownEditor/markdownEditor.css +0 -113
- package/lib/cjs/MoreOrLess/MoreOrLess.d.ts +0 -13
- package/lib/cjs/MoreOrLess/MoreOrLess.d.ts.map +0 -1
- package/lib/cjs/MoreOrLess/MoreOrLess.js +0 -75
- package/lib/cjs/MoreOrLess/index.d.ts +0 -2
- package/lib/cjs/MoreOrLess/index.d.ts.map +0 -1
- package/lib/cjs/MoreOrLess/index.js +0 -17
- package/lib/cjs/PaginatedList/PaginatedList.d.ts +0 -18
- package/lib/cjs/PaginatedList/PaginatedList.d.ts.map +0 -1
- package/lib/cjs/PaginatedList/PaginatedList.js +0 -67
- package/lib/cjs/PaginatedList/index.d.ts +0 -2
- package/lib/cjs/PaginatedList/index.d.ts.map +0 -1
- package/lib/cjs/PaginatedList/index.js +0 -17
- package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -10
- package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +0 -1
- package/lib/cjs/PaginationCompact/PaginationCompact.js +0 -67
- package/lib/cjs/PaginationCompact/index.d.ts +0 -2
- package/lib/cjs/PaginationCompact/index.d.ts.map +0 -1
- package/lib/cjs/PaginationCompact/index.js +0 -17
- package/lib/cjs/PaginationCompact/paginationCompact.css +0 -5
- package/lib/cjs/PhoneInput/CountryData.d.ts +0 -3
- package/lib/cjs/PhoneInput/CountryData.d.ts.map +0 -1
- package/lib/cjs/PhoneInput/CountryData.js +0 -583
- package/lib/cjs/PhoneInput/PhoneInput.d.ts +0 -20
- package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +0 -1
- package/lib/cjs/PhoneInput/PhoneInput.js +0 -293
- package/lib/cjs/PhoneInput/PhoneInput.scss +0 -753
- package/lib/cjs/PhoneInput/flags.png +0 -0
- package/lib/cjs/PhoneInput/index.d.ts +0 -2
- package/lib/cjs/PhoneInput/index.d.ts.map +0 -1
- package/lib/cjs/PhoneInput/index.js +0 -17
- package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -9
- package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +0 -68
- package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts +0 -12
- package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +0 -39
- package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts +0 -6
- package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/constants.js +0 -8
- package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts +0 -2
- package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/index.js +0 -17
- package/lib/cjs/ProgressBar/CircularProgressBar/styles.css +0 -60
- package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts +0 -32
- package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/CircularProgressBar/types.js +0 -2
- package/lib/cjs/ProgressBar/ProgressBar.d.ts +0 -15
- package/lib/cjs/ProgressBar/ProgressBar.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/ProgressBar.js +0 -36
- package/lib/cjs/ProgressBar/index.d.ts +0 -3
- package/lib/cjs/ProgressBar/index.d.ts.map +0 -1
- package/lib/cjs/ProgressBar/index.js +0 -18
- package/lib/cjs/PromisifyModal/PromisifyModal.d.ts +0 -15
- package/lib/cjs/PromisifyModal/PromisifyModal.d.ts.map +0 -1
- package/lib/cjs/PromisifyModal/PromisifyModal.js +0 -43
- package/lib/cjs/PromisifyModal/index.d.ts +0 -2
- package/lib/cjs/PromisifyModal/index.d.ts.map +0 -1
- package/lib/cjs/PromisifyModal/index.js +0 -17
- package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -8
- package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +0 -1
- package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +0 -20
- package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -5
- package/lib/cjs/SubscriptionAbuse/const.d.ts.map +0 -1
- package/lib/cjs/SubscriptionAbuse/const.js +0 -15
- package/lib/cjs/SubscriptionAbuse/index.d.ts +0 -3
- package/lib/cjs/SubscriptionAbuse/index.d.ts.map +0 -1
- package/lib/cjs/SubscriptionAbuse/index.js +0 -18
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -12
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +0 -1
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +0 -48
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -11
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +0 -1
- package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +0 -182
- package/lib/cjs/SupportFeedbackForm/index.d.ts +0 -3
- package/lib/cjs/SupportFeedbackForm/index.d.ts.map +0 -1
- package/lib/cjs/SupportFeedbackForm/index.js +0 -18
- package/lib/cjs/Table/PFTable.d.ts +0 -40
- package/lib/cjs/Table/PFTable.d.ts.map +0 -1
- package/lib/cjs/Table/PFTable.js +0 -208
- package/lib/cjs/Table/README.md +0 -65
- package/lib/cjs/Table/TableColumnSelector.d.ts +0 -8
- package/lib/cjs/Table/TableColumnSelector.d.ts.map +0 -1
- package/lib/cjs/Table/TableColumnSelector.js +0 -34
- package/lib/cjs/Table/TableComponent.d.ts +0 -11
- package/lib/cjs/Table/TableComponent.d.ts.map +0 -1
- package/lib/cjs/Table/TableComponent.js +0 -42
- package/lib/cjs/Table/TablePagination.d.ts +0 -19
- package/lib/cjs/Table/TablePagination.d.ts.map +0 -1
- package/lib/cjs/Table/TablePagination.js +0 -50
- package/lib/cjs/Table/TableProvider.d.ts +0 -15
- package/lib/cjs/Table/TableProvider.d.ts.map +0 -1
- package/lib/cjs/Table/TableProvider.js +0 -25
- package/lib/cjs/Table/columnSelector.css +0 -41
- package/lib/cjs/Table/index.d.ts +0 -5
- package/lib/cjs/Table/index.d.ts.map +0 -1
- package/lib/cjs/Table/index.js +0 -20
- package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -15
- package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +0 -1
- package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +0 -121
- package/lib/cjs/TermsAndConditions/index.d.ts +0 -2
- package/lib/cjs/TermsAndConditions/index.d.ts.map +0 -1
- package/lib/cjs/TermsAndConditions/index.js +0 -17
- package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts +0 -8
- package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts.map +0 -1
- package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +0 -140
- package/lib/cjs/TextAreaAutosize/index.d.ts +0 -2
- package/lib/cjs/TextAreaAutosize/index.d.ts.map +0 -1
- package/lib/cjs/TextAreaAutosize/index.js +0 -17
- package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts +0 -20
- package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts.map +0 -1
- package/lib/cjs/TextAreaResizable/TextAreaResizable.js +0 -60
- package/lib/cjs/TextAreaResizable/index.d.ts +0 -2
- package/lib/cjs/TextAreaResizable/index.d.ts.map +0 -1
- package/lib/cjs/TextAreaResizable/index.js +0 -17
- package/lib/cjs/ToastNotification/ToastNotification.d.ts +0 -28
- package/lib/cjs/ToastNotification/ToastNotification.d.ts.map +0 -1
- package/lib/cjs/ToastNotification/ToastNotification.js +0 -71
- package/lib/cjs/ToastNotification/index.d.ts +0 -2
- package/lib/cjs/ToastNotification/index.d.ts.map +0 -1
- package/lib/cjs/ToastNotification/index.js +0 -17
- package/lib/cjs/ToastNotification/toastNotification.css +0 -22
- package/lib/cjs/TopContentSearch/TopContentSearch.d.ts +0 -14
- package/lib/cjs/TopContentSearch/TopContentSearch.d.ts.map +0 -1
- package/lib/cjs/TopContentSearch/TopContentSearch.js +0 -143
- package/lib/cjs/TopContentSearch/index.d.ts +0 -2
- package/lib/cjs/TopContentSearch/index.d.ts.map +0 -1
- package/lib/cjs/TopContentSearch/index.js +0 -17
- package/lib/cjs/TopContentSearch/topContentSearch.scss +0 -22
- package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts +0 -14
- package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts.map +0 -1
- package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +0 -80
- package/lib/cjs/ValueChangedIcon/index.d.ts +0 -2
- package/lib/cjs/ValueChangedIcon/index.d.ts.map +0 -1
- package/lib/cjs/ValueChangedIcon/index.js +0 -17
- package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -13
- package/lib/cjs/helperFunctions/errorMessage.d.ts.map +0 -1
- package/lib/cjs/helperFunctions/errorMessage.js +0 -95
- package/lib/cjs/helperFunctions/errorMessage.scss +0 -3
- package/lib/cjs/helperFunctions/index.d.ts +0 -2
- package/lib/cjs/helperFunctions/index.d.ts.map +0 -1
- package/lib/cjs/helperFunctions/index.js +0 -17
- package/lib/cjs/hooks/index.d.ts +0 -15
- package/lib/cjs/hooks/index.d.ts.map +0 -1
- package/lib/cjs/hooks/index.js +0 -30
- package/lib/cjs/hooks/useBreakpoint.d.ts +0 -12
- package/lib/cjs/hooks/useBreakpoint.d.ts.map +0 -1
- package/lib/cjs/hooks/useBreakpoint.js +0 -91
- package/lib/cjs/hooks/useCopyToClipboard.d.ts +0 -6
- package/lib/cjs/hooks/useCopyToClipboard.d.ts.map +0 -1
- package/lib/cjs/hooks/useCopyToClipboard.js +0 -40
- package/lib/cjs/hooks/useDebounce.d.ts +0 -9
- package/lib/cjs/hooks/useDebounce.d.ts.map +0 -1
- package/lib/cjs/hooks/useDebounce.js +0 -40
- package/lib/cjs/hooks/useFetch.d.ts +0 -20
- package/lib/cjs/hooks/useFetch.d.ts.map +0 -1
- package/lib/cjs/hooks/useFetch.js +0 -70
- package/lib/cjs/hooks/useForceUpdate.d.ts +0 -18
- package/lib/cjs/hooks/useForceUpdate.d.ts.map +0 -1
- package/lib/cjs/hooks/useForceUpdate.js +0 -28
- package/lib/cjs/hooks/useForkRef.d.ts +0 -2
- package/lib/cjs/hooks/useForkRef.d.ts.map +0 -1
- package/lib/cjs/hooks/useForkRef.js +0 -29
- package/lib/cjs/hooks/useIsMounted.d.ts +0 -3
- package/lib/cjs/hooks/useIsMounted.d.ts.map +0 -1
- package/lib/cjs/hooks/useIsMounted.js +0 -18
- package/lib/cjs/hooks/useLRUCache.d.ts +0 -8
- package/lib/cjs/hooks/useLRUCache.d.ts.map +0 -1
- package/lib/cjs/hooks/useLRUCache.js +0 -28
- package/lib/cjs/hooks/useLocalStorage.d.ts +0 -5
- package/lib/cjs/hooks/useLocalStorage.d.ts.map +0 -1
- package/lib/cjs/hooks/useLocalStorage.js +0 -39
- package/lib/cjs/hooks/useOnScreen.d.ts +0 -2
- package/lib/cjs/hooks/useOnScreen.d.ts.map +0 -1
- package/lib/cjs/hooks/useOnScreen.js +0 -18
- package/lib/cjs/hooks/usePolling.d.ts +0 -2
- package/lib/cjs/hooks/usePolling.d.ts.map +0 -1
- package/lib/cjs/hooks/usePolling.js +0 -19
- package/lib/cjs/hooks/usePrevious.d.ts +0 -2
- package/lib/cjs/hooks/usePrevious.d.ts.map +0 -1
- package/lib/cjs/hooks/usePrevious.js +0 -12
- package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts +0 -13
- package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts.map +0 -1
- package/lib/cjs/hooks/useSelectKeyboardNavigator.js +0 -58
- package/lib/cjs/hooks/useTitle.d.ts +0 -2
- package/lib/cjs/hooks/useTitle.d.ts.map +0 -1
- package/lib/cjs/hooks/useTitle.js +0 -14
- package/lib/cjs/hooks/useUndo.d.ts +0 -22
- package/lib/cjs/hooks/useUndo.d.ts.map +0 -1
- package/lib/cjs/hooks/useUndo.js +0 -76
- package/lib/cjs/index.d.ts +0 -34
- package/lib/cjs/index.d.ts.map +0 -1
- package/lib/cjs/index.js +0 -49
- package/lib/esm/Table/TableColumnSelector.d.ts +0 -8
- package/lib/esm/Table/TableColumnSelector.d.ts.map +0 -1
- package/lib/esm/Table/TableColumnSelector.js +0 -27
- package/lib/esm/Table/columnSelector.css +0 -41
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useLRUCache = void 0;
|
|
4
|
-
const utils_1 = require("@rh-support/utils");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const useForceUpdate_1 = require("./useForceUpdate");
|
|
7
|
-
function useLRUCache(maxSize) {
|
|
8
|
-
const lruCacheRef = (0, react_1.useRef)(new utils_1.LRUCache(maxSize));
|
|
9
|
-
const forceUpdate = (0, useForceUpdate_1.useForceUpdate)();
|
|
10
|
-
const setInCache = (key, value) => {
|
|
11
|
-
lruCacheRef.current.set(key, value);
|
|
12
|
-
forceUpdate();
|
|
13
|
-
};
|
|
14
|
-
const getFromCache = (key) => {
|
|
15
|
-
return lruCacheRef.current.get(key);
|
|
16
|
-
};
|
|
17
|
-
const clearCache = () => {
|
|
18
|
-
lruCacheRef.current.clear();
|
|
19
|
-
forceUpdate();
|
|
20
|
-
};
|
|
21
|
-
return {
|
|
22
|
-
setInCache,
|
|
23
|
-
getFromCache,
|
|
24
|
-
clearCache,
|
|
25
|
-
cache: lruCacheRef.current,
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
exports.useLRUCache = useLRUCache;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type Dispatch<A> = (value: A) => void;
|
|
2
|
-
type SetStateAction<S> = S | ((prevState: S) => S);
|
|
3
|
-
declare const useLocalStorage: <T>(key: string, initialValue?: T, raw?: boolean) => [T, Dispatch<SetStateAction<T>>];
|
|
4
|
-
export { useLocalStorage };
|
|
5
|
-
//# sourceMappingURL=useLocalStorage.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useLocalStorage.d.ts","sourceRoot":"","sources":["../../../src/hooks/useLocalStorage.ts"],"names":[],"mappings":"AAEA,KAAK,QAAQ,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;AACtC,KAAK,cAAc,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC;AAKnD,QAAA,MAAM,eAAe,WAAY,MAAM,0BAA0B,OAAO,qCA8BvE,CAAC;AAEF,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useLocalStorage = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
// For usage please refer
|
|
6
|
-
// https://github.com/streamich/react-use/blob/master/docs/useLocalStorage.md
|
|
7
|
-
const useLocalStorage = (key, initialValue, raw) => {
|
|
8
|
-
const [state, setState] = (0, react_1.useState)(() => {
|
|
9
|
-
try {
|
|
10
|
-
const localStorageValue = localStorage.getItem(key);
|
|
11
|
-
if (typeof localStorageValue !== 'string') {
|
|
12
|
-
localStorage.setItem(key, raw ? String(initialValue) : JSON.stringify(initialValue));
|
|
13
|
-
return initialValue;
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
return raw ? localStorageValue : JSON.parse(localStorageValue || 'null');
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
catch (_a) {
|
|
20
|
-
// If user is in private mode or has storage restriction
|
|
21
|
-
// localStorage can throw. JSON.parse and JSON.stringify
|
|
22
|
-
// can throw, too.
|
|
23
|
-
return initialValue;
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
(0, react_1.useEffect)(() => {
|
|
27
|
-
try {
|
|
28
|
-
const serializedState = raw ? String(state) : JSON.stringify(state);
|
|
29
|
-
localStorage.setItem(key, serializedState);
|
|
30
|
-
}
|
|
31
|
-
catch (_a) {
|
|
32
|
-
// If user is in private mode or has storage restriction
|
|
33
|
-
// localStorage can throw. Also JSON.stringify can throw.
|
|
34
|
-
}
|
|
35
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
36
|
-
}, [state]);
|
|
37
|
-
return [state, setState];
|
|
38
|
-
};
|
|
39
|
-
exports.useLocalStorage = useLocalStorage;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOnScreen.d.ts","sourceRoot":"","sources":["../../../src/hooks/useOnScreen.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,GAAG,KAAA,WAe9B"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useOnScreen = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
function useOnScreen(ref) {
|
|
6
|
-
const [isIntersecting, setIntersecting] = (0, react_1.useState)(false);
|
|
7
|
-
const observer = new IntersectionObserver(([entry]) => setIntersecting(entry.isIntersecting));
|
|
8
|
-
(0, react_1.useEffect)(() => {
|
|
9
|
-
observer.observe(ref.current);
|
|
10
|
-
// Remove the observer as soon as the component is unmounted
|
|
11
|
-
return () => {
|
|
12
|
-
observer.disconnect();
|
|
13
|
-
};
|
|
14
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
15
|
-
}, []);
|
|
16
|
-
return isIntersecting;
|
|
17
|
-
}
|
|
18
|
-
exports.useOnScreen = useOnScreen;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePolling.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePolling.ts"],"names":[],"mappings":"AAGA,wBAAgB,UAAU,CAAC,UAAU,EAAE,CAAC,GAAG,IAAI,OAAA,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,YAAY,GAAE,GAAG,EAAO,QAajG"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePolling = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
const refreshInterval = 120 * 1000;
|
|
6
|
-
function usePolling(intervalCb, dependencies = []) {
|
|
7
|
-
const depsRef = (0, react_1.useRef)(dependencies);
|
|
8
|
-
const fetch = () => !document.hidden && intervalCb(...depsRef.current);
|
|
9
|
-
depsRef.current = dependencies;
|
|
10
|
-
(0, react_1.useEffect)(() => {
|
|
11
|
-
const id = setInterval(fetch, refreshInterval);
|
|
12
|
-
return () => {
|
|
13
|
-
clearInterval(id);
|
|
14
|
-
};
|
|
15
|
-
// setInterval should only be called once and cleared on unmount
|
|
16
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
17
|
-
}, []);
|
|
18
|
-
}
|
|
19
|
-
exports.usePolling = usePolling;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"usePrevious.d.ts","sourceRoot":"","sources":["../../../src/hooks/usePrevious.ts"],"names":[],"mappings":"AAEA,wBAAgB,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,KAMtC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.usePrevious = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
function usePrevious(value) {
|
|
6
|
-
const ref = (0, react_1.useRef)();
|
|
7
|
-
(0, react_1.useEffect)(() => {
|
|
8
|
-
ref.current = value;
|
|
9
|
-
}, [value]);
|
|
10
|
-
return ref.current;
|
|
11
|
-
}
|
|
12
|
-
exports.usePrevious = usePrevious;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
interface IProps {
|
|
3
|
-
list: any[];
|
|
4
|
-
isOpen: boolean;
|
|
5
|
-
setIsOpen: (value: React.SetStateAction<boolean>) => void;
|
|
6
|
-
onSelect: (value: any) => void;
|
|
7
|
-
}
|
|
8
|
-
export declare function useSelectKeyboardNavigator({ list, isOpen, setIsOpen, onSelect }: IProps): {
|
|
9
|
-
onInputKeyDown: (event: React.KeyboardEvent<HTMLInputElement>) => void;
|
|
10
|
-
focusedItemIndex: number;
|
|
11
|
-
};
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=useSelectKeyboardNavigator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useSelectKeyboardNavigator.d.ts","sourceRoot":"","sources":["../../../src/hooks/useSelectKeyboardNavigator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,UAAU,MAAM;IACZ,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,SAAS,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAClC;AAED,wBAAgB,0BAA0B,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,EAAE,MAAM;4BAiCrD,mBAAmB,CAAC,gBAAgB,CAAC;;EAuBvE"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useSelectKeyboardNavigator = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
function useSelectKeyboardNavigator({ list, isOpen, setIsOpen, onSelect }) {
|
|
6
|
-
const [focusedItemIndex, setFocusedItemIndex] = (0, react_1.useState)(null);
|
|
7
|
-
(0, react_1.useEffect)(() => {
|
|
8
|
-
setFocusedItemIndex(null);
|
|
9
|
-
}, [list.length]);
|
|
10
|
-
const handleMenuArrowKeys = (key) => {
|
|
11
|
-
let indexToFocus;
|
|
12
|
-
if (isOpen) {
|
|
13
|
-
if (key === 'ArrowUp') {
|
|
14
|
-
// When no index is set or at the first index, focus to the last, otherwise decrement focus index
|
|
15
|
-
if (focusedItemIndex === null || focusedItemIndex === 0) {
|
|
16
|
-
indexToFocus = list.length - 1;
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
indexToFocus = focusedItemIndex - 1;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
if (key === 'ArrowDown') {
|
|
23
|
-
// When no index is set or at the last index, focus to the first, otherwise increment focus index
|
|
24
|
-
if (focusedItemIndex === null || focusedItemIndex === list.length - 1) {
|
|
25
|
-
indexToFocus = 0;
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
indexToFocus = focusedItemIndex + 1;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
setFocusedItemIndex(indexToFocus);
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
const onInputKeyDown = (event) => {
|
|
35
|
-
const focusedItem = focusedItemIndex !== null ? list[focusedItemIndex] : null;
|
|
36
|
-
switch (event.key) {
|
|
37
|
-
// Select the first available option
|
|
38
|
-
case 'Enter':
|
|
39
|
-
if (!isOpen) {
|
|
40
|
-
setIsOpen((pre) => !pre);
|
|
41
|
-
}
|
|
42
|
-
else if (isOpen && focusedItem !== null) {
|
|
43
|
-
onSelect(focusedItem);
|
|
44
|
-
}
|
|
45
|
-
break;
|
|
46
|
-
case 'Escape':
|
|
47
|
-
setIsOpen(false);
|
|
48
|
-
break;
|
|
49
|
-
case 'ArrowUp':
|
|
50
|
-
case 'ArrowDown':
|
|
51
|
-
event.preventDefault();
|
|
52
|
-
handleMenuArrowKeys(event.key);
|
|
53
|
-
break;
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
return { onInputKeyDown, focusedItemIndex };
|
|
57
|
-
}
|
|
58
|
-
exports.useSelectKeyboardNavigator = useSelectKeyboardNavigator;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useTitle.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTitle.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,CAAC,KAAK,KAAA,QASrC"}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useDocumentTitle = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
function useDocumentTitle(title) {
|
|
6
|
-
const originalTitle = document.title;
|
|
7
|
-
(0, react_1.useEffect)(() => {
|
|
8
|
-
document.title = title;
|
|
9
|
-
return () => {
|
|
10
|
-
document.title = originalTitle;
|
|
11
|
-
};
|
|
12
|
-
}, [title, originalTitle]);
|
|
13
|
-
}
|
|
14
|
-
exports.useDocumentTitle = useDocumentTitle;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare enum UndoRedoActionConstant {
|
|
2
|
-
undoPresent = "UNDO_PRESENT",
|
|
3
|
-
redoPresent = "REDO_PRESENT",
|
|
4
|
-
setPresent = "SET_PRESENT",
|
|
5
|
-
resetPresent = "RESET_PRESENT"
|
|
6
|
-
}
|
|
7
|
-
export interface IActions<T> {
|
|
8
|
-
setURValue: (newPresent: T) => void;
|
|
9
|
-
resetURValue: (newPresent: T) => void;
|
|
10
|
-
undo: () => void;
|
|
11
|
-
redo: () => void;
|
|
12
|
-
canUndo: boolean;
|
|
13
|
-
canRedo: boolean;
|
|
14
|
-
state: IUndoRedoState<T>;
|
|
15
|
-
}
|
|
16
|
-
export interface IUndoRedoState<T> {
|
|
17
|
-
past: T[];
|
|
18
|
-
present: T;
|
|
19
|
-
future: T[];
|
|
20
|
-
}
|
|
21
|
-
export declare function useUndo<T>(initialPresent: T): IActions<T>;
|
|
22
|
-
//# sourceMappingURL=useUndo.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useUndo.d.ts","sourceRoot":"","sources":["../../../src/hooks/useUndo.ts"],"names":[],"mappings":"AAGA,oBAAY,sBAAsB;IAC9B,WAAW,iBAAiB;IAC5B,WAAW,iBAAiB;IAC5B,UAAU,gBAAgB;IAC1B,YAAY,kBAAkB;CACjC;AAED,MAAM,WAAW,QAAQ,CAAC,CAAC;IACvB,UAAU,EAAE,CAAC,UAAU,EAAE,CAAC,KAAK,IAAI,CAAC;IACpC,YAAY,EAAE,CAAC,UAAU,EAAE,CAAC,KAAK,IAAI,CAAC;IACtC,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,cAAc,CAAC,CAAC,CAAC,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc,CAAC,CAAC;IAC7B,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,OAAO,EAAE,CAAC,CAAC;IACX,MAAM,EAAE,CAAC,EAAE,CAAC;CACf;AAuDD,wBAAgB,OAAO,CAAC,CAAC,EAAE,cAAc,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CA+BzD"}
|
package/lib/cjs/hooks/useUndo.js
DELETED
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.useUndo = exports.UndoRedoActionConstant = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
var UndoRedoActionConstant;
|
|
6
|
-
(function (UndoRedoActionConstant) {
|
|
7
|
-
UndoRedoActionConstant["undoPresent"] = "UNDO_PRESENT";
|
|
8
|
-
UndoRedoActionConstant["redoPresent"] = "REDO_PRESENT";
|
|
9
|
-
UndoRedoActionConstant["setPresent"] = "SET_PRESENT";
|
|
10
|
-
UndoRedoActionConstant["resetPresent"] = "RESET_PRESENT";
|
|
11
|
-
})(UndoRedoActionConstant || (exports.UndoRedoActionConstant = UndoRedoActionConstant = {}));
|
|
12
|
-
const undoRedoReducer = () => (state, action) => {
|
|
13
|
-
const { past, present, future } = state;
|
|
14
|
-
switch (action.type) {
|
|
15
|
-
case UndoRedoActionConstant.undoPresent: {
|
|
16
|
-
const previous = past[past.length - 1];
|
|
17
|
-
const newPast = past.slice(0, past.length - 1);
|
|
18
|
-
const t = {
|
|
19
|
-
past: newPast,
|
|
20
|
-
present: previous,
|
|
21
|
-
future: [present, ...future],
|
|
22
|
-
};
|
|
23
|
-
return t;
|
|
24
|
-
}
|
|
25
|
-
case UndoRedoActionConstant.redoPresent: {
|
|
26
|
-
const next = future[0];
|
|
27
|
-
const newFuture = future.slice(1);
|
|
28
|
-
const t1 = {
|
|
29
|
-
past: [...past, present],
|
|
30
|
-
present: next,
|
|
31
|
-
future: newFuture,
|
|
32
|
-
};
|
|
33
|
-
return t1;
|
|
34
|
-
}
|
|
35
|
-
case UndoRedoActionConstant.setPresent: {
|
|
36
|
-
if (action.payload.present === present) {
|
|
37
|
-
return state;
|
|
38
|
-
}
|
|
39
|
-
return {
|
|
40
|
-
past: [...past, present],
|
|
41
|
-
present: action.payload.present,
|
|
42
|
-
future: [],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
case UndoRedoActionConstant.resetPresent: {
|
|
46
|
-
return {
|
|
47
|
-
past: [],
|
|
48
|
-
present: action.payload.present,
|
|
49
|
-
future: [],
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
function useUndo(initialPresent) {
|
|
55
|
-
const [state, dispatch] = (0, react_1.useReducer)(undoRedoReducer(), {
|
|
56
|
-
past: [],
|
|
57
|
-
present: initialPresent,
|
|
58
|
-
future: [],
|
|
59
|
-
});
|
|
60
|
-
const canUndo = state.past.length !== 0;
|
|
61
|
-
const canRedo = state.future.length !== 0;
|
|
62
|
-
const undo = (0, react_1.useCallback)(() => {
|
|
63
|
-
if (canUndo) {
|
|
64
|
-
dispatch({ type: UndoRedoActionConstant.undoPresent });
|
|
65
|
-
}
|
|
66
|
-
}, [canUndo]);
|
|
67
|
-
const redo = (0, react_1.useCallback)(() => {
|
|
68
|
-
if (canRedo) {
|
|
69
|
-
dispatch({ type: UndoRedoActionConstant.redoPresent });
|
|
70
|
-
}
|
|
71
|
-
}, [canRedo]);
|
|
72
|
-
const setURValue = (0, react_1.useCallback)((present) => dispatch({ type: UndoRedoActionConstant.setPresent, payload: { present } }), []);
|
|
73
|
-
const resetURValue = (0, react_1.useCallback)((present) => dispatch({ type: UndoRedoActionConstant.resetPresent, payload: { present } }), []);
|
|
74
|
-
return { state, setURValue, resetURValue, undo, redo, canUndo, canRedo };
|
|
75
|
-
}
|
|
76
|
-
exports.useUndo = useUndo;
|
package/lib/cjs/index.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
export * from './LoadingIndicator';
|
|
2
|
-
export * from './AlertMessage';
|
|
3
|
-
export * from './ProgressBar';
|
|
4
|
-
export * from './DropDownList';
|
|
5
|
-
export * from './ErrorBoundary';
|
|
6
|
-
export * from './ErrorPages';
|
|
7
|
-
export * from './LoginModal';
|
|
8
|
-
export * from './Table';
|
|
9
|
-
export * from './MarkdownEditor';
|
|
10
|
-
export * from './InlineEdit';
|
|
11
|
-
export * from './CoverSpinner';
|
|
12
|
-
export * from './hooks';
|
|
13
|
-
export * from './Functional';
|
|
14
|
-
export * from './ToastNotification';
|
|
15
|
-
export * from './CustomContentLoader';
|
|
16
|
-
export * from './LanguageSelector';
|
|
17
|
-
export * from './PaginatedList';
|
|
18
|
-
export * from './MoreOrLess';
|
|
19
|
-
export * from './ValueChangedIcon';
|
|
20
|
-
export * from './LoadingDots';
|
|
21
|
-
export * from './TextAreaAutosize';
|
|
22
|
-
export * from './PaginationCompact';
|
|
23
|
-
export * from './TopContentSearch';
|
|
24
|
-
export * from './ConfirmationModal';
|
|
25
|
-
export * from './FeedbackForm';
|
|
26
|
-
export * from './SupportFeedbackForm';
|
|
27
|
-
export * from './helperFunctions';
|
|
28
|
-
export * from './PromisifyModal';
|
|
29
|
-
export * from './SubscriptionAbuse';
|
|
30
|
-
export * from './TermsAndConditions';
|
|
31
|
-
export * from './TextAreaResizable';
|
|
32
|
-
export * from './CustomTextInput';
|
|
33
|
-
export * from './PhoneInput';
|
|
34
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/cjs/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
package/lib/cjs/index.js
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./LoadingIndicator"), exports);
|
|
18
|
-
__exportStar(require("./AlertMessage"), exports);
|
|
19
|
-
__exportStar(require("./ProgressBar"), exports);
|
|
20
|
-
__exportStar(require("./DropDownList"), exports);
|
|
21
|
-
__exportStar(require("./ErrorBoundary"), exports);
|
|
22
|
-
__exportStar(require("./ErrorPages"), exports);
|
|
23
|
-
__exportStar(require("./LoginModal"), exports);
|
|
24
|
-
__exportStar(require("./Table"), exports);
|
|
25
|
-
__exportStar(require("./MarkdownEditor"), exports);
|
|
26
|
-
__exportStar(require("./InlineEdit"), exports);
|
|
27
|
-
__exportStar(require("./CoverSpinner"), exports);
|
|
28
|
-
__exportStar(require("./hooks"), exports);
|
|
29
|
-
__exportStar(require("./Functional"), exports);
|
|
30
|
-
__exportStar(require("./ToastNotification"), exports);
|
|
31
|
-
__exportStar(require("./CustomContentLoader"), exports);
|
|
32
|
-
__exportStar(require("./LanguageSelector"), exports);
|
|
33
|
-
__exportStar(require("./PaginatedList"), exports);
|
|
34
|
-
__exportStar(require("./MoreOrLess"), exports);
|
|
35
|
-
__exportStar(require("./ValueChangedIcon"), exports);
|
|
36
|
-
__exportStar(require("./LoadingDots"), exports);
|
|
37
|
-
__exportStar(require("./TextAreaAutosize"), exports);
|
|
38
|
-
__exportStar(require("./PaginationCompact"), exports);
|
|
39
|
-
__exportStar(require("./TopContentSearch"), exports);
|
|
40
|
-
__exportStar(require("./ConfirmationModal"), exports);
|
|
41
|
-
__exportStar(require("./FeedbackForm"), exports);
|
|
42
|
-
__exportStar(require("./SupportFeedbackForm"), exports);
|
|
43
|
-
__exportStar(require("./helperFunctions"), exports);
|
|
44
|
-
__exportStar(require("./PromisifyModal"), exports);
|
|
45
|
-
__exportStar(require("./SubscriptionAbuse"), exports);
|
|
46
|
-
__exportStar(require("./TermsAndConditions"), exports);
|
|
47
|
-
__exportStar(require("./TextAreaResizable"), exports);
|
|
48
|
-
__exportStar(require("./CustomTextInput"), exports);
|
|
49
|
-
__exportStar(require("./PhoneInput"), exports);
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import './columnSelector.css';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
interface IProps {
|
|
4
|
-
onColumnSelectorChange: (columns: string[]) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function TableColumnSelector({ onColumnSelectorChange }: IProps): React.JSX.Element;
|
|
7
|
-
export {};
|
|
8
|
-
//# sourceMappingURL=TableColumnSelector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableColumnSelector.d.ts","sourceRoot":"","sources":["../../../src/Table/TableColumnSelector.tsx"],"names":[],"mappings":"AACA,OAAO,sBAAsB,CAAC;AAI9B,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,MAAM;IACZ,sBAAsB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;CACvD;AAED,wBAAgB,mBAAmB,CAAC,EAAE,sBAAsB,EAAE,EAAE,MAAM,qBAoCrE"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// import { Button } from '@patternfly/react-core';
|
|
2
|
-
import './columnSelector.css';
|
|
3
|
-
import { toOptions } from '@rh-support/utils';
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { useTranslation } from 'react-i18next';
|
|
6
|
-
import { MultiSelectDropDownList } from '../DropDownList';
|
|
7
|
-
import { useTableContext } from './TableProvider';
|
|
8
|
-
export function TableColumnSelector({ onColumnSelectorChange }) {
|
|
9
|
-
const { selectedColumns: selectedItems, columns } = useTableContext();
|
|
10
|
-
const { t } = useTranslation();
|
|
11
|
-
const handleChange = (selectedCols) => {
|
|
12
|
-
selectedCols = selectedCols.map((i) => i.value.value);
|
|
13
|
-
onColumnSelectorChange(selectedCols);
|
|
14
|
-
};
|
|
15
|
-
return (React.createElement(MultiSelectDropDownList, { id: "case-list-table-column-dropdown", "data-tracking-id": "case-list-table-column-dropdown", selectedItems: toOptions((selectedItems || []).map((item) => {
|
|
16
|
-
var _a;
|
|
17
|
-
return ({
|
|
18
|
-
value: item,
|
|
19
|
-
label: (((_a = columns.find((col) => item === col.id)) === null || _a === void 0 ? void 0 : _a.title) || ''),
|
|
20
|
-
isDisabled: false,
|
|
21
|
-
});
|
|
22
|
-
}), { labelKey: 'label', disabledKey: 'isDisabled' }), list: toOptions(columns.map((column) => ({
|
|
23
|
-
value: column.id,
|
|
24
|
-
label: column.title,
|
|
25
|
-
isDisabled: column.show === undefined,
|
|
26
|
-
})), { labelKey: 'label', disabledKey: 'isDisabled' }), title: 'column selector menu', placeholder: t('Columns'), onChange: handleChange, className: "column-selector", hasTwoColumns: true }));
|
|
27
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
.downshift .column-selector-menu {
|
|
2
|
-
box-shadow: rgba(3, 5, 3, 0.05) 1px 1px 1px 0px, rgba(3, 3, 3, 0.06) 1px 4px 8px 6px;
|
|
3
|
-
max-height: 250px;
|
|
4
|
-
left: unset;
|
|
5
|
-
border-color: #d1d1d1;
|
|
6
|
-
position: absolute;
|
|
7
|
-
top: 100%;
|
|
8
|
-
z-index: 10;
|
|
9
|
-
display: -ms-grid;
|
|
10
|
-
display: grid;
|
|
11
|
-
-ms-grid-columns: 1fr 1fr;
|
|
12
|
-
grid-template-columns: 1fr 1fr;
|
|
13
|
-
grid-gap: 6px;
|
|
14
|
-
margin: 4px 0 0;
|
|
15
|
-
list-style-type: none;
|
|
16
|
-
background-color: #fff;
|
|
17
|
-
min-width: 410px;
|
|
18
|
-
overflow: auto;
|
|
19
|
-
padding: 10px 4px;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.downshift .column-selector-menu li:hover:not([disabled]) label {
|
|
23
|
-
cursor: pointer;
|
|
24
|
-
color: #06c;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.downshift .column-selector-menu li[disabled] {
|
|
28
|
-
cursor: not-allowed;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
button.pf-v5-c-button.column-selector-btn::after {
|
|
32
|
-
border: none;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.downshift .column-selector-menu li label {
|
|
36
|
-
font-weight: 400;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
#case-list-table-column-dropdown ul {
|
|
40
|
-
min-height: 336px;
|
|
41
|
-
}
|