@carbon/ibm-products 2.34.0 → 2.36.0-alpha.27

Sign up to get free protection for your applications and to get access to all the features.
Files changed (244) hide show
  1. package/css/index-full-carbon.css +32448 -32421
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +1 -1
  4. package/css/index-full-carbon.min.css.map +1 -1
  5. package/css/index-without-carbon-released-only.css +105 -91
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +1 -1
  8. package/css/index-without-carbon-released-only.min.css.map +1 -1
  9. package/css/index-without-carbon.css +765 -24496
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +1 -1
  12. package/css/index-without-carbon.min.css.map +1 -1
  13. package/css/index.css +2543 -18127
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +1 -1
  16. package/css/index.min.css.map +1 -1
  17. package/es/components/ActionSet/ActionSet.d.ts +38 -2
  18. package/es/components/ActionSet/ActionSet.js +3 -5
  19. package/es/components/Coachmark/utils/enums.d.ts +36 -22
  20. package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +26 -2
  21. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -3
  22. package/es/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
  23. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +28 -2
  24. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
  25. package/es/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
  26. package/es/components/ConditionBuilder/ConditionBuilder.js +125 -0
  27. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
  28. package/es/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +92 -0
  29. package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
  30. package/es/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +88 -0
  31. package/es/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
  32. package/es/components/ConditionBuilder/index.d.ts +1 -0
  33. package/es/components/CreateFullPage/CreateFullPage.d.ts +121 -4
  34. package/es/components/CreateFullPage/CreateFullPage.js +14 -26
  35. package/es/components/CreateFullPage/CreateFullPageStep.js +22 -7
  36. package/es/components/CreateTearsheet/CreateTearsheet.js +2 -0
  37. package/es/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
  38. package/es/components/Datagrid/Datagrid/DatagridRow.js +4 -3
  39. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -1
  40. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +10 -6
  41. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
  42. package/es/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
  43. package/es/components/Datagrid/useEditableCell.js +15 -0
  44. package/es/components/DelimitedList/DelimitedList.d.ts +27 -2
  45. package/es/components/DelimitedList/DelimitedList.js +0 -1
  46. package/es/components/EditFullPage/EditFullPage.d.ts +19 -2
  47. package/es/components/EditFullPage/EditFullPage.js +3 -3
  48. package/es/components/EditInPlace/EditInPlace.d.ts +97 -5
  49. package/es/components/EditInPlace/EditInPlace.js +10 -6
  50. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
  51. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
  52. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
  53. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
  54. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +61 -2
  55. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -3
  56. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
  57. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
  58. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +61 -2
  59. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
  60. package/es/components/ExportModal/ExportModal.d.ts +110 -2
  61. package/es/components/ExportModal/ExportModal.js +10 -4
  62. package/es/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  63. package/es/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  64. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
  65. package/es/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -9
  66. package/es/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
  67. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
  68. package/es/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +92 -0
  69. package/es/components/FilterPanel/index.d.ts +1 -0
  70. package/es/components/FullPageError/FullPageError.d.ts +2 -1
  71. package/es/components/FullPageError/FullPageError.js +24 -49
  72. package/es/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
  73. package/es/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  74. package/es/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
  75. package/es/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  76. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +40 -2
  77. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  78. package/es/components/ImportModal/ImportModal.d.ts +136 -2
  79. package/es/components/ImportModal/ImportModal.js +3 -2
  80. package/es/components/InlineTip/InlineTip.d.ts +90 -2
  81. package/es/components/InlineTip/InlineTip.js +3 -2
  82. package/es/components/InlineTip/InlineTipLink.d.ts +19 -2
  83. package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +23 -2
  84. package/es/components/InterstitialScreenView/InterstitialScreenView.js +0 -1
  85. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +23 -2
  86. package/es/components/Nav/Nav.js +1 -1
  87. package/es/components/Nav/NavList.js +7 -7
  88. package/es/components/NonLinearReading/NonLinearReading.d.ts +28 -2
  89. package/es/components/NonLinearReading/NonLinearReading.js +2 -7
  90. package/es/components/NotificationsPanel/NotificationsPanel.js +1 -1
  91. package/es/components/PageHeader/PageHeader.js +3 -3
  92. package/es/components/PageHeader/PageHeaderUtils.d.ts +1 -1
  93. package/es/components/PageHeader/PageHeaderUtils.js +4 -3
  94. package/es/components/SearchBar/SearchBar.d.ts +51 -3
  95. package/es/components/SearchBar/SearchBar.js +5 -6
  96. package/es/components/SidePanel/SidePanel.js +62 -41
  97. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
  98. package/es/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
  99. package/es/components/TagOverflow/TagOverflow.d.ts +5 -0
  100. package/es/components/TagOverflow/TagOverflow.js +209 -0
  101. package/es/components/TagOverflow/constants.d.ts +14 -0
  102. package/es/components/TagOverflow/constants.js +30 -0
  103. package/es/components/TagOverflow/index.d.ts +1 -0
  104. package/es/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
  105. package/es/components/Tearsheet/TearsheetNarrow.js +6 -1
  106. package/es/components/Toolbar/Toolbar.d.ts +23 -5
  107. package/es/components/Toolbar/Toolbar.js +30 -26
  108. package/es/components/TruncatedList/TruncatedList.d.ts +47 -2
  109. package/es/components/TruncatedList/TruncatedList.js +5 -4
  110. package/es/components/UserAvatar/UserAvatar.js +4 -2
  111. package/es/components/index.d.ts +4 -2
  112. package/es/global/js/package-settings.d.ts +3 -0
  113. package/es/global/js/package-settings.js +3 -0
  114. package/es/index.js +4 -0
  115. package/es/settings.d.ts +3 -0
  116. package/lib/components/ActionSet/ActionSet.d.ts +38 -2
  117. package/lib/components/ActionSet/ActionSet.js +3 -5
  118. package/lib/components/Coachmark/utils/enums.d.ts +36 -22
  119. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +26 -2
  120. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -3
  121. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +1 -1
  122. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +28 -2
  123. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
  124. package/lib/components/ConditionBuilder/ConditionBuilder.d.ts +5 -0
  125. package/lib/components/ConditionBuilder/ConditionBuilder.js +132 -0
  126. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.d.ts +10 -0
  127. package/lib/components/ConditionBuilder/ConditionBuilderContent/ConditionBuilderContent.js +100 -0
  128. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.d.ts +38 -0
  129. package/lib/components/ConditionBuilder/ConditionBuilderContext/DataTreeContext.js +98 -0
  130. package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +58 -0
  131. package/lib/components/ConditionBuilder/index.d.ts +1 -0
  132. package/lib/components/CreateFullPage/CreateFullPage.d.ts +121 -4
  133. package/lib/components/CreateFullPage/CreateFullPage.js +13 -25
  134. package/lib/components/CreateFullPage/CreateFullPageStep.js +20 -5
  135. package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -0
  136. package/lib/components/CreateTearsheetNarrow/CreateTearsheetNarrow.d.ts +82 -2
  137. package/lib/components/Datagrid/Datagrid/DatagridRow.js +4 -3
  138. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -1
  139. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +11 -7
  140. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
  141. package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +2 -1
  142. package/lib/components/Datagrid/useEditableCell.js +19 -0
  143. package/lib/components/DelimitedList/DelimitedList.d.ts +27 -2
  144. package/lib/components/DelimitedList/DelimitedList.js +0 -1
  145. package/lib/components/EditFullPage/EditFullPage.d.ts +19 -2
  146. package/lib/components/EditFullPage/EditFullPage.js +3 -3
  147. package/lib/components/EditInPlace/EditInPlace.d.ts +97 -5
  148. package/lib/components/EditInPlace/EditInPlace.js +10 -6
  149. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.d.ts +61 -2
  150. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -3
  151. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.d.ts +61 -2
  152. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -2
  153. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +61 -2
  154. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -3
  155. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.d.ts +61 -2
  156. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -3
  157. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +61 -2
  158. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
  159. package/lib/components/ExportModal/ExportModal.d.ts +110 -2
  160. package/lib/components/ExportModal/ExportModal.js +10 -4
  161. package/lib/components/FilterPanel/FilterPanelAccordion/FilterPanelAccordion.js +1 -1
  162. package/lib/components/FilterPanel/FilterPanelAccordionItem/FilterPanelAccordionItem.js +2 -2
  163. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.d.ts +5 -0
  164. package/lib/components/FilterPanel/FilterPanelCheckbox/FilterPanelCheckbox.js +5 -9
  165. package/lib/components/FilterPanel/FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow.js +1 -1
  166. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.d.ts +5 -0
  167. package/lib/components/FilterPanel/FilterPanelSearch/FilterPanelSearch.js +99 -0
  168. package/lib/components/FilterPanel/index.d.ts +1 -0
  169. package/lib/components/FullPageError/FullPageError.d.ts +2 -1
  170. package/lib/components/FullPageError/FullPageError.js +24 -49
  171. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.d.ts +40 -2
  172. package/lib/components/HTTPErrors/HTTPError403/HTTPError403.js +1 -1
  173. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.d.ts +40 -2
  174. package/lib/components/HTTPErrors/HTTPError404/HTTPError404.js +1 -1
  175. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +40 -2
  176. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  177. package/lib/components/ImportModal/ImportModal.d.ts +136 -2
  178. package/lib/components/ImportModal/ImportModal.js +3 -2
  179. package/lib/components/InlineTip/InlineTip.d.ts +90 -2
  180. package/lib/components/InlineTip/InlineTip.js +3 -2
  181. package/lib/components/InlineTip/InlineTipLink.d.ts +19 -2
  182. package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +23 -2
  183. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +0 -1
  184. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +23 -2
  185. package/lib/components/Nav/Nav.js +1 -1
  186. package/lib/components/Nav/NavList.js +7 -7
  187. package/lib/components/NonLinearReading/NonLinearReading.d.ts +28 -2
  188. package/lib/components/NonLinearReading/NonLinearReading.js +2 -7
  189. package/lib/components/NotificationsPanel/NotificationsPanel.js +1 -1
  190. package/lib/components/PageHeader/PageHeader.js +3 -3
  191. package/lib/components/PageHeader/PageHeaderUtils.d.ts +1 -1
  192. package/lib/components/PageHeader/PageHeaderUtils.js +4 -3
  193. package/lib/components/SearchBar/SearchBar.d.ts +51 -3
  194. package/lib/components/SearchBar/SearchBar.js +5 -6
  195. package/lib/components/SidePanel/SidePanel.js +62 -41
  196. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.d.ts +23 -2
  197. package/lib/components/SteppedAnimatedMedia/SteppedAnimatedMedia.js +6 -5
  198. package/lib/components/TagOverflow/TagOverflow.d.ts +5 -0
  199. package/lib/components/TagOverflow/TagOverflow.js +216 -0
  200. package/lib/components/TagOverflow/constants.d.ts +14 -0
  201. package/lib/components/TagOverflow/constants.js +34 -0
  202. package/lib/components/TagOverflow/index.d.ts +1 -0
  203. package/lib/components/Tearsheet/TearsheetNarrow.d.ts +105 -6
  204. package/lib/components/Tearsheet/TearsheetNarrow.js +6 -1
  205. package/lib/components/Toolbar/Toolbar.d.ts +23 -5
  206. package/lib/components/Toolbar/Toolbar.js +30 -26
  207. package/lib/components/TruncatedList/TruncatedList.d.ts +47 -2
  208. package/lib/components/TruncatedList/TruncatedList.js +5 -4
  209. package/lib/components/UserAvatar/UserAvatar.js +4 -2
  210. package/lib/components/index.d.ts +4 -2
  211. package/lib/global/js/package-settings.d.ts +3 -0
  212. package/lib/global/js/package-settings.js +3 -0
  213. package/lib/index.js +17 -0
  214. package/lib/settings.d.ts +3 -0
  215. package/package.json +5 -5
  216. package/scss/components/Coachmark/_coachmark-dragbar.scss +0 -1
  217. package/scss/components/Coachmark/_coachmark-tagline.scss +2 -2
  218. package/scss/components/ConditionBuilder/_carbon-imports.scss +9 -0
  219. package/scss/components/ConditionBuilder/_condition-builder.scss +25 -0
  220. package/scss/components/ConditionBuilder/_index-with-carbon.scss +9 -0
  221. package/scss/components/ConditionBuilder/_index.scss +8 -0
  222. package/scss/components/CreateFullPage/_create-full-page.scss +10 -10
  223. package/scss/components/Datagrid/styles/_useNestedRows.scss +5 -1
  224. package/scss/components/Datagrid/styles/_useSortableColumns.scss +2 -0
  225. package/scss/components/FilterPanel/_carbon-imports.scss +5 -0
  226. package/scss/components/FilterPanel/_filter-panel-accordion-item.scss +1 -3
  227. package/scss/components/FilterPanel/_filter-panel-checkbox-with-overflow.scss +0 -2
  228. package/scss/components/FilterPanel/_filter-panel-checkbox.scss +0 -1
  229. package/scss/components/FilterPanel/_filter-panel-search.scss +38 -0
  230. package/scss/components/FilterPanel/_index-with-carbon.scss +1 -0
  231. package/scss/components/FilterPanel/_index.scss +1 -0
  232. package/scss/components/FullPageError/_full-page-error.scss +10 -10
  233. package/scss/components/Guidebanner/_guidebanner.scss +1 -1
  234. package/scss/components/InlineTip/_inline-tip.scss +1 -1
  235. package/scss/components/ProductiveCard/_productive-card.scss +13 -0
  236. package/scss/components/SidePanel/_side-panel.scss +9 -9
  237. package/scss/components/TagOverflow/_carbon-imports.scss +9 -0
  238. package/scss/components/TagOverflow/_index-with-carbon.scss +9 -0
  239. package/scss/components/TagOverflow/_index.scss +8 -0
  240. package/scss/components/TagOverflow/_tag-overflow.scss +55 -0
  241. package/scss/components/Tearsheet/_tearsheet.scss +10 -0
  242. package/scss/components/UserAvatar/_user-avatar.scss +7 -3
  243. package/scss/components/_index-with-carbon.scss +2 -0
  244. package/scss/components/_index.scss +2 -0
