@carbon/ibm-products 2.22.0 → 2.24.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (205) hide show
  1. package/README.md +2 -1
  2. package/css/index-full-carbon.css +29490 -28295
  3. package/css/index-full-carbon.css.map +1 -1
  4. package/css/index-full-carbon.min.css +1 -1
  5. package/css/index-full-carbon.min.css.map +1 -1
  6. package/css/index-without-carbon-released-only.css +81 -104
  7. package/css/index-without-carbon-released-only.css.map +1 -1
  8. package/css/index-without-carbon-released-only.min.css +1 -1
  9. package/css/index-without-carbon-released-only.min.css.map +1 -1
  10. package/css/index-without-carbon.css +24399 -350
  11. package/css/index-without-carbon.css.map +1 -1
  12. package/css/index-without-carbon.min.css +1 -1
  13. package/css/index-without-carbon.min.css.map +1 -1
  14. package/css/index.css +17204 -123
  15. package/css/index.css.map +1 -1
  16. package/css/index.min.css +1 -1
  17. package/css/index.min.css.map +1 -1
  18. package/es/components/Card/Card.js +1 -2
  19. package/es/components/Card/CardHeader.js +2 -2
  20. package/es/components/Carousel/Carousel.js +5 -3
  21. package/es/components/Coachmark/Coachmark.js +255 -0
  22. package/es/components/Coachmark/CoachmarkDragbar.js +146 -0
  23. package/es/components/Coachmark/CoachmarkHeader.js +91 -0
  24. package/es/components/Coachmark/CoachmarkOverlay.js +235 -0
  25. package/es/components/Coachmark/CoachmarkTagline.js +97 -0
  26. package/es/components/Coachmark/index.js +10 -0
  27. package/es/components/Coachmark/utils/constants.js +76 -0
  28. package/es/components/Coachmark/utils/context.js +5 -0
  29. package/es/components/Coachmark/utils/enums.js +40 -0
  30. package/es/components/Coachmark/utils/helpers.js +11 -0
  31. package/es/components/Coachmark/utils/hooks.js +54 -0
  32. package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +93 -0
  33. package/es/components/CoachmarkBeacon/index.js +8 -0
  34. package/es/components/CoachmarkButton/CoachmarkButton.js +90 -0
  35. package/es/components/CoachmarkButton/index.js +8 -0
  36. package/es/components/CoachmarkFixed/CoachmarkFixed.js +226 -0
  37. package/es/components/CoachmarkFixed/index.js +8 -0
  38. package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +86 -0
  39. package/es/components/CoachmarkOverlayElement/index.js +8 -0
  40. package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +216 -0
  41. package/es/components/CoachmarkOverlayElements/index.js +8 -0
  42. package/es/components/CoachmarkStack/CoachmarkStack.js +283 -0
  43. package/es/components/CoachmarkStack/CoachmarkStackHome.js +192 -0
  44. package/es/components/CoachmarkStack/index.js +8 -0
  45. package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +14 -4
  46. package/es/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -1
  47. package/es/components/Datagrid/Datagrid/DraggableElement.js +1 -1
  48. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  49. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +4 -1
  50. package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  51. package/es/components/Datagrid/Datagrid/addons/Slug/ColumnHeaderSlug.js +26 -0
  52. package/es/components/Datagrid/Datagrid.docs-page.js +2 -2
  53. package/es/components/Datagrid/useActionsColumn.js +16 -12
  54. package/es/components/Datagrid/useDefaultStringRenderer.js +3 -3
  55. package/es/components/Datagrid/useNestedRowExpander.js +2 -2
  56. package/es/components/Datagrid/useSortableColumns.js +15 -5
  57. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +7 -2
  58. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +8 -3
  59. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +7 -2
  60. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +7 -2
  61. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +7 -2
  62. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +7 -2
  63. package/es/components/EmptyStates/assets/ErrorIllustration.js +5 -5
  64. package/es/components/EmptyStates/assets/NoDataIllustration.js +5 -5
  65. package/es/components/EmptyStates/assets/NoTagsIllustration.js +5 -5
  66. package/es/components/EmptyStates/assets/NotFoundIllustration.js +5 -5
  67. package/es/components/EmptyStates/assets/NotificationsIllustration.js +5 -5
  68. package/es/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -5
  69. package/es/components/FilterSummary/FilterSummary.js +100 -19
  70. package/es/components/InterstitialScreen/InterstitialScreen.js +427 -0
  71. package/es/components/InterstitialScreen/index.js +8 -0
  72. package/es/components/InterstitialScreenView/InterstitialScreenView.js +75 -0
  73. package/es/components/InterstitialScreenView/index.js +8 -0
  74. package/es/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +83 -0
  75. package/es/components/InterstitialScreenViewModule/index.js +8 -0
  76. package/es/components/PageHeader/PageHeaderUtils.js +2 -2
  77. package/es/components/SearchBar/SearchBar.js +227 -0
  78. package/es/components/SearchBar/index.js +8 -0
  79. package/es/components/TagSet/TagSet.js +11 -3
  80. package/es/components/index.js +12 -1
  81. package/es/global/js/hooks/useResizeObserver.js +2 -2
  82. package/es/global/js/package-settings.js +14 -0
  83. package/lib/components/Card/Card.js +3 -4
  84. package/lib/components/Card/CardHeader.js +2 -2
  85. package/lib/components/Carousel/Carousel.js +5 -3
  86. package/lib/components/Coachmark/Coachmark.js +264 -0
  87. package/lib/components/Coachmark/CoachmarkDragbar.js +151 -0
  88. package/lib/components/Coachmark/CoachmarkHeader.js +95 -0
  89. package/lib/components/Coachmark/CoachmarkOverlay.js +243 -0
  90. package/lib/components/Coachmark/CoachmarkTagline.js +101 -0
  91. package/lib/components/Coachmark/index.js +38 -0
  92. package/lib/components/Coachmark/utils/constants.js +81 -0
  93. package/lib/components/Coachmark/utils/context.js +11 -0
  94. package/lib/components/Coachmark/utils/enums.js +46 -0
  95. package/lib/components/Coachmark/utils/helpers.js +17 -0
  96. package/lib/components/Coachmark/utils/hooks.js +59 -0
  97. package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +97 -0
  98. package/lib/components/CoachmarkBeacon/index.js +12 -0
  99. package/lib/components/CoachmarkButton/CoachmarkButton.js +93 -0
  100. package/lib/components/CoachmarkButton/index.js +12 -0
  101. package/lib/components/CoachmarkFixed/CoachmarkFixed.js +232 -0
  102. package/lib/components/CoachmarkFixed/index.js +12 -0
  103. package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +90 -0
  104. package/lib/components/CoachmarkOverlayElement/index.js +12 -0
  105. package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +222 -0
  106. package/lib/components/CoachmarkOverlayElements/index.js +12 -0
  107. package/lib/components/CoachmarkStack/CoachmarkStack.js +288 -0
  108. package/lib/components/CoachmarkStack/CoachmarkStackHome.js +198 -0
  109. package/lib/components/CoachmarkStack/index.js +12 -0
  110. package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +14 -4
  111. package/lib/components/Datagrid/Datagrid/DatagridSelectAll.js +4 -1
  112. package/lib/components/Datagrid/Datagrid/DraggableElement.js +1 -1
  113. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/ButtonWrapper.js +1 -1
  114. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +4 -1
  115. package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +1 -1
  116. package/lib/components/Datagrid/Datagrid/addons/Slug/ColumnHeaderSlug.js +36 -0
  117. package/lib/components/Datagrid/Datagrid.docs-page.js +2 -2
  118. package/lib/components/Datagrid/useActionsColumn.js +15 -11
  119. package/lib/components/Datagrid/useDefaultStringRenderer.js +3 -3
  120. package/lib/components/Datagrid/useNestedRowExpander.js +2 -2
  121. package/lib/components/Datagrid/useSortableColumns.js +15 -5
  122. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +7 -2
  123. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +8 -3
  124. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +7 -2
  125. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +7 -2
  126. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +7 -2
  127. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +7 -2
  128. package/lib/components/EmptyStates/assets/ErrorIllustration.js +5 -5
  129. package/lib/components/EmptyStates/assets/NoDataIllustration.js +5 -5
  130. package/lib/components/EmptyStates/assets/NoTagsIllustration.js +5 -5
  131. package/lib/components/EmptyStates/assets/NotFoundIllustration.js +5 -5
  132. package/lib/components/EmptyStates/assets/NotificationsIllustration.js +5 -5
  133. package/lib/components/EmptyStates/assets/UnauthorizedIllustration.js +5 -5
  134. package/lib/components/FilterSummary/FilterSummary.js +103 -23
  135. package/lib/components/InterstitialScreen/InterstitialScreen.js +434 -0
  136. package/lib/components/InterstitialScreen/index.js +12 -0
  137. package/lib/components/InterstitialScreenView/InterstitialScreenView.js +77 -0
  138. package/lib/components/InterstitialScreenView/index.js +12 -0
  139. package/lib/components/InterstitialScreenViewModule/InterstitialScreenViewModule.js +85 -0
  140. package/lib/components/InterstitialScreenViewModule/index.js +12 -0
  141. package/lib/components/PageHeader/PageHeaderUtils.js +2 -2
  142. package/lib/components/SearchBar/SearchBar.js +233 -0
  143. package/lib/components/SearchBar/index.js +12 -0
  144. package/lib/components/TagSet/TagSet.js +11 -3
  145. package/lib/components/index.js +78 -1
  146. package/lib/global/js/hooks/useResizeObserver.js +2 -2
  147. package/lib/global/js/package-settings.js +14 -0
  148. package/package.json +5 -5
  149. package/scss/components/Card/_card.scss +6 -5
  150. package/scss/components/Coachmark/_carbon-imports.scss +10 -0
  151. package/scss/components/Coachmark/_coachmark-dragbar.scss +27 -0
  152. package/scss/components/Coachmark/_coachmark-header.scss +20 -0
  153. package/scss/components/Coachmark/_coachmark-overlay.scss +431 -0
  154. package/scss/components/Coachmark/_coachmark-tagline.scss +140 -0
  155. package/scss/components/Coachmark/_coachmark.scss +30 -0
  156. package/scss/components/Coachmark/_index-with-carbon.scss +9 -0
  157. package/scss/components/Coachmark/_index.scss +8 -0
  158. package/scss/components/CoachmarkBeacon/_carbon-imports.scss +9 -0
  159. package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +166 -0
  160. package/scss/components/CoachmarkBeacon/_index-with-carbon.scss +9 -0
  161. package/scss/components/CoachmarkBeacon/_index.scss +8 -0
  162. package/scss/components/CoachmarkButton/_carbon-imports.scss +9 -0
  163. package/scss/components/CoachmarkButton/_coachmark-button.scss +25 -0
  164. package/scss/components/CoachmarkButton/_index-with-carbon.scss +9 -0
  165. package/scss/components/CoachmarkButton/_index.scss +8 -0
  166. package/scss/components/CoachmarkFixed/_carbon-imports.scss +9 -0
  167. package/scss/components/CoachmarkFixed/_coachmark-fixed.scss +25 -0
  168. package/scss/components/CoachmarkFixed/_index-with-carbon.scss +9 -0
  169. package/scss/components/CoachmarkFixed/_index.scss +8 -0
  170. package/scss/components/CoachmarkOverlayElement/_carbon-imports.scss +9 -0
  171. package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +52 -0
  172. package/scss/components/CoachmarkOverlayElement/_index-with-carbon.scss +9 -0
  173. package/scss/components/CoachmarkOverlayElement/_index.scss +8 -0
  174. package/scss/components/CoachmarkOverlayElements/_carbon-imports.scss +9 -0
  175. package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +47 -0
  176. package/scss/components/CoachmarkOverlayElements/_index-with-carbon.scss +9 -0
  177. package/scss/components/CoachmarkOverlayElements/_index.scss +8 -0
  178. package/scss/components/CoachmarkStack/_carbon-imports.scss +9 -0
  179. package/scss/components/CoachmarkStack/_coachmark-stack.scss +95 -0
  180. package/scss/components/CoachmarkStack/_index-with-carbon.scss +9 -0
  181. package/scss/components/CoachmarkStack/_index.scss +8 -0
  182. package/scss/components/CreateSidePanel/_create-side-panel.scss +1 -38
  183. package/scss/components/Datagrid/styles/_datagrid.scss +15 -0
  184. package/scss/components/EditSidePanel/_edit-side-panel.scss +0 -18
  185. package/scss/components/FilterSummary/_filter-summary.scss +22 -1
  186. package/scss/components/InterstitialScreen/_carbon-imports.scss +9 -0
  187. package/scss/components/InterstitialScreen/_index-with-carbon.scss +9 -0
  188. package/scss/components/InterstitialScreen/_index.scss +8 -0
  189. package/scss/components/InterstitialScreen/_interstitial-screen.scss +276 -0
  190. package/scss/components/InterstitialScreenView/_carbon-imports.scss +9 -0
  191. package/scss/components/InterstitialScreenView/_index-with-carbon.scss +9 -0
  192. package/scss/components/InterstitialScreenView/_index.scss +8 -0
  193. package/scss/components/InterstitialScreenView/_interstitial-screen-view.scss +25 -0
  194. package/scss/components/InterstitialScreenViewModule/_carbon-imports.scss +9 -0
  195. package/scss/components/InterstitialScreenViewModule/_index-with-carbon.scss +9 -0
  196. package/scss/components/InterstitialScreenViewModule/_index.scss +8 -0
  197. package/scss/components/InterstitialScreenViewModule/_interstitial-screen-view-module.scss +59 -0
  198. package/scss/components/PageHeader/_page-header.scss +0 -1
  199. package/scss/components/SearchBar/_carbon-imports.scss +9 -0
  200. package/scss/components/SearchBar/_index-with-carbon.scss +9 -0
  201. package/scss/components/SearchBar/_index.scss +8 -0
  202. package/scss/components/SearchBar/_search-bar.scss +26 -0
  203. package/scss/components/SidePanel/_side-panel.scss +12 -7
  204. package/scss/components/_index-with-carbon.scss +11 -0
  205. package/scss/components/_index.scss +11 -0
