@carbon/ibm-products 1.55.1 → 1.56.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +639 -16
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +4 -4
- package/css/index-full-carbon.min.css.map +1 -1
- package/css/index-without-carbon.css +582 -9
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +2 -2
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +620 -12
- package/css/index.css.map +1 -1
- package/css/index.min.css +4 -4
- package/css/index.min.css.map +1 -1
- package/es/components/Carousel/Carousel.js +15 -5
- package/es/components/Coachmark/Coachmark.js +243 -0
- package/es/components/Coachmark/CoachmarkDragbar.js +137 -0
- package/es/components/Coachmark/CoachmarkHeader.js +88 -0
- package/es/components/Coachmark/CoachmarkOverlay.js +139 -0
- package/es/components/Coachmark/CoachmarkTagline.js +93 -0
- package/es/components/Coachmark/index.js +10 -0
- package/es/components/Coachmark/utils/constants.js +76 -0
- package/es/components/Coachmark/utils/context.js +5 -0
- package/es/components/Coachmark/utils/enums.js +40 -0
- package/es/components/Coachmark/utils/helpers.js +11 -0
- package/es/components/Coachmark/utils/hooks.js +54 -0
- package/es/components/CoachmarkBeacon/CoachmarkBeacon.js +90 -0
- package/es/components/CoachmarkBeacon/index.js +8 -0
- package/es/components/CoachmarkButton/CoachmarkButton.js +72 -0
- package/es/components/CoachmarkButton/index.js +8 -0
- package/es/components/CoachmarkFixed/CoachmarkFixed.js +201 -0
- package/es/components/CoachmarkFixed/index.js +8 -0
- package/es/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +86 -0
- package/es/components/CoachmarkOverlayElement/index.js +8 -0
- package/es/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +175 -0
- package/es/components/CoachmarkOverlayElements/index.js +8 -0
- package/es/components/CoachmarkStack/CoachmarkStack.js +260 -0
- package/es/components/CoachmarkStack/CoachmarkStackHome.js +157 -0
- package/es/components/CoachmarkStack/index.js +8 -0
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -4
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -5
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +33 -17
- package/es/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +0 -1
- package/es/components/Datagrid/useDefaultStringRenderer.js +2 -1
- package/es/components/Datagrid/useSortableColumns.js +8 -4
- package/es/components/NotificationsPanel/NotificationsPanel.js +3 -2
- package/es/components/index.js +7 -0
- package/es/global/js/package-settings.js +8 -1
- package/es/global/js/utils/test-helper.js +3 -3
- package/lib/components/Carousel/Carousel.js +15 -5
- package/lib/components/Coachmark/Coachmark.js +247 -0
- package/lib/components/Coachmark/CoachmarkDragbar.js +137 -0
- package/lib/components/Coachmark/CoachmarkHeader.js +85 -0
- package/lib/components/Coachmark/CoachmarkOverlay.js +139 -0
- package/lib/components/Coachmark/CoachmarkTagline.js +90 -0
- package/lib/components/Coachmark/index.js +38 -0
- package/lib/components/Coachmark/utils/constants.js +82 -0
- package/lib/components/Coachmark/utils/context.js +13 -0
- package/lib/components/Coachmark/utils/enums.js +49 -0
- package/lib/components/Coachmark/utils/helpers.js +17 -0
- package/lib/components/Coachmark/utils/hooks.js +60 -0
- package/lib/components/CoachmarkBeacon/CoachmarkBeacon.js +87 -0
- package/lib/components/CoachmarkBeacon/index.js +12 -0
- package/lib/components/CoachmarkButton/CoachmarkButton.js +69 -0
- package/lib/components/CoachmarkButton/index.js +12 -0
- package/lib/components/CoachmarkFixed/CoachmarkFixed.js +201 -0
- package/lib/components/CoachmarkFixed/index.js +12 -0
- package/lib/components/CoachmarkOverlayElement/CoachmarkOverlayElement.js +83 -0
- package/lib/components/CoachmarkOverlayElement/index.js +12 -0
- package/lib/components/CoachmarkOverlayElements/CoachmarkOverlayElements.js +176 -0
- package/lib/components/CoachmarkOverlayElements/index.js +12 -0
- package/lib/components/CoachmarkStack/CoachmarkStack.js +264 -0
- package/lib/components/CoachmarkStack/CoachmarkStackHome.js +160 -0
- package/lib/components/CoachmarkStack/index.js +12 -0
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/Columns.js +1 -4
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/CustomizeColumnsTearsheet.js +2 -5
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/DraggableItemsList.js +33 -17
- package/lib/components/Datagrid/Datagrid/addons/CustomizeColumns/TearsheetWrapper.js +0 -1
- package/lib/components/Datagrid/useDefaultStringRenderer.js +2 -1
- package/lib/components/Datagrid/useSortableColumns.js +8 -4
- package/lib/components/NotificationsPanel/NotificationsPanel.js +3 -2
- package/lib/components/index.js +49 -0
- package/lib/global/js/package-settings.js +8 -1
- package/lib/global/js/utils/test-helper.js +3 -3
- package/package.json +8 -8
- package/scss/components/Carousel/_carousel.scss +3 -0
- package/scss/components/Coachmark/_index.scss +11 -0
- package/scss/components/Coachmark/_storybook-styles.scss +20 -0
- package/scss/components/Coachmark/styles/_coachmark-dragbar.scss +74 -0
- package/scss/components/Coachmark/styles/_coachmark-header.scss +58 -0
- package/scss/components/Coachmark/styles/_coachmark-overlay.scss +327 -0
- package/scss/components/Coachmark/styles/_coachmark-tagline.scss +118 -0
- package/scss/components/CoachmarkBeacon/_coachmark-beacon.scss +166 -0
- package/scss/components/CoachmarkBeacon/_index.scss +8 -0
- package/scss/components/CoachmarkBeacon/_storybook-styles.scss +19 -0
- package/scss/components/CoachmarkButton/_coachmark-button.scss +34 -0
- package/scss/components/CoachmarkButton/_index.scss +8 -0
- package/scss/components/CoachmarkButton/_storybook-styles.scss +19 -0
- package/scss/components/CoachmarkFixed/_coachmark-fixed.scss +34 -0
- package/scss/components/CoachmarkFixed/_index.scss +8 -0
- package/scss/components/CoachmarkFixed/_storybook-styles.scss +10 -0
- package/scss/components/CoachmarkOverlayElement/_coachmark-overlay-element.scss +50 -0
- package/scss/components/CoachmarkOverlayElement/_index.scss +8 -0
- package/scss/components/CoachmarkOverlayElement/_storybook-styles.scss +19 -0
- package/scss/components/CoachmarkOverlayElements/_coachmark-overlay-elements.scss +40 -0
- package/scss/components/CoachmarkOverlayElements/_index.scss +8 -0
- package/scss/components/CoachmarkOverlayElements/_storybook-styles.scss +19 -0
- package/scss/components/CoachmarkStack/_coachmark-stack.scss +85 -0
- package/scss/components/CoachmarkStack/_index.scss +8 -0
- package/scss/components/CoachmarkStack/_storybook-styles.scss +10 -0
- package/scss/components/Datagrid/styles/_useColumnCenterAlign.scss +9 -9
- package/scss/components/_index.scss +7 -1
@@ -0,0 +1,118 @@
|
|
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
|
+
|
8
|
+
/* stylelint-disable carbon/theme-token-use */
|
9
|
+
/* stylelint-disable declaration-no-important */
|
10
|
+
|
11
|
+
// Standard imports.
|
12
|
+
@import '../../../global/styles/project-settings';
|
13
|
+
@import '../../../global/styles/mixins';
|
14
|
+
|
15
|
+
// Define all component styles in a mixin which is then exported using
|
16
|
+
// the Carbon import-once mechanism.
|
17
|
+
@mixin coachmark-tagline {
|
18
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
19
|
+
$block-class: #{$pkg-prefix}--coachmark-tagline;
|
20
|
+
|
21
|
+
.#{$block-class} {
|
22
|
+
position: fixed;
|
23
|
+
z-index: 1000;
|
24
|
+
right: $spacing-05;
|
25
|
+
bottom: 0;
|
26
|
+
display: grid;
|
27
|
+
overflow: hidden;
|
28
|
+
width: carbon--mini-units(36);
|
29
|
+
border-radius: $spacing-01 $spacing-01 0 0;
|
30
|
+
background: $purple-70;
|
31
|
+
background-image: linear-gradient(90deg, $blue-90 0%, $purple-70 100%);
|
32
|
+
color: $white-0 !important;
|
33
|
+
grid-template-columns: [ctacol] auto [closebtncol] $spacing-08;
|
34
|
+
opacity: 1;
|
35
|
+
// stylelint-disable-next-line carbon/motion-duration-use
|
36
|
+
transition: opacity 240ms carbon--motion(exit, productive) 300ms;
|
37
|
+
transition-delay: 240ms;
|
38
|
+
@media (prefers-reduced-motion) {
|
39
|
+
transition: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
&::before {
|
43
|
+
position: absolute;
|
44
|
+
z-index: -1;
|
45
|
+
top: 0;
|
46
|
+
right: 0;
|
47
|
+
bottom: 0;
|
48
|
+
left: 0;
|
49
|
+
background: linear-gradient(90deg, $blue-70 0%, $purple-70 100%);
|
50
|
+
content: '';
|
51
|
+
opacity: 0;
|
52
|
+
/* stylelint-disable-next-line carbon/motion-duration-use */
|
53
|
+
transition: opacity 240ms carbon--motion(exit, productive);
|
54
|
+
@media (prefers-reduced-motion) {
|
55
|
+
transition: none;
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
&:hover::before {
|
60
|
+
opacity: 1;
|
61
|
+
}
|
62
|
+
|
63
|
+
&--is-open {
|
64
|
+
background: $white-0;
|
65
|
+
opacity: 0;
|
66
|
+
#{$block-class}__cta {
|
67
|
+
opacity: 0;
|
68
|
+
}
|
69
|
+
|
70
|
+
#{$block-class}--close-btn {
|
71
|
+
display: none;
|
72
|
+
}
|
73
|
+
|
74
|
+
&::before {
|
75
|
+
background: $white-0;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
&__cta {
|
80
|
+
display: grid;
|
81
|
+
padding: $spacing-03 0;
|
82
|
+
border: none;
|
83
|
+
background: transparent;
|
84
|
+
color: $white-0 !important;
|
85
|
+
grid-template-columns: [iconcol] $spacing-07 [bodycol] auto;
|
86
|
+
text-align: left;
|
87
|
+
@include carbon--type-style('body-short-01');
|
88
|
+
|
89
|
+
&:hover {
|
90
|
+
cursor: pointer !important;
|
91
|
+
}
|
92
|
+
|
93
|
+
.#{$block-class}__idea {
|
94
|
+
justify-self: center;
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
&--close-btn {
|
99
|
+
width: $spacing-07;
|
100
|
+
height: $spacing-07;
|
101
|
+
margin-left: auto !important;
|
102
|
+
color: $white-0;
|
103
|
+
|
104
|
+
svg > path {
|
105
|
+
margin: 0;
|
106
|
+
fill: $white-0 !important;
|
107
|
+
}
|
108
|
+
|
109
|
+
&:hover {
|
110
|
+
background-color: $purple-70-hover !important;
|
111
|
+
}
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
@include exports('coachmark-tagline') {
|
117
|
+
@include coachmark-tagline;
|
118
|
+
}
|
@@ -0,0 +1,166 @@
|
|
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
|
+
|
8
|
+
/**
|
9
|
+
* The CoachmarkBeacon specifically is theme-agnostic, and so we have to
|
10
|
+
* use color tokens to keep the colors static instead of theme tokens
|
11
|
+
* that will change depending on the selected theme.
|
12
|
+
*
|
13
|
+
* Because of this, we are triggering a *large* amount of linting errors.
|
14
|
+
* So, we're adding 4 "disable" rules for the file instead of 50
|
15
|
+
* individual rules.
|
16
|
+
*/
|
17
|
+
|
18
|
+
/* stylelint-disable carbon/layout-token-use */
|
19
|
+
/* stylelint-disable carbon/motion-duration-use */
|
20
|
+
/* stylelint-disable carbon/theme-token-use */
|
21
|
+
|
22
|
+
// Standard imports.
|
23
|
+
@import '../../global/styles/project-settings';
|
24
|
+
@import '../../global/styles/mixins';
|
25
|
+
|
26
|
+
@mixin coachmark-beacon {
|
27
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
28
|
+
$block-class: #{$pkg-prefix}--coachmark-beacon;
|
29
|
+
$beaconAnimationTime: 2s;
|
30
|
+
.#{$block-class} {
|
31
|
+
position: relative;
|
32
|
+
|
33
|
+
&-default {
|
34
|
+
.#{$block-class}__target {
|
35
|
+
// the blue dot
|
36
|
+
&::after {
|
37
|
+
position: absolute;
|
38
|
+
top: calc($spacing-01 + $spacing-03);
|
39
|
+
left: calc($spacing-01 + $spacing-03);
|
40
|
+
width: $spacing-04;
|
41
|
+
height: $spacing-04;
|
42
|
+
border-radius: 50%;
|
43
|
+
background-color: $blue-50;
|
44
|
+
content: '';
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
&-ring {
|
50
|
+
.#{$block-class}__center {
|
51
|
+
-webkit-mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='80px' height='80px' viewBox='008080'><pathfill='white' stroke='none' d='M0,0m37-2a404001010Zm128a1212011-10Z'/></svg>");
|
52
|
+
mask-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' version='1.1' width='80px' height='80px' viewBox='008080'><pathfill='white' stroke='none' d='M0,0m37-2a404001010Zm128a1212011-10Z'/></svg>");
|
53
|
+
|
54
|
+
circle {
|
55
|
+
/* stylelint-disable-next-line carbon/motion-easing-use */
|
56
|
+
animation: ring-ripple $beaconAnimationTime infinite;
|
57
|
+
@media (prefers-reduced-motion) {
|
58
|
+
animation: none;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.#{$block-class}__target {
|
65
|
+
// the hit area
|
66
|
+
position: absolute;
|
67
|
+
top: calc(-1 * $spacing-05);
|
68
|
+
left: calc(-1 * $spacing-05);
|
69
|
+
width: $spacing-07;
|
70
|
+
height: $spacing-07;
|
71
|
+
padding: 0;
|
72
|
+
border: none;
|
73
|
+
border-radius: 50%;
|
74
|
+
background-color: transparent;
|
75
|
+
cursor: pointer;
|
76
|
+
|
77
|
+
&[aria-expanded='true'] {
|
78
|
+
circle {
|
79
|
+
animation: none;
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
83
|
+
|
84
|
+
&__center {
|
85
|
+
position: absolute;
|
86
|
+
z-index: 6900;
|
87
|
+
top: calc(($spacing-06 - $spacing-01) * -1);
|
88
|
+
left: calc(($spacing-06 - $spacing-01) * -1);
|
89
|
+
width: $spacing-11;
|
90
|
+
height: $spacing-11;
|
91
|
+
pointer-events: none;
|
92
|
+
|
93
|
+
circle {
|
94
|
+
/* stylelint-disable-next-line carbon/motion-easing-use */
|
95
|
+
animation: ripple $beaconAnimationTime infinite;
|
96
|
+
fill: $support-04;
|
97
|
+
fill-opacity: 0;
|
98
|
+
-webkit-mask-image: none;
|
99
|
+
mask-image: none;
|
100
|
+
stroke: $support-04;
|
101
|
+
stroke-opacity: 0;
|
102
|
+
stroke-width: 1px;
|
103
|
+
transition-timing-function: carbon--motion(exit, productive);
|
104
|
+
@media (prefers-reduced-motion) {
|
105
|
+
animation: none;
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
@keyframes ripple {
|
112
|
+
0% {
|
113
|
+
fill-opacity: 0;
|
114
|
+
r: 1px;
|
115
|
+
stroke-opacity: 0;
|
116
|
+
transition-timing-function: carbon--motion(entrance, productive);
|
117
|
+
}
|
118
|
+
|
119
|
+
31% {
|
120
|
+
fill-opacity: 0.2;
|
121
|
+
stroke-opacity: 1;
|
122
|
+
}
|
123
|
+
|
124
|
+
62% {
|
125
|
+
fill-opacity: 0;
|
126
|
+
r: 32px;
|
127
|
+
stroke-opacity: 0;
|
128
|
+
}
|
129
|
+
|
130
|
+
100% {
|
131
|
+
fill-opacity: 0;
|
132
|
+
r: 32px;
|
133
|
+
stroke-opacity: 0;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
@keyframes ring-ripple {
|
138
|
+
0% {
|
139
|
+
fill-opacity: 0;
|
140
|
+
r: 12px;
|
141
|
+
stroke-opacity: 0;
|
142
|
+
transition-timing-function: carbon--motion(entrance, productive);
|
143
|
+
}
|
144
|
+
|
145
|
+
31% {
|
146
|
+
fill-opacity: 0.2;
|
147
|
+
stroke-opacity: 1;
|
148
|
+
}
|
149
|
+
|
150
|
+
62% {
|
151
|
+
fill-opacity: 0;
|
152
|
+
r: 32px;
|
153
|
+
stroke-opacity: 0;
|
154
|
+
}
|
155
|
+
|
156
|
+
100% {
|
157
|
+
fill-opacity: 0;
|
158
|
+
r: 32px;
|
159
|
+
stroke-opacity: 0;
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
|
164
|
+
@include exports('coachmark-beacon') {
|
165
|
+
@include coachmark-beacon;
|
166
|
+
}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
8
|
+
@import '../../global/styles/project-settings';
|
9
|
+
|
10
|
+
.CoachmarkBaseExampleUsage {
|
11
|
+
position: relative;
|
12
|
+
display: inline-block;
|
13
|
+
max-height: 100%;
|
14
|
+
box-sizing: border-box;
|
15
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
16
|
+
padding: 1rem;
|
17
|
+
margin-left: 50%;
|
18
|
+
transform: translateX(-50%);
|
19
|
+
}
|
@@ -0,0 +1,34 @@
|
|
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
|
+
|
8
|
+
// Standard imports.
|
9
|
+
@import '../../global/styles/project-settings';
|
10
|
+
@import '../../global/styles/mixins';
|
11
|
+
|
12
|
+
// Other Carbon settings.
|
13
|
+
// TODO: @import 'carbon-components/scss/globals/grid/grid'; if needed
|
14
|
+
|
15
|
+
// CoachmarkButton uses the following Carbon components:
|
16
|
+
// TODO: @import(s) of Carbon component styles used by CoachmarkButton
|
17
|
+
|
18
|
+
// CoachmarkButton uses the following Carbon for IBM Products components:
|
19
|
+
// TODO: @import(s) of IBM Products component styles used by CoachmarkButton
|
20
|
+
|
21
|
+
// Define all component styles in a mixin which is then exported using
|
22
|
+
// the Carbon import-once mechanism.
|
23
|
+
@mixin coachmark-button {
|
24
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
25
|
+
$block-class: #{$pkg-prefix}--coachmark-button;
|
26
|
+
|
27
|
+
.#{$block-class} {
|
28
|
+
// TODO: Styles.
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@include exports('coachmark-button') {
|
33
|
+
@include coachmark-button;
|
34
|
+
}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
8
|
+
@import '../../global/styles/project-settings';
|
9
|
+
|
10
|
+
.CoachmarkBaseExampleUsage {
|
11
|
+
position: relative;
|
12
|
+
display: inline-block;
|
13
|
+
max-height: 100%;
|
14
|
+
box-sizing: border-box;
|
15
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
16
|
+
padding: 1rem;
|
17
|
+
margin-left: 50%;
|
18
|
+
transform: translateX(-50%);
|
19
|
+
}
|
@@ -0,0 +1,34 @@
|
|
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
|
+
|
8
|
+
// Standard imports.
|
9
|
+
@import '../../global/styles/project-settings';
|
10
|
+
@import '../../global/styles/mixins';
|
11
|
+
|
12
|
+
// Other Carbon settings.
|
13
|
+
// TODO: @import 'carbon-components/scss/globals/grid/grid'; if needed
|
14
|
+
|
15
|
+
// CoachmarkFixed uses the following Carbon components:
|
16
|
+
// TODO: @import(s) of Carbon component styles used by CoachmarkFixed
|
17
|
+
|
18
|
+
// CoachmarkFixed uses the following Carbon for IBM Products components:
|
19
|
+
// TODO: @import(s) of IBM Products component styles used by CoachmarkFixed
|
20
|
+
|
21
|
+
// Define all component styles in a mixin which is then exported using
|
22
|
+
// the Carbon import-once mechanism.
|
23
|
+
@mixin coachmark-fixed {
|
24
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
25
|
+
$block-class: #{$pkg-prefix}--coachmark-fixed;
|
26
|
+
|
27
|
+
.#{$block-class} {
|
28
|
+
// TODO: Styles.
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
@include exports('coachmark-fixed') {
|
33
|
+
@include coachmark-fixed;
|
34
|
+
}
|
@@ -0,0 +1,10 @@
|
|
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
|
+
|
8
|
+
@import '../../global/styles/project-settings';
|
9
|
+
|
10
|
+
// TODO: add any additional styles used by CoachmarkFixed.stories.js
|
@@ -0,0 +1,50 @@
|
|
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
|
+
|
8
|
+
// Standard imports.
|
9
|
+
@import '../../global/styles/project-settings';
|
10
|
+
@import '../../global/styles/mixins';
|
11
|
+
|
12
|
+
// Define all component styles in a mixin which is then exported using
|
13
|
+
// the Carbon import-once mechanism.
|
14
|
+
@mixin coachmark-overlay-element {
|
15
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
16
|
+
$block-class: #{$pkg-prefix}--coachmark-overlay-element;
|
17
|
+
$carousel-item-class: #{$pkg-prefix}--carousel__item;
|
18
|
+
|
19
|
+
.#{$block-class} {
|
20
|
+
&__content {
|
21
|
+
padding-bottom: $spacing-05;
|
22
|
+
}
|
23
|
+
|
24
|
+
&__title {
|
25
|
+
@include carbon--type-style('productive-heading-02');
|
26
|
+
|
27
|
+
margin: 0 0 $spacing-03;
|
28
|
+
}
|
29
|
+
|
30
|
+
&__body {
|
31
|
+
@include carbon--type-style('body-long-01');
|
32
|
+
}
|
33
|
+
|
34
|
+
&__button {
|
35
|
+
margin-bottom: 0;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
.#{$carousel-item-class} {
|
40
|
+
.#{$block-class} {
|
41
|
+
&__button {
|
42
|
+
margin-bottom: $spacing-05;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
@include exports('coachmark-overlay-element') {
|
49
|
+
@include coachmark-overlay-element;
|
50
|
+
}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
8
|
+
@import '../../global/styles/project-settings';
|
9
|
+
|
10
|
+
.CoachmarkBaseExampleUsage {
|
11
|
+
position: relative;
|
12
|
+
display: inline-block;
|
13
|
+
max-height: 100%;
|
14
|
+
box-sizing: border-box;
|
15
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
16
|
+
padding: 1rem;
|
17
|
+
margin-left: 50%;
|
18
|
+
transform: translateX(-50%);
|
19
|
+
}
|
@@ -0,0 +1,40 @@
|
|
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
|
+
|
8
|
+
// Standard imports.
|
9
|
+
@import '../../global/styles/project-settings';
|
10
|
+
@import '../../global/styles/mixins';
|
11
|
+
|
12
|
+
// Define all component styles in a mixin which is then exported using
|
13
|
+
// the Carbon import-once mechanism.
|
14
|
+
@mixin coachmark-overlay-elements {
|
15
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
16
|
+
$block-class: #{$pkg-prefix}--coachmark-overlay-elements;
|
17
|
+
|
18
|
+
.#{$block-class} {
|
19
|
+
&__element-stepped-media {
|
20
|
+
height: rem(128px);
|
21
|
+
margin-bottom: $spacing-05;
|
22
|
+
}
|
23
|
+
|
24
|
+
&__footer {
|
25
|
+
display: flex;
|
26
|
+
align-items: center;
|
27
|
+
justify-content: flex-end;
|
28
|
+
}
|
29
|
+
|
30
|
+
&--controls-progress {
|
31
|
+
margin-right: auto;
|
32
|
+
justify-self: flex-start;
|
33
|
+
@include carbon--type-style('helper-text-01');
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
@include exports('coachmark-overlay-elements') {
|
39
|
+
@include coachmark-overlay-elements;
|
40
|
+
}
|
@@ -0,0 +1,19 @@
|
|
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
|
+
|
8
|
+
@import '../../global/styles/project-settings';
|
9
|
+
|
10
|
+
.CoachmarkBaseExampleUsage {
|
11
|
+
position: relative;
|
12
|
+
display: inline-block;
|
13
|
+
max-height: 100%;
|
14
|
+
box-sizing: border-box;
|
15
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
16
|
+
padding: 1rem;
|
17
|
+
margin-left: 50%;
|
18
|
+
transform: translateX(-50%);
|
19
|
+
}
|
@@ -0,0 +1,85 @@
|
|
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
|
+
|
8
|
+
/* stylelint-disable carbon/theme-token-use */
|
9
|
+
|
10
|
+
// Standard imports.
|
11
|
+
@import '../../global/styles/project-settings';
|
12
|
+
@import '../../global/styles/mixins';
|
13
|
+
|
14
|
+
@mixin coachmark-stack {
|
15
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
16
|
+
|
17
|
+
$block-class: #{$pkg-prefix}--coachmark-stack;
|
18
|
+
$elements-block-class: #{$pkg-prefix}--coachmark-stack-element;
|
19
|
+
$overlay-class: #{$prefix}--coachmark-overlay;
|
20
|
+
$stack-home-class: #{$pkg-prefix}--coachmark-stacked-home;
|
21
|
+
|
22
|
+
.#{$elements-block-class} {
|
23
|
+
$block: &;
|
24
|
+
|
25
|
+
position: fixed;
|
26
|
+
z-index: 5901;
|
27
|
+
right: $spacing-05;
|
28
|
+
bottom: -100%;
|
29
|
+
//opacity: 0;
|
30
|
+
transform: translateY(100%);
|
31
|
+
|
32
|
+
&--is-mounted {
|
33
|
+
bottom: 0;
|
34
|
+
/* stylelint-disable-next-line carbon/motion-easing-use, carbon/motion-duration-use */
|
35
|
+
transition: 240ms carbon--motion(exit, productive);
|
36
|
+
@media (prefers-reduced-motion) {
|
37
|
+
transition: none;
|
38
|
+
}
|
39
|
+
}
|
40
|
+
|
41
|
+
&--is-visible {
|
42
|
+
opacity: 1;
|
43
|
+
transform: translateY(0);
|
44
|
+
}
|
45
|
+
|
46
|
+
// Stack the level-one item behind the level-two item.
|
47
|
+
&--is-stacked {
|
48
|
+
bottom: 0;
|
49
|
+
overflow: hidden;
|
50
|
+
pointer-events: none;
|
51
|
+
transform: perspective(carbon--mini-units(18))
|
52
|
+
translate3d(0, calc($spacing-09 * -1), calc($spacing-05 * -1));
|
53
|
+
transform-origin: top center;
|
54
|
+
|
55
|
+
&__light {
|
56
|
+
background-color: $gray-90;
|
57
|
+
}
|
58
|
+
|
59
|
+
&__dark {
|
60
|
+
background-color: $active-tertiary;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
// ALL SUBSEQUENT ITEMS ARE THE "CHILD" STACK ITEMS
|
66
|
+
.#{$elements-block-class} ~ .#{$elements-block-class} {
|
67
|
+
z-index: 5902;
|
68
|
+
}
|
69
|
+
|
70
|
+
// SPECIFIC TO THE HOME ELEMENT
|
71
|
+
.#{$stack-home-class} {
|
72
|
+
&__nav-links {
|
73
|
+
margin-top: $spacing-04;
|
74
|
+
margin-left: calc(-1 * $spacing-05);
|
75
|
+
}
|
76
|
+
|
77
|
+
&__icon-idea {
|
78
|
+
margin-bottom: $spacing-03;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
}
|
82
|
+
|
83
|
+
@include exports('coachmark-stack') {
|
84
|
+
@include coachmark-stack;
|
85
|
+
}
|
@@ -0,0 +1,10 @@
|
|
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
|
+
|
8
|
+
@import '../../global/styles/project-settings';
|
9
|
+
|
10
|
+
// TODO: add any additional styles used by CoachmarkStack.stories.js
|