@@ -1,5 +1,113 @@
1
+ /// <reference path="../../../src/custom-typings/index.d.ts" />
2
+ import React, { ReactNode } from 'react';
3
+ import { ComposedModal } from '@carbon/react';
4
+ type InputType = 'text' | 'password';
5
+ type PreformattedExtensions = {
6
+ extension?: string;
7
+ description?: string;
8
+ };
9
+ interface RemoveModalProps extends React.ComponentProps<typeof ComposedModal> {
10
+ /**
11
+ * Body content for the modal
12
+ */
13
+ body?: string;
14
+ /**
15
+ * Optional class name
16
+ */
17
+ className?: string;
18
+ /**
19
+ * specify if an error occurred
20
+ */
21
+ error?: boolean;
22
+ /**
23
+ * messaging to display in the event of an error
24
+ */
25
+ errorMessage?: string;
26
+ /**
27
+ * name of the file being exported
28
+ */
29
+ filename: string;
30
+ /**
31
+ * label text that's displayed when hovering over visibility toggler to hide key
32
+ */
33
+ hidePasswordLabel?: string;
34
+ /**
35
+ * label for the text input
36
+ */
37
+ inputLabel?: string;
38
+ /**
39
+ * specify the type of text input
40
+ */
41
+ inputType: InputType;
42
+ /**
43
+ * text for an invalid input
44
+ */
45
+ invalidInputText?: string;
46
+ /**
47
+ * specify if the modal is in a loading state
48
+ */
49
+ loading?: boolean;
50
+ /**
51
+ * message to display during the loading state
52
+ */
53
+ loadingMessage?: string;
54
+ /**
55
+ * Specify a handler for closing modal
56
+ */
57
+ onClose?: () => void;
58
+ /**
59
+ * Specify a handler for "submitting" modal. Returns the file name
60
+ */
61
+ onRequestSubmit?: (value?: string) => void;
62
+ /**
63
+ * Specify whether the Modal is currently open
64
+ */
65
+ open?: boolean;
66
+ /**
67
+ * The DOM node the tearsheet should be rendered within. Defaults to document.body.
68
+ */
69
+ portalTarget?: ReactNode;
70
+ /**
71
+ * Array of extensions to display as radio buttons
72
+ */
73
+ preformattedExtensions: readonly PreformattedExtensions[];
74
+ /**
75
+ * Label for the preformatted label form group
76
+ */
77
+ preformattedExtensionsLabel?: string;
78
+ /**
79
+ * Specify the text for the primary button
80
+ */
81
+ primaryButtonText: string;
82
+ /**
83
+ * Specify the text for the secondary button
84
+ */
85
+ secondaryButtonText: string;
86
+ /**
87
+ * label text that's displayed when hovering over visibility toggler to show key
88
+ */
89
+ showPasswordLabel?: string;
90
+ /**
91
+ * messaging to display if the export was successful
92
+ */
93
+ successMessage?: string;
94
+ /**
95
+ * specify if the export was successful
96
+ */
97
+ successful?: boolean;
98
+ /**
99
+ * The text displayed at the top of the modal
100
+ */
101
+ title: string;
102
+ /**
103
+ * array of valid extensions the file can have
104
+ */
105
+ validExtensions: readonly any[];
106
+ }
1
107
  /**
2
108
  * Modal dialog version of the export pattern
3
109
  */
