@carbon/ibm-products 2.64.0 → 2.65.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (104) hide show
  1. package/css/index-full-carbon.css +59 -143
  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 +8 -0
  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 +59 -143
  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 +59 -143
  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/Checklist/Checklist.js +8 -7
  18. package/es/components/CoachmarkStack/CoachmarkStack.d.ts +5 -0
  19. package/es/components/CoachmarkStack/CoachmarkStack.js +9 -3
  20. package/es/components/CoachmarkStack/CoachmarkStackHome.d.ts +5 -0
  21. package/es/components/CoachmarkStack/CoachmarkStackHome.js +39 -6
  22. package/es/components/CreateFullPage/CreateFullPage.d.ts +1 -1
  23. package/es/components/CreateFullPage/CreateFullPage.js +23 -18
  24. package/es/components/Datagrid/Datagrid/DraggableElement.d.ts +3 -1
  25. package/es/components/Datagrid/Datagrid/DraggableElement.js +3 -1
  26. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +3 -0
  27. package/es/components/InlineTip/InlineTip.js +3 -3
  28. package/es/components/InterstitialScreen/InterstitialScreen.d.ts +36 -59
  29. package/es/components/InterstitialScreen/InterstitialScreen.js +75 -271
  30. package/es/components/InterstitialScreen/InterstitialScreenBody.d.ts +27 -0
  31. package/es/components/InterstitialScreen/InterstitialScreenBody.js +110 -0
  32. package/es/components/InterstitialScreen/InterstitialScreenFooter.d.ts +47 -0
  33. package/es/components/InterstitialScreen/InterstitialScreenFooter.js +184 -0
  34. package/es/components/InterstitialScreen/InterstitialScreenHeader.d.ts +35 -0
  35. package/es/components/InterstitialScreen/InterstitialScreenHeader.js +90 -0
  36. package/es/components/{InterstitialScreenView → InterstitialScreen/_story-assets/InterstitialScreenView}/InterstitialScreenView.d.ts +1 -0
  37. package/{lib/components → es/components/InterstitialScreen/_story-assets}/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +8 -0
  38. package/es/components/NotificationsPanel/NotificationsPanel.js +15 -10
  39. package/es/components/PageHeader/PageHeader.js +1 -1
  40. package/es/components/SidePanel/SidePanel.js +3 -2
  41. package/es/components/Tearsheet/Tearsheet.js +3 -2
  42. package/es/components/index.d.ts +0 -2
  43. package/es/global/js/hooks/useOverflowItems/useOverflowItems.d.ts +2 -2
  44. package/es/global/js/package-settings.d.ts +0 -2
  45. package/es/global/js/package-settings.js +0 -2
  46. package/es/index.js +0 -2
  47. package/es/settings.d.ts +0 -2
  48. package/lib/components/Checklist/Checklist.js +7 -6
  49. package/lib/components/CoachmarkStack/CoachmarkStack.d.ts +5 -0
  50. package/lib/components/CoachmarkStack/CoachmarkStack.js +9 -3
  51. package/lib/components/CoachmarkStack/CoachmarkStackHome.d.ts +5 -0
  52. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +37 -4
  53. package/lib/components/CreateFullPage/CreateFullPage.d.ts +1 -1
  54. package/lib/components/CreateFullPage/CreateFullPage.js +22 -17
  55. package/lib/components/Datagrid/Datagrid/DraggableElement.d.ts +3 -1
  56. package/lib/components/Datagrid/Datagrid/DraggableElement.js +3 -1
  57. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +3 -0
  58. package/lib/components/InlineTip/InlineTip.js +2 -2
  59. package/lib/components/InterstitialScreen/InterstitialScreen.d.ts +36 -59
  60. package/lib/components/InterstitialScreen/InterstitialScreen.js +73 -267
  61. package/lib/components/InterstitialScreen/InterstitialScreenBody.d.ts +27 -0
  62. package/lib/components/InterstitialScreen/InterstitialScreenBody.js +114 -0
  63. package/lib/components/InterstitialScreen/InterstitialScreenFooter.d.ts +47 -0
  64. package/lib/components/InterstitialScreen/InterstitialScreenFooter.js +188 -0
  65. package/lib/components/InterstitialScreen/InterstitialScreenHeader.d.ts +35 -0
  66. package/lib/components/InterstitialScreen/InterstitialScreenHeader.js +94 -0
  67. package/lib/components/{InterstitialScreenView → InterstitialScreen/_story-assets/InterstitialScreenView}/InterstitialScreenView.d.ts +1 -0
  68. package/{es/components → lib/components/InterstitialScreen/_story-assets}/InterstitialScreenViewModule/InterstitialScreenViewModule.d.ts +8 -0
  69. package/lib/components/NotificationsPanel/NotificationsPanel.js +14 -9
  70. package/lib/components/PageHeader/PageHeader.js +1 -1
  71. package/lib/components/SidePanel/SidePanel.js +3 -2
  72. package/lib/components/Tearsheet/Tearsheet.js +3 -2
  73. package/lib/components/index.d.ts +0 -2
  74. package/lib/global/js/hooks/useOverflowItems/useOverflowItems.d.ts +2 -2
  75. package/lib/global/js/package-settings.d.ts +0 -2
  76. package/lib/global/js/package-settings.js +0 -2
  77. package/lib/index.js +0 -10
  78. package/lib/settings.d.ts +0 -2
  79. package/package.json +7 -7
  80. package/scss/components/Coachmark/_coachmark-overlay.scss +2 -0
  81. package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +1 -0
  82. package/scss/components/CoachmarkStack/_coachmark-stack.scss +25 -0
  83. package/scss/components/InterstitialScreen/_interstitial-screen.scss +29 -137
  84. package/scss/components/NotificationsPanel/_notifications-panel.scss +2 -0
  85. package/scss/components/PageHeader/_page-header.scss +5 -0
  86. package/scss/components/_index-with-carbon.scss +0 -2
  87. package/scss/components/_index.scss +0 -2
  88. package/telemetry.yml +17 -8
  89. package/es/components/InterstitialScreenView/InterstitialScreenView.js +0 -78
  90. package/es/components/InterstitialScreenView/index.d.ts +0 -8
  91. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +0 -81
  92. package/es/components/InterstitialScreenViewModule/index.d.ts +0 -8
  93. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +0 -78
  94. package/lib/components/InterstitialScreenView/index.d.ts +0 -8
  95. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +0 -81
  96. package/lib/components/InterstitialScreenViewModule/index.d.ts +0 -8
  97. package/scss/components/InterstitialScreenView/_carbon-imports.scss +0 -9
  98. package/scss/components/InterstitialScreenView/_index-with-carbon.scss +0 -9
  99. package/scss/components/InterstitialScreenView/_index.scss +0 -8
  100. package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +0 -25
  101. package/scss/components/InterstitialScreenViewModule/_carbon-imports.scss +0 -9
  102. package/scss/components/InterstitialScreenViewModule/_index-with-carbon.scss +0 -9
  103. package/scss/components/InterstitialScreenViewModule/_index.scss +0 -8
  104. package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +0 -59
