@carbon/ibm-products 1.5.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +389 -139
- package/css/index-full-carbon.css.map +1 -1
- package/css/index-full-carbon.min.css +9 -3
- package/css/index-full-carbon.min.css.map +1 -0
- package/css/index-without-carbon-released-only.css +33 -27
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +3 -3
- package/css/index-without-carbon-released-only.min.css.map +1 -0
- package/css/index-without-carbon.css +330 -133
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +9 -3
- package/css/index-without-carbon.min.css.map +1 -0
- package/css/index.css +332 -135
- package/css/index.css.map +1 -1
- package/css/index.min.css +9 -3
- package/css/index.min.css.map +1 -0
- package/es/components/APIKeyModal/APIKeyModal.js +10 -13
- package/es/components/ActionBar/ActionBar.js +0 -3
- package/es/components/ActionBar/ActionBarItem.js +2 -6
- package/es/components/ActionSet/ActionSet.js +11 -13
- package/es/components/AddSelect/AddSelect.js +122 -72
- package/es/components/AddSelect/AddSelectBreadcrumbs.js +56 -0
- package/es/components/AddSelect/AddSelectList.js +94 -0
- package/es/components/AddSelect/AddSelectSidebar.js +110 -0
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
- package/es/components/ButtonMenu/ButtonMenu.js +6 -4
- package/es/components/ButtonMenu/ButtonMenuItem.js +1 -2
- package/es/components/Card/Card.js +37 -25
- package/es/components/Card/CardFooter.js +14 -10
- package/es/components/Card/CardHeader.js +8 -6
- package/es/components/Cascade/Cascade.js +5 -4
- package/es/components/ComboButton/ComboButton.js +0 -4
- package/es/components/ComboButton/ComboButtonItem/index.js +0 -5
- package/es/components/CreateFullPage/CreateFullPageStep.js +15 -8
- package/es/components/CreateModal/CreateModal.js +1 -4
- package/es/components/CreateTearsheet/CreateTearsheet.js +10 -11
- package/es/components/CreateTearsheet/CreateTearsheetStep.js +18 -14
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +414 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetBody.js +138 -0
- package/es/components/DataSpreadsheet/DataSpreadsheetHeader.js +64 -0
- package/es/components/DataSpreadsheet/createActiveCellFn.js +45 -0
- package/es/components/DataSpreadsheet/generateData.js +47 -0
- package/es/components/DataSpreadsheet/getCellSize.js +30 -0
- package/es/components/{CancelableTextEdit → DataSpreadsheet}/index.js +2 -2
- package/es/components/EditSidePanel/EditSidePanel.js +9 -10
- package/es/components/EmptyStates/EmptyState.js +8 -7
- package/es/components/EmptyStates/EmptyStateContent.js +2 -2
- package/es/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +5 -9
- package/es/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +5 -9
- package/es/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +5 -9
- package/es/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +5 -9
- package/es/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +5 -9
- package/es/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +5 -9
- package/es/components/ExampleComponent/ExampleComponent.js +12 -13
- package/es/components/ExportModal/ExportModal.js +13 -9
- package/es/components/ExpressiveCard/ExpressiveCard.js +0 -8
- package/es/components/ImportModal/ImportModal.js +7 -5
- package/es/components/InlineEdit/InlineEdit.js +256 -88
- package/es/components/LoadingBar/LoadingBar.js +13 -17
- package/es/components/ModifiedTabs/ModifiedTabLabelNew.js +0 -4
- package/es/components/ModifiedTabs/ModifiedTabLabelWithClose.js +0 -5
- package/es/components/ModifiedTabs/ModifiedTabs.js +24 -18
- package/es/components/NotificationsPanel/NotificationsPanel.js +125 -89
- package/es/components/OptionsTile/OptionsTile.js +6 -9
- package/es/components/PageHeader/PageHeader.js +19 -13
- package/es/components/PageHeader/PageHeaderTitle.js +10 -6
- package/es/components/ProductiveCard/ProductiveCard.js +23 -12
- package/es/components/RemoveModal/RemoveModal.js +0 -3
- package/es/components/SidePanel/SidePanel.js +54 -32
- package/es/components/TagSet/TagSet.js +13 -9
- package/es/components/TagSet/TagSetModal.js +16 -12
- package/es/components/TagSet/TagSetOverflow.js +21 -13
- package/es/components/Tearsheet/Tearsheet.js +27 -18
- package/es/components/Tearsheet/TearsheetNarrow.js +18 -15
- package/es/components/Tearsheet/TearsheetShell.js +3 -4
- package/es/components/Toolbar/ToolbarButton.js +0 -3
- package/es/components/WebTerminal/WebTerminal.js +18 -19
- package/es/components/index.js +2 -2
- package/es/global/js/hooks/index.js +1 -0
- package/es/global/js/hooks/useActiveElement.js +27 -0
- package/es/global/js/package-settings.js +2 -1
- package/es/global/js/utils/Wrap.js +7 -5
- package/es/global/js/utils/getScrollbarWidth.js +14 -0
- package/es/settings.js +0 -5
- package/lib/components/APIKeyModal/APIKeyModal.js +10 -13
- package/lib/components/ActionBar/ActionBar.js +0 -3
- package/lib/components/ActionBar/ActionBarItem.js +2 -6
- package/lib/components/ActionSet/ActionSet.js +11 -13
- package/lib/components/AddSelect/AddSelect.js +126 -72
- package/lib/components/AddSelect/AddSelectBreadcrumbs.js +71 -0
- package/lib/components/AddSelect/AddSelectList.js +112 -0
- package/lib/components/AddSelect/AddSelectSidebar.js +122 -0
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -5
- package/lib/components/ButtonMenu/ButtonMenu.js +6 -4
- package/lib/components/ButtonMenu/ButtonMenuItem.js +1 -2
- package/lib/components/Card/Card.js +37 -25
- package/lib/components/Card/CardFooter.js +14 -10
- package/lib/components/Card/CardHeader.js +8 -6
- package/lib/components/Cascade/Cascade.js +5 -4
- package/lib/components/ComboButton/ComboButton.js +0 -4
- package/lib/components/ComboButton/ComboButtonItem/index.js +0 -5
- package/lib/components/CreateFullPage/CreateFullPageStep.js +17 -14
- package/lib/components/CreateModal/CreateModal.js +1 -4
- package/lib/components/CreateTearsheet/CreateTearsheet.js +10 -11
- package/lib/components/CreateTearsheet/CreateTearsheetStep.js +20 -20
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +438 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetBody.js +161 -0
- package/lib/components/DataSpreadsheet/DataSpreadsheetHeader.js +80 -0
- package/lib/components/DataSpreadsheet/createActiveCellFn.js +56 -0
- package/lib/components/DataSpreadsheet/generateData.js +58 -0
- package/lib/components/DataSpreadsheet/getCellSize.js +39 -0
- package/lib/components/DataSpreadsheet/index.js +13 -0
- package/lib/components/EditSidePanel/EditSidePanel.js +9 -10
- package/lib/components/EmptyStates/EmptyState.js +10 -9
- package/lib/components/EmptyStates/EmptyStateContent.js +2 -2
- package/lib/components/EmptyStates/ErrorEmptyState/ErrorEmptyState.js +4 -8
- package/lib/components/EmptyStates/NoDataEmptyState/NoDataEmptyState.js +4 -8
- package/lib/components/EmptyStates/NoTagsEmptyState/NoTagsEmptyState.js +4 -8
- package/lib/components/EmptyStates/NotFoundEmptyState/NotFoundEmptyState.js +4 -8
- package/lib/components/EmptyStates/NotificationsEmptyState/NotificationsEmptyState.js +4 -8
- package/lib/components/EmptyStates/UnauthorizedEmptyState/UnauthorizedEmptyState.js +4 -8
- package/lib/components/ExampleComponent/ExampleComponent.js +12 -13
- package/lib/components/ExportModal/ExportModal.js +13 -9
- package/lib/components/ExpressiveCard/ExpressiveCard.js +0 -8
- package/lib/components/ImportModal/ImportModal.js +7 -5
- package/lib/components/InlineEdit/InlineEdit.js +253 -87
- package/lib/components/LoadingBar/LoadingBar.js +13 -17
- package/lib/components/ModifiedTabs/ModifiedTabLabelNew.js +0 -4
- package/lib/components/ModifiedTabs/ModifiedTabLabelWithClose.js +0 -5
- package/lib/components/ModifiedTabs/ModifiedTabs.js +24 -18
- package/lib/components/NotificationsPanel/NotificationsPanel.js +122 -87
- package/lib/components/OptionsTile/OptionsTile.js +6 -9
- package/lib/components/PageHeader/PageHeader.js +18 -12
- package/lib/components/PageHeader/PageHeaderTitle.js +10 -6
- package/lib/components/ProductiveCard/ProductiveCard.js +24 -18
- package/lib/components/RemoveModal/RemoveModal.js +0 -3
- package/lib/components/SidePanel/SidePanel.js +54 -32
- package/lib/components/TagSet/TagSet.js +13 -9
- package/lib/components/TagSet/TagSetModal.js +17 -13
- package/lib/components/TagSet/TagSetOverflow.js +24 -19
- package/lib/components/Tearsheet/Tearsheet.js +26 -17
- package/lib/components/Tearsheet/TearsheetNarrow.js +18 -15
- package/lib/components/Tearsheet/TearsheetShell.js +2 -3
- package/lib/components/Toolbar/ToolbarButton.js +0 -3
- package/lib/components/WebTerminal/WebTerminal.js +18 -19
- package/lib/components/index.js +8 -8
- package/lib/global/js/hooks/index.js +8 -0
- package/lib/global/js/hooks/useActiveElement.js +39 -0
- package/lib/global/js/package-settings.js +2 -1
- package/lib/global/js/utils/Wrap.js +7 -5
- package/lib/global/js/utils/getScrollbarWidth.js +23 -0
- package/lib/settings.js +0 -6
- package/package.json +25 -23
- package/scss/components/AddSelect/_add-select.scss +59 -5
- package/scss/components/BreadcrumbWithOverflow/_index.scss +1 -1
- package/scss/components/CreateInfluencer/_create-influencer.scss +4 -4
- package/scss/components/CreateTearsheet/_create-tearsheet.scss +2 -2
- package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +0 -6
- package/scss/components/DataSpreadsheet/_data-spreadsheet.scss +102 -0
- package/scss/components/{CancelableTextEdit → DataSpreadsheet}/_index.scss +2 -2
- package/scss/components/DataSpreadsheet/_storybook-styles.scss +6 -0
- package/scss/components/EditSidePanel/_storybook-styles.scss +0 -8
- package/scss/components/InlineEdit/_inline-edit.scss +293 -10
- package/scss/components/InlineEdit/_storybook-styles.scss +12 -6
- package/scss/components/LoadingBar/_storybook-styles.scss +0 -5
- package/scss/components/NotificationsPanel/_notifications-panel.scss +2 -2
- package/scss/components/OptionsTile/_storybook-styles.scss +0 -7
- package/scss/components/PageHeader/_index.scss +1 -1
- package/scss/components/PageHeader/_page-header.scss +4 -1
- package/scss/components/ProductiveCard/_productive-card.scss +0 -4
- package/scss/components/SidePanel/_side-panel.scss +15 -6
- package/scss/components/StatusIcon/_index.scss +1 -1
- package/scss/components/StatusIcon/_status-icon.scss +4 -4
- package/scss/components/TagSet/_index.scss +1 -1
- package/scss/components/UserProfileImage/_index.scss +1 -1
- package/scss/components/UserProfileImage/_user-profile-image.scss +2 -2
- package/scss/components/WebTerminal/_web-terminal.scss +2 -2
- package/scss/components/_index.scss +1 -1
- package/scss/global/styles/_project-settings.scss +5 -1
- package/es/components/CancelableTextEdit/CancelableTextEdit.js +0 -245
- package/es/generated/feature-flags/feature-flags.js +0 -15
- package/lib/components/CancelableTextEdit/CancelableTextEdit.js +0 -265
- package/lib/components/CancelableTextEdit/index.js +0 -13
- package/lib/generated/feature-flags/feature-flags.js +0 -22
- package/scss/components/CancelableTextEdit/_cancelable-text-edit.scss +0 -211
- package/scss/components/CancelableTextEdit/_storybook-styles.scss +0 -15
- package/scss/generated/feature-flags/_feature-flags.scss +0 -19
@@ -18,24 +18,307 @@
|
|
18
18
|
// InlineEdit uses the following Carbon for IBM Products components:
|
19
19
|
// TODO: @import(s) of IBM Products component styles used by InlineEdit
|
20
20
|
|
21
|
+
// cut down version borrowed from 'carbon-components/scss/globals/scss/vendor/@carbon/styles/scss/utilities/focus-outline';
|
22
|
+
@mixin input-outline($color: $focus) {
|
23
|
+
outline: $spacing-01 solid $color;
|
24
|
+
outline-offset: calc(-1 * $spacing-01);
|
25
|
+
|
26
|
+
@media screen and (prefers-contrast) {
|
27
|
+
outline-style: dotted;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@function --tooltip-top-bottom-safe-clip() {
|
32
|
+
@return polygon(
|
33
|
+
0 0,
|
34
|
+
-100vw 0,
|
35
|
+
-100vw -100vh,
|
36
|
+
100vw -100vh,
|
37
|
+
100vw 0,
|
38
|
+
100% 0,
|
39
|
+
100% 100%,
|
40
|
+
100vw 100%,
|
41
|
+
100vw 100vh,
|
42
|
+
-100vw 100vh,
|
43
|
+
-100vw 100%,
|
44
|
+
0 100%
|
45
|
+
);
|
46
|
+
}
|
47
|
+
|
48
|
+
@mixin input-button-defaults($block-class) {
|
49
|
+
display: inline-flex;
|
50
|
+
width: var(--#{$block-class}--size);
|
51
|
+
height: 100%;
|
52
|
+
min-height: initial;
|
53
|
+
max-height: var(--#{$block-class}--size);
|
54
|
+
|
55
|
+
// stylelint-disable-next-line carbon/layout-token-use
|
56
|
+
padding: calc(
|
57
|
+
0.5 * (var(--#{$block-class}--size) - var(--#{$block-class}--icon-size)) - #{$spacing-01}
|
58
|
+
);
|
59
|
+
border: 2px solid transparent;
|
60
|
+
}
|
61
|
+
|
21
62
|
// Define all component styles in a mixin which is then exported using
|
22
63
|
// the Carbon import-once mechanism.
|
23
64
|
@mixin inline-edit {
|
24
65
|
// The block part of our conventional BEM class names (blockClass__E--M).
|
25
66
|
$block-class: #{$pkg-prefix}--inline-edit;
|
26
67
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
68
|
+
@include block-wrap($block-class) {
|
69
|
+
--#{$block-class}--size: #{$spacing-08};
|
70
|
+
--#{$block-class}--icon-size: #{$spacing-05};
|
71
|
+
--#{$block-class}--background-color: #{$ui-01};
|
31
72
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
73
|
+
&.#{$block-class}--light {
|
74
|
+
--#{$block-class}--background-color: transparent;
|
75
|
+
}
|
76
|
+
|
77
|
+
&:hover {
|
78
|
+
--#{$block-class}--background-color: #{$hover-field};
|
79
|
+
// background-color: $background-color;
|
80
|
+
}
|
81
|
+
|
82
|
+
position: relative;
|
83
|
+
display: inline-block;
|
84
|
+
// min-width: 250px; // similar to min input box with room for toolbar
|
85
|
+
max-width: 100%;
|
86
|
+
height: var(--#{$block-class}--size);
|
87
|
+
background-color: var(--#{$block-class}--background-color);
|
88
|
+
cursor: text; // appear to be part of the text box
|
89
|
+
transition: background-color $duration--fast-01 motion(entrance, productive),
|
90
|
+
box-shadow $duration--fast-01 motion(entrance, productive),
|
91
|
+
border-color $duration--fast-01 motion(entrance, productive);
|
92
|
+
vertical-align: middle; // mis-aligned items cause height to grow beyond setting.
|
93
|
+
|
94
|
+
white-space: nowrap;
|
95
|
+
|
96
|
+
&.#{$block-class}--sm {
|
97
|
+
--#{$block-class}--size: #{$spacing-07};
|
98
|
+
--#{$block-class}--icon-size: #{$spacing-05};
|
99
|
+
}
|
100
|
+
|
101
|
+
&.#{$block-class}--lg {
|
102
|
+
--#{$block-class}--size: #{$spacing-09};
|
103
|
+
--#{$block-class}--icon-size: #{$spacing-05};
|
104
|
+
}
|
105
|
+
|
106
|
+
&.#{$block-class}--invalid {
|
107
|
+
// editing takes precedence over invalid
|
108
|
+
@include input-outline($support-01);
|
109
|
+
}
|
110
|
+
|
111
|
+
&.#{$block-class}--editing {
|
112
|
+
@include input-outline($focus);
|
113
|
+
|
114
|
+
background-color: $ui-01;
|
115
|
+
}
|
116
|
+
|
117
|
+
.#{$block-class}__input {
|
118
|
+
display: inline-block;
|
119
|
+
overflow: hidden;
|
120
|
+
// positions text and placeholder including when showing placeholder
|
121
|
+
// NOTE: Using flex does strange things to a caret in content editable
|
122
|
+
min-width: calc(100% - 3 * var(--#{$block-class}--size) - $spacing-05);
|
123
|
+
max-width: calc(100% - 3 * var(--#{$block-class}--size) - $spacing-05);
|
124
|
+
min-height: var(--#{$block-class}--size);
|
125
|
+
// stylelint-disable-next-line carbon/layout-token-use
|
126
|
+
margin-right: calc(3 * var(--#{$block-class}--size));
|
127
|
+
// room for toolbar
|
128
|
+
margin-left: $spacing-05;
|
129
|
+
// stylelint-disable-next-line carbon/type-token-use
|
130
|
+
line-height: var(--#{$block-class}--size);
|
131
|
+
|
132
|
+
&:focus {
|
133
|
+
outline: none;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
.#{$block-class}__input::after {
|
138
|
+
position: absolute;
|
139
|
+
top: 0;
|
140
|
+
left: 0;
|
141
|
+
display: block;
|
142
|
+
overflow: hidden;
|
143
|
+
width: 0;
|
144
|
+
margin-left: $spacing-05;
|
145
|
+
color: $text-05;
|
146
|
+
content: attr(data-placeholder);
|
147
|
+
opacity: 0;
|
148
|
+
visibility: hidden;
|
149
|
+
}
|
150
|
+
|
151
|
+
.#{$block-class}__ellipsis {
|
152
|
+
display: inline-block;
|
153
|
+
overflow: hidden;
|
154
|
+
width: 0;
|
155
|
+
height: var(--#{$block-class}--size);
|
156
|
+
// stylelint-disable-next-line carbon/type-token-use
|
157
|
+
line-height: var(--#{$block-class}--size);
|
158
|
+
opacity: 0;
|
159
|
+
pointer-events: none;
|
160
|
+
|
161
|
+
// only transition fade in
|
162
|
+
transition: opacity $duration--moderate-02 motion(standard, productive);
|
163
|
+
}
|
164
|
+
|
165
|
+
&.#{$block-class}--overflows:not(.#{$block-class}--editing)
|
166
|
+
.#{$block-class}__ellipsis {
|
167
|
+
width: initial;
|
168
|
+
opacity: 1;
|
169
|
+
}
|
170
|
+
|
171
|
+
.#{$block-class}__disabled-cover {
|
172
|
+
position: absolute;
|
173
|
+
top: 0;
|
174
|
+
left: 0;
|
175
|
+
width: 100%;
|
176
|
+
height: 100%;
|
177
|
+
pointer-events: none; // act as if not there
|
178
|
+
}
|
179
|
+
|
180
|
+
&.#{$block-class}--disabled .#{$block-class}__disabled-cover {
|
181
|
+
// when disabled prevent pointer events going through to the input
|
182
|
+
cursor: not-allowed;
|
183
|
+
pointer-events: all;
|
184
|
+
}
|
185
|
+
|
186
|
+
.#{$block-class}__input--empty::after {
|
187
|
+
width: initial;
|
188
|
+
opacity: 1;
|
189
|
+
// only transition fade in
|
190
|
+
transition: opacity $duration--moderate-02 motion(standard, productive);
|
191
|
+
visibility: visible;
|
192
|
+
}
|
193
|
+
|
194
|
+
.#{$block-class}__after-input-elements {
|
195
|
+
// not simply flexed in as this causes flexbox to mis-measure the size of the input
|
196
|
+
position: absolute;
|
197
|
+
top: 0;
|
198
|
+
right: 0;
|
199
|
+
display: flex;
|
200
|
+
// width: room for validation, and two buttons
|
201
|
+
width: calc(3 * var(--#{$block-class}--size));
|
202
|
+
height: 100%;
|
203
|
+
justify-content: space-between;
|
204
|
+
cursor: text;
|
205
|
+
}
|
206
|
+
|
207
|
+
.#{$block-class}__toolbar--animation {
|
208
|
+
// makes room for the top clip text but hides the side overflow
|
209
|
+
clip-path: --tooltip-top-bottom-safe-clip();
|
210
|
+
// NOTE: The above allows the tooltip to show through when overflowX: hidden would not when at right edge.
|
211
|
+
// It is used with margin animation of contained buttons
|
212
|
+
}
|
213
|
+
|
214
|
+
&.#{$block-class}--editing .#{$block-class}__toolbar::after {
|
215
|
+
// cover top and bottom when focus within block
|
216
|
+
// doing the same on the buttons is problematic when animating
|
217
|
+
// and causes visual artifacts when the button is hovered without focus
|
218
|
+
// as the buttons leave a 45% join between sides with transparent borders and top/bottom with $focus
|
219
|
+
position: absolute;
|
220
|
+
top: 0;
|
221
|
+
left: 0;
|
222
|
+
display: block;
|
223
|
+
width: 100%;
|
224
|
+
height: 100%;
|
225
|
+
box-sizing: border-box;
|
226
|
+
border: 2px solid $focus;
|
227
|
+
border-left: 0;
|
228
|
+
content: '';
|
229
|
+
pointer-events: none;
|
230
|
+
}
|
231
|
+
|
232
|
+
&.#{$block-class}.#{$block-class} .#{$block-class}__save,
|
233
|
+
&.#{$block-class}.#{$block-class} .#{$block-class}__cancel {
|
234
|
+
@include input-button-defaults($block-class);
|
235
|
+
|
236
|
+
// input does not have focus
|
237
|
+
&:hover {
|
238
|
+
outline: initial;
|
239
|
+
}
|
240
|
+
|
241
|
+
&:focus:active,
|
242
|
+
&:focus {
|
243
|
+
// border focus input does NOT have focus
|
244
|
+
border-color: $focus;
|
245
|
+
box-shadow: initial;
|
246
|
+
outline: initial;
|
247
|
+
}
|
248
|
+
|
249
|
+
&:focus:active:hover {
|
250
|
+
box-shadow: inset 0 0 0 1px $field-01;
|
251
|
+
}
|
252
|
+
|
253
|
+
&::before {
|
254
|
+
background-color: transparent;
|
255
|
+
}
|
256
|
+
|
257
|
+
&[disabled] {
|
258
|
+
border-color: transparent;
|
259
|
+
}
|
260
|
+
}
|
261
|
+
|
262
|
+
&.#{$block-class}--editing
|
263
|
+
.#{$block-class}__toolbar--animation
|
264
|
+
.#{$block-class}__save {
|
265
|
+
// stylelint-disable-next-line carbon/layout-token-use
|
266
|
+
margin-right: calc(-1 * var(--#{$block-class}--size));
|
267
|
+
transition: margin-right $duration--moderate-02
|
268
|
+
motion(standard, productive);
|
269
|
+
}
|
270
|
+
|
271
|
+
&.#{$block-class}--editing
|
272
|
+
.#{$block-class}__toolbar--saveable
|
273
|
+
.#{$block-class}__save {
|
274
|
+
margin-right: 0;
|
275
|
+
}
|
276
|
+
|
277
|
+
&.#{$block-class}.#{$block-class} .#{$block-class}__edit {
|
278
|
+
@include input-button-defaults($block-class);
|
279
|
+
|
280
|
+
// pointer-events: none;
|
281
|
+
|
282
|
+
&:hover,
|
283
|
+
&:active,
|
284
|
+
&:focus {
|
285
|
+
border-color: transparent;
|
286
|
+
background-color: transparent;
|
287
|
+
box-shadow: initial;
|
288
|
+
outline: initial;
|
289
|
+
}
|
290
|
+
}
|
291
|
+
|
292
|
+
.#{$block-class}__edit--hover-visible {
|
293
|
+
opacity: 0;
|
294
|
+
transition: opacity $duration--fast-01 motion(entrance, productive);
|
295
|
+
}
|
296
|
+
|
297
|
+
&:hover .#{$block-class}__edit--hover-visible {
|
298
|
+
opacity: 1;
|
299
|
+
}
|
300
|
+
|
301
|
+
.#{$block-class}__validation-icon {
|
302
|
+
@include input-button-defaults($block-class);
|
303
|
+
}
|
304
|
+
|
305
|
+
&.#{$block-class}--warn .#{$block-class}__validation-icon {
|
306
|
+
color: $support-warning;
|
307
|
+
}
|
308
|
+
|
309
|
+
&.#{$block-class}--invalid .#{$block-class}__validation-icon {
|
310
|
+
color: $support-error;
|
311
|
+
}
|
312
|
+
|
313
|
+
.#{$block-class}__validation-text {
|
314
|
+
display: block;
|
315
|
+
overflow: visible;
|
316
|
+
margin-left: $spacing-05;
|
317
|
+
}
|
36
318
|
|
37
|
-
|
38
|
-
|
319
|
+
&.#{$block-class}--invalid .#{$block-class}__validation-text {
|
320
|
+
color: $support-error;
|
321
|
+
}
|
39
322
|
}
|
40
323
|
}
|
41
324
|
|
@@ -5,11 +5,17 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
@import '
|
8
|
+
@import '../../global/styles/project-settings';
|
9
9
|
|
10
|
-
|
10
|
+
.inline-edit-stories__viewport {
|
11
|
+
// width: 300px; // larger than standard size needed by text input at standard font size (html input attribute size)
|
12
|
+
// stylelint-disable-next-line carbon/layout-token-use
|
13
|
+
margin: 100px;
|
14
|
+
}
|
11
15
|
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
+
$block-class: #{$pkg-prefix}--inline-edit;
|
17
|
+
.component-full-width {
|
18
|
+
.#{$block-class} {
|
19
|
+
width: 100%;
|
20
|
+
}
|
21
|
+
}
|
@@ -12,8 +12,3 @@
|
|
12
12
|
width: 24rem;
|
13
13
|
margin: $spacing-07 $spacing-05 $spacing-05 $spacing-05;
|
14
14
|
}
|
15
|
-
|
16
|
-
// Uncomment next line (which must appear last) to test in storybook
|
17
|
-
// that the SCSS styles for this component are sufficiently specific
|
18
|
-
// to override Carbon whichever order the styles get loaded in.
|
19
|
-
// @import 'carbon-components/css/carbon-components.min';
|
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
@mixin notifications-panel {
|
22
22
|
$block-class: #{$pkg-prefix}--notifications-panel;
|
23
|
-
@keyframes
|
23
|
+
@keyframes fade-in {
|
24
24
|
0% {
|
25
25
|
opacity: 0;
|
26
26
|
// stylelint-disable-next-line carbon/layout-token-use
|
@@ -32,7 +32,7 @@
|
|
32
32
|
}
|
33
33
|
}
|
34
34
|
|
35
|
-
@keyframes
|
35
|
+
@keyframes fade-out {
|
36
36
|
0% {
|
37
37
|
opacity: 1;
|
38
38
|
transform: translateY(0);
|
@@ -5,8 +5,6 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
@import './index';
|
9
|
-
|
10
8
|
@import '../../global/styles/project-settings';
|
11
9
|
|
12
10
|
$block-class: #{$pkg-prefix}--options-tile;
|
@@ -26,8 +24,3 @@ $block-class: #{$pkg-prefix}--options-tile;
|
|
26
24
|
.#{$block-class}__content .#{$carbon-prefix}--dropdown__wrapper:first-of-type {
|
27
25
|
margin-bottom: $spacing-06;
|
28
26
|
}
|
29
|
-
|
30
|
-
// Uncomment next line (which must appear last) to test in storybook
|
31
|
-
// that the SCSS styles for this component are sufficiently specific
|
32
|
-
// to override Carbon whichever order the styles get loaded in.
|
33
|
-
//@import 'carbon-components/css/carbon-components.min';
|
@@ -80,7 +80,7 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
80
80
|
$duration: 1000ms;
|
81
81
|
|
82
82
|
$animation: background-appear;
|
83
|
-
@if
|
83
|
+
@if $with-shadow {
|
84
84
|
$animation: background-and-shadow-appear;
|
85
85
|
}
|
86
86
|
|
@@ -434,6 +434,9 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
434
434
|
.#{$block-class}__title--editable {
|
435
435
|
display: flex;
|
436
436
|
overflow: visible;
|
437
|
+
// move to match non-editable version position
|
438
|
+
margin-top: calc(-1 * #{$spacing-01});
|
439
|
+
margin-left: calc(-1 * #{$spacing-05});
|
437
440
|
}
|
438
441
|
|
439
442
|
.#{$block-class}__title-skeleton {
|
@@ -25,7 +25,7 @@ $block-class: #{$pkg-prefix}--side-panel;
|
|
25
25
|
$action-set-block-class: #{$pkg-prefix}--action-set;
|
26
26
|
|
27
27
|
@mixin sidePanelEntranceRight($size: map-get($side-panel-sizes, md)) {
|
28
|
-
@keyframes
|
28
|
+
@keyframes side-panel-entrance-right {
|
29
29
|
0% {
|
30
30
|
opacity: 0;
|
31
31
|
// stylelint-disable-next-line carbon/layout-token-use
|
@@ -39,7 +39,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
39
39
|
}
|
40
40
|
|
41
41
|
@mixin sidePanelEntranceLeft($size: map-get($side-panel-sizes, md)) {
|
42
|
-
@keyframes
|
42
|
+
@keyframes side-panel-entrance-left {
|
43
43
|
0% {
|
44
44
|
opacity: 0;
|
45
45
|
// stylelint-disable-next-line carbon/layout-token-use
|
@@ -90,7 +90,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
90
90
|
}
|
91
91
|
|
92
92
|
@mixin side-panel {
|
93
|
-
@keyframes
|
93
|
+
@keyframes side-panel-exit-left {
|
94
94
|
0% {
|
95
95
|
opacity: 1;
|
96
96
|
transform: translateX(0);
|
@@ -102,7 +102,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
102
102
|
}
|
103
103
|
}
|
104
104
|
|
105
|
-
@keyframes
|
105
|
+
@keyframes side-panel-exit-right {
|
106
106
|
0% {
|
107
107
|
opacity: 1;
|
108
108
|
transform: translateX(0);
|
@@ -186,6 +186,15 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
186
186
|
&::before {
|
187
187
|
@include setDividerStyles();
|
188
188
|
}
|
189
|
+
&.#{$block-class}__title-container--reduced-motion {
|
190
|
+
z-index: 5;
|
191
|
+
border-bottom: 1px solid $decorative-01;
|
192
|
+
margin-bottom: $spacing-05;
|
193
|
+
}
|
194
|
+
&.#{$block-class}__title-container--reduced-motion.#{$block-class}__title-container--no-title-animation {
|
195
|
+
border-bottom: 0;
|
196
|
+
margin-bottom: 0;
|
197
|
+
}
|
189
198
|
&.#{$block-class}__on-detail-step .#{$block-class}__collapsed-title-text {
|
190
199
|
top: $spacing-09;
|
191
200
|
}
|
@@ -444,7 +453,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
444
453
|
background-color: $field-02;
|
445
454
|
}
|
446
455
|
|
447
|
-
@keyframes
|
456
|
+
@keyframes side-panel-overlay-entrance {
|
448
457
|
0% {
|
449
458
|
opacity: 0;
|
450
459
|
}
|
@@ -453,7 +462,7 @@ $action-set-block-class: #{$pkg-prefix}--action-set;
|
|
453
462
|
}
|
454
463
|
}
|
455
464
|
|
456
|
-
@keyframes
|
465
|
+
@keyframes side-panel-overlay-exit {
|
457
466
|
0% {
|
458
467
|
opacity: 1;
|
459
468
|
}
|
@@ -72,7 +72,7 @@ $themes: ('light', 'dark');
|
|
72
72
|
|
73
73
|
$block-class: #{$pkg-prefix}--status-icon;
|
74
74
|
|
75
|
-
@function clr($name, $theme: light) {
|
75
|
+
@function --clr($name, $theme: light) {
|
76
76
|
// stylelint-disable-next-line carbon/theme-token-use
|
77
77
|
$color: map-get(map-get($colors, $name), $theme);
|
78
78
|
@return $color;
|
@@ -121,14 +121,14 @@ $block-class: #{$pkg-prefix}--status-icon;
|
|
121
121
|
// stylelint-disable-next-line carbon/motion-token-use
|
122
122
|
animation: rotating 8000ms infinite linear;
|
123
123
|
// stylelint-disable-next-line carbon/theme-token-use
|
124
|
-
fill: clr($icon, $theme);
|
124
|
+
fill: --clr($icon, $theme);
|
125
125
|
} @else if $icon == running {
|
126
126
|
// stylelint-disable-next-line carbon/theme-token-use
|
127
|
-
fill: clr($icon, $theme);
|
127
|
+
fill: --clr($icon, $theme);
|
128
128
|
transform: scaleY(-1);
|
129
129
|
} @else {
|
130
130
|
// stylelint-disable-next-line carbon/theme-token-use
|
131
|
-
fill: clr($icon, $theme);
|
131
|
+
fill: --clr($icon, $theme);
|
132
132
|
@media (prefers-reduced-motion) {
|
133
133
|
.#{$block-class}--#{$theme}.#{$block-class}--#{$theme-key}-in-progress {
|
134
134
|
animation: none;
|
@@ -44,7 +44,7 @@ $themes: (
|
|
44
44
|
|
45
45
|
$theme-keys: map-keys($themes);
|
46
46
|
|
47
|
-
@function get-background-color($color, $key, $contrast-key) {
|
47
|
+
@function --get-background-color($color, $key, $contrast-key) {
|
48
48
|
@return map-get(
|
49
49
|
$carbon-colors,
|
50
50
|
#{$color}#{map-get(map-get($themes, $key), #{$contrast-key}-contrast)}
|
@@ -60,7 +60,7 @@ $theme-keys: map-keys($themes);
|
|
60
60
|
@each $contrast-key in $theme-keys {
|
61
61
|
.#{$block-class}--#{$key}.#{$block-class}--#{$contrast-key}-#{$color} {
|
62
62
|
// stylelint-disable-next-line carbon/theme-token-use
|
63
|
-
background-color: get-background-color($color, $key, $contrast-key);
|
63
|
+
background-color: --get-background-color($color, $key, $contrast-key);
|
64
64
|
}
|
65
65
|
}
|
66
66
|
}
|
@@ -4,7 +4,7 @@
|
|
4
4
|
$web-terminal-width: 36.5rem;
|
5
5
|
$block-class: #{$pkg-prefix}--web-terminal;
|
6
6
|
|
7
|
-
@keyframes
|
7
|
+
@keyframes web-terminal-entrance {
|
8
8
|
0% {
|
9
9
|
opacity: 0;
|
10
10
|
// stylelint-disable-next-line carbon/layout-token-use
|
@@ -16,7 +16,7 @@ $block-class: #{$pkg-prefix}--web-terminal;
|
|
16
16
|
}
|
17
17
|
}
|
18
18
|
|
19
|
-
@keyframes
|
19
|
+
@keyframes web-terminal-exit {
|
20
20
|
0% {
|
21
21
|
opacity: 1;
|
22
22
|
transform: translateX(0);
|
@@ -6,7 +6,11 @@
|
|
6
6
|
//
|
7
7
|
|
8
8
|
// set required feature flags for carbon
|
9
|
-
|
9
|
+
$feature-flags: (
|
10
|
+
ui-shell: true,
|
11
|
+
grid-columns-16: true,
|
12
|
+
enable-css-custom-properties: true,
|
13
|
+
);
|
10
14
|
|
11
15
|
// import the carbon import-once mechanism
|
12
16
|
@import '@carbon/import-once/scss/import-once';
|