4
- export let ExportModal: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
110
+ export declare let ExportModal: React.ForwardRefExoticComponent<RemoveModalProps & {
111
+ children?: React.ReactNode;
112
+ } & React.RefAttributes<unknown>>;
113
+ export {};
@@ -26,7 +26,6 @@ var defaults = {
26
26
  preformattedExtensions: Object.freeze([]),
27
27
  validExtensions: Object.freeze([])
28
28
  };
29
-
30
29
  /**
31
30
  * Modal dialog version of the export pattern
32
31
  */
@@ -39,7 +38,7 @@ var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
39
38
  hidePasswordLabel = _ref.hidePasswordLabel,
40
39
  inputLabel = _ref.inputLabel,
41
40
  _ref$inputType = _ref.inputType,
42
- inputType = _ref$inputType === void 0 ? defaults.inputType : _ref$inputType,
41
+ inputType = _ref$inputType === void 0 ? 'text' : _ref$inputType,
43
42
  invalidInputText = _ref.invalidInputText,
44
43
  loading = _ref.loading,
45
44
  loadingMessage = _ref.loadingMessage,
@@ -76,7 +75,10 @@ var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
76
75
  useEffect(function () {
77
76
  var _preformattedExtensio;
78
77
  setName(filename);
79
- setExtension(preformattedExtensions === null || preformattedExtensions === void 0 || (_preformattedExtensio = preformattedExtensions[0]) === null || _preformattedExtensio === void 0 ? void 0 : _preformattedExtensio.extension);
78
+ if (preformattedExtensions && preformattedExtensions.length > 0 && (_preformattedExtensio = preformattedExtensions[0]) !== null && _preformattedExtensio !== void 0 && _preformattedExtensio.extension) {
79
+ var _preformattedExtensio2;
80
+ setExtension(preformattedExtensions === null || preformattedExtensions === void 0 || (_preformattedExtensio2 = preformattedExtensions[0]) === null || _preformattedExtensio2 === void 0 ? void 0 : _preformattedExtensio2.extension);
81
+ }
80
82
  }, [filename, preformattedExtensions, open]);
