@carbon/ibm-products 1.3.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (184) hide show
  1. package/css/index-full-carbon.css +5102 -4711
  2. package/css/index-full-carbon.css.map +1 -1
  3. package/css/index-full-carbon.min.css +9 -3
  4. package/css/index-full-carbon.min.css.map +1 -0
  5. package/css/index-without-carbon-released-only.css +189 -108
  6. package/css/index-without-carbon-released-only.css.map +1 -1
  7. package/css/index-without-carbon-released-only.min.css +3 -3
  8. package/css/index-without-carbon-released-only.min.css.map +1 -0
  9. package/css/index-without-carbon.css +619 -236
  10. package/css/index-without-carbon.css.map +1 -1
  11. package/css/index-without-carbon.min.css +9 -3
  12. package/css/index-without-carbon.min.css.map +1 -0
  13. package/css/index.css +950 -567
  14. package/css/index.css.map +1 -1
  15. package/css/index.min.css +9 -3
  16. package/css/index.min.css.map +1 -0
  17. package/es/components/APIKeyModal/APIKeyModal.js +25 -29
  18. package/es/components/ActionBar/ActionBar.js +4 -1
  19. package/es/components/ActionSet/ActionSet.js +22 -10
  20. package/es/components/ActionSet/actions.js +25 -17
  21. package/es/components/AddSelect/AddSelect.js +141 -53
  22. package/es/components/AddSelect/AddSelectBreadcrumbs.js +56 -0
  23. package/es/components/AddSelect/AddSelectList.js +94 -0
  24. package/es/components/AddSelect/AddSelectSidebar.js +78 -0
  25. package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +24 -17
  26. package/es/components/CancelableTextEdit/CancelableTextEdit.js +62 -24
  27. package/es/components/Card/Card.js +6 -4
  28. package/es/components/CreateFullPage/CreateFullPage.js +102 -258
  29. package/es/components/CreateFullPage/CreateFullPageStep.js +65 -13
  30. package/es/components/CreateFullPage/index.js +1 -2
  31. package/es/components/CreateInfluencer/CreateInfluencer.js +40 -220
  32. package/es/components/CreateTearsheet/CreateTearsheet.js +95 -146
  33. package/es/components/CreateTearsheet/CreateTearsheetStep.js +70 -20
  34. package/es/components/CreateTearsheet/index.js +0 -1
  35. package/es/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +87 -28
  36. package/es/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +8 -6
  37. package/es/components/EmptyStates/EmptyState.js +1 -1
  38. package/es/components/EmptyStates/EmptyStateContent.js +2 -2
  39. package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  40. package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  41. package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  42. package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  43. package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  44. package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  45. package/es/components/ExportModal/ExportModal.js +41 -12
  46. package/es/components/ImportModal/ImportModal.js +2 -1
  47. package/es/components/InlineEdit/InlineEdit.js +397 -0
  48. package/es/components/InlineEdit/index.js +7 -0
  49. package/es/components/MultiAddSelect/MultiAddSelect.js +16 -0
  50. package/es/components/MultiAddSelect/index.js +1 -0
  51. package/es/components/NotificationsPanel/NotificationsPanel.js +16 -3
  52. package/es/components/OptionsTile/OptionsTile.js +36 -15
  53. package/es/components/PageHeader/PageHeader.js +59 -35
  54. package/es/components/PageHeader/PageHeaderTitle.js +82 -7
  55. package/es/components/PageHeader/PageHeaderUtils.js +21 -2
  56. package/es/components/RemoveModal/RemoveModal.js +4 -2
  57. package/es/components/SidePanel/SidePanel.js +33 -16
  58. package/es/components/SingleAddSelect/SingleAddSelect.js +15 -0
  59. package/es/components/SingleAddSelect/index.js +1 -0
  60. package/es/components/TagSet/TagSet.js +4 -1
  61. package/es/components/Tearsheet/Tearsheet.js +1 -1
  62. package/es/components/Tearsheet/TearsheetNarrow.js +1 -1
  63. package/es/components/Tearsheet/TearsheetShell.js +1 -1
  64. package/es/components/Toolbar/Toolbar.js +69 -8
  65. package/es/components/WebTerminal/WebTerminal.js +1 -1
  66. package/es/components/index.js +4 -2
  67. package/es/global/js/hooks/index.js +1 -0
  68. package/es/global/js/hooks/useCreateComponentFocus.js +15 -19
  69. package/es/global/js/hooks/useCreateComponentStepChange.js +69 -79
  70. package/es/global/js/hooks/useResetCreateComponent.js +7 -4
  71. package/es/global/js/hooks/useRetrieveStepData.js +51 -0
  72. package/es/global/js/hooks/useValidCreateStepCount.js +4 -7
  73. package/es/global/js/package-settings.js +4 -2
  74. package/es/global/js/utils/lastIndexInArray.js +26 -0
  75. package/es/settings.js +0 -5
  76. package/lib/components/APIKeyModal/APIKeyModal.js +25 -29
  77. package/lib/components/ActionBar/ActionBar.js +4 -1
  78. package/lib/components/ActionSet/ActionSet.js +22 -10
  79. package/lib/components/ActionSet/actions.js +25 -17
  80. package/lib/components/AddSelect/AddSelect.js +141 -50
  81. package/lib/components/AddSelect/AddSelectBreadcrumbs.js +71 -0
  82. package/lib/components/AddSelect/AddSelectList.js +112 -0
  83. package/lib/components/AddSelect/AddSelectSidebar.js +89 -0
  84. package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +23 -16
  85. package/lib/components/CancelableTextEdit/CancelableTextEdit.js +62 -23
  86. package/lib/components/Card/Card.js +6 -4
  87. package/lib/components/CreateFullPage/CreateFullPage.js +102 -258
  88. package/lib/components/CreateFullPage/CreateFullPageStep.js +68 -13
  89. package/lib/components/CreateFullPage/index.js +1 -9
  90. package/lib/components/CreateInfluencer/CreateInfluencer.js +38 -231
  91. package/lib/components/CreateTearsheet/CreateTearsheet.js +97 -148
  92. package/lib/components/CreateTearsheet/CreateTearsheetStep.js +72 -19
  93. package/lib/components/CreateTearsheet/index.js +0 -8
  94. package/lib/components/CreateTearsheet/preview-components/MultiStepTearsheet.js +86 -34
  95. package/lib/components/CreateTearsheet/preview-components/MultiStepWithIntro.js +8 -6
  96. package/lib/components/EmptyStates/EmptyState.js +1 -1
  97. package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
  98. package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +1 -1
  99. package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +1 -1
  100. package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +1 -1
  101. package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +1 -1
  102. package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +1 -1
  103. package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +1 -1
  104. package/lib/components/ExportModal/ExportModal.js +38 -11
  105. package/lib/components/ImportModal/ImportModal.js +2 -1
  106. package/lib/components/InlineEdit/InlineEdit.js +413 -0
  107. package/lib/components/InlineEdit/index.js +13 -0
  108. package/lib/components/MultiAddSelect/MultiAddSelect.js +37 -0
  109. package/lib/components/MultiAddSelect/index.js +13 -0
  110. package/lib/components/NotificationsPanel/NotificationsPanel.js +13 -1
  111. package/lib/components/OptionsTile/OptionsTile.js +36 -15
  112. package/lib/components/PageHeader/PageHeader.js +59 -35
  113. package/lib/components/PageHeader/PageHeaderTitle.js +91 -9
  114. package/lib/components/PageHeader/PageHeaderUtils.js +21 -2
  115. package/lib/components/RemoveModal/RemoveModal.js +4 -2
  116. package/lib/components/SidePanel/SidePanel.js +33 -16
  117. package/lib/components/SingleAddSelect/SingleAddSelect.js +36 -0
  118. package/lib/components/SingleAddSelect/index.js +13 -0
  119. package/lib/components/TagSet/TagSet.js +4 -1
  120. package/lib/components/Tearsheet/Tearsheet.js +1 -1
  121. package/lib/components/Tearsheet/TearsheetNarrow.js +1 -1
  122. package/lib/components/Tearsheet/TearsheetShell.js +1 -1
  123. package/lib/components/Toolbar/Toolbar.js +69 -6
  124. package/lib/components/WebTerminal/WebTerminal.js +1 -1
  125. package/lib/components/index.js +25 -9
  126. package/lib/global/js/hooks/index.js +8 -0
  127. package/lib/global/js/hooks/useCreateComponentFocus.js +15 -19
  128. package/lib/global/js/hooks/useCreateComponentStepChange.js +69 -79
  129. package/lib/global/js/hooks/useResetCreateComponent.js +7 -4
  130. package/lib/global/js/hooks/useRetrieveStepData.js +62 -0
  131. package/lib/global/js/hooks/useValidCreateStepCount.js +4 -7
  132. package/lib/global/js/package-settings.js +4 -2
  133. package/lib/global/js/utils/lastIndexInArray.js +35 -0
  134. package/lib/settings.js +0 -6
  135. package/package.json +24 -24
  136. package/scss/components/AddSelect/_add-select.scss +53 -8
  137. package/scss/components/BreadcrumbWithOverflow/_breadcrumb-with-overflow.scss +19 -15
  138. package/scss/components/BreadcrumbWithOverflow/_index.scss +1 -1
  139. package/scss/components/CancelableTextEdit/_cancelable-text-edit.scss +142 -70
  140. package/scss/components/CancelableTextEdit/_storybook-styles.scss +0 -7
  141. package/scss/components/CreateFullPage/_create-full-page.scss +4 -11
  142. package/scss/components/CreateInfluencer/_create-influencer.scss +4 -4
  143. package/scss/components/CreateTearsheet/_create-tearsheet.scss +6 -10
  144. package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +0 -6
  145. package/scss/components/EditSidePanel/_storybook-styles.scss +0 -8
  146. package/scss/components/InlineEdit/_index.scss +8 -0
  147. package/scss/components/InlineEdit/_inline-edit.scss +320 -0
  148. package/scss/components/InlineEdit/_storybook-styles.scss +21 -0
  149. package/scss/components/LoadingBar/_storybook-styles.scss +0 -5
  150. package/scss/components/MultiAddSelect/_index.scss +1 -0
  151. package/scss/components/MultiAddSelect/_multi-add-select.scss +1 -0
  152. package/scss/components/MultiAddSelect/_storybook-styles.scss +6 -0
  153. package/scss/components/NotificationsPanel/_notifications-panel.scss +2 -2
  154. package/scss/components/OptionsTile/_storybook-styles.scss +0 -7
  155. package/scss/components/PageHeader/_index.scss +1 -1
  156. package/scss/components/PageHeader/_page-header.scss +18 -5
  157. package/scss/components/ProductiveCard/_productive-card.scss +0 -4
  158. package/scss/components/SidePanel/_side-panel.scss +15 -6
  159. package/scss/components/SingleAddSelect/_index.scss +1 -0
  160. package/scss/components/SingleAddSelect/_single-add-select.scss +1 -0
  161. package/scss/components/SingleAddSelect/_storybook-styles.scss +6 -0
  162. package/scss/components/StatusIcon/_index.scss +1 -1
  163. package/scss/components/StatusIcon/_status-icon.scss +6 -4
  164. package/scss/components/TagSet/_index.scss +1 -1
  165. package/scss/components/UserProfileImage/_index.scss +1 -1
  166. package/scss/components/UserProfileImage/_user-profile-image.scss +2 -2
  167. package/scss/components/WebTerminal/_web-terminal.scss +2 -2
  168. package/scss/components/_index.scss +3 -1
  169. package/scss/global/styles/_project-settings.scss +5 -1
  170. package/es/components/CreateFullPage/CreateFullPageSection.js +0 -53
  171. package/es/components/CreateFullPage/constants.js +0 -8
  172. package/es/components/CreateTearsheet/CreateTearsheetSection.js +0 -83
  173. package/es/components/CreateTearsheet/constants.js +0 -8
  174. package/es/components/CreateTearsheet/preview-components/MultiStepWithSectionsTearsheet.js +0 -327
  175. package/es/generated/feature-flags/feature-flags.js +0 -15
  176. package/es/global/js/utils/hasValidType.js +0 -94
  177. package/lib/components/CreateFullPage/CreateFullPageSection.js +0 -74
  178. package/lib/components/CreateFullPage/constants.js +0 -16
  179. package/lib/components/CreateTearsheet/CreateTearsheetSection.js +0 -105
  180. package/lib/components/CreateTearsheet/constants.js +0 -17
  181. package/lib/components/CreateTearsheet/preview-components/MultiStepWithSectionsTearsheet.js +0 -354
  182. package/lib/generated/feature-flags/feature-flags.js +0 -22
  183. package/lib/global/js/utils/hasValidType.js +0 -110
  184. package/scss/generated/feature-flags/_feature-flags.scss +0 -19
