@carbon/ibm-products 2.35.0 → 2.36.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. package/css/index-full-carbon.css +957 -567
  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 +67 -74
  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 +227 -206
  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 +443 -247
  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/Carousel/Carousel.d.ts +46 -2
  18. package/es/components/Carousel/Carousel.js +36 -21
  19. package/es/components/Carousel/CarouselItem.d.ts +19 -2
  20. package/es/components/Carousel/CarouselItem.js +0 -1
  21. package/es/components/Coachmark/utils/enums.d.ts +36 -22
  22. package/es/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +26 -2
  23. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -3
  24. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +28 -2
  25. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
  26. package/es/components/ConditionBuilder/assets/sampleInput.d.ts +5 -5
  27. package/es/components/CreateFullPage/CreateFullPage.d.ts +121 -4
  28. package/es/components/CreateFullPage/CreateFullPage.js +12 -8
  29. package/es/components/CreateTearsheet/CreateTearsheet.js +2 -0
  30. package/es/components/Datagrid/Datagrid/DatagridRow.js +4 -3
  31. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -1
  32. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +10 -6
  33. package/es/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
  34. package/es/components/EditFullPage/EditFullPage.d.ts +19 -2
  35. package/es/components/EditFullPage/EditFullPage.js +3 -3
  36. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +61 -2
  37. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -3
  38. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +61 -2
  39. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
  40. package/es/components/FullPageError/FullPageError.d.ts +2 -1
  41. package/es/components/FullPageError/FullPageError.js +24 -49
  42. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +40 -2
  43. package/es/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  44. package/es/components/InlineTip/InlineTipLink.d.ts +19 -2
  45. package/es/components/InterstitialScreenView/InterstitialScreenView.d.ts +23 -2
  46. package/es/components/InterstitialScreenView/InterstitialScreenView.js +0 -1
  47. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +23 -2
  48. package/es/components/NonLinearReading/NonLinearReading.d.ts +28 -2
  49. package/es/components/NonLinearReading/NonLinearReading.js +2 -7
  50. package/es/components/SearchBar/SearchBar.d.ts +51 -3
  51. package/es/components/SearchBar/SearchBar.js +5 -6
  52. package/es/components/SidePanel/SidePanel.js +10 -5
  53. package/es/components/TruncatedList/TruncatedList.d.ts +47 -2
  54. package/es/components/TruncatedList/TruncatedList.js +5 -4
  55. package/es/components/UserProfileImage/UserProfileImage.d.ts +66 -2
  56. package/es/components/UserProfileImage/UserProfileImage.js +5 -3
  57. package/lib/components/Carousel/Carousel.d.ts +46 -2
  58. package/lib/components/Carousel/Carousel.js +35 -20
  59. package/lib/components/Carousel/CarouselItem.d.ts +19 -2
  60. package/lib/components/Carousel/CarouselItem.js +0 -1
  61. package/lib/components/Coachmark/utils/enums.d.ts +36 -22
  62. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.d.ts +26 -2
  63. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +1 -3
  64. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.d.ts +28 -2
  65. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +0 -1
  66. package/lib/components/ConditionBuilder/assets/sampleInput.d.ts +5 -5
  67. package/lib/components/CreateFullPage/CreateFullPage.d.ts +121 -4
  68. package/lib/components/CreateFullPage/CreateFullPage.js +12 -8
  69. package/lib/components/CreateTearsheet/CreateTearsheet.js +2 -0
  70. package/lib/components/Datagrid/Datagrid/DatagridRow.js +4 -3
  71. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +2 -1
  72. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterFlyout.js +11 -7
  73. package/lib/components/Datagrid/Datagrid/addons/Filtering/FilterPanel.js +6 -2
  74. package/lib/components/EditFullPage/EditFullPage.d.ts +19 -2
  75. package/lib/components/EditFullPage/EditFullPage.js +3 -3
  76. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.d.ts +61 -2
  77. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -3
  78. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.d.ts +61 -2
  79. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -2
  80. package/lib/components/FullPageError/FullPageError.d.ts +2 -1
  81. package/lib/components/FullPageError/FullPageError.js +24 -49
  82. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.d.ts +40 -2
  83. package/lib/components/HTTPErrors/HTTPErrorOther/HTTPErrorOther.js +1 -1
  84. package/lib/components/InlineTip/InlineTipLink.d.ts +19 -2
  85. package/lib/components/InterstitialScreenView/InterstitialScreenView.d.ts +23 -2
  86. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +0 -1
  87. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +23 -2
  88. package/lib/components/NonLinearReading/NonLinearReading.d.ts +28 -2
  89. package/lib/components/NonLinearReading/NonLinearReading.js +2 -7
  90. package/lib/components/SearchBar/SearchBar.d.ts +51 -3
  91. package/lib/components/SearchBar/SearchBar.js +5 -6
  92. package/lib/components/SidePanel/SidePanel.js +10 -5
  93. package/lib/components/TruncatedList/TruncatedList.d.ts +47 -2
  94. package/lib/components/TruncatedList/TruncatedList.js +5 -4
  95. package/lib/components/UserProfileImage/UserProfileImage.d.ts +66 -2
  96. package/lib/components/UserProfileImage/UserProfileImage.js +5 -3
  97. package/package.json +7 -7
  98. package/scss/components/Datagrid/styles/_useSortableColumns.scss +2 -0
  99. package/scss/components/FullPageError/_full-page-error.scss +10 -10
  100. package/scss/components/UserAvatar/_user-avatar.scss +6 -3
  101. package/telemetry.yml +3 -0