81
83
  var onNameChangeHandler = function onNameChangeHandler(evt) {
82
84
  setName(evt.target.value);
@@ -89,7 +91,7 @@ var ExportModal = /*#__PURE__*/forwardRef(function (_ref, ref) {
89
91
  };
90
92
  var onSubmitHandler = function onSubmitHandler() {
91
93
  var returnName = extension ? "".concat(filename, ".").concat(extension.toLocaleLowerCase()) : name;
92
- onRequestSubmit(returnName);
94
+ onRequestSubmit && onRequestSubmit(returnName);
93
95
  };
94
96
  var hasInvalidExtension = function hasInvalidExtension() {
95
97
  if (!dirtyInput || !validExtensions || !validExtensions.length) {
@@ -186,6 +188,7 @@ ExportModal.propTypes = {
186
188
  /**
187
189
  * Body content for the modal
188
190
  */
191
+ /**@ts-ignore*/
189
192
  body: PropTypes.string,
190
193
  /**
191
194
  * Optional class name
@@ -214,6 +217,7 @@ ExportModal.propTypes = {
214
217
  /**
215
218
  * specify the type of text input
216
219
  */
220
+ /**@ts-ignore */
217
221
  inputType: PropTypes.oneOf(['text', 'password']),
218
222
  /**
219
223
  * text for an invalid input
@@ -246,6 +250,7 @@ ExportModal.propTypes = {
246
250
  /**
247
251
  * Array of extensions to display as radio buttons
248
252
  */
253
+ /**@ts-ignore */
249
254
  preformattedExtensions: PropTypes.arrayOf(PropTypes.shape({
250
255
  extension: PropTypes.string,
251
256
  description: PropTypes.string
@@ -281,6 +286,7 @@ ExportModal.propTypes = {
281
286
  /**
282
287
  * array of valid extensions the file can have
283
288
  */
289
+ /**@ts-ignore */
284
290
  validExtensions: PropTypes.array
285
291
  };
286
292
  ExportModal.displayName = componentName;
@@ -55,7 +55,7 @@ FilterPanelAccordion = pkg.checkComponentEnabled(FilterPanelAccordion, component
55
55
  FilterPanelAccordion.displayName = componentName;
56
56
  FilterPanelAccordion.propTypes = {
57
57
  /**
58
- * Props specific to the internal `Accordion`.
58
+ * Props specific to the internal `Accordion` component.
59
59
  */
60
60
  accordionProps: PropTypes.shape({}),
61
61
  /**
@@ -62,7 +62,7 @@ FilterPanelAccordionItem = pkg.checkComponentEnabled(FilterPanelAccordionItem, c
62
62
  FilterPanelAccordionItem.displayName = componentName;
63
63
  FilterPanelAccordionItem.propTypes = {
64
64
  /**
65
- * Props specific to the internal `AccordionItem`.
65
+ * Props specific to the internal `AccordionItem` component.
66
66
  */
67
67
  accordionItemProps: PropTypes.shape({}),
68
68
  /**
@@ -86,7 +86,7 @@ FilterPanelAccordionItem.propTypes = {
86
86
  */
87
87
  title: PropTypes.string,
88
88
  /**
89
- * Props specific to the internal `TruncatedList`.
89
+ * Props specific to the internal `TruncatedList` component.
90
90
  */
91
91
  truncatedListProps: PropTypes.shape({})
92
92
  };
@@ -1,5 +1,10 @@
1
1
  /**
2
2
  * Provides a checkbox, label, and count.
3
+ *
4
+ * This component is returning Carbon's Checkbox.
5
+ *
6
+ * All of Carbon Checkbox's props are directly available
7
+ * through "...rest", including id, onClick, etc.
3
8
  */
4
9
  export let FilterPanelCheckbox: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
10
  import React from 'react';
@@ -22,6 +22,11 @@ var componentName = 'FilterPanelCheckbox';
22
22
 
23
23
  /**
24
24
  * Provides a checkbox, label, and count.
25
+ *
26
+ * This component is returning Carbon's Checkbox.
27
+ *
28
+ * All of Carbon Checkbox's props are directly available
29
+ * through "...rest", including id, onClick, etc.
25
30
  */
26
31
  var FilterPanelCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
27
32
  var className = _ref.className,
@@ -46,15 +51,6 @@ var FilterPanelCheckbox = /*#__PURE__*/React__default.forwardRef(function (_ref,
46
51
  FilterPanelCheckbox = pkg.checkComponentEnabled(FilterPanelCheckbox, componentName);
47
52
  FilterPanelCheckbox.displayName = componentName;
48
53
  FilterPanelCheckbox.propTypes = {
49
- /**
50
- * IMPORTANT NOTE
51
- *
52
- * This component is returning Carbon's Checkbox.
53
- *
54
- * All of Carbon Checkbox's props are directly available
55
- * through "...rest", including id, onClick, etc.
56
- */
57
-
58
54
  /**
59
55
  * Optional class to be applied to the containing node.
60
56
  */
@@ -145,7 +145,7 @@ FilterPanelCheckboxWithOverflow.propTypes = {
145
145
  */
146
146
  onChange: PropTypes.func,
147
147
  /**
148
- * Props specific to the internal `OverflowMenu`.
148
+ * Props specific to the internal `OverflowMenu` component.
149
149
  */
150
150
  overflowMenuProps: PropTypes.shape(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, 'aria-label', PropTypes.string), "flipped", PropTypes.bool), "menuClass", PropTypes.string), "menuOptionsClass", PropTypes.string), "open", PropTypes.bool), "selectorPrimaryFocus", PropTypes.string)),
151
151
  /**
@@ -0,0 +1,5 @@
1
+ /**
2
+ * An input field and container to show search results.
3
+ */
4
+ export let FilterPanelSearch: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
+ import React from 'react';
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 2024
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../../_virtual/_rollupPluginBabelHelpers.js';
9
+ import React__default, { useState, useEffect } from 'react';
10
+ import PropTypes from '../../../node_modules/prop-types/index.js';
11
+ import cx from 'classnames';
12
+ import { Search } from '@carbon/react';
13
+ import { getDevtoolsProps } from '../../../global/js/utils/devtools.js';
14
+ import { pkg } from '../../../settings.js';
15
+
16
+ var _excluded = ["children", "className", "searchProps"];
17
+
18
+ // The block part of our conventional BEM class names (blockClass__E--M).
19
+ var blockClass = "".concat(pkg.prefix, "--filter-panel-search");
20
+ var componentName = 'FilterPanelSearch';
21
+ var defaults = {
22
+ searchProps: {}
23
+ };
24
+
25
+ /**
26
+ * An input field and container to show search results.
27
+ */
28
+ var FilterPanelSearch = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
29
+ var children = _ref.children,
30
+ className = _ref.className,
31
+ _ref$searchProps = _ref.searchProps,
32
+ searchProps = _ref$searchProps === void 0 ? defaults.searchProps : _ref$searchProps,
33
+ rest = _objectWithoutProperties(_ref, _excluded);
34
+ var _useState = useState(false),
35
+ _useState2 = _slicedToArray(_useState, 2),
36
+ resultsVisible = _useState2[0],
37
+ setResultsVisible = _useState2[1];
38
+ var timer;
39
+
40
+ // Hide results with a delay.
41
+ // Gives enough time for "show" to trigger earlier.
42
+ var hideResults = function hideResults() {
43
+ clearTimeout(timer);
44
+ timer = setTimeout(function () {
45
+ setResultsVisible(false);
46
+ }, 300);
47
+ };
48
+
49
+ // Show results immediately.
50
+ var showResults = function showResults() {
51
+ clearTimeout(timer);
52
+ setResultsVisible(true);
53
+ };
54
+
55
+ // On unmount, clear the timer.
56
+ useEffect(function () {
57
+ return clearTimeout(timer);
58
+ }, [timer]);
59
+ return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
60
+ className: cx(blockClass, "".concat(blockClass, "__container"), className),
61
+ onBlur: hideResults,
62
+ onFocus: showResults,
63
+ ref: ref
64
+ }, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement(Search, _extends({
65
+ className: "".concat(blockClass, "__input")
66
+ }, searchProps)), resultsVisible && !!children && /*#__PURE__*/React__default.createElement("div", {
67
+ className: "".concat(blockClass, "__results")
68
+ }, children));
69
+ });
70
+
71
+ // Return a placeholder if not released and not enabled by feature flag
72
+ FilterPanelSearch = pkg.checkComponentEnabled(FilterPanelSearch, componentName);
73
+ FilterPanelSearch.displayName = componentName;
74
+ FilterPanelSearch.propTypes = {
75
+ /**
76
+ * Provide the contents of the FilterPanelSearch.
77
+ */
78
+ children: PropTypes.node,
79
+ /**
80
+ * Optional class to be applied to the containing node.
81
+ */
82
+ className: PropTypes.string,
83
+ /**
84
+ * Props specific to the internal `Search` component.
85
+ */
86
+ searchProps: PropTypes.shape({
87
+ /** The label text for the Search icon. */
88
+ labelText: PropTypes.string.isRequired
89
+ }).isRequired
90
+ };
91
+
92
+ export { FilterPanelSearch };
@@ -5,3 +5,4 @@ export { FilterPanelCheckbox } from "./FilterPanelCheckbox/FilterPanelCheckbox";
5
5
  export { FilterPanelCheckboxWithOverflow } from "./FilterPanelCheckboxWithOverflow/FilterPanelCheckboxWithOverflow";
6
6
  export { FilterPanelGroup } from "./FilterPanelGroup/FilterPanelGroup";
7
7
  export { FilterPanelLabel } from "./FilterPanelLabel/FilterPanelLabel";
8
+ export { FilterPanelSearch } from "./FilterPanelSearch/FilterPanelSearch";
@@ -1,5 +1,6 @@
1
1
  /**
2
- * TODO: A description of the component.
2
+ * Display a full-page error when the requested page is unavailable to the user.
3
+ * This is typically caused by issues with the requested URL or access permissions.
3
4
  */
4
5
  export let FullPageError: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
6
  import React from 'react';
@@ -9,17 +9,14 @@ import { objectWithoutProperties as _objectWithoutProperties, extends as _extend
9
9
  import React__default from 'react';
10
10
  import PropTypes from '../../node_modules/prop-types/index.js';
11
11
  import cx from 'classnames';
12
- import { Grid, Column } from '@carbon/react';
13
- import { ErrorGenericSVG } from './assets/ErrorGenericSVG.js';
14
12
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
15
13
  import { pkg } from '../../settings.js';
14
+ import { ErrorGenericSVG } from './assets/ErrorGenericSVG.js';
16
15
  import { Error404SVG } from './assets/Error404SVG.js';
17
16
  import { Error403SVG } from './assets/Error403SVG.js';
17
+ import { Grid, Column } from '@carbon/react';
18
18
 
19
- var _excluded = ["children", "className", "description", "errorLabel", "kind", "title"];
20
-
21
- // Carbon and package components we use.
22
- /* TODO: @import(s) of carbon components and other package components. */
19
+ var _excluded = ["children", "className", "description", "label", "kind", "title"];
23
20
 
24
21
  // The block part of our conventional BEM class names (blockClass__E--M).
25
22
  var blockClass = "".concat(pkg.prefix, "--full-page-error");
@@ -27,88 +24,68 @@ var componentName = 'FullPageError';
27
24
 
28
25
  // NOTE: the component SCSS is not imported here: it is rolled up separately.
29
26
 
30
- // Default values can be included here and then assigned to the prop params,
31
- // e.g. prop = defaults.prop,
32
- // This gathers default values together neatly and ensures non-primitive
33
- // values are initialized early to avoid react making unnecessary re-renders.
34
- // Note that default values are not required for props that are 'required',
35
- // nor for props where the component can apply undefined values reasonably.
36
- // Default values should be provided when the component needs to make a choice
37
- // or assumption when a prop is not supplied.
38
-
39
27
  // Default values for props
40
28
  var defaults = {
41
29
  kind: 'custom'
42
30
  };
43
31
 
44
32
  /**
45
- * TODO: A description of the component.
33
+ * Display a full-page error when the requested page is unavailable to the user.
34
+ * This is typically caused by issues with the requested URL or access permissions.
46
35
  */
47
36
  var FullPageError = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
48
37
  var children = _ref.children,
49
38
  className = _ref.className,
50
39
  description = _ref.description,
51
- errorLabel = _ref.errorLabel,
40
+ label = _ref.label,
52
41
  _ref$kind = _ref.kind,
53
42
  kind = _ref$kind === void 0 ? defaults.kind : _ref$kind,
54
43
  title = _ref.title,
55
44
  rest = _objectWithoutProperties(_ref, _excluded);
56
45
  var errorData = {
57
46
  403: {
58
- title: 'Access denied',
59
- description: 'You are not authorized to access the requested page. Please verify that you are logged in to the hosting environment and your access permissions are correct.',
60
47
  svg: /*#__PURE__*/React__default.createElement(Error403SVG, {
61
- className: cx("".concat(blockClass, "__error-svg"), "".concat(blockClass, "__error-403"))
48
+ className: "".concat(blockClass, "__svg ").concat(blockClass, "__403")
62
49
  })
63
50
  },
64
51
  404: {
65
- title: 'Page not found',
66
- description: 'The page you requested has moved or is unavailable, or the specified URL is not valid. Please check the URL or search the site for the requested content.',
67
52
  svg: /*#__PURE__*/React__default.createElement(Error404SVG, {
68
- className: cx("".concat(blockClass, "__error-svg"), "".concat(blockClass, "__error-404"))
53
+ className: "".concat(blockClass, "__svg ").concat(blockClass, "__404")
69
54
  })
70
55
  },
71
56
  custom: {
72
- title: title,
73
- description: description,
74
57
  svg: /*#__PURE__*/React__default.createElement(ErrorGenericSVG, {
75
- className: cx("".concat(blockClass, "__error-svg"), "".concat(blockClass, "__error-custom"))
58
+ className: "".concat(blockClass, "__svg ").concat(blockClass, "__custom")
76
59
  })
77
60
  }
78
61
  };
79
62
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
80
- className: cx(blockClass,
81
- // Apply the block class to the main HTML element
82
- className,
83
- // Apply any supplied class names to the main HTML element.
84
- // example: `${blockClass}__template-string-class-${kind}-n-${size}`,
85
- {
86
- // switched classes dependant on props or state
87
- // example: [`${blockClass}__here-if-small`]: size === 'sm',
88
- }),
63
+ className: cx(blockClass, className),
89
64
  ref: ref,
90
65
  role: "main"
91
66
  }, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement("div", {
92
- className: "".concat(blockClass, "__error-container")
67
+ className: "".concat(blockClass, "__container")
93
68
  }, /*#__PURE__*/React__default.createElement(Grid, {
94
- className: "".concat(blockClass, "__error-grid")
69
+ className: "".concat(blockClass, "__grid")
95
70
  }, /*#__PURE__*/React__default.createElement(Column, {
96
71
  sm: 4,
97
72
  md: 3,
98
73
  lg: 6,
99
- className: "".concat(blockClass, "__error-column")
74
+ className: "".concat(blockClass, "__column")
100
75
  }, /*#__PURE__*/React__default.createElement("h1", {
101
- className: "".concat(blockClass, "__error-title")
76
+ className: "".concat(blockClass, "__title")
102
77
  }, /*#__PURE__*/React__default.createElement("span", {
103
- className: "".concat(blockClass, "__error-label")
104
- }, "\u21B3 ", kind === 'custom' ? errorLabel : "Error ".concat(kind)), /*#__PURE__*/React__default.createElement("span", null, errorData[kind].title)), /*#__PURE__*/React__default.createElement("p", {
78
+ className: "".concat(blockClass, "__label")
79
+ }, "\u21B3 ", label), /*#__PURE__*/React__default.createElement("span", null, title)), /*#__PURE__*/React__default.createElement("p", {
105
80
  className: "".concat(blockClass, "__description")
106
- }, description || errorData[kind].description), children), /*#__PURE__*/React__default.createElement(Column, {
81
+ }, description), /*#__PURE__*/React__default.createElement("div", {
82
+ className: "".concat(blockClass, "__body")
83
+ }, children)), /*#__PURE__*/React__default.createElement(Column, {
107
84
  sm: 4,
108
85
  md: 5,
109
86
  lg: 10
110
87
  }, /*#__PURE__*/React__default.createElement("div", {
111
- className: "".concat(blockClass, "__error-svg-container")
88
+ className: "".concat(blockClass, "__svg-container")
112
89
  }, errorData[kind].svg)))));