@@ -18,120 +18,192 @@
18
18
  // CancelableTextEdit uses the following Carbon for IBM Products components:
19
19
  // TODO: @import(s) of IBM Products component styles used by CancelableTextEdit
20
20
 
21
- // Define all component styles in a mixin which is then exported using
22
- // the Carbon import-once mechanism.
23
- @mixin cancelable-text-edit {
24
- // The block part of our conventional BEM class names (blockClass__E--M).
25
- $block-class: #{$pkg-prefix}--cancelable-text-edit;
26
-
27
- .#{$block-class}.#{$block-class} {
28
- --size: #{$spacing-08};
29
-
30
- position: relative;
31
- width: 100%;
32
- min-height: var(--size);
33
- }
34
-
35
- .#{$block-class}.#{$block-class}--xl {
36
- --size: $spacing-09;
37
- }
38
-
39
- .#{$block-class}.#{$block-class} .#{$block-class}__input {
40
- height: var(--size);
41
- // stylelint-disable-next-line carbon/layout-token-use
42
- padding-right: calc(2 * var(--size));
43
- }
44
-
45
- .#{$block-class}__buttons {
46
- position: absolute;
47
- top: 0;
48
- right: 0;
49
- }
50
- .#{$block-class}.#{$block-class} .#{$block-class}__revert,
51
- .#{$block-class}.#{$block-class} .#{$block-class}__save {
52
- width: var(--size);
53
- height: var(--size);
54
- min-height: var(--size);
21
+ @mixin button-states($block-class) {
22
+ .#{$block-class}__revert,
23
+ .#{$block-class}__save {
24
+ border: 1px solid transparent;
55
25
 
26
+ // input does not have focus
56
27
  &:hover {
57
- // border hover input does NOT have focus
58
28
  border-color: $hover-field;
59
- border-bottom: 1px solid transparent;
29
+ border-bottom-color: transparent;
60
30
  background-clip: content-box;
61
31
  box-shadow: initial;
32
+ outline: initial;
62
33
  }
63
34
 
64
35
  &:focus:active,
65
36
  &:focus {
66
37
  // border focus input does NOT have focus
67
- border-width: 2px;
68
38
  border-color: $focus;
69
- box-shadow: initial;
39
+ box-shadow: inset 0 0 0 1px $focus;
40
+ outline: initial;
70
41
  }
71
42
 
72
43
  &:focus:active:hover {
73
- // stylelint-disable-next-line carbon/layout-token-use
74
- padding: 1px;
44
+ box-shadow: inset 0 0 0 1px $focus, inset 0 0 0 2px $field-01;
75
45
  }
76
46
 
77
47
  &::before {
78
48
  background-color: transparent;
79
49
  }
50
+
51
+ &[disabled] {
52
+ border-color: transparent;
53
+ }
80
54
  }