@@ -94,4 +94,29 @@ $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
94
94
  &__icon-idea {
95
95
  margin-block-end: $spacing-03;
96
96
  }
97
+
98
+ li {
99
+ display: block;
100
+ max-inline-size: 100%;
101
+ white-space: nowrap;
102
+ }
103
+
104
+ button,
105
+ &__navLinkLabels-tooltip {
106
+ max-inline-size: 100%;
107
+
108
+ .#{c4p-settings.$carbon-prefix}--tooltip-content {
109
+ color: $text-primary;
110
+ margin-inline-start: calc($spacing-02 + $spacing-01);
111
+ max-inline-size: 100%;
112
+ }
113
+ }
114
+
115
+ &__navLinkLabels-text {
116
+ display: inline-block;
117
+ overflow: hidden;
118
+ max-inline-size: 100%;
119
+ text-overflow: ellipsis;
120
+ white-space: nowrap;
121
+ }
97
122
  }
@@ -29,31 +29,6 @@ $one-grid-column: calc(100% / 16);
29
29
  .#{$block-class} {
30
30
  $block: &;
31
31
 
32
- .#{$carousel} {
33
- display: flex;
34
- flex-direction: column;
35
- min-block-size: 100%;
36
-
37
- &__elements-container {
38
- display: flex;
39
- flex: 1;
40
- flex-direction: column;
41
- }
42
-
43
- &__elements {
44
- flex: 1;
45
- }
46
- }
47
-
48
- position: fixed;
49
- z-index: 6001;
50
- inset-block-start: 0;
51
- inset-inline: 0;
52
-
53
- #{$block}--auto-height-container {
54
- flex: 1;
55
- }
56
-
57
32
  &--body {
58
33
  overflow: hidden auto;
59
34
  flex-grow: 1;
@@ -62,17 +37,8 @@ $one-grid-column: calc(100% / 16);
62
37
  background-color: $background;
63
38
  }
