@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,122 @@
1
- export const StepsContext: React.Context<null>;
2
- export const StepNumberContext: React.Context<number>;
1
+ /**
2
+ * Copyright IBM Corp. 2021, 2023
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, { ReactNode } from 'react';
8
+ export declare const StepsContext: React.Context<null>;
9
+ export declare const StepNumberContext: React.Context<number>;
10
+ interface HeaderBreadcrumbs {
11
+ /** breadcrumb item key */
12
+ key: string;
13
+ /** breadcrumb item label */
14
+ label: string;
15
+ /** breadcrumb item link */
16
+ href?: string;
17
+ /** breadcrumb item title tooltip */
18
+ title?: string;
19
+ /** Provide if this breadcrumb item represents the current page */
20
+ isCurrentPage?: boolean;
21
+ }
22
+ type CreateFullPageBreadcrumbsProps = {
23
+ /** The header breadcrumbs */
24
+ breadcrumbs?: null | undefined;
25
+ /**
26
+ * Label for open/close overflow button used for breadcrumb items that do not fit
27
+ */
28
+ breadcrumbsOverflowAriaLabel?: never;
29
+ } | {
30
+ /** The header breadcrumbs */
31
+ breadcrumbs: HeaderBreadcrumbs;
32
+ /**
33
+ * Label for open/close overflow button used for breadcrumb items that do not fit
34
+ */
35
+ breadcrumbsOverflowAriaLabel: string;
36
+ };
37
+ type CreateFullPageBaseProps = {
38
+ /**
39
+ * The back button text
40
+ */
41
+ backButtonText?: string;
42
+ /**
43
+ * The cancel button text
44
+ */
45
+ cancelButtonText: string;
46
+ /**
47
+ * The main content of the full page
48
+ */
49
+ children?: ReactNode;
50
+ /**
51
+ * Provide an optional class to be applied to the containing node.
52
+ */
53
+ className?: string;
54
+ /**
55
+ * Specifies elements to focus on first on render.
56
+ */
57
+ firstFocusElement?: string;
58
+ /**
59
+ * This can be used to open the component to a step other than the first step.
60
+ * For example, a create flow was previously in progress, data was saved, and
61
+ * is now being completed.
62
+ */
63
+ initialStep?: number;
64
+ /** Maximum visible breadcrumb-items before overflow is used (values less than 1 are treated as 1) */
65
+ maxVisibleBreadcrumbs?: number;
66
+ /**
67
+ * The primary 'danger' button text in the modal
68
+ */
69
+ modalDangerButtonText: string;
70
+ /**
71
+ * The description located below the title in the modal
72
+ */
73
+ modalDescription?: string;
74
+ /**
75
+ * The secondary button text in the modal
76
+ */
77
+ modalSecondaryButtonText: string;
78
+ /**
79
+ * The title located in the header of the modal
80
+ */
81
+ modalTitle: string;
82
+ /**
83
+ * The next button text
84
+ */
85
+ nextButtonText: string;
86
+ /**
87
+ * A prop to omit the trailing slash for the breadcrumbs
88
+ */
89
+ noTrailingSlash?: boolean;
90
+ /**
91
+ * An optional handler that is called when the user closes the full page (by
92
+ * clicking the secondary button, located in the modal, which triggers after
93
+ * clicking the ghost button in the modal
94
+ */
95
+ onClose?: () => void;
96
+ /**
97
+ * Specify a handler for submitting the multi step full page (final step).
98
+ * This function can _optionally_ return a promise that is either resolved or rejected and the CreateFullPage will handle the submitting state of the create button.
99
+ */
100
+ onRequestSubmit: () => void;
101
+ /**
102
+ * A secondary title of the full page, displayed in the influencer area
103
+ */
104
+ secondaryTitle?: string;
105
+ /**
106
+ * @ignore
107
+ * The aria label to be used for the UI Shell SideNav Carbon component
108
+ */
109
+ sideNavAriaLabel?: string;
110
+ /**
111
+ * The submit button text
112
+ */
113
+ submitButtonText: string;
114
+ /**
115
+ * The main title of the full page, displayed in the header area
116
+ */
117
+ title?: string;
118
+ };
119
+ type CreateFullPageProps = CreateFullPageBaseProps & CreateFullPageBreadcrumbsProps;
3
120
  /**
4
121
  * Use with creations that must be completed in order for a service to be usable.
5
122
  *
@@ -12,5 +129,5 @@ on the Carbon's grid system
12
129
  include `<Row>` and `<Column>` components inside of each `CreateFullPageStep`
13
130
  component to get the desired affect.
14
131
  */