81
55
 
82
- // border hover input has focus
83
- // and/or is invalid
84
- .#{$block-class}.#{$block-class}--invalid
85
- .#{$carbon-prefix}--text-input-wrapper
86
- ~ .#{$block-class}__buttons,
87
- .#{$block-class}.#{$block-class}
88
- .#{$carbon-prefix}--text-input-wrapper:focus-within
56
+ // invalid affects hover state
57
+ &.#{$block-class}--invalid {
58
+ // invalid does not have focus
59
+ .#{$block-class}__save:hover,
60
+ .#{$block-class}__revert:hover {
61
+ border: 1px solid transparent;
62
+ box-shadow: inset 0 1px 0 $support-01, inset 0 -1px 0 $support-01;
63
+ }
64
+
65
+ .#{$block-class}__save:hover {
66
+ // invalid does not have focus
67
+ box-shadow: inset 0 1px 0 $support-01, inset 0 -1px 0 $support-01,
68
+ inset -1px 0 0 $support-01;
69
+ }
70
+ }
71
+
72
+ // after other button states handle focus within input
73
+ .#{$carbon-prefix}--text-input-wrapper:focus-within
89
74
  ~ .#{$block-class}__buttons {
90
75
  .#{$block-class}__revert,
91
76
  .#{$block-class}__save {