64
39
 
65
- &--body-grid {
66
- padding: 0 !important;
67
- block-size: 100%;
68
- }
69
-
70
- &--body-row {
71
- block-size: 100%;
72
- }
73
-
74
40
  &--progress {
75
- margin: $spacing-07 $spacing-05 $spacing-04;
41
+ margin-block-end: $spacing-04;
76
42
  }
77
43
 
78
44
  &__carousel {
@@ -83,32 +49,6 @@ $one-grid-column: calc(100% / 16);
83
49
  }
84
50
  }
85
51
 
86
- &--container {
87
- margin: calc($spacing-10 * 2) auto; // stylelint-disable-line carbon/layout-use
88
- background-color: $background;
89
- max-inline-size: 82rem;
90
- min-inline-size: 47rem;
91
- }
92
-
93
- &--media-container {
94
- overflow: hidden;
95
- }
96
-
97
- &--media {
98
- block-size: 100%;
99
- inline-size: 100%;
100
-
101
- margin-inline-end: calc($spacing-08 * -1);
102
- @include breakpoint-down(xlg) {
103
- margin-inline-end: calc($spacing-07 * -1);
104
- }
105
- }
106
-
107
- &--stepped-animated-media {
108
- overflow: hidden;
109
- block-size: 100%;
110
- }
111
-
112
52
  &--internal-body {
113
53
  padding: 0 !important;
114
54
  margin: 0 !important;
@@ -120,18 +60,32 @@ $one-grid-column: calc(100% / 16);
120
60
  background-color: $background;
121
61
  margin-block-end: 0 !important;
122
62
  min-block-size: $spacing-09;
63
+ padding-block-start: $spacing-06;
64
+ padding-inline-start: $spacing-07 !important;
123
65
 
124
66
  &:empty {
125
67
  min-block-size: 0;
126
68
  }
127
69
 
128
- h2 {
129
- @include type.type-style('productive-heading-04');
70
+ .#{$block-class}--titleContainer {
71
+ margin-block-end: $spacing-05;
130
72
 
131
- padding: 0 $spacing-05 $spacing-06;
73
+ h2 {
74
+ @include type.type-style('productive-heading-04');
132
75
 
133
- &:empty {
134
- padding: 0;
76
+ margin-block-end: $spacing-03;
77
+
78
+ &:empty {
79
+ padding: 0;
80
+ }
81
+ }
82
+
83
+ h3 {
84
+ @include type.type-style('productive-heading-03');
85
+
86
+ &:empty {
87
+ padding: 0;
88
+ }
135
89
  }
136
90
  }
137
91
 
@@ -143,13 +97,6 @@ $one-grid-column: calc(100% / 16);
143
97
  margin-block-start: 0;
144
98
  }
145
99
  }
146
- > #{$block}--close-icon {
147
- position: absolute !important;
148
- z-index: 1;
149
- inline-size: $spacing-09;
150
- inset-block-start: 0;
151
- inset-inline-end: 0;
152
- }
153
100
  }
154
101
 
155
102
  // FOOTER
@@ -174,6 +121,12 @@ $one-grid-column: calc(100% / 16);
174
121
  max-inline-size: none;
175
122
  padding-inline-start: $spacing-07 !important;
176
123
  }
124
+ .#{c4p-settings.$carbon-prefix}--inline-loading {
125
+ position: absolute;
126
+ inline-size: $spacing-07;
127
+ inset-block-start: 0;
128
+ inset-inline-end: 0;
129
+ }
177
130
  }
178
131
 
179
132
  &--footer-controls {
@@ -183,25 +136,11 @@ $one-grid-column: calc(100% / 16);
183
136
  margin-inline-start: auto;
184
137
  }
185
138
 