15
- export let CreateFullPage: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
16
- import React from 'react';
132
+ export declare let CreateFullPage: React.ForwardRefExoticComponent<CreateFullPageProps & React.RefAttributes<HTMLDivElement>>;
133
+ export {};
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { useState, useRef, useEffect, createContext } from 'react';
9
+ import React__default, { useState, useEffect, createContext } from 'react';
10
10
  import PropTypes from '../../node_modules/prop-types/index.js';
11
11
  import cx from 'classnames';
12
12
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
@@ -35,7 +35,6 @@ var StepsContext = /*#__PURE__*/createContext(null);
35
35
  // This is a context supplied separately to each step in the container
36
36
  // to let it know what number it is in the sequence of steps
37
37
  var StepNumberContext = /*#__PURE__*/createContext(-1);
38
-
39
38
  /**
40
39
  * Use with creations that must be completed in order for a service to be usable.
41
40
  *
@@ -114,15 +113,10 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
114
113
  _useState20 = _slicedToArray(_useState19, 2),
115
114
  firstIncludedStep = _useState20[0],
116
115
  setFirstIncludedStep = _useState20[1];
117
- var _useState21 = useState(null),
116
+ var _useState21 = useState(),
118
117
  _useState22 = _slicedToArray(_useState21, 2),
119
118
  lastIncludedStep = _useState22[0],
120
119
  setLastIncludedStep = _useState22[1];
121
- var _useState23 = useState(0),
122
- _useState24 = _slicedToArray(_useState23, 2),
123
- headerHeight = _useState24[0],
124
- setHeaderHeight = _useState24[1];
125
- var headerRef = useRef(null);
126
120
  useEffect(function () {
127
121
  var firstItem = stepData.findIndex(function (item) {
128
122
  return item === null || item === void 0 ? void 0 : item.shouldIncludeStep;
@@ -134,18 +128,13 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
134
128
  if (lastItem !== lastIncludedStep) {
135
129
  setLastIncludedStep(lastItem);
136
130
  }
131
+
132
+ /**@ts-ignore */
137
133
  if (open && initialStep) {
138
134
  var numberOfHiddenSteps = getNumberOfHiddenSteps(stepData, initialStep);
139
135
  setCurrentStep(Number(initialStep + numberOfHiddenSteps));
140
136
  }