113
90
  });
114
91
 
@@ -136,20 +113,18 @@ FullPageError.propTypes = {
136
113
  * This is optional for 403 and 404 kinds, and passing this would override their default descriptions.
137
114
  */
138
115
  description: PropTypes.string.isRequired,
139
- /**
140
- * String that will describe the error that occurred
141
- */
142
- errorLabel: PropTypes.string.isRequired,
143
116
  /**
144
117
  * The kind of error page to be displayed, default is custom
145
118
  */
146
119
  kind: PropTypes.oneOf(['custom', '403', '404']),
120
+ /**
121
+ * String that will describe the error that occurred
122
+ */
123
+ label: PropTypes.string.isRequired,
147
124
  /**
148
125
  * This will be for the main title of the FullPageError component
149
126
  */
150
127
  title: PropTypes.string.isRequired
151
-
152
- /* TODO: add types and DocGen for all props. */
153
128
  };
154
129
 
155
130
  export { FullPageError };
@@ -1,7 +1,45 @@
1
+ /**
2
+ * Copyright IBM Corp. 2021, 2021
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import React, { PropsWithChildren } from 'react';
8
+ interface HTTPError403Props extends PropsWithChildren {
9
+ /**
10
+ * Provide an optional class to be applied to the containing node
11
+ */
12
+ className?: string;
13
+ /**
14
+ * String that will provide the description for the HTTP error code
15
+ */
16
+ description: string;
17
+ /**
18
+ * String that will describe the error that occurred
19
+ */
20
+ errorCodeLabel: string;
21
+ /**
22
+ * Links that will display for extra context when receiving particular errors
23
+ */
24
+ links: Array<{
25
+ /**
26
+ * The text to display for the link
27
+ */
28
+ text: string;
29
+ /**
30
+ * The link's destination
31
+ */
32
+ href: string;
33
+ }>;
34
+ /**
35
+ * This will be for the main title of the HTTP error component
36
+ */
37
+ title: string;
38
+ }
1
39
  /**
2
40
  * HTTP errors are used in an attempt to access something that isn’t available or
3
41
  the user doesn’t have permission for. This HTTPError component is generic so you
4
42
  can use it when you receive an error code that isn't provided.
5
43
  */