186
- // MODAL (settings exclusive of "FULL SCREEN")
187
- &--modal {
188
- #{$block}--content {
189
- margin-block-start: 0;
190
- }
191
-
192
- #{$block}--internal-header {
193
- &:has(> :nth-child(2)) {
194
- min-block-size: initial;
195
- }
196
- }
197
-
198
- &:has(> :nth-child(1)) {
199
- min-block-size: initial;
200
- }
201
- }
202
-
203
139
  // FULL SCREEN (settings exclusive of "MODAL")
204
140
  &--full-screen {
141
+ position: fixed;
142
+ inset-block-start: 0;
143
+ inset-inline: 0;
205
144
  #{$block}--container {
206
145
  display: flex;
207
146
  flex-direction: column;
@@ -211,53 +150,6 @@ $one-grid-column: calc(100% / 16);
211
150
  max-inline-size: 100vw;
212
151
  }
213
152
 
214
- // e.g. "IBM Cloud Pak | Product"
215
- // ..."IBM Cloud Pak"
216
- #{$block}--header {
217
- @include type.type-style('body-long-01');
218
- /* stylelint-disable-next-line carbon/theme-use */
219
- background-color: $gray-100;
220
-
221
- block-size: $spacing-09;
222
- border-block-end: 1px solid $border-subtle-01;
223
- /* stylelint-disable-next-line carbon/theme-use */
224
- color: $gray-10;
225
- /* stylelint-disable-next-line carbon/type-use */
226
- font-weight: normal !important; // overrides type style above
227
- /* stylelint-disable-next-line carbon/type-use */
228
- line-height: $spacing-09 !important;
229
- padding-inline-start: $spacing-05;
230
-
231
- b {
232
- /* stylelint-disable-next-line carbon/type-use */
233
- font-weight: 600;
234
- }
235
- }
236
-
237
- #{$block}--internal-header {
238
- > h2 {
239
- padding: $spacing-05 $spacing-08 0;
240
- }
241
-
242
- #{$block}--progress {
243
- margin: $spacing-10 $spacing-08 $spacing-04;
244
-
245
- @include breakpoint-down(xlg) {
246
- margin-inline-start: $spacing-07;
247
- }
248
- }
249
-
250
- &--has-title {
251
- #{$block}--progress {
252
- margin-block-start: $spacing-06;
253
- }
254
- }
255
-
256
- &:has(> :nth-child(1)) {
257
- min-block-size: initial;
258
- }
259
- }
260
-
261
153
  #{$block}--footer {
262
154
  #{$block}--skip-btn {
263
155
  padding-inline-start: $spacing-08 !important;
@@ -169,6 +169,8 @@ $block-size: 38.5rem;
169
169
  text-align: start;
170
170
  transition: background-color $duration-moderate-02 motion(standard);
171
171
  .#{$block-class}__notification-title {
172
+ @include type.type-style('heading-01');
173
+
172
174
  color: $text-secondary;
173
175
  margin-block-end: $spacing-02;
174
176
  @include font-weight('regular');
@@ -109,6 +109,7 @@ $duration: 1000ms;
109
109
  z-index: $z-index-header-minus;
110
110
  display: inline-block; /* cause top/bottom margin to reserve space */
111
111
  background-color: $background;
112
+ border-block-end: 1px solid $border-subtle-00;
112
113
  color: $text-primary;
113
114
  inline-size: 100%;
114
115
  /* stylelint-disable-next-line carbon/layout-use */
@@ -124,6 +125,10 @@ $duration: 1000ms;
124
125
  --#{$block-class}--navigation-buffer-top: $spacing-06;
125
126
  }
126
127
 
128
+ &.#{$block-class}--without-background {
129
+ border-block-end: none;
130
+ }
131
+
127
132
  &.#{$block-class}--has-navigation-tags-only {
128
133
  --#{$block-class}--navigation-buffer-top: $spacing-04;
129
134
  }
@@ -52,8 +52,6 @@
52
52
  @use './BigNumbers/index-with-carbon' as *;
53
53
  @use './TruncatedList/index-with-carbon' as *;
54
54
  @use './InterstitialScreen/index-with-carbon' as *;
55
- @use './InterstitialScreenView/index-with-carbon' as *;
56
- @use './InterstitialScreenViewModule/index-with-carbon' as *;
57
55
  @use './Coachmark/index-with-carbon' as *;
58
56
  @use './CoachmarkBeacon/index-with-carbon' as *;