141
- }, [stepData, firstIncludedStep, lastIncludedStep, initialStep]);
142
- useEffect(function () {
143
- var headerHeight = 0;
144
- if (title || (breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) > 0) {
145
- headerHeight = headerRef.current.getBoundingClientRect().height;
146
- }
147
- setHeaderHeight(headerHeight);
148
- }, [title, breadcrumbs]);
137
+ }, [stepData, firstIncludedStep, lastIncludedStep, initialStep, modalIsOpen]);
149
138
  useCreateComponentFocus({
150
139
  previousState: previousState,
151
140
  currentStep: currentStep,
@@ -157,9 +146,11 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
157
146
  useResetCreateComponent({
158
147
  firstIncludedStep: firstIncludedStep,
159
148
  previousState: previousState,
149
+ /**@ts-ignore */
160
150
  open: open,
161
151
  setCurrentStep: setCurrentStep,
162
152
  stepData: stepData,
153
+ /**@ts-ignore */
163
154
  initialStep: initialStep,
164
155
  totalSteps: stepData === null || stepData === void 0 ? void 0 : stepData.length,
165
156
  componentName: componentName
@@ -172,6 +163,7 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
172
163
  isSubmitDisabled: isDisabled,
173
164
  setCurrentStep: setCurrentStep,
174
165
  setIsSubmitting: setIsSubmitting,
166
+ /**@ts-ignore */
175
167
  setShouldViewAll: setShouldViewAll,
176
168
  onClose: onClose,
177
169
  onRequestSubmit: onRequestSubmit,
@@ -192,20 +184,15 @@ var CreateFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref)
192
184
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
193
185
  ref: ref,
194
186
  className: cx(blockClass, className)
195
- }, getDevtoolsProps(componentName)), (title || (breadcrumbs === null || breadcrumbs === void 0 ? void 0 : breadcrumbs.length) > 0) && /*#__PURE__*/React__default.createElement("div", {
196
- className: "".concat(blockClass, "__header"),
197
- ref: headerRef
198
- }, /*#__PURE__*/React__default.createElement(SimpleHeader, {
187
+ }, getDevtoolsProps(componentName)), (title || breadcrumbs) && /*#__PURE__*/React__default.createElement(SimpleHeader, {
199
188
  title: title,
200
189
  breadcrumbs: breadcrumbs,
201
190
  noTrailingSlash: noTrailingSlash,
202
191
  overflowAriaLabel: breadcrumbsOverflowAriaLabel,
203
- maxVisible: maxVisibleBreadcrumbs
204
- })), /*#__PURE__*/React__default.createElement("div", {
205
- className: "".concat(blockClass, "__influencer-and-body-container"),
206
- style: {
207
- height: "calc(100vh - ".concat(headerHeight, "px)")
208
- }
192
+ maxVisible: maxVisibleBreadcrumbs,
193
+ className: "".concat(blockClass, "__header")
194
+ }), /*#__PURE__*/React__default.createElement("div", {
195
+ className: "".concat(blockClass, "__influencer-and-body-container")
209
196
  }, /*#__PURE__*/React__default.createElement("div", {
210
197
  className: "".concat(blockClass, "__influencer")
211
198
  }, /*#__PURE__*/React__default.createElement(CreateInfluencer, {
@@ -287,6 +274,7 @@ CreateFullPage.propTypes = {
287
274
  */
288
275
  backButtonText: PropTypes.string.isRequired,
289
276
  /** The header breadcrumbs */
277
+ /**@ts-ignore */
290
278
  breadcrumbs: PropTypes.arrayOf(PropTypes.shape({
291
279
  /** breadcrumb item key */
292
280
  key: PropTypes.string.isRequired,
@@ -5,8 +5,8 @@
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  */
7
7
 
8
- import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default, { forwardRef, useContext, useState, useEffect } from 'react';
8
+ import { objectWithoutProperties as _objectWithoutProperties, slicedToArray as _slicedToArray, extends as _extends, defineProperty as _defineProperty, objectSpread2 as _objectSpread2 } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
+ import React__default, { forwardRef, useContext, useState, useEffect, isValidElement } from 'react';
10
10
  import PropTypes from '../../node_modules/prop-types/index.js';
11
11
  import cx from 'classnames';
12
12
  import { pkg } from '../../settings.js';
@@ -83,6 +83,24 @@ var CreateFullPageStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
83
83
  span: 50
84
84
  }; // Half.
85
85
 
86
+ var renderDescription = function renderDescription() {
87
+ if (description) {
88
+ var common = _objectSpread2({
89
+ children: description,
90
+ className: "".concat(blockClass, "-description")
91
+ }, span);
92
+ if (typeof description === 'string') {
93
+ return /*#__PURE__*/React__default.createElement(Column, _extends({}, common, {
94
+ as: "p"
95
+ }));
96
+ } else if ( /*#__PURE__*/isValidElement(description)) {
97
+ return /*#__PURE__*/React__default.createElement(Column, _extends({}, common, {
98
+ as: "div"
99
+ }));
100
+ }
101
+ }
102
+ return null;
103
+ };
86
104
  return stepsContext ? /*#__PURE__*/React__default.createElement("section", _extends({}, rest, {
87
105
  className: cx(blockClass, className, _defineProperty(_defineProperty({}, "".concat(blockClass, "__step--hidden-step"), stepNumber !== (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep)), "".concat(blockClass, "__step--visible-step"), stepNumber === (stepsContext === null || stepsContext === void 0 ? void 0 : stepsContext.currentStep))),
88
106
  ref: ref
@@ -92,10 +110,7 @@ var CreateFullPageStep = /*#__PURE__*/forwardRef(function (_ref, ref) {
92
110
  }, span), title), subtitle && /*#__PURE__*/React__default.createElement(Column, _extends({
93
111
  className: "".concat(blockClass, "-subtitle"),
94
112
  as: "h6"
95
- }, span), subtitle), description && /*#__PURE__*/React__default.createElement(Column, _extends({
96
- className: "".concat(blockClass, "-description"),
97
- as: "p"
98
- }, span), description)))), hasFieldset ? /*#__PURE__*/React__default.createElement(FormGroup, {
113
+ }, span), subtitle), renderDescription()))), hasFieldset ? /*#__PURE__*/React__default.createElement(FormGroup, {
99
114
  legendText: fieldsetLegendText,
100
115
  className: "".concat(blockClass, "-fieldset")
101
116
  }, children) : children) : pconsole.warn("You have tried using a ".concat(componentName, " component outside of a CreateFullPage. This is not allowed. ").concat(componentName, "s should always be children of the CreateFullPage"));
@@ -115,7 +130,7 @@ CreateFullPageStep.propTypes = {
115
130
  /**
116
131
  * Sets an optional description on the progress step component
117
132
  */
118
- description: PropTypes.string,
133
+ description: PropTypes.node,
119
134
  /**
120
135
  * This will conditionally disable the submit button in the multi step CreateFullPage
121
136
  */
@@ -129,6 +129,8 @@ var CreateTearsheet = /*#__PURE__*/forwardRef(function (_ref, ref) {
129
129
  if (open && initialStep) {
130
130
  var numberOfHiddenSteps = getNumberOfHiddenSteps(stepData, initialStep);
131
131
  setCurrentStep(Number(initialStep + numberOfHiddenSteps));
132
+ } else {
133
+ setCurrentStep(firstIncludedStep);
132
134
  }
133
135
  }, [stepData, firstIncludedStep, lastIncludedStep, initialStep, open]);
134
136
  useCreateComponentFocus({
@@ -1,6 +1,86 @@
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, ReactNode } from 'react';
8
+ type VerticalPosition = 'normal' | 'lower';
9
+ interface CreateTearsheetNarrowProps extends PropsWithChildren {
10
+ /**
11
+ * Provide the contents of the CreateTearsheetNarrow.
12
+ */
13
+ children: ReactNode;
14
+ /**
15
+ * Provide an optional class to be applied to the containing node.
16
+ */
17
+ className?: string;
18
+ /**
19
+ * A description of the flow, displayed in the header area of the tearsheet.
20
+ */
21
+ description?: ReactNode;
22
+ /**
23
+ * Specifies a boolean for disabling or enabling the primary button. This is important for form validation
24
+ * Returning `true` prevents the primary button from being clicked until required fields are completed.
25
+ */
26
+ disableSubmit?: boolean;
27
+ /**
28
+ * Specifies an optional field that provides a additional context for a form
29
+ */
30
+ formDescription?: ReactNode;
31
+ /**
32
+ * Specifies a field that provides a title for a form
33
+ */
34
+ formTitle?: ReactNode;
35
+ /**
36
+ * A label for the tearsheet, displayed in the header area of the tearsheet
37
+ * to maintain context for the tearsheet (e.g. as the title changes from page
38
+ * to page of a multi-page task).
39
+ */
40
+ label?: ReactNode;
41
+ /**
42
+ * An optional handler that is called when the user closes the tearsheet (by
43
+ * clicking the close button, if enabled, or clicking outside, if enabled).
44
+ * Returning `false` here prevents the modal from closing.
45
+ */
46
+ onRequestClose?: () => void;
47
+ /**
48
+ * Specifies an optional handler which is called when the CreateTearsheetNarrow
49
+ * primary button is pressed.
50
+ */
51
+ onRequestSubmit?: () => void;
52
+ /**
53
+ * Specifies whether the tearsheet is currently open.
54
+ */
55
+ open?: boolean;
56
+ /**
57
+ * Specifies the primary button's text in the CreateTearsheetNarrow.
58
+ */
59
+ primaryButtonText: string;
60
+ /**
61
+ * Specifies the secondary button's text in the CreateTearsheetNarrow.
62
+ */
63
+ secondaryButtonText: string;
64
+ /**
65
+ * Specifies which DOM element in the form should be focused.
66
+ */
67
+ selectorPrimaryFocus?: ReactNode;
68
+ /**
69
+ * The main title of the tearsheet, displayed in the header area.
70
+ */
71
+ title?: ReactNode;
72
+ /**
73
+ * The position of the top of tearsheet in the viewport. The 'normal'
74
+ * position (the default) is a short distance down from the top of the
75
+ * viewport, leaving room at the top for a global header bar to show through
76
+ * from below. The 'lower' position provides a little extra room at the top
77
+ * to allow an action bar navigation or breadcrumbs to also show through.
78
+ */
79
+ verticalPosition?: VerticalPosition;
80
+ }
1
81
  /**
2
82
  * Use a narrow tearsheet as an alternative to a modal when there is scrolling.
3
83
  * Use when the form fields can be broken down into sections using section headers.
4
84
  */
5
- export let CreateTearsheetNarrow: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
6
- import React from 'react';
85
+ export declare let CreateTearsheetNarrow: React.ForwardRefExoticComponent<CreateTearsheetNarrowProps & React.RefAttributes<unknown>>;
86
+ export {};
@@ -135,14 +135,15 @@ var DatagridRow = function DatagridRow(datagridState) {
135
135
  })) : /*#__PURE__*/React__default.createElement("td", {
136
136
  className: "".concat(blockClass, "__table-row-ai-spacer")
137
137
  }) : null, row.cells.map(function (cell, index) {
138
- var _cell$column, _content$props, _associatedHeader$;
138
+ var _cell$column, _cell$column2, _content$props, _associatedHeader$;
139
139
  var cellProps = cell.getCellProps();
140
140
  // eslint-disable-next-line no-unused-vars
141
141
  var children = cellProps.children;
142
142
  cellProps.role;
143
143
  var restProps = _objectWithoutProperties(cellProps, _excluded2);
144
+ var columnClassname = cell === null || cell === void 0 || (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : _cell$column.className;
144
145
  var content = children || /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !row.isSkeleton && cell.render('Cell'), row.isSkeleton && (_SkeletonText || (_SkeletonText = /*#__PURE__*/React__default.createElement(SkeletonText, null))));
145
- if ((cell === null || cell === void 0 || (_cell$column = cell.column) === null || _cell$column === void 0 ? void 0 : _cell$column.id) === selectionColumnId) {
146
+ if ((cell === null || cell === void 0 || (_cell$column2 = cell.column) === null || _cell$column2 === void 0 ? void 0 : _cell$column2.id) === selectionColumnId) {
146
147
  // directly render component without the wrapping TableCell
147
148
  return cell.render('Cell', {
148
149
  key: cell.column.id
@@ -153,7 +154,7 @@ var DatagridRow = function DatagridRow(datagridState) {
153
154
  return h.id === cell.column.id;
154
155
  });
155
156
  return /*#__PURE__*/React__default.createElement(TableCell, _extends({
156
- className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)))
157
+ className: cx("".concat(blockClass, "__cell"), _defineProperty(_defineProperty(_defineProperty({}, "".concat(blockClass, "__expandable-row-cell"), row.canExpand && index === 0), "".concat(blockClass, "__expandable-row-cell--is-expanded"), row.isExpanded && index === 0), "".concat(blockClass, "__slug--cell"), associatedHeader && associatedHeader.length && /*#__PURE__*/isValidElement((_associatedHeader$ = associatedHeader[0]) === null || _associatedHeader$ === void 0 ? void 0 : _associatedHeader$.slug)), columnClassname)
157
158
  }, restProps, {
158
159
  key: cell.column.id,
159
160
  title: title
@@ -166,9 +166,10 @@ var DraggableItemsList = function DraggableItemsList(_ref) {
166
166
  var firstWord = res !== null ? res[0] === '' ? res[1].charAt(0).toUpperCase() + res[1].substring(1) : res[0].charAt(0).toUpperCase() + res[0].substring(1) : null;
167
167
  var highlightedText = res !== null ? res[0] === '' ? "<strong>".concat(firstWord, "</strong>") + res[2] : firstWord + "<strong>".concat(res[1], "</strong>") + res[2] : colHeaderTitle;
168
168
  var isFrozenColumn = !!colDef.sticky;
169
+ var isDisabled = colDef.disabled;
169
170
  var listContents = /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(Checkbox, {
170
171
  checked: isColumnVisible(colDef),
171
- disabled: isFrozenColumn,
172
+ disabled: isDisabled || isFrozenColumn,
172
173
  onChange: function onChange(_, _ref2) {
173
174
  var checked = _ref2.checked;
174
175
  return onSelectColumn(colDef, checked);
@@ -6,14 +6,14 @@
6
6
  */
7
7
 
8
8
  import { slicedToArray as _slicedToArray, defineProperty as _defineProperty } from '../../../../../_virtual/_rollupPluginBabelHelpers.js';
9
- import { Filter } from '@carbon/react/icons';
9
+ import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS } from './constants.js';
10
10
  import { usePrefix, IconButton } from '@carbon/react';
11
- import cx from 'classnames';
12
- import PropTypes from '../../../../../node_modules/prop-types/index.js';
13
11
  import React__default, { useState, useRef, useEffect } from 'react';
14
- import { pkg } from '../../../../../settings.js';
15
- import { BATCH, INSTANT, FLYOUT, CLEAR_FILTERS } from './constants.js';
16
12
  import { breakpoints, px } from '@carbon/layout';
13
+ import { Filter } from '@carbon/react/icons';
14
+ import PropTypes from '../../../../../node_modules/prop-types/index.js';
15
+ import cx from 'classnames';
16
+ import { pkg } from '../../../../../settings.js';
17
17
  import useFilters from './hooks/useFilters.js';
18
18
  import useShouldDisableButtons from './hooks/useShouldDisableButtons.js';
19
19
  import { useWindowResize } from '../../../../../global/js/hooks/useWindowResize.js';
@@ -154,7 +154,11 @@ var FilterFlyout = function FilterFlyout(_ref) {
154
154
  setAllFilters(filtersObjectArray);
155
155
  closeFlyout();
156
156
  // From the user
157
- onApply();
157
+ onApply({
158
+ filtersState: filtersState,
159
+ filtersObjectArray: filtersObjectArray,
160
+ lastAppliedFilters: lastAppliedFilters
161
+ });
158
162
  // When the user clicks apply, the action set buttons should be disabled again
159
163
  setShouldDisableButtons(true);
160
164
 
@@ -10,11 +10,11 @@ import { Button, Layer, Search, Accordion, AccordionItem } from '@carbon/react';
10
10
  import { PANEL, BATCH, CLEAR_FILTERS, INSTANT } from './constants.js';
11
11
  import React__default, { useState, useContext, useRef, useMemo, useEffect } from 'react';
12
12
  import { panelVariants, innerContainerVariants, actionSetVariants } from './motion/variants.js';
13
+ import { motion, useReducedMotion } from 'framer-motion';
13
14
  import { Close } from '@carbon/react/icons';
14
15
  import { FilterContext } from './FilterProvider.js';
15
16
  import PropTypes from '../../../../../node_modules/prop-types/index.js';
16
17
  import cx from 'classnames';
17
- import { motion, useReducedMotion } from 'framer-motion';
18
18
  import { pkg } from '../../../../../settings.js';
19
19
  import { rem } from '@carbon/layout';
20
20
  import { ActionSet } from '../../../../ActionSet/ActionSet.js';
@@ -127,7 +127,11 @@ var FilterPanel = function FilterPanel(_ref) {
127
127
  var apply = function apply() {
128
128
  setAllFilters(filtersObjectArray);
129
129
  // From the user
130
- onApply();
130
+ onApply({
131
+ filtersState: filtersState,
132
+ filtersObjectArray: filtersObjectArray,
133
+ lastAppliedFilters: lastAppliedFilters
134
+ });
131
135
  // When the user clicks apply, the action set buttons should be disabled again
132
136
  setShouldDisableButtons(true);
133
137
 
@@ -90,7 +90,8 @@ var stateReducer = function stateReducer(newState, action) {
90
90
  if (rows) {
91
91
  var newSelectedRowData = {};
92
92
  rows.forEach(function (row) {
93
- var props = row.getRowProps();
93
+ var _row$getRowProps;
94
+ var props = (_row$getRowProps = row.getRowProps) === null || _row$getRowProps === void 0 ? void 0 : _row$getRowProps.call(row);
94
95
  if (props && props.disabled) {
95
96
  return;
96
97
  }
@@ -0,0 +1,15 @@
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 useInlineEdit from './useInlineEdit.js';
9
+
10
+ var useEditableCell = function useEditableCell(hooks) {
11
+ useInlineEdit(hooks, 'usingEditableCell');
12
+ };
13
+ var useEditableCell$1 = useEditableCell;
14
+
15
+ export { useEditableCell$1 as default };
@@ -1,6 +1,31 @@
1
+ /**
2
+ * Copyright IBM Corp. 2024, 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
+ import React, { PropsWithChildren } from 'react';
8
+ interface DelimitedListProps extends PropsWithChildren {
9
+ /**
10
+ * Provide an optional class to be applied to the containing node.
11
+ */
12
+ className?: string;
13
+ /**
14
+ * The character(s) used to separate the items.
15
+ */
16
+ delimiter?: string;
17
+ /**
18
+ * Array of items to be listed.
19
+ */
20
+ items?: any[];
21
+ /**
22
+ * Toggle the component's ability to truncate or not.
23
+ */
24
+ truncate?: boolean;
25
+ }
1
26
  /**
2
27
  * `DelimitedList` converts an array of items into a single line of
3
28
  * comma-separated values.
4
29
  */
5
- export let DelimitedList: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
6
- import React from 'react';
30
+ export declare let DelimitedList: React.ForwardRefExoticComponent<DelimitedListProps & React.RefAttributes<HTMLDivElement>>;
31
+ export {};
@@ -20,7 +20,6 @@ var defaults = {
20
20
  items: [],
21
21
  truncate: true
22
22
  };
23
-
24
23
  /**
25
24
  * `DelimitedList` converts an array of items into a single line of
26
25
  * comma-separated values.
@@ -1,6 +1,23 @@
1
+ /**
2
+ * Copyright IBM Corp. 2022, 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
+ import React, { ReactNode } from 'react';
8
+ interface EditFullPageProps {
9
+ /**
10
+ * Provide an optional class to be applied to the containing node.
11
+ */
12
+ className?: string;
13
+ /**
14
+ * Provide the contents of the EditFullPage.
15
+ */
16
+ children: ReactNode;
17
+ }
1
18
  /**
2
19
  * Use when settings on a page need to always be shown in edit mode, or when the context of the page is needed to make several changes.
3
20
  * See usage guidance for further details.
4
21
  */
5
- export let EditFullPage: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
6
- import React from 'react';
22
+ export declare let EditFullPage: React.ForwardRefExoticComponent<EditFullPageProps & React.RefAttributes<HTMLDivElement>>;
23
+ export {};
@@ -12,7 +12,7 @@ import cx from 'classnames';
12
12
  import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
13
13
  import { pkg } from '../../settings.js';
14
14
 
15
- var _excluded = ["children", "className"];
15
+ var _excluded = ["className", "children"];
16
16
 
17
17
  // Carbon and package components we use.
18
18
  /* TODO: @import(s) of carbon components and other package components. */
@@ -42,8 +42,8 @@ var componentName = 'EditFullPage';
42
42
  * See usage guidance for further details.
43
43
  */
44
44
  var EditFullPage = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
45
- var children = _ref.children,
46
- className = _ref.className,
45
+ var className = _ref.className,
46
+ children = _ref.children,
47
47
  rest = _objectWithoutProperties(_ref, _excluded);
48
48
  return /*#__PURE__*/React__default.createElement("div", _extends({}, rest, {
49
49
  className: cx(blockClass,