@carbon/ibm-products 2.7.0 → 2.8.1
Sign up to get free protection for your applications and to get access to all the features.
- package/css/index-full-carbon.css +115 -6
- 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-released-only.css +10 -4
- package/css/index-without-carbon-released-only.css.map +1 -1
- package/css/index-without-carbon-released-only.min.css +2 -2
- package/css/index-without-carbon-released-only.min.css.map +1 -1
- package/css/index-without-carbon.css +115 -6
- package/css/index-without-carbon.css.map +1 -1
- package/css/index-without-carbon.min.css +4 -4
- package/css/index-without-carbon.min.css.map +1 -1
- package/css/index.css +108 -4
- 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/AddSelect/AddSelectRow.js +2 -1
- package/es/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +6 -7
- package/es/components/ButtonMenu/ButtonMenu.js +4 -0
- package/es/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +21 -28
- package/es/components/ComboButton/ComboButton.js +5 -0
- package/es/components/CreateFullPage/CreateFullPage.js +4 -3
- package/es/components/CreateInfluencer/CreateInfluencer.js +10 -3
- package/es/components/DataSpreadsheet/DataSpreadsheet.js +1 -1
- package/es/components/Datagrid/Datagrid/DatagridHeaderRow.js +118 -10
- package/es/components/Datagrid/Datagrid/DatagridToolbar.js +8 -14
- package/es/components/Datagrid/Datagrid/addons/stateReducer.js +111 -0
- package/es/components/Datagrid/Datagrid.docs-page.js +6 -0
- package/es/components/Datagrid/useDatagrid.js +5 -2
- package/es/components/Datagrid/utils/DatagridActions.js +9 -10
- package/es/components/FilterSummary/FilterSummary.js +9 -3
- package/es/components/NotificationsPanel/NotificationsPanel.js +3 -5
- package/es/components/PageHeader/PageHeaderUtils.js +10 -3
- package/es/components/SidePanel/SidePanel.js +3 -1
- package/es/components/TagSet/TagSet.js +3 -7
- package/es/components/TooltipTrigger/TooltipTrigger.js +62 -0
- package/es/components/TooltipTrigger/index.js +8 -0
- package/es/components/TooltipTrigger/useExample.js +49 -0
- package/es/components/UserProfileImage/UserProfileImage.js +7 -6
- package/es/global/decorators/sidePanelDecorator.js +11 -0
- package/es/global/js/hooks/useResizeObserver.js +7 -5
- package/es/global/js/utils/StoryDocsPage.js +5 -2
- package/es/global/js/utils/test-helper.js +97 -43
- package/es/settings.js +8 -2
- package/lib/components/AddSelect/AddSelectRow.js +2 -1
- package/lib/components/BreadcrumbWithOverflow/BreadcrumbWithOverflow.js +5 -6
- package/lib/components/ButtonMenu/ButtonMenu.js +5 -1
- package/lib/components/ButtonSetWithOverflow/ButtonSetWithOverflow.js +20 -27
- package/lib/components/ComboButton/ComboButton.js +5 -0
- package/lib/components/CreateFullPage/CreateFullPage.js +4 -3
- package/lib/components/CreateInfluencer/CreateInfluencer.js +10 -3
- package/lib/components/DataSpreadsheet/DataSpreadsheet.js +1 -1
- package/lib/components/Datagrid/Datagrid/DatagridHeaderRow.js +121 -10
- package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +7 -13
- package/lib/components/Datagrid/Datagrid/addons/stateReducer.js +122 -0
- package/lib/components/Datagrid/Datagrid.docs-page.js +6 -0
- package/lib/components/Datagrid/useDatagrid.js +5 -2
- package/lib/components/Datagrid/utils/DatagridActions.js +8 -9
- package/lib/components/FilterSummary/FilterSummary.js +9 -4
- package/lib/components/NotificationsPanel/NotificationsPanel.js +3 -5
- package/lib/components/PageHeader/PageHeaderUtils.js +10 -3
- package/lib/components/SidePanel/SidePanel.js +3 -1
- package/lib/components/TagSet/TagSet.js +2 -6
- package/lib/components/TooltipTrigger/TooltipTrigger.js +67 -0
- package/lib/components/TooltipTrigger/index.js +12 -0
- package/lib/components/TooltipTrigger/useExample.js +58 -0
- package/lib/components/UserProfileImage/UserProfileImage.js +6 -5
- package/lib/global/decorators/sidePanelDecorator.js +19 -0
- package/lib/global/js/hooks/useResizeObserver.js +7 -5
- package/lib/global/js/utils/StoryDocsPage.js +5 -2
- package/lib/global/js/utils/test-helper.js +99 -44
- package/lib/settings.js +8 -2
- package/package.json +8 -8
- package/scss/components/APIKeyModal/_storybook-styles.scss +1 -1
- package/scss/components/AboutModal/_storybook-styles.scss +1 -1
- package/scss/components/ActionSet/_storybook-styles.scss +1 -1
- package/scss/components/CreateFullPage/_storybook-styles.scss +1 -1
- package/scss/components/CreateInfluencer/_create-influencer.scss +6 -2
- package/scss/components/CreateModal/_storybook-styles.scss +1 -1
- package/scss/components/CreateSidePanel/_storybook-styles.scss +4 -1
- package/scss/components/CreateTearsheet/_storybook-styles.scss +1 -1
- package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +1 -1
- package/scss/components/DataSpreadsheet/_storybook-styles.scss +7 -2
- package/scss/components/Datagrid/_storybook-styles.scss +6 -3
- package/scss/components/Datagrid/styles/_datagrid.scss +92 -0
- package/scss/components/EditSidePanel/_storybook-styles.scss +8 -5
- package/scss/components/EditTearsheet/_storybook-styles.scss +1 -1
- package/scss/components/EditTearsheetNarrow/_storybook-styles.scss +1 -1
- package/scss/components/EditUpdateCards/_storybook-styles.scss +1 -1
- package/scss/components/ExpressiveCard/_storybook-styles.scss +1 -1
- package/scss/components/NotificationsPanel/_storybook-styles.scss +1 -1
- package/scss/components/OptionsTile/_storybook-styles.scss +1 -1
- package/scss/components/PageHeader/_page-header.scss +8 -4
- package/scss/components/SidePanel/_storybook-styles.scss +7 -0
- package/scss/components/Tearsheet/_storybook-styles.scss +1 -1
- package/scss/components/TooltipTrigger/_index-with-carbon.scss +8 -0
- package/scss/components/TooltipTrigger/_index.scss +8 -0
- package/scss/components/TooltipTrigger/_storybook-styles.scss +6 -0
- package/scss/components/TooltipTrigger/_tooltip-trigger.scss +29 -0
- package/scss/components/WebTerminal/_storybook-styles.scss +1 -1
- package/scss/components/_index-with-carbon.scss +1 -0
- package/scss/components/_index.scss +1 -0
- package/scss/global/decorators/_side-panel-decorator.scss +18 -0
- package/scss/global/js/utils/_story-as-full-page.scss +6 -0
@@ -15,7 +15,7 @@
|
|
15
15
|
@use '@carbon/react/scss/components/tooltip';
|
16
16
|
@use '@carbon/react/scss/components/modal';
|
17
17
|
@use '@carbon/styles/scss/spacing';
|
18
|
-
@use '
|
18
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
19
19
|
|
20
20
|
.#{c4p-settings.$carbon-prefix}--number {
|
21
21
|
min-width: 100%;
|
@@ -5,9 +5,10 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
@use '
|
8
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
9
9
|
@use '@carbon/styles/scss/theme' as *;
|
10
10
|
@use '@carbon/styles/scss/spacing';
|
11
|
+
@use '../../global/decorators/side-panel-decorator' as *;
|
11
12
|
|
12
13
|
$block-class: #{c4p-settings.$pkg-prefix}--create-side-panel;
|
13
14
|
$story-prefix: create-side-panel-stories__;
|
@@ -27,3 +28,5 @@ $story-prefix: create-side-panel-stories__;
|
|
27
28
|
.#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
|
28
29
|
background-color: $field-02;
|
29
30
|
}
|
31
|
+
|
32
|
+
@include side-panel-decorator($story-prefix);
|
@@ -5,7 +5,7 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
@use '
|
8
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
9
9
|
@use '@carbon/styles/scss/type';
|
10
10
|
@use '@carbon/type/scss/font-family';
|
11
11
|
@use '@carbon/styles/scss/spacing' as *;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
@use '
|
8
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
10
10
|
|
11
11
|
$story-class: #{c4p-settings.$pkg-prefix}--create-tearsheet-narrow--story;
|
@@ -5,8 +5,13 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
$story-anchor: '
|
9
|
-
|
8
|
+
$story-anchor: 'DataSpreadsheet';
|
9
|
+
|
10
|
+
$story-anchor: 'DataSpreadsheet';
|
11
|
+
div[data-story-title*='#{$story-anchor}']
|
12
|
+
.docs-story
|
13
|
+
> div:first-child
|
14
|
+
> div:first-child {
|
10
15
|
overflow: auto;
|
11
16
|
width: 100%;
|
12
17
|
}
|
@@ -9,7 +9,7 @@
|
|
9
9
|
@use '@carbon/styles/scss/type';
|
10
10
|
@use '@carbon/styles/scss/spacing' as *;
|
11
11
|
|
12
|
-
@use '
|
12
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
13
13
|
|
14
14
|
// TODO: add any additional styles used by Datagrid.stories.js
|
15
15
|
// helper class for the nested table
|
@@ -128,8 +128,11 @@ $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
|
|
128
128
|
}
|
129
129
|
}
|
130
130
|
|
131
|
-
$story-anchor: '
|
132
|
-
div[
|
131
|
+
$story-anchor: 'Datagrid';
|
132
|
+
div[data-story-title*='#{$story-anchor}']
|
133
|
+
.docs-story
|
134
|
+
> div:first-child
|
135
|
+
> div:first-child {
|
133
136
|
overflow: auto;
|
134
137
|
width: 100%;
|
135
138
|
}
|
@@ -9,6 +9,7 @@
|
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
10
10
|
@use '@carbon/react/scss/components/button/tokens' as *;
|
11
11
|
@use '../../../global/styles/project-settings' as c4p-settings;
|
12
|
+
@use '@carbon/styles/scss/breakpoint';
|
12
13
|
@use './variables' as *;
|
13
14
|
|
14
15
|
.#{$block-class}__table-toolbar > section {
|
@@ -163,6 +164,23 @@
|
|
163
164
|
width: 100%;
|
164
165
|
padding-top: 0;
|
165
166
|
|
167
|
+
.#{c4p-settings.$carbon-prefix}--data-table-header__description {
|
168
|
+
overflow: hidden;
|
169
|
+
text-overflow: ellipsis;
|
170
|
+
white-space: nowrap;
|
171
|
+
}
|
172
|
+
|
173
|
+
.#{c4p-settings.$carbon-prefix}--data-table-header__title {
|
174
|
+
overflow: hidden;
|
175
|
+
max-width: 80ch;
|
176
|
+
text-overflow: ellipsis;
|
177
|
+
white-space: nowrap;
|
178
|
+
|
179
|
+
@include breakpoint.breakpoint(md) {
|
180
|
+
max-width: 55ch;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
|
166
184
|
.#{c4p-settings.$carbon-prefix}--data-table-content {
|
167
185
|
width: 100%;
|
168
186
|
height: 100%;
|
@@ -637,3 +655,77 @@
|
|
637
655
|
.#{c4p-settings.$carbon-prefix}--btn__icon {
|
638
656
|
margin-top: 0;
|
639
657
|
}
|
658
|
+
|
659
|
+
.#{$block-class} .#{$block-class}__col-resizer-range {
|
660
|
+
position: absolute;
|
661
|
+
z-index: 2;
|
662
|
+
top: 0;
|
663
|
+
right: calc(#{$spacing-03} * -1);
|
664
|
+
width: 1rem;
|
665
|
+
height: 100%;
|
666
|
+
margin: 0;
|
667
|
+
-moz-appearance: initial;
|
668
|
+
-webkit-appearance: none;
|
669
|
+
appearance: none;
|
670
|
+
background: transparent;
|
671
|
+
}
|
672
|
+
|
673
|
+
.#{$block-class} .#{$block-class}__col-resizer-range:focus {
|
674
|
+
outline: 0;
|
675
|
+
}
|
676
|
+
|
677
|
+
.#{$block-class}
|
678
|
+
.#{$block-class}__col-resizer-range:focus
|
679
|
+
+ .#{$block-class}__col-resize-indicator::before {
|
680
|
+
position: absolute;
|
681
|
+
top: 50%;
|
682
|
+
left: 50%;
|
683
|
+
width: 2px;
|
684
|
+
height: var(--#{$block-class}--header-height);
|
685
|
+
background-color: $focus;
|
686
|
+
content: '';
|
687
|
+
transform: translate(-50%, -50%);
|
688
|
+
}
|
689
|
+
|
690
|
+
.#{$block-class}
|
691
|
+
.#{$block-class}__col-resizer-range:focus
|
692
|
+
+ .#{$block-class}__col-resize-indicator {
|
693
|
+
position: absolute;
|
694
|
+
z-index: 2;
|
695
|
+
right: calc(#{$spacing-03} * -1);
|
696
|
+
width: 0.5rem;
|
697
|
+
height: 0.5rem;
|
698
|
+
border-radius: 100%;
|
699
|
+
margin: 0;
|
700
|
+
background-color: $focus;
|
701
|
+
transform: translate(-50%, 0);
|
702
|
+
}
|
703
|
+
|
704
|
+
.#{$block-class}
|
705
|
+
.#{$block-class}__col-resizer-range:focus
|
706
|
+
+ .#{$block-class}__col-resize-indicator::after {
|
707
|
+
position: absolute;
|
708
|
+
/* stylelint-disable-next-line carbon/layout-token-use */
|
709
|
+
top: calc(var(--#{$block-class}--row-height) - 20px);
|
710
|
+
right: $spacing-02;
|
711
|
+
width: 1px;
|
712
|
+
height: calc(
|
713
|
+
var(--#{$block-class}--grid-height) - var(--#{$block-class}--row-height)
|
714
|
+
);
|
715
|
+
background-color: $layer-active-01;
|
716
|
+
content: '';
|
717
|
+
}
|
718
|
+
|
719
|
+
.#{$block-class} .#{$block-class}__col-resizer-range::-webkit-slider-thumb {
|
720
|
+
width: 16px;
|
721
|
+
height: 16px;
|
722
|
+
border: none;
|
723
|
+
border-radius: 50%;
|
724
|
+
-webkit-appearance: none;
|
725
|
+
appearance: none;
|
726
|
+
background: transparent;
|
727
|
+
}
|
728
|
+
|
729
|
+
.#{$block-class} .#{$block-class}__col-resizer-range::-moz-range-thumb {
|
730
|
+
visibility: hidden;
|
731
|
+
}
|
@@ -5,11 +5,12 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
@use '
|
8
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
9
9
|
@use '@carbon/styles/scss/theme' as *;
|
10
10
|
@use '@carbon/styles/scss/spacing' as *;
|
11
|
+
@use '../../global/decorators/side-panel-decorator' as *;
|
11
12
|
|
12
|
-
$block-class: #{
|
13
|
+
$block-class: #{c4p-settings.$pkg-prefix}--edit-side-panel;
|
13
14
|
$story-prefix: edit-side-panel-stories__;
|
14
15
|
|
15
16
|
.#{$story-prefix}example-container {
|
@@ -19,11 +20,13 @@ $story-prefix: edit-side-panel-stories__;
|
|
19
20
|
grid-template-columns: 1fr 1fr;
|
20
21
|
}
|
21
22
|
|
22
|
-
.#{$story-prefix}example-form-group .#{
|
23
|
+
.#{$story-prefix}example-form-group .#{c4p-settings.$carbon-prefix}--label {
|
23
24
|
margin-bottom: 0;
|
24
25
|
}
|
25
26
|
|
26
|
-
.#{$block-class} .#{
|
27
|
-
.#{$block-class} .#{
|
27
|
+
.#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::before,
|
28
|
+
.#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
|
28
29
|
background-color: $field-02;
|
29
30
|
}
|
31
|
+
|
32
|
+
@include side-panel-decorator($story-prefix);
|
@@ -9,7 +9,7 @@
|
|
9
9
|
@use '@carbon/styles/scss/type';
|
10
10
|
@use '@carbon/type/scss/font-family';
|
11
11
|
|
12
|
-
@use '
|
12
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
13
13
|
|
14
14
|
// TODO: add any additional styles used by EditTearsheet.stories.js
|
15
15
|
|
@@ -8,7 +8,7 @@
|
|
8
8
|
@use '@carbon/colors/' as *;
|
9
9
|
@use '@carbon/type/' as *;
|
10
10
|
@use '@carbon/styles/scss/spacing' as *;
|
11
|
-
@use '
|
11
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
12
12
|
|
13
13
|
// make the root full width to get a better idea of how the cards
|
14
14
|
// look in a real grid situation
|
@@ -7,7 +7,7 @@
|
|
7
7
|
|
8
8
|
// shared card styles can be found in the Card folder
|
9
9
|
@use '../Card/storybook-styles' as *;
|
10
|
-
@use '
|
10
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
11
11
|
@use '@carbon/styles/scss/theme' as *;
|
12
12
|
|
13
13
|
$block-class: #{c4p-settings.$pkg-prefix}--card;
|
@@ -6,7 +6,7 @@
|
|
6
6
|
//
|
7
7
|
@use '@carbon/styles/scss/theme' as *;
|
8
8
|
@use '@carbon/styles/scss/themes';
|
9
|
-
@use '
|
9
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
10
10
|
|
11
11
|
$storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
|
12
12
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
//
|
2
|
-
// Copyright IBM Corp. 2020,
|
2
|
+
// Copyright IBM Corp. 2020, 2023
|
3
3
|
//
|
4
4
|
// This source code is licensed under the Apache-2.0 license found in the
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
@@ -360,7 +360,9 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
360
360
|
}
|
361
361
|
|
362
362
|
.#{$block-class}__title-row {
|
363
|
-
margin-top: $spacing-01; /* spacing needed in case of editable title, otherwise top of focus indicator hidden */
|
363
|
+
--title-row-margin-top: #{$spacing-01}; /* spacing needed in case of editable title, otherwise top of focus indicator hidden */
|
364
|
+
|
365
|
+
margin-top: var(--title-row-margin-top);
|
364
366
|
margin-bottom: 0;
|
365
367
|
transform: translateY(
|
366
368
|
$spacing-01
|
@@ -416,8 +418,10 @@ $right-section-alt-width: 100% - $left-section-alt-width;
|
|
416
418
|
|
417
419
|
.#{$block-class}__breadcrumb-row--has-breadcrumbs
|
418
420
|
+ .#{$block-class}__title-row--sticky {
|
419
|
-
//
|
420
|
-
top:
|
421
|
+
// stylelint-disable-next-line carbon/layout-token-use
|
422
|
+
top: calc(
|
423
|
+
var(--#{$block-class}--breadcrumb-top) - var(--title-row-margin-top)
|
424
|
+
);
|
421
425
|
}
|
422
426
|
|
423
427
|
.#{$block-class}__title-column {
|
@@ -9,6 +9,7 @@
|
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
10
10
|
@use '@carbon/themes/scss/themes';
|
11
11
|
@use '@carbon/styles/scss/type';
|
12
|
+
@use '../../global/decorators/side-panel-decorator' as *;
|
12
13
|
|
13
14
|
$story-prefix: side-panel-stories__;
|
14
15
|
|
@@ -43,3 +44,9 @@ $story-prefix: side-panel-stories__;
|
|
43
44
|
.#{$story-prefix}header {
|
44
45
|
@include theme(themes.$g100);
|
45
46
|
}
|
47
|
+
|
48
|
+
.#{$story-prefix}grid {
|
49
|
+
height: 100%;
|
50
|
+
}
|
51
|
+
|
52
|
+
@include side-panel-decorator($story-prefix);
|
@@ -5,7 +5,7 @@
|
|
5
5
|
// LICENSE file in the root directory of this source tree.
|
6
6
|
//
|
7
7
|
|
8
|
-
@use '
|
8
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
9
9
|
@use '@carbon/styles/scss/spacing' as *;
|
10
10
|
|
11
11
|
.tearsheet-stories__dummy-content-block {
|
@@ -0,0 +1,29 @@
|
|
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
|
+
@use '@carbon/styles/scss/spacing' as *;
|
9
|
+
// Standard imports.
|
10
|
+
@use '../../global/styles/project-settings' as c4p-settings;
|
11
|
+
|
12
|
+
// The block part of our conventional BEM class names (blockClass__E--M).
|
13
|
+
$block-class: #{c4p-settings.$pkg-prefix}--tooltip-trigger;
|
14
|
+
|
15
|
+
.#{$block-class} {
|
16
|
+
display: flex;
|
17
|
+
width: 100%;
|
18
|
+
height: 100%;
|
19
|
+
box-sizing: border-box;
|
20
|
+
align-items: center;
|
21
|
+
justify-content: center;
|
22
|
+
padding: 0;
|
23
|
+
border: 0;
|
24
|
+
margin: 0;
|
25
|
+
appearance: none;
|
26
|
+
background: none;
|
27
|
+
cursor: pointer;
|
28
|
+
outline: none;
|
29
|
+
}
|
@@ -11,7 +11,7 @@
|
|
11
11
|
@use '@carbon/styles/scss/spacing' as *;
|
12
12
|
@use '@carbon/styles/scss/theme' as *;
|
13
13
|
@use '@carbon/styles/scss/themes';
|
14
|
-
@use '
|
14
|
+
@use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
|
15
15
|
|
16
16
|
$storybook-block-class: #{c4p-settings.$pkg-prefix}--notifications-panel__story;
|
17
17
|
|
@@ -37,6 +37,7 @@
|
|
37
37
|
@use './TagSet/index-with-carbon' as *;
|
38
38
|
@use './Tearsheet/index-with-carbon' as *;
|
39
39
|
@use './Toolbar/index-with-carbon' as *;
|
40
|
+
@use './TooltipTrigger/index-with-carbon' as *;
|
40
41
|
@use './WebTerminal/index-with-carbon' as *;
|
41
42
|
@use './UserProfileImage/index-with-carbon' as *;
|
42
43
|
@use './EditSidePanel/index-with-carbon' as *;
|
@@ -0,0 +1,18 @@
|
|
1
|
+
@mixin side-panel-decorator($prefix) {
|
2
|
+
.#{$prefix}container {
|
3
|
+
display: flex;
|
4
|
+
height: 100vh;
|
5
|
+
flex-direction: column;
|
6
|
+
}
|
7
|
+
|
8
|
+
.#{$prefix}content {
|
9
|
+
flex-grow: 1;
|
10
|
+
}
|
11
|
+
|
12
|
+
.#{$prefix}toggle {
|
13
|
+
position: absolute;
|
14
|
+
top: 50%;
|
15
|
+
left: 50%;
|
16
|
+
transform: translate(-50%, -50%);
|
17
|
+
}
|
18
|
+
}
|