6
- export let HTTPError403: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
7
- import React from 'react';
44
+ export declare let HTTPError403: React.ForwardRefExoticComponent<HTTPError403Props & React.RefAttributes<HTMLDivElement>>;
45
+ export {};
@@ -19,7 +19,6 @@ var _excluded = ["className", "description", "errorCodeLabel", "links", "title"]
19
19
  // The block part of our conventional BEM class names (blockClass__E--M).
20
20
  var blockClass = "".concat(pkg.prefix, "--http-errors");
21
21
  var componentName = 'HTTPError403';
22
-
23
22
  /**
24
23
  * HTTP errors are used in an attempt to access something that isn’t available or
25
24
  the user doesn’t have permission for. This HTTPError component is generic so you
@@ -71,6 +70,7 @@ HTTPError403.propTypes = {
71
70
  /**
72
71
  * Links that will display for extra context when receiving particular errors
73
72
  */
73
+ /**@ts-ignore*/
74
74
  links: propTypesExports.arrayOf(propTypesExports.shape({
75
75
  /**
76
76
  * The text to display for the link
@@ -1,7 +1,45 @@
1
+ /**
2
+ * Copyright IBM Corp. 2021, 2021
3
+ *
4
+ * This source code is licensed under the Apache-2.0 license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+ import React, { PropsWithChildren } from 'react';
8
+ interface HTTPError404Props extends PropsWithChildren {
9
+ /**
10
+ * Provide an optional class to be applied to the containing node
11
+ */
12
+ className?: string;
13
+ /**
14
+ * String that will provide the description for the HTTP error code
15
+ */
16
+ description: string;
17
+ /**
18
+ * String that will describe the error that occurred
19
+ */
20
+ errorCodeLabel: string;
21
+ /**
22
+ * Links that will display for extra context when receiving particular errors
23
+ */
24
+ links: Array<{
25
+ /**
26
+ * The text to display for the link
27
+ */
28
+ text: string;
29
+ /**
30
+ * The link's destination
31
+ */
32
+ href: string;
33
+ }>;
34
+ /**
35
+ * This will be for the main title of the HTTP error component
36
+ */
37
+ title: string;
38
+ }
1
39
  /**
2
40
  * HTTP errors are used in an attempt to access something that isn’t available or
3
41
  the user doesn’t have permission for. This HTTPError component is generic so you
4
42
  can use it when you receive an error code that isn't provided.
5
43
  */
6
- export let HTTPError404: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
7
- import React from 'react';
44
+ export declare let HTTPError404: React.ForwardRefExoticComponent<HTTPError404Props & React.RefAttributes<HTMLDivElement>>;
45
+ export {};
@@ -19,7 +19,6 @@ var _excluded = ["className", "description", "errorCodeLabel", "links", "title"]
19
19
  // The block part of our conventional BEM class names (blockClass__E--M).
20
20
  var blockClass = "".concat(pkg.prefix, "--http-errors");
21
21
  var componentName = 'HTTPError404';
22
-
23
22
  /**
24
23
  * HTTP errors are used in an attempt to access something that isn’t available or
25
24
  the user doesn’t have permission for. This HTTPError component is generic so you
@@ -71,6 +70,7 @@ HTTPError404.propTypes = {
71
70
  /**
72
71
  * Links that will display for extra context when receiving particular errors
73
72
  */
73
+ /**@ts-ignore */
74
74
  links: propTypesExports.arrayOf(propTypesExports.shape({
75
75
  /**
76
76
  * The text to display for the link