@@ -0,0 +1,166 @@
1
+ /* stylelint-disable carbon/layout-token-use */
2
+ /* stylelint-disable carbon/motion-easing-use */
3
+ /* stylelint-disable max-nesting-depth */
4
+ //
5
+ // Copyright IBM Corp. 2023, 2024
6
+ //
7
+ // This source code is licensed under the Apache-2.0 license found in the
8
+ // LICENSE file in the root directory of this source tree.
9
+ //
10
+
11
+ // Standard imports.
12
+ @use '../../global/styles/project-settings' as c4p-settings;
13
+ @use '../../global/styles/mixins';
14
+ @use '@carbon/styles/scss/spacing' as *;
15
+ @use '@carbon/react/scss/colors' as *;
16
+ @use '@carbon/react/scss/theme' as *;
17
+ @use '@carbon/styles/scss/type';
18
+ @use '@carbon/styles/scss/components/button/tokens' as *;
19
+ @use '@carbon/styles/scss/motion' as *;
20
+ // Other Carbon settings if needed
21
+ // TODO: @use '@carbon/styles/scss/grid';
22
+ // or
23
+ // TODO: @use '@carbon/react/scss/grid';
24
+
25
+ // CoachmarkBeacon uses the following Carbon for IBM Products components:
26
+ // TODO: @use(s) of IBM Products component styles used by CoachmarkBeacon
27
+ $beaconAnimationTime: 2s;
28
+ // The block part of our conventional BEM class names (blockClass__E--M).
29
+ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-beacon;
30
+
31
+ .#{$block-class} {
32
+ position: relative;
33
+
34
+ &-default {
35
+ .#{$block-class}__target {
36
+ &::before {
37
+ display: none;
38
+ }
39
+ // the blue dot
40
+ &::after {
41
+ position: absolute;
42
+ top: calc($spacing-01 + $spacing-03);
43
+ left: calc($spacing-01 + $spacing-03);
44
+ width: $spacing-04;
45
+ height: $spacing-04;
46
+ border-radius: 50%;
47
+ /* stylelint-disable-next-line carbon/theme-token-use */
48
+ background-color: $blue-50;
49
+ content: '';
50
+ }
51
+
52
+ &:focus {
53
+ outline: transparent;
54
+
55
+ &::before {
56
+ position: absolute;
57
+ top: 7px;
58
+ left: 7px;
59
+ display: block;
60
+ width: 18px;
61
+ height: 18px;
62
+ border-radius: 100%;
63
+ content: '';
64
+ /* stylelint-disable-next-line carbon/theme-token-use */
65
+ outline: $spacing-01 $focus solid;
66
+ }
67
+ }
68
+ }
69
+ }
70
+ .#{$block-class}__target {
71
+ // the hit area
72
+ position: absolute;
73
+ top: calc(-1 * $spacing-05);
74
+ left: calc(-1 * $spacing-05);
75
+ width: $spacing-07;
76
+ height: $spacing-07;
77
+ padding: 0;
78
+ border: none;
79
+ border-radius: 50%;
80
+ background-color: transparent;
81
+ cursor: pointer;
82
+
83
+ &[aria-expanded='true'] {
84
+ circle {
85
+ animation: none;
86
+ }
87
+ }
88
+ }
89
+
90
+ &__center {
91
+ position: absolute;
92
+ z-index: 6900;
93
+ top: calc(($spacing-06 - $spacing-01) * -1);
94
+ left: calc(($spacing-06 - $spacing-01) * -1);
95
+ width: $spacing-11;
96
+ height: $spacing-11;
97
+ pointer-events: none;
98
+
99
+ circle {
100
+ /* stylelint-disable-next-line carbon/motion-duration-use */
101
+ animation: ripple $beaconAnimationTime infinite;
102
+ fill: $support-info;
103
+ fill-opacity: 0;
104
+ -webkit-mask-image: none;
105
+ mask-image: none;
106
+ stroke: $support-info;
107
+ stroke-opacity: 0;
108
+ stroke-width: 1px;
109
+ transition-timing-function: motion (exit, productive);
110
+ @media (prefers-reduced-motion) {
111
+ animation: none;
112
+ }
113
+ }
114
+ }
115
+ }
116
+ @keyframes ripple {
117
+ 0% {
118
+ fill-opacity: 0;
119
+ r: 1px;
120
+ stroke-opacity: 0;
121
+ transition-timing-function: motion(entrance, productive);
122
+ }
123
+
124
+ 31% {
125
+ fill-opacity: 0.2;
126
+ stroke-opacity: 1;
127
+ }
128
+
129
+ 62% {
130
+ fill-opacity: 0;
131
+ r: 32px;
132
+ stroke-opacity: 0;
133
+ }
134
+
135
+ 100% {
136
+ fill-opacity: 0;
137
+ r: 32px;
138
+ stroke-opacity: 0;
139
+ }
140
+ }
141
+
142
+ @keyframes ring-ripple {
143
+ 0% {
144
+ fill-opacity: 0;
145
+ r: 12px;
146
+ stroke-opacity: 0;
147
+ transition-timing-function: motion(entrance, productive);
148
+ }
149
+
150
+ 31% {
151
+ fill-opacity: 0.2;
152
+ stroke-opacity: 1;
153
+ }
154
+
155
+ 62% {
156
+ fill-opacity: 0;
157
+ r: 32px;
158
+ stroke-opacity: 0;
159
+ }
160
+
161
+ 100% {
162
+ fill-opacity: 0;
163
+ r: 32px;
164
+ stroke-opacity: 0;
165
+ }
166
+ }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './carbon-imports';
9
+ @use './coachmark-beacon';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './coachmark-beacon';
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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 any Carbon component styles used from CoachmarkButton in this file.
9
+ // CoachmarkButton uses the following Carbon components:
@@ -0,0 +1,25 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ // Standard imports.
9
+ @use '../../global/styles/project-settings' as c4p-settings;
10
+ @use '../../global/styles/mixins';
11
+
12
+ // Other Carbon settings if needed
13
+ // TODO: @use '@carbon/styles/scss/grid';
14
+ // or
15
+ // TODO: @use '@carbon/react/scss/grid';
16
+
17
+ // CoachmarkButton uses the following Carbon for IBM Products components:
18
+ // TODO: @use(s) of IBM Products component styles used by CoachmarkButton
19
+
20
+ // The block part of our conventional BEM class names (blockClass__E--M).
21
+ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-button;
22
+
23
+ // .#{$block-class} {
24
+ // // TODO: Styles.
25
+ // }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './carbon-imports';
9
+ @use './coachmark-button';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './coachmark-button';
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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 any Carbon component styles used from CoachmarkFixed in this file.
9
+ // CoachmarkFixed uses the following Carbon components:
@@ -0,0 +1,25 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ // Standard imports.
9
+ @use '../../global/styles/project-settings' as c4p-settings;
10
+ @use '../../global/styles/mixins';
11
+
12
+ // Other Carbon settings if needed
13
+ // TODO: @use '@carbon/styles/scss/grid';
14
+ // or
15
+ // TODO: @use '@carbon/react/scss/grid';
16
+
17
+ // CoachmarkFixed uses the following Carbon for IBM Products components:
18
+ // TODO: @use(s) of IBM Products component styles used by CoachmarkFixed
19
+
20
+ // The block part of our conventional BEM class names (blockClass__E--M).
21
+ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-fixed;
22
+
23
+ // .#{$block-class} {
24
+ // // TODO: Styles.
25
+ // }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './carbon-imports';
9
+ @use './coachmark-fixed';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './coachmark-fixed';
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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 any Carbon component styles used from CoachmarkOverlayElement in this file.
9
+ // CoachmarkOverlayElement uses the following Carbon components:
@@ -0,0 +1,52 @@
1
+ /* stylelint-disable max-nesting-depth */
2
+ //
3
+ // Copyright IBM Corp. 2023, 2024
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ // Standard imports.
10
+ @use '../../global/styles/project-settings' as c4p-settings;
11
+ @use '../../global/styles/mixins';
12
+ @use '@carbon/styles/scss/spacing' as *;
13
+ @use '@carbon/react/scss/type' as *;
14
+ // Other Carbon settings if needed
15
+ // TODO: @use '@carbon/styles/scss/grid';
16
+ // or
17
+ // TODO: @use '@carbon/react/scss/grid';
18
+
19
+ // CoachmarkOverlayElement uses the following Carbon for IBM Products components:
20
+ // TODO: @use(s) of IBM Products component styles used by CoachmarkOverlayElement
21
+
22
+ // The block part of our conventional BEM class names (blockClass__E--M).
23
+ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-overlay-element;
24
+ $carousel-item-class: #{c4p-settings.$pkg-prefix}--carousel__item;
25
+ .#{$block-class} {
26
+ padding: $spacing-01 $spacing-05 0;
27
+
28
+ &__content {
29
+ padding-bottom: $spacing-05;
30
+ }
31
+
32
+ &__title {
33
+ @include type-style('productive-heading-02');
34
+
35
+ margin: 0 0 $spacing-03;
36
+ }
37
+
38
+ &__body {
39
+ @include type-style('body-long-01');
40
+ }
41
+
42
+ &__button {
43
+ margin-bottom: 0;
44
+ }
45
+ }
46
+ .#{$carousel-item-class} {
47
+ .#{$block-class} {
48
+ &__button {
49
+ margin-bottom: $spacing-05;
50
+ }
51
+ }
52
+ }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './carbon-imports';
9
+ @use './coachmark-overlay-element';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './coachmark-overlay-element';
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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 any Carbon component styles used from CoachmarkOverlayElements in this file.
9
+ // CoachmarkOverlayElements uses the following Carbon components:
@@ -0,0 +1,47 @@
1
+ /* stylelint-disable max-nesting-depth */
2
+ //
3
+ // Copyright IBM Corp. 2023, 2024
4
+ //
5
+ // This source code is licensed under the Apache-2.0 license found in the
6
+ // LICENSE file in the root directory of this source tree.
7
+ //
8
+
9
+ // Standard imports.
10
+ @use '../../global/styles/project-settings' as c4p-settings;
11
+ @use '../../global/styles/mixins';
12
+ @use '@carbon/layout/scss/convert' as *;
13
+
14
+ @use '@carbon/styles/scss/theme' as *;
15
+ @use '@carbon/styles/scss/type';
16
+ @use '@carbon/styles/scss/spacing' as *;
17
+ // Other Carbon settings if needed
18
+ // TODO: @use '@carbon/styles/scss/grid';
19
+ // or
20
+ // TODO: @use '@carbon/react/scss/grid';
21
+
22
+ // CoachmarkOverlayElements uses the following Carbon for IBM Products components:
23
+ // TODO: @use(s) of IBM Products component styles used by CoachmarkOverlayElements
24
+
25
+ // The block part of our conventional BEM class names (blockClass__E--M).
26
+ $block-class: #{c4p-settings.$pkg-prefix}--coachmark-overlay-elements;
27
+
28
+ .#{$block-class} {
29
+ &__element-stepped-media {
30
+ /* stylelint-disable-next-line function-no-unknown -- to-rem carbon replacement for rem */
31
+ height: to-rem(128px);
32
+ margin-bottom: $spacing-05;
33
+ }
34
+
35
+ &__footer {
36
+ display: flex;
37
+ align-items: center;
38
+ justify-content: flex-end;
39
+ padding: 0 $spacing-05 $spacing-05;
40
+ }
41
+
42
+ &--controls-progress {
43
+ margin-right: auto;
44
+ justify-self: flex-start;
45
+ @include type.type-style('helper-text-01');
46
+ }
47
+ }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './carbon-imports';
9
+ @use './coachmark-overlay-elements';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './coachmark-overlay-elements';
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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 any Carbon component styles used from CoachmarkStack in this file.
9
+ // CoachmarkStack uses the following Carbon components:
@@ -0,0 +1,95 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ /* stylelint-disable max-nesting-depth */
9
+
10
+ // Standard imports.
11
+ @use '../../global/styles/project-settings' as c4p-settings;
12
+ @use '../../global/styles/mixins';
13
+ @use '@carbon/styles/scss/spacing' as *;
14
+ @use '@carbon/react/scss/motion' as *;
15
+ @use '@carbon/react/scss/colors' as *;
16
+ @use '@carbon/react/scss/theme' as *;
17
+ @use '@carbon/styles/scss/components/button/tokens' as *;
18
+ // Other Carbon settings if needed
19
+ // TODO: @use '@carbon/styles/scss/grid';
20
+ // or
21
+ // TODO: @use '@carbon/react/scss/grid';
22
+
23
+ // CoachmarkStack uses the following Carbon for IBM Products components:
24
+ // TODO: @use(s) of IBM Products component styles used by CoachmarkStack
25
+
26
+ // The block part of our conventional BEM class names (blockClass__E--M).
27
+
28
+ $elements-block-class: #{c4p-settings.$pkg-prefix}--coachmark-stack-element;
29
+ $overlay-class: #{c4p-settings.$pkg-prefix}--coachmark-overlay;
30
+ $stack-home-class: #{c4p-settings.$pkg-prefix}--coachmark-stacked-home;
31
+
32
+ .#{$elements-block-class} {
33
+ $block: &;
34
+
35
+ position: fixed;
36
+ z-index: 5901;
37
+ right: $spacing-05;
38
+ bottom: -100%;
39
+ //opacity: 0;
40
+ transform: translateY(100%);
41
+ visibility: hidden;
42
+
43
+ &--is-mounted {
44
+ bottom: 0;
45
+ /* stylelint-disable-next-line carbon/motion-easing-use, carbon/motion-duration-use */
46
+ transition: transform $duration-moderate-02 motion(exit, productive);
47
+ @media (prefers-reduced-motion) {
48
+ transition: none;
49
+ }
50
+ }
51
+
52
+ &--is-visible {
53
+ opacity: 1;
54
+ transform: translateY(0);
55
+ visibility: visible;
56
+ }
57
+
58
+ // Stack the level-one item behind the level-two item.
59
+ &--is-stacked {
60
+ bottom: 0;
61
+ overflow: hidden;
62
+ pointer-events: none;
63
+ transform: perspective(carbon--mini-units(18))
64
+ translate3d(0, calc($spacing-09 * -1), calc($spacing-05 * -1));
65
+ transform-origin: top center;
66
+ visibility: visible;
67
+
68
+ &__light {
69
+ /* stylelint-disable-next-line carbon/theme-token-use */
70
+ background-color: $gray-90;
71
+ }
72
+
73
+ &__dark {
74
+ /* stylelint-disable-next-line carbon/theme-token-use */
75
+ background-color: $button-tertiary-active;
76
+ }
77
+ }
78
+ }
79
+
80
+ // ALL SUBSEQUENT ITEMS ARE THE "CHILD" STACK ITEMS
81
+ .#{$elements-block-class} ~ .#{$elements-block-class} {
82
+ z-index: 5902;
83
+ }
84
+
85
+ // SPECIFIC TO THE HOME ELEMENT
86
+ .#{$stack-home-class} {
87
+ &__nav-links {
88
+ margin-top: $spacing-04;
89
+ margin-left: calc(-1 * $spacing-05);
90
+ }
91
+
92
+ &__icon-idea {
93
+ margin-bottom: $spacing-03;
94
+ }
95
+ }
@@ -0,0 +1,9 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './carbon-imports';
9
+ @use './coachmark-stack';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2023, 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
+ @use './coachmark-stack';
@@ -24,25 +24,6 @@ $side-panel-block-class: #{c4p-settings.$pkg-prefix}--side-panel;
24
24
  padding-right: calc(20% - #{$spacing-05});
25
25
  }