@@ -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
 
@@ -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,
@@ -1,5 +1,64 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 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
+ /// <reference path="../../../../src/custom-typings/index.d.ts" />
8
+ import React, { ReactNode } from 'react';
9
+ import { ButtonProps } from '@carbon/react';
10
+ import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
11
+ interface NoTagsEmptyStateProps {
12
+ /**
13
+ * Empty state action button
14
+ */
15
+ action?: {
16
+ kind?: 'primary' | 'secondary' | 'tertiary';
17
+ renderIcon?: CarbonIconType;
18
+ onClick?: ButtonProps['onClick'];
19
+ text?: string;
20
+ };
21
+ /**
22
+ * Provide an optional class to be applied to the containing node.
23
+ */
24
+ className?: string;
25
+ /**
26
+ * The alt text for empty state svg images. If not provided , title will be used.
27
+ */
28
+ illustrationDescription?: string;
29
+ /**
30
+ * Designates the position of the illustration relative to the content
31
+ */
32
+ illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
33
+ /**
34
+ * Empty state illustration theme variations.
35
+ * To ensure you use the correct themed illustrations, you can conditionally specify light or dark
36
+ * based on your app's current theme value. Example:
37
+ * `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
38
+ */
39
+ illustrationTheme?: 'light' | 'dark';
40
+ /**
41
+ * Empty state link object
42
+ */
43
+ link?: {
44
+ text?: string | ReactNode;
45
+ href?: string;
46
+ };
47
+ /**
48
+ * Empty state size
49
+ */
50
+ size?: 'lg' | 'sm';
51
+ /**
52
+ * Empty state subtitle
53
+ */
54
+ subtitle?: string | ReactNode;
55
+ /**
56
+ * Empty state title
57
+ */
58
+ title: string | ReactNode;
59
+ }
1
60
  /**
2
61
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
3
62
  */
4
- export let NoTagsEmptyState: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
63
+ export declare let NoTagsEmptyState: React.ForwardRefExoticComponent<NoTagsEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
64
+ export {};
@@ -17,11 +17,9 @@ import NoTagsIllustration from '../assets/NoTagsIllustration.js';
17
17
  import { defaults } from '../EmptyState.js';
18
18
 
19
19
  var _excluded = ["action", "className", "illustrationPosition", "illustrationTheme", "illustrationDescription", "link", "size", "subtitle", "title"];
20
-
21
20
  // The block part of our conventional BEM class names (blockClass__E--M).
22
21
  var blockClass = "".concat(pkg.prefix, "--empty-state");
23
22
  var componentName = 'NoTagsEmptyState';