92
- border: 2px solid transparent;
77
+ border: 1px solid transparent;
78
+ box-shadow: inset 0 1px 0 $focus, inset 0 -1px 0 $focus;
93
79
  // transition-property: initial; // turn off seems to cause a bit of a visual glitch
94
80
  }
95
81
 
96
82
  // button hover state
97
83
  .#{$block-class}__revert:hover,
98
84
  .#{$block-class}__save:hover {
99
- border-top: 2px solid transparent;
100
- border-bottom: 2px solid transparent;
101
85
  background-clip: content-box;
102
86
  }
87
+
103
88
  .#{$block-class}__save {
104
89
  // border hover input has focus or is in error
105
- border-right: 2px solid transparent;
90
+ box-shadow: inset 0 1px 0 $focus, inset 0 -1px 0 $focus,
91
+ inset -1px 0 0 $focus;
106
92
  }
107
93
  }
94
+ }
108
95
 
109
- // > only wish to affect version added for inline
110
- .#{$block-class}--invalid > .#{$carbon-prefix}--form-requirement,
111
- .#{$block-class}--warn > .#{$carbon-prefix}--form-requirement {
112
- display: block;
113
- max-height: initial;
114
- // stylelint-disable-next-line carbon/layout-token-use
115
- margin-left: calc(20% + 1.25rem); // needs to match inline input layout
116
- }
96
+ // Define all component styles in a mixin which is then exported using
97
+ // the Carbon import-once mechanism.
98
+ @mixin cancelable-text-edit {
99
+ // The block part of our conventional BEM class names (blockClass__E--M).
100
+ $block-class: #{$pkg-prefix}--cancelable-text-edit;
117
101
 
118
- // > only wish to affect version added for inline
119
- .#{$block-class}--invalid > .#{$carbon-prefix}--form-requirement {
120
- color: $text-error;
102
+ .#{$block-class} {
103
+ --size: #{$spacing-08};
104
+ --icon-size: #{$spacing-05};
121
105
  }