26
26
 
27
- @each $size, $value in side-panel-vars.$side-panel-sizes {
28
- .#{$create-side-panel-block-class}.#{$side-panel-block-class}__container--#{$size}
29
- .#{$side-panel-block-class}__title-text {
30
- width: calc(#{$value} - #{$spacing-05});
31
- // stylelint-disable-next-line carbon/layout-token-use
32
- padding-right: calc((#{$value} * 0.2) - #{$spacing-05});
33
- margin-bottom: $spacing-02;
34
- }
35
- .#{$create-side-panel-block-class}.#{$side-panel-block-class}__container--#{$size}
36
- .#{$side-panel-block-class}__subtitle-text {
37
- width: calc(#{$value} - #{$spacing-05});
38
- // stylelint-disable-next-line carbon/layout-token-use
39
- padding-right: calc((#{$value} * 0.2) - #{$spacing-05});
40
- padding-bottom: $spacing-05;
41
- border-bottom: 1px solid $layer-accent-01;
42
- color: $text-secondary;
43
- }
44
- }
45
-
46
27
  .#{c4p-settings.$carbon-prefix}--form.#{$create-side-panel-block-class}__form {
47
28
  padding-top: $spacing-05;
48
29
  }
@@ -70,24 +51,6 @@ $side-panel-block-class: #{c4p-settings.$pkg-prefix}--side-panel;
70
51
  display: none;
71
52
  }
72
53
 
73
- .#{$create-side-panel-block-class}__title {
74
- @include type.type-style('heading-03');
75
-
76
- margin-bottom: $spacing-02;
77
- }
78
-
79
- .#{$create-side-panel-block-class}__subtitle {
80
- @include type.type-style('body-compact-01');
81
-
82
- margin-bottom: $spacing-03;
54
+ .#{$create-side-panel-block-class} .#{$side-panel-block-class}__subtitle-text {
83
55
  color: $text-secondary;
84
56
  }