59
57
  @use './CoachmarkButton/index-with-carbon' as *;
@@ -65,8 +65,6 @@
65
65
  @use './BigNumbers';
66
66
  @use './TruncatedList';
67
67
  @use './InterstitialScreen';
68
- @use './InterstitialScreenView';
69
- @use './InterstitialScreenViewModule';
70
68
  @use './DelimitedList';
71
69
  @use './Decorator';
72
70
  @use './DecoratorLink';
package/telemetry.yml CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  version: 1
4
4
  projectId: 495342db-5046-4ecf-85ea-9ffceb6f8cdf
5
- endpoint: https://collector-prod.1am6wm210aow.us-south.codeengine.appdomain.cloud/v1/metrics
5
+ endpoint: https://www-api.ibm.com/ibm-telemetry/v1/metrics
6
6
  collect:
7
7
  jsx:
8
8
  elements:
@@ -364,6 +364,7 @@ collect:
364
364
  - titleSize
365
365
  - toolbarBatchActions
366
366
  - toolbarBatchActionsDisplayMin
367
+ - tooltipAlign
367
368
  - tooltipAlignment
368
369
  - tooltipText
369
370
  - totalVisibleColumns
@@ -561,7 +562,6 @@ collect:
561
562
  # ConditionBuilderButton
562
563
  - hideLabel
563
564
  - isInvalid
564
- - tooltipAlign
565
565
  - wrapperClassName
566
566
  - wrapperProps
567
567
  # ConditionBuilderItem
@@ -627,6 +627,7 @@ collect:
627
627
  - border
628
628
  # DraggableElement
629
629
  - classList
630
+ - elementId
630
631
  - isSticky
631
632
  # DraggableItemsList
632
633
  - moveElement
@@ -729,19 +730,24 @@ collect:
729
730
  - narrow
730
731
  - tertiaryButtonLabel
731
732
  # InterstitialScreen
732
- - breakpointsWithMedia
733
- - domainName
734
- - headerClassName
735
- - headerTitle
736
- - hideProgressIndicator
737
733
  - interstitialAriaLabel
738
734
  - isFullScreen
735
+ # InterstitialScreenBody
736
+ - contentRenderer
737
+ # InterstitialScreenFooter
738
+ - actionButtonRenderer
739
739
  - nextButtonLabel
740
- - productName
740
+ - onAction
741
741
  - skipButtonLabel
742
742
  - startButtonLabel
743
+ # InterstitialScreenHeader
744
+ - headerSubTitle
745
+ - headerTitle
746
+ - hideProgressIndicator
743
747
  # InterstitialScreenView
744
748
  - stepTitle
749
+ # InterstitialScreenViewModule
750
+ - disableActionButton
745
751
  # Item
746
752
  - attributes
747
753
  - dragOverlay
@@ -1095,6 +1101,9 @@ collect:
1095
1101
  # General - titleSize
1096
1102
  - default
1097
1103
  - large
1104
+ # General - tooltipAlign
1105
+ - bottom
1106
+ - top
1098
1107
  # General - tooltipAlignment
1099
1108
  - bottom
1100
1109
  - bottom-left