122
106
 
123
- .#{$block-class} .#{$carbon-prefix}--text-input {
124
- // stylelint-disable-next-line carbon/layout-token-use
125
- padding-right: calc(2 * var(--size)); // to take account of save and revert
107
+ .#{$block-class}--sm {
108
+ --size: #{$spacing-07};
109
+ --icon-size: #{$spacing-05};
126
110
  }
127
111
 
128
- .#{$block-class} .#{$carbon-prefix}--text-input--invalid {
129
- // stylelint-disable-next-line carbon/layout-token-use
130
- padding-right: calc(3 * var(--size)); // to take account of save and revert
112
+ .#{$block-class}--lg {
113
+ --size: #{$spacing-09};
114
+ --icon-size: #{$spacing-05};
131
115
  }
132
116
 
133
- .#{$block-class} .#{$carbon-prefix}--text-input__invalid-icon {
134
- margin-right: $spacing-11;
117
+ // high specificity to override some icon button styles to work like the Carbon search clear button
118
+ // but at sizes of text input
119
+ .#{$block-class}.#{$block-class}.#{$block-class} {
120
+ .#{$block-class}__main {
121
+ position: relative;
122
+ display: inline-flex;
123
+ width: 100%;
124
+ min-height: var(--size);
125
+ vertical-align: top;
126
+ }
127
+
128
+ .#{$block-class}__input {
129
+ height: var(--size);
130
+ // stylelint-disable-next-line carbon/layout-token-use
131
+ padding-right: calc(2 * var(--size));
132
+ }
133
+
134
+ .#{$block-class}__buttons {
135
+ position: absolute;
136
+ top: 0;
137
+ right: 0;
138
+ display: flex;
139
+ flex-direction: column;
140
+ }
141
+
142
+ .#{$block-class}__buttons-inner {
143
+ display: flex;
144
+ }
145
+
146
+ @include button-states($block-class);
147
+
148
+ .#{$block-class}__revert,
149
+ .#{$block-class}__save {
150
+ display: flex;
151
+ width: var(--size);
152
+ height: var(--size);
153
+ min-height: var(--size);
154
+ flex-direction: column;
155
+ align-items: center;
156
+ justify-content: center;
157
+ padding: 0;
158
+
159
+ svg {
160
+ width: var(--icon-size);
161
+ height: var(--icon-size);
162
+ // margin: calc(var(--size) / 4);
163
+ }
164
+ }
165
+
166
+ // > only wish to affect version added for inline
167
+ &.#{$block-class}--invalid .#{$carbon-prefix}--form-requirement,
168
+ &.#{$block-class}--warn .#{$carbon-prefix}--form-requirement {
169
+ display: block;
170
+ max-height: initial;
171
+ }
172
+
173
+ &.#{$block-class}--invalid.#{$block-class}--inline
174
+ .#{$carbon-prefix}--form-requirement,
175
+ &.#{$block-class}--warn.#{$block-class}--inline
176
+ .#{$carbon-prefix}--form-requirement {
177
+ // stylelint-disable-next-line carbon/layout-token-use
178
+ margin-left: calc(20% + 1.25rem); // needs to match inline input layout
179
+ }
180
+
181
+ // > only wish to affect version added for inline
182
+ &.#{$block-class}--invalid .#{$carbon-prefix}--form-requirement {
183
+ display: block;
184
+ overflow: visible;
185
+ // max-height: 12.5rem;
186
+ // font-weight: 400;
187
+ color: $text-error;
188
+ }
189
+
190
+ .#{$carbon-prefix}--text-input {
191
+ // stylelint-disable-next-line carbon/layout-token-use
192
+ padding-right: calc(
193
+ 2 * var(--size)
194
+ ); // to take account of save and revert
195
+ }
196
+
197
+ .#{$carbon-prefix}--text-input--invalid {
198
+ // stylelint-disable-next-line carbon/layout-token-use
199
+ padding-right: calc(
200
+ 3 * var(--size)
201
+ ); // to take account of save and revert
202
+ }
203
+
204
+ .#{$carbon-prefix}--text-input__invalid-icon {
205
+ margin-right: $spacing-11;
206
+ }
135
207
  }