24
-
25
23
  /**
26
24
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
27
25
  */
@@ -50,7 +48,7 @@ var NoTagsEmptyState = /*#__PURE__*/React__default.forwardRef(function (_ref, re
50
48
  link: link,
51
49
  size: size,
52
50
  subtitle: subtitle,
53
- title: title
51
+ title: title = ''
54
52
  }));
55
53
  });
56
54
 
@@ -1,5 +1,64 @@
1
+ /**
2
+ * Copyright IBM Corp. 2020, 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
+ /// <reference path="../../../../src/custom-typings/index.d.ts" />
8
+ import React, { ReactNode } from 'react';
9
+ import { ButtonProps } from '@carbon/react';
10
+ import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
11
+ interface UnauthorizedEmptyStateProps {
12
+ /**
13
+ * Empty state action button
14
+ */
15
+ action?: {
16
+ kind?: 'primary' | 'secondary' | 'tertiary';
17
+ renderIcon?: CarbonIconType;
18
+ onClick?: ButtonProps['onClick'];
19
+ text?: string;
20
+ };
21
+ /**
22
+ * Provide an optional class to be applied to the containing node.
23
+ */
24
+ className?: string;
25
+ /**
26
+ * The alt text for empty state svg images. If not provided , title will be used.
27
+ */
28
+ illustrationDescription?: string;
29
+ /**
30
+ * Designates the position of the illustration relative to the content
31
+ */
32
+ illustrationPosition?: 'top' | 'right' | 'bottom' | 'left';
33
+ /**
34
+ * Empty state illustration theme variations.
35
+ * To ensure you use the correct themed illustrations, you can conditionally specify light or dark
36
+ * based on your app's current theme value. Example:
37
+ * `illustrationTheme={appTheme === ('carbon--g100' || 'carbon--g90') ? 'dark' : 'light'}`
38
+ */
39
+ illustrationTheme?: 'light' | 'dark';
40
+ /**
41
+ * Empty state link object
42
+ */
43
+ link?: {
44
+ text?: string | ReactNode;
45
+ href?: string;
46
+ };
47
+ /**
48
+ * Empty state size
49
+ */
50
+ size?: 'lg' | 'sm';
51
+ /**
52
+ * Empty state subtitle
53
+ */
54
+ subtitle: string | ReactNode;
55
+ /**
56
+ * Empty state title
57
+ */
58
+ title: string | ReactNode;
59
+ }
1
60
  /**
2
61
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
3
62
  */
4
- export let UnauthorizedEmptyState: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
63
+ export declare let UnauthorizedEmptyState: React.ForwardRefExoticComponent<UnauthorizedEmptyStateProps & React.RefAttributes<HTMLDivElement>>;
64
+ export {};
@@ -21,7 +21,6 @@ var _excluded = ["action", "className", "illustrationPosition", "illustrationThe
21
21
  // The block part of our conventional BEM class names (blockClass__E--M).
22
22
  var blockClass = "".concat(pkg.prefix, "--empty-state");
23
23
  var componentName = 'UnauthorizedEmptyState';
24
-
25
24
  /**
26
25
  * The `EmptyState` component follows the Carbon guidelines for empty states with some added specifications around illustration usage. For additional usage guidelines and documentation please refer to the links above.
27
26
  */
@@ -50,7 +49,7 @@ var UnauthorizedEmptyState = /*#__PURE__*/React__default.forwardRef(function (_r
50
49
  link: link,
51
50
  size: size,
52
51
  subtitle: subtitle,
53
- title: title
52
+ title: title || ''
54
53
  }));
55
54
  });
56
55
 
@@ -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 HTTPErrorOtherProps 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 HTTPErrorOther: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
7
- import React from 'react';
44
+ export declare let HTTPErrorOther: React.ForwardRefExoticComponent<HTTPErrorOtherProps & 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 = 'HTTPErrorOther';
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 @@ HTTPErrorOther.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,5 +1,22 @@
1
+ /**
2
+ * Copyright IBM Corp. 2023, 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, { PropsWithChildren, ReactNode } from 'react';
8
+ interface InlineTipLinkProps extends PropsWithChildren {
9
+ /**
10
+ * Provide the contents of the InlineTipLink.
11
+ */
12
+ children: ReactNode;
13
+ /**
14
+ * Provide an optional class to be applied to the containing node.
15
+ */
16
+ className?: string;
17
+ }
1
18
  /**
2
19
  * This is a standard Carbon link, styled specifically for use inside InlineTip.
3
20
  */