@@ -1,78 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2025
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, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
- import React__default from 'react';
10
- import PropTypes from '../../_virtual/index.js';
11
- import cx from 'classnames';
12
- import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
13
- import { pkg } from '../../settings.js';
14
-
15
- var _excluded = ["children", "className", "stepTitle", "translateWithId"];
16
-
17
- // Carbon and package components we use.
18
- /* TODO: @import(s) of carbon components and other package components. */
19
-
20
- // The block part of our conventional BEM class names (blockClass__E--M).
21
- var blockClass = "".concat(pkg.prefix, "--interstitial-screen-view");
22
- var componentName = 'InterstitialScreenView';
23
- /**
24
- * An Onboarding component intended to be used as the child elements of the InterstitialScreen component.
25
- */
26
- var InterstitialScreenView = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
27
- var children = _ref.children,
28
- className = _ref.className,
29
- stepTitle = _ref.stepTitle;
30
- _ref.translateWithId;
31
- var rest = _objectWithoutProperties(_ref, _excluded);
32
- return /*#__PURE__*/React__default.createElement("div", _extends({
33
- role: "complementary",
34
- "aria-label": stepTitle
35
- }, rest, {
36
- className: cx(blockClass,
37
- // Apply the block class to the main HTML element
38
- className,
39
- // Apply any supplied class names to the main HTML element.
40
- // example: `${blockClass}__template-string-class-${kind}-n-${size}`,
41
- {
42
- // switched classes dependant on props or state
43
- // example: [`${blockClass}__here-if-small`]: size === 'sm',
44
- }),
45
- ref: ref
46
- }, getDevtoolsProps(componentName)), children);
47
- });
48
-
49
- // Return a placeholder if not released and not enabled by feature flag
50
- InterstitialScreenView = pkg.checkComponentEnabled(InterstitialScreenView, componentName);
51
-
52
- // The display name of the component, used by React. Note that displayName
53
- // is used in preference to relying on function.name.
54
- InterstitialScreenView.displayName = componentName;
55
-
56
- // The types and DocGen commentary for the component props,
57
- // in alphabetical order (for consistency).
58
- // See https://www.npmjs.com/package/prop-types#usage.
59
- InterstitialScreenView.propTypes = {
60
- /**
61
- * Provide the contents of the InterstitialScreenView.
62
- */
63
- children: PropTypes.node,
64
- /**
65
- * Optional class name for this component.
66
- */
67
- className: PropTypes.string,
68
- /**
69
- * The label to pass to the ProgressStep component.
70
- */
71
- stepTitle: PropTypes.string.isRequired,
72
- /**
73
- * Optional method that takes in a message id and returns an internationalized string.
74
- */
75
- translateWithId: PropTypes.func
76
- };
77
-
78
- export { InterstitialScreenView };
@@ -1,8 +0,0 @@
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
- export { InterstitialScreenView } from './InterstitialScreenView';
8
- export type { InterstitialScreenViewProps } from './InterstitialScreenView';
@@ -1,81 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2025
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, extends as _extends } from '../../_virtual/_rollupPluginBabelHelpers.js';
9
- import PropTypes from '../../_virtual/index.js';
10
- import React__default from 'react';
11
- import cx from 'classnames';
12
- import { getDevtoolsProps } from '../../global/js/utils/devtools.js';
13
- import { pkg } from '../../settings.js';
14
-
15
- var _excluded = ["className", "title", "description"];
16
-
17
- // Carbon and package components we use.
18
- /* TODO: @import(s) of carbon components and other package components. */
19
-
20
- // The block part of our conventional BEM class names (blockClass__E--M).
21
- var blockClass = "".concat(pkg.prefix, "--interstitial-screen-view-module");
22
- var componentName = 'InterstitialScreenViewModule';
23
-
24
- // NOTE: the component SCSS is not imported here: it is rolled up separately.
25
-
26
- // Default values can be included here and then assigned to the prop params,
27
- // e.g. prop = defaults.prop,
28
- // This gathers default values together neatly and ensures non-primitive
29
- // values are initialized early to avoid react making unnecessary re-renders.
30
- // Note that default values are not required for props that are 'required',
31
- // nor for props where the component can apply undefined values reasonably.
32
- // Default values should be provided when the component needs to make a choice
33
- // or assumption when a prop is not supplied.
34
-
35
- /**
36
- * View module to help in building interstitial screen views.
37
- */
38
- var InterstitialScreenViewModule = /*#__PURE__*/React__default.forwardRef(function (_ref, ref) {
39
- var className = _ref.className,
40
- title = _ref.title,
41
- description = _ref.description,
42
- rest = _objectWithoutProperties(_ref, _excluded);
43
- return /*#__PURE__*/React__default.createElement("section", _extends({}, rest, {
44
- className: cx(blockClass,
45
- // Apply the block class to the main HTML element
46
- className // Apply any supplied class names to the main HTML element.
47
- ),
48
- ref: ref
49
- }, getDevtoolsProps(componentName)), /*#__PURE__*/React__default.createElement("h1", {
50
- className: "".concat(blockClass, "--heading")
51
- }, title), /*#__PURE__*/React__default.createElement("p", {
52
- className: "".concat(blockClass, "--body")
53
- }, description));
54
- });
55
-
56
- // Return a placeholder if not released and not enabled by feature flag
57
- InterstitialScreenViewModule = pkg.checkComponentEnabled(InterstitialScreenViewModule, componentName);
58
-
59
- // The display name of the component, used by React. Note that displayName
60
- // is used in preference to relying on function.name.
61
- InterstitialScreenViewModule.displayName = componentName;
62
-
63
- // The types and DocGen commentary for the component props,
64
- // in alphabetical order (for consistency).
65
- // See https://www.npmjs.com/package/prop-types#usage.
66
- InterstitialScreenViewModule.propTypes = {
67
- /**
68
- * Provide an optional class to be applied to the containing node.
69
- */
70
- className: PropTypes.string,
71
- /**
72
- * The description of this component.
73
- */
74
- description: PropTypes.string.isRequired,
75
- /**
76
- * The title of this component.
77
- */
78
- title: PropTypes.string.isRequired
79
- };
80
-
81
- export { InterstitialScreenViewModule };
@@ -1,8 +0,0 @@
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
- export { InterstitialScreenViewModule } from './InterstitialScreenViewModule';
8
- export type { InterstitialScreenViewModuleProps } from './InterstitialScreenViewModule';
@@ -1,78 +0,0 @@
1
- /**
2
- * Copyright IBM Corp. 2020, 2025
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
- 'use strict';
9
-
10
- var _rollupPluginBabelHelpers = require('../../_virtual/_rollupPluginBabelHelpers.js');
11
- var React = require('react');
12
- var index = require('../../_virtual/index.js');
13
- var cx = require('classnames');
14
- var devtools = require('../../global/js/utils/devtools.js');
15
- var settings = require('../../settings.js');
16
-
17
- var _excluded = ["children", "className", "stepTitle", "translateWithId"];
18
-
19
- // Carbon and package components we use.
20
- /* TODO: @import(s) of carbon components and other package components. */
21
-
22
- // The block part of our conventional BEM class names (blockClass__E--M).
23
- var blockClass = "".concat(settings.pkg.prefix, "--interstitial-screen-view");
24
- var componentName = 'InterstitialScreenView';
25
- /**
26
- * An Onboarding component intended to be used as the child elements of the InterstitialScreen component.
27
- */
28
- exports.InterstitialScreenView = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
29
- var children = _ref.children,
30
- className = _ref.className,
31
- stepTitle = _ref.stepTitle;
32
- _ref.translateWithId;
33
- var rest = _rollupPluginBabelHelpers.objectWithoutProperties(_ref, _excluded);
34
- return /*#__PURE__*/React.createElement("div", _rollupPluginBabelHelpers.extends({
35
- role: "complementary",
36
- "aria-label": stepTitle
37
- }, rest, {
38
- className: cx(blockClass,
39
- // Apply the block class to the main HTML element
40
- className,
41
- // Apply any supplied class names to the main HTML element.
42
- // example: `${blockClass}__template-string-class-${kind}-n-${size}`,
43
- {
44
- // switched classes dependant on props or state
45
- // example: [`${blockClass}__here-if-small`]: size === 'sm',
46
- }),
47
- ref: ref
48
- }, devtools.getDevtoolsProps(componentName)), children);
49
- });
50
-
51
- // Return a placeholder if not released and not enabled by feature flag
52
- exports.InterstitialScreenView = settings.pkg.checkComponentEnabled(exports.InterstitialScreenView, componentName);
53
-
54
- // The display name of the component, used by React. Note that displayName
55
- // is used in preference to relying on function.name.
56
- exports.InterstitialScreenView.displayName = componentName;
57
-
58
- // The types and DocGen commentary for the component props,
59
- // in alphabetical order (for consistency).
60
- // See https://www.npmjs.com/package/prop-types#usage.
61
- exports.InterstitialScreenView.propTypes = {
62
- /**
63
- * Provide the contents of the InterstitialScreenView.
64
- */
65
- children: index.default.node,
66
- /**
67
- * Optional class name for this component.
68
- */
69
- className: index.default.string,
70
- /**
71
- * The label to pass to the ProgressStep component.
72
- */
73
- stepTitle: index.default.string.isRequired,
74
- /**
75
- * Optional method that takes in a message id and returns an internationalized string.
76
- */
77
- translateWithId: index.default.func
78
- };
@@ -1,8 +0,0 @@
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
- export { InterstitialScreenView } from './InterstitialScreenView';
8
- export type { InterstitialScreenViewProps } from './InterstitialScreenView';