136
208
  }
137
209
 
@@ -5,11 +5,4 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './index';
9
-
10
8
  // TODO: add any additional styles used by CancelableTextEdit.stories.js
11
-
12
- // Uncomment next line (which must appear last) to test in storybook
13
- // that the SCSS styles for this component are sufficiently specific
14
- // to override Carbon whichever order the styles get loaded in.
15
- //@import 'carbon-components/css/carbon-components.min';
@@ -30,6 +30,7 @@
30
30
  @mixin create-full-page {
31
31
  // The block part of our conventional BEM class names (blockClass__E--M).
32
32
  $block-class: #{$pkg-prefix}--create-full-page;
33
+ $step-block-class: #{$pkg-prefix}--create-full-page__step;
33
34
 
34
35
  .#{$block-class} .#{$block-class} {
35
36
  color: $text-01;
@@ -41,20 +42,14 @@
41
42
  margin-left: 0;
42
43
  }
43
44
 
44
- .#{$block-class} .#{$block-class}__step--hidden-step,
45
- .#{$block-class} .#{$block-class}__step--hidden-section {
45
+ .#{$block-class} .#{$step-block-class}__step--hidden-step {
46
46
  display: none;
47
47
  }
48
48
 
49
- .#{$block-class} .#{$block-class}__step--visible-section {
49
+ .#{$block-class} .#{$step-block-class}__step--visible-step {
50
50
  display: block;