4
- export let InlineTipLink: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
21
+ export declare let InlineTipLink: React.ForwardRefExoticComponent<InlineTipLinkProps & React.RefAttributes<HTMLDivElement>>;
22
+ export {};
@@ -1,5 +1,26 @@
1
+ /**
2
+ * Copyright IBM Corp. 2023, 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, { PropsWithChildren, ReactNode } from 'react';
8
+ interface InterstitialScreenViewProps extends PropsWithChildren {
9
+ /**
10
+ * Provide the contents of the InterstitialScreenView.
11
+ */
12
+ children?: ReactNode;
13
+ /**
14
+ * Optional class name for this component.
15
+ */
16
+ className?: string;
17
+ /**
18
+ * The label to pass to the ProgressStep component.
19
+ */
20
+ stepTitle: string;
21
+ }
1
22
  /**
2
23
  * A Novice to Pro component intended to be used as the child elements of the InterstitialScreen component.
3
24
  */
4
- export let InterstitialScreenView: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
- import React from 'react';
25
+ export declare let InterstitialScreenView: React.ForwardRefExoticComponent<InterstitialScreenViewProps & React.RefAttributes<HTMLDivElement>>;
26
+ export {};
@@ -20,7 +20,6 @@ var _excluded = ["children", "className", "stepTitle"];
20
20
  // The block part of our conventional BEM class names (blockClass__E--M).
21
21
  var blockClass = "".concat(pkg.prefix, "--interstitial-screen-view");
22
22
  var componentName = 'InterstitialScreenView';
23
-
24
23
  /**
25
24
  * A Novice to Pro component intended to be used as the child elements of the InterstitialScreen component.
26
25
  */
@@ -1,5 +1,26 @@
1
1
  /**
2
- * View module to help in building interstitial screen views.
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.
3
6
  */
4
- export let InterstitialScreenViewModule: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
5
7
  import React from 'react';
8
+ interface InterstitialScreenViewModuleProps {
9
+ /**
10
+ * Provide an optional class to be applied to the containing node.
11
+ */
12
+ className?: string;
13
+ /**
14
+ * The description of this component.
15
+ */
16
+ description: string;
17
+ /**
18
+ * The title of this component.
19
+ */
20
+ title: string;
21
+ }
22
+ /**
23
+ * View module to help in building interstitial screen views.
24
+ */
25
+ export declare let InterstitialScreenViewModule: React.ForwardRefExoticComponent<InterstitialScreenViewModuleProps & React.RefAttributes<HTMLElement>>;
26
+ export {};
@@ -1,7 +1,33 @@
1
+ /**
2
+ * Copyright IBM Corp. 2023, 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
+ type Theme = 'light' | 'dark';
9
+ interface NonLinearReadingProps {
10
+ /**
11
+ * The keyword of the component appears as a pill.
12
+ */
13
+ children: ReactNode;
14
+ /**
15
+ * Provide an optional class to be applied to the containing node.
16
+ */
17
+ className?: string;
18
+ /**
19
+ * The content that appears when the keyword is toggled open.
20
+ */
21
+ definition: ReactNode;
22
+ /**
23
+ * Determines the theme of the component.
24
+ */
25
+ theme?: Theme;
26
+ }
1
27
  /**
2
28
  * Use non-linear reading when space is limited to share a
3
29
  * brief, at-a-glance, summary of a concept that may require
4
30
  * more explanation for some users.
5
31
  */
6
- export let NonLinearReading: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
7
- import React from 'react';
32
+ export declare let NonLinearReading: React.ForwardRefExoticComponent<NonLinearReadingProps & React.RefAttributes<HTMLSpanElement>>;
33
+ export {};