85
- .#{$side-panel-block-class}
86
- .#{$create-side-panel-block-class}__actions-container {
87
- position: absolute;
88
- z-index: 4;
89
- right: 0;
90
- bottom: 0;
91
- width: 100%;
92
- margin-bottom: 0;
93
- }
@@ -6,6 +6,7 @@
6
6
  //
7
7
 
8
8
  @use '@carbon/styles/scss/theme' as *;
9
+ @use '@carbon/styles/scss/utilities' as *;
9
10
  @use '@carbon/layout/scss/convert' as *;
10
11
  @use '@carbon/styles/scss/spacing' as *;
11
12
  @use '@carbon/react/scss/components/button/tokens' as *;
@@ -157,6 +158,16 @@
157
158
  background-color: $background;
158
159
  }
159
160
 
161
+ .#{$block-class} th.#{$block-class}__with-slug {
162
+ @include ai-gradient('top', 100%);
163
+ }
164
+
165
+ .#{$block-class}
166
+ th.#{$block-class}__with-slug
167
+ .#{c4p-settings.$carbon-prefix}--slug {
168
+ margin-left: $spacing-03;
169
+ }
170
+
160
171
  .#{$block-class}__grid-container {
161
172
  display: block;
162
173
  width: 100%;
@@ -243,6 +254,10 @@
243
254
  white-space: initial;
244
255
  }
245
256
 
257
+ .#{$block-class}__defaultStringRenderer.#{$block-class}__defaultStringRenderer--slug {
258
+ width: fit-content;
259
+ }
260
+
246
261
  .#{$block-class}__expanded-row {
247
262
  display: flex;
248
263
  overflow: hidden;