51
51
  }
52
52
 
53
- .#{$block-class} .#{$block-class}__step--visible-step {
54
- opacity: 1;
55
- }
56
-
57
- .#{$block-class} .#{$block-class}__section-subtitle,
58
53
  .#{$block-class} .#{$block-class}__step-subtitle {
59
54
  @include carbon--type-style('productive-heading-01');
60
55
 
@@ -62,7 +57,6 @@
62
57
  margin-bottom: $spacing-03;
63
58
  }
64
59
 
65
- .#{$block-class} .#{$block-class}__section-description,
66
60
  .#{$block-class} .#{$block-class}__step-description {
67
61
  @include carbon--type-style('body-long-01');
68
62
 
@@ -150,8 +144,7 @@
150
144
  }
151
145
  }
152
146
 
153
- .#{$block-class} .#{$block-class}__step-title,
154
- .#{$block-class} .#{$block-class}__section-title {
147
+ .#{$block-class} .#{$block-class}__step-title {
155
148
  @include carbon--type-style('productive-heading-04');
156
149
 
157
150
  max-width: 50%;
@@ -13,7 +13,7 @@
13
13
  $block-class: #{$pkg-prefix}--create-influencer;
14
14
  $create-tearsheet-block-class: #{$pkg-prefix}--tearsheet-create;
15
15
  $influencerAnimationStart: calc(-1 * #{$spacing-05});
16
- @keyframes influencerMenuEntrance {
16
+ @keyframes influencer-menu-entrance {
17
17
  0% {
18
18
  opacity: 0;
19
19
  // stylelint-disable-next-line carbon/layout-token-use
@@ -24,7 +24,7 @@
24
24
  transform: translateX(0);
25
25
  }
26
26
  }
27
- @keyframes influencerMenuExit {
27
+ @keyframes influencer-menu-exit {
28
28
  0% {
29
29
  opacity: 1;
30
30
  transform: translateX(0);
@@ -60,7 +60,7 @@
60
60
  .#{$block-class}__side-nav-opening,
61
61
  .#{$block-class}__progress-indicator-opening {
62
62
  // stylelint-disable-next-line carbon/motion-token-use
63
- animation: influencerMenuEntrance $duration--moderate-02 1;
63
+ animation: influencer-menu-entrance $duration--moderate-02 1;
64
64
  animation-fill-mode: forwards;
65
65
  @include carbon--motion(entrance, productive);
66
66
  }
@@ -68,7 +68,7 @@
68
68
  .#{$block-class}__side-nav-closing,
69
69
  .#{$block-class}__progress-indicator-closing {
70
70
  // stylelint-disable-next-line carbon/motion-token-use
71
- animation: influencerMenuExit $duration--moderate-02 1;
71
+ animation: influencer-menu-exit $duration--moderate-02 1;
72
72
  animation-fill-mode: forwards;
73
73
  @include carbon--motion(exit, productive);
74
74
  }
@@ -23,7 +23,7 @@
23
23
  @import '../CreateInfluencer/index';
24
24
 
25
25
  @mixin create-tearsheet {
26
- @keyframes stepContentEntrance {
26
+ @keyframes step-content-entrance {
27
27
  0% {
28
28
  opacity: 0;
29
29
  // stylelint-disable-next-line carbon/layout-token-use
@@ -36,6 +36,7 @@
36
36
  }
37
37
 
38
38
  $block-class: #{$pkg-prefix}--tearsheet-create;
39
+ $step-block-class: #{$pkg-prefix}--tearsheet-create__step;
39
40
  $section-block-class: #{$pkg-prefix}--tearsheet-create__section;
40
41
  $tearsheet-divider-class: #{$pkg-prefix}--tearsheet-create__section--divider;
41
42
  $tearsheet-fieldset-class: #{$pkg-prefix}--tearsheet-create__step--fieldset;
@@ -44,24 +45,19 @@
44
45
  --#{$block-class}--total-width: 0;
45
46
  }
46
47
 
47
- .#{$block-class} .#{$block-class}__step--hidden-step,
48
- .#{$block-class} .#{$block-class}__step--hidden-section {
48
+ .#{$block-class} .#{$step-block-class}__step--hidden-step {
49
49
  display: none;
50
50
  }
51
51
 
52
- .#{$block-class} .#{$block-class}__step--visible-section {
53
- display: block;
54
- }
55
-
56
- .#{$block-class} .#{$block-class}__step--visible-step {
57
- animation: $duration--slow-01 stepContentEntrance;
52
+ .#{$block-class} .#{$step-block-class}__step--visible-step {
53
+ animation: $duration--slow-01 step-content-entrance;
58
54
  animation-fill-mode: forwards;
59
55
  animation-timing-function: $carbon--standard-easing;
60
56
  opacity: 0;
61
57
  }
62
58
 
63
59
  @media (prefers-reduced-motion) {
64
- .#{$block-class} .#{$block-class}__step--visible-step {
60
+ .#{$block-class} .#{$step-block-class}__step--visible-step {
65
61
  animation: none;
66
62
  opacity: 1;
67
63
  }
@@ -5,14 +5,8 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './index';
9
8
  @import '../../global/styles/project-settings';
10
9
 
11
- // Uncomment next line (which must appear last) to test in storybook
12
- // that the SCSS styles for this component are sufficiently specific
13
- // to override Carbon whichever order the styles get loaded in.
14
- //@import 'carbon-components/css/carbon-components.min';
15
-
16
10
  $story-class: #{$pkg-prefix}--create-tearsheet-narrow--story;
17
11
 
18
12
  .#{$story-class}__flex-container {
@@ -5,9 +5,6 @@
5
5
  // LICENSE file in the root directory of this source tree.
6
6
  //
7
7
 
8
- @import './index';
9
-
10
- // TODO: add any additional styles used by EditSidePanel.stories.js
11
8
  @import '../../global/styles/project-settings';
12
9
 
13
10
  $block-class: #{$pkg-prefix}--edit-side-panel;
@@ -28,8 +25,3 @@ $story-prefix: edit-side-panel-stories__;
28
25
  .#{$block-class} .#{$carbon-prefix}--number__control-btn::after {
29
26
  background-color: $field-02;
30
27
  }
31
-
32
- // Uncomment next line (which must appear last) to test in storybook
33
- // that the SCSS styles for this component are sufficiently specific
34
- // to override Carbon whichever order the styles get loaded in.
35
- //@import 'carbon-components/css/carbon-components.min';
@@ -0,0 +1,8 @@
1
+ //
2
+ // Copyright IBM Corp. 2022, 2022
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 './inline-edit';