@carbon/ibm-products 2.16.0 → 2.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. package/css/config-dev.css +3 -0
  2. package/css/config-dev.css.map +1 -0
  3. package/css/index-full-carbon.css +4 -4
  4. package/css/index-without-carbon-released-only.css +1851 -37
  5. package/css/index-without-carbon-released-only.css.map +1 -1
  6. package/css/index-without-carbon-released-only.min.css +1 -1
  7. package/css/index-without-carbon-released-only.min.css.map +1 -1
  8. package/css/index-without-carbon.css +4 -4
  9. package/es/components/Datagrid/Datagrid/DatagridToolbar.js +7 -3
  10. package/es/components/Datagrid/Datagrid.docs-page.js +1 -1
  11. package/es/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  12. package/es/components/Datagrid/useActionsColumn.js +1 -4
  13. package/es/components/Datagrid/useFlexResize.js +19 -9
  14. package/es/components/Datagrid/useInfiniteScroll.js +1 -5
  15. package/es/global/js/package-settings.js +1 -3
  16. package/lib/components/Datagrid/Datagrid/DatagridToolbar.js +7 -3
  17. package/lib/components/Datagrid/Datagrid.docs-page.js +1 -1
  18. package/lib/components/Datagrid/Datagrid.stories/StickyActionsColumnStory.js +1 -1
  19. package/lib/components/Datagrid/useActionsColumn.js +1 -7
  20. package/lib/components/Datagrid/useFlexResize.js +19 -9
  21. package/lib/components/Datagrid/useInfiniteScroll.js +0 -4
  22. package/lib/global/js/package-settings.js +1 -3
  23. package/package.json +6 -7
  24. package/scss/components/InlineTip/_inline-tip.scss +4 -4
  25. package/scss/components/_index-released-only-with-carbon.scss +1 -0
  26. package/scss/components/_index-released-only.scss +1 -0
  27. package/scss/config-dev.scss +3 -0
  28. package/scss/components/APIKeyModal/_storybook-styles.scss +0 -35
  29. package/scss/components/AboutModal/_storybook-styles.scss +0 -29
  30. package/scss/components/ActionBar/_storybook-styles.scss +0 -8
  31. package/scss/components/ActionSet/_storybook-styles.scss +0 -36
  32. package/scss/components/AddSelect/_storybook-styles.scss +0 -6
  33. package/scss/components/BreadcrumbWithOverflow/_storybook-styles.scss +0 -8
  34. package/scss/components/ButtonMenu/_storybook-styles.scss +0 -6
  35. package/scss/components/ButtonSetWithOverflow/_storybook-styles.scss +0 -8
  36. package/scss/components/Card/_storybook-styles.scss +0 -12
  37. package/scss/components/Cascade/_storybook-styles.scss +0 -34
  38. package/scss/components/Checklist/_storybook-styles.scss +0 -13
  39. package/scss/components/CreateFullPage/_storybook-styles.scss +0 -67
  40. package/scss/components/CreateModal/_storybook-styles.scss +0 -54
  41. package/scss/components/CreateSidePanel/_storybook-styles.scss +0 -32
  42. package/scss/components/CreateTearsheet/_storybook-styles.scss +0 -56
  43. package/scss/components/CreateTearsheetNarrow/_storybook-styles.scss +0 -27
  44. package/scss/components/DataSpreadsheet/_storybook-styles.scss +0 -17
  45. package/scss/components/Datagrid/_storybook-styles.scss +0 -157
  46. package/scss/components/EditFullPage/_storybook-styles.scss +0 -10
  47. package/scss/components/EditInPlace/_storybook-styles.scss +0 -15
  48. package/scss/components/EditSidePanel/_storybook-styles.scss +0 -32
  49. package/scss/components/EditTearsheet/_storybook-styles.scss +0 -59
  50. package/scss/components/EditTearsheetNarrow/_storybook-styles.scss +0 -10
  51. package/scss/components/EditUpdateCards/_storybook-styles.scss +0 -55
  52. package/scss/components/EmptyStates/_storybook-styles.scss +0 -6
  53. package/scss/components/ExampleComponent/_storybook-styles.scss +0 -6
  54. package/scss/components/ExportModal/_storybook-styles.scss +0 -6
  55. package/scss/components/ExpressiveCard/_storybook-styles.scss +0 -26
  56. package/scss/components/FilterSummary/_storybook-styles.scss +0 -16
  57. package/scss/components/ImportModal/_storybook-styles.scss +0 -6
  58. package/scss/components/InlineTip/_storybook-styles.scss +0 -20
  59. package/scss/components/MultiAddSelect/_storybook-styles.scss +0 -6
  60. package/scss/components/NotificationsPanel/_storybook-styles.scss +0 -23
  61. package/scss/components/OptionsTile/_storybook-styles.scss +0 -29
  62. package/scss/components/PageHeader/_storybook-styles.scss +0 -90
  63. package/scss/components/ProductiveCard/_storybook-styles.scss +0 -23
  64. package/scss/components/RemoveModal/_storybook-styles.scss +0 -6
  65. package/scss/components/Saving/_storybook-styles.scss +0 -12
  66. package/scss/components/SidePanel/_storybook-styles.scss +0 -52
  67. package/scss/components/SingleAddSelect/_storybook-styles.scss +0 -6
  68. package/scss/components/StatusIcon/_storybook-styles.scss +0 -6
  69. package/scss/components/SteppedAnimatedMedia/_index.scss +0 -8
  70. package/scss/components/SteppedAnimatedMedia/_stepped-animated-media.scss +0 -6
  71. package/scss/components/SteppedAnimatedMedia/_storybook-styles.scss +0 -13
  72. package/scss/components/TagSet/_storybook-styles.scss +0 -8
  73. package/scss/components/Tearsheet/_storybook-styles.scss +0 -25
  74. package/scss/components/TooltipTrigger/_storybook-styles.scss +0 -6
  75. package/scss/components/UserProfileImage/_storybook.scss +0 -6
  76. package/scss/components/WebTerminal/_storybook-styles.scss +0 -46
@@ -6,12 +6,12 @@
6
6
  //
7
7
 
8
8
  /**
9
- * The InlineTip specifically is theme-agnostic, and so we have to
10
- * use color tokens to keep the colors static instead of theme tokens
9
+ * The InlineTip specifically is theme-agnostic, and so we have to
10
+ * use color tokens to keep the colors static instead of theme tokens
11
11
  * that will change depending on the selected theme.
12
- *
12
+ *
13
13
  * We are triggering a *large* amount of linting errors.
14
- * So, we're using the following "disable" rules for the entire file
14
+ * So, we're using the following "disable" rules for the entire file
15
15
  * instead of many individual rules.
16
16
  */
17
17
 
@@ -17,6 +17,7 @@
17
17
  @use './CreateSidePanel/index-with-carbon' as *;
18
18
  @use './CreateTearsheetNarrow/index-with-carbon' as *;
19
19
  @use './CreateTearsheet/index-with-carbon' as *;
20
+ @use './Datagrid/index-with-carbon' as *;
20
21
  @use './EditInPlace/index-with-carbon' as *;
21
22
  @use './EmptyStates/index-with-carbon' as *;
22
23
  @use './ExportModal/index-with-carbon' as *;
@@ -17,6 +17,7 @@
17
17
  @use './CreateSidePanel';
18
18
  @use './CreateTearsheetNarrow';
19
19
  @use './CreateTearsheet';
20
+ @use './Datagrid';
20
21
  @use './EditInPlace';
21
22
  @use './EmptyStates';
22
23
  @use './ExportModal';
@@ -0,0 +1,3 @@
1
+ @forward './global/styles/project-settings' with (
2
+ $pkg-prefix: 'dev-prefix--c4p'
3
+ );
@@ -1,35 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
9
- @use '@carbon/styles/scss/theme' as *;
10
- @use '@carbon/styles/scss/spacing' as *;
11
-
12
- $block-class: #{c4p-settings.$pkg-prefix}--apikey-modal;
13
-
14
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--radio-button-wrapper {
15
- margin-bottom: $spacing-02;
16
- }
17
-
18
- .#{$block-class}__permissions.#{c4p-settings.$carbon-prefix}--fieldset {
19
- margin-top: $spacing-05;
20
- margin-bottom: 0;
21
- }
22
-
23
- .#{$block-class}__resource-toggle.#{c4p-settings.$carbon-prefix}--fieldset {
24
- margin-top: 0;
25
- margin-bottom: $spacing-05;
26
- }
27
-
28
- .#{$block-class}__resource-name.#{c4p-settings.$carbon-prefix}--fieldset {
29
- margin-top: 0;
30
- margin-bottom: 0;
31
- }
32
-
33
- .#{$block-class}__button-loading.#{c4p-settings.$carbon-prefix}--btn--primary {
34
- background: $link-secondary;
35
- }
@@ -1,29 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2020, 2021
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/theme' as *;
9
- @use '@carbon/styles/scss/spacing' as *;
10
- @use '@carbon/styles/scss/type';
11
- @use '@carbon/styles/scss/components/ui-shell' as *;
12
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
13
-
14
- // The block part of our conventional BEM class names (blockClass__E--M).
15
- $block-class: #{c4p-settings.$pkg-prefix}--about-modal;
16
-
17
- .#{$block-class}__stories--tech-logo {
18
- width: $spacing-06;
19
- height: $spacing-06;
20
- margin-right: $spacing-03;
21
- object-fit: contain;
22
- }
23
-
24
- .#{$block-class}__footer-label {
25
- @include type.type-style('label-01');
26
-
27
- margin-bottom: $spacing-02;
28
- color: $text-secondary;
29
- }
@@ -1,8 +0,0 @@
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
- @use '../../global/styles/display-box' as *;
@@ -1,36 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
9
- @use '../../global/styles/display-box' as *;
10
-
11
- $block-class: #{c4p-settings.$pkg-prefix}--action-set;
12
-
13
- .#{$block-class}__story-container {
14
- width: 96vw;
15
- min-height: 3rem;
16
- }
17
-
18
- .#{$block-class}__story-container--xlg {
19
- width: 75vw;
20
- }
21
-
22
- .#{$block-class}__story-container--lg {
23
- width: 60vw;
24
- }
25
-
26
- .#{$block-class}__story-container--md {
27
- width: 45vw;
28
- }
29
-
30
- .#{$block-class}__story-container--sm {
31
- width: 30vw;
32
- }
33
-
34
- .#{$block-class}__story-container--xs {
35
- width: 25vw;
36
- }
@@ -1,6 +0,0 @@
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
- //
@@ -1,8 +0,0 @@
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
- @use '../../global/styles/display-box' as *;
@@ -1,6 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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
- //
@@ -1,8 +0,0 @@
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
- @use '../../global/styles/display-box' as *;
@@ -1,12 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2020, 2021
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
- // make the root full width to get a better idea of how the cards
9
- // look in a real grid situation
10
- #root {
11
- width: 100%;
12
- }
@@ -1,34 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 20201, 2021
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/theme' as *;
9
- @use '@carbon/styles/scss/spacing' as *;
10
-
11
- #storybook-docs .docs-story {
12
- /* stylelint-disable-next-line carbon/layout-token-use */
13
- padding: 30px 0;
14
- }
15
-
16
- .box {
17
- display: inline-block;
18
- width: 400px;
19
- height: 300px;
20
- margin: $spacing-04;
21
- background-color: $layer-selected-inverse;
22
- color: $text-on-color;
23
- }
24
-
25
- .grid-box {
26
- display: flex;
27
- width: 100%;
28
- height: 300px;
29
- align-items: center;
30
- justify-content: center;
31
- margin-bottom: $spacing-03;
32
- background-color: $layer-selected-inverse;
33
- color: $text-on-color;
34
- }
@@ -1,13 +0,0 @@
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
-
10
- .checklist-stories__viewport {
11
- min-width: calc(2 * $spacing-13); // 320px
12
- max-width: calc(2 * $spacing-13);
13
- }
@@ -1,67 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 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
- @use '@carbon/styles/scss/theme' as *;
9
- @use '@carbon/styles/scss/spacing' as *;
10
- @use '@carbon/styles/scss/type';
11
- @use '@carbon/styles/scss/components/ui-shell' as *;
12
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
13
-
14
- $story-class: 'create-full-page-stories';
15
- $block-class: #{c4p-settings.$pkg-prefix}--create-full-page;
16
- // cspell:disable-next-line
17
- .sbdocs .#{$story-class}__viewport {
18
- height: 100vh;
19
- background-color: $background;
20
- box-shadow: 0 0 4px 1px $border-subtle-01;
21
- color: $text-primary;
22
- overflow-y: auto;
23
- }
24
-
25
- .#{$story-class}__step-fieldset--no-label
26
- .#{c4p-settings.$carbon-prefix}--fieldset
27
- legend {
28
- position: absolute;
29
- overflow: hidden;
30
- width: 1px;
31
- height: 1px;
32
- clip: rect(0 0 0 0);
33
- clip-path: inset(50%);
34
- white-space: nowrap;
35
- }
36
-
37
- .#{$story-class}__tooltip {
38
- position: relative;
39
- // stylelint-disable-next-line carbon/layout-token-use
40
- top: calc(#{$spacing-05} + #{$spacing-01});
41
- left: $spacing-11;
42
- }
43
-
44
- .#{$block-class}__step-fieldset.#{$story-class}__step-fieldset--label.#{c4p-settings.$carbon-prefix}--label {
45
- position: absolute;
46
- overflow: hidden;
47
- width: 1px;
48
- height: 1px;
49
- clip: rect(0 0 0 0);
50
- clip-path: inset(50%);
51
- white-space: nowrap;
52
- }
53
-
54
- .#{c4p-settings.$carbon-prefix}--form-item {
55
- margin-bottom: $spacing-05;
56
- }
57
-
58
- .#{$story-class}__error--text {
59
- @include type.type-style('label-01');
60
-
61
- margin-bottom: $spacing-05;
62
- }
63
-
64
- .#{$block-class}
65
- .#{$block-class}__step-description.#{$story-class}__step-description {
66
- padding-left: 0;
67
- }
@@ -1,54 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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/react/scss/components/number-input';
9
- @use '@carbon/react/scss/components/text-area';
10
- @use '@carbon/react/scss/components/text-input';
11
- @use '@carbon/react/scss/components/dropdown';
12
- @use '@carbon/react/scss/components/date-picker';
13
- @use '@carbon/react/scss/components/radio-button';
14
- @use '@carbon/react/scss/components/progress-indicator';
15
- @use '@carbon/react/scss/components/tooltip';
16
- @use '@carbon/react/scss/components/modal';
17
- @use '@carbon/styles/scss/spacing';
18
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
19
-
20
- .#{c4p-settings.$carbon-prefix}--number {
21
- min-width: 100%;
22
- }
23
-
24
- .#{c4p-settings.$carbon-prefix}--number__control-btn::before {
25
- background-color: transparent;
26
- }
27
-
28
- .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
29
- background-color: transparent;
30
- }
31
-
32
- .#{c4p-settings.$carbon-prefix}--date-picker {
33
- min-width: 100%;
34
- }
35
-
36
- .#{c4p-settings.$carbon-prefix}--date-picker-container {
37
- min-width: 100%;
38
- }
39
-
40
- .#{c4p-settings.$carbon-prefix}--date-picker.#{c4p-settings.$carbon-prefix}--date-picker--single
41
- .#{c4p-settings.$carbon-prefix}--date-picker__input {
42
- min-width: 100%;
43
- }
44
-
45
- .#{c4p-settings.$carbon-prefix}--list-box__menu-icon {
46
- /* stylelint-disable-next-line carbon/layout-token-use */
47
- top: spacing.$spacing-03;
48
- }
49
-
50
- .example-wrapper {
51
- display: grid;
52
- grid-gap: spacing.$spacing-05;
53
- grid-template-columns: 1fr 1fr;
54
- }
@@ -1,32 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
9
- @use '@carbon/styles/scss/theme' as *;
10
- @use '@carbon/styles/scss/spacing';
11
- @use '../../global/decorators/side-panel-decorator' as *;
12
-
13
- $block-class: #{c4p-settings.$pkg-prefix}--create-side-panel;
14
- $story-prefix: create-side-panel-stories__;
15
-
16
- .#{$story-prefix}example-container {
17
- display: grid;
18
- align-items: flex-end;
19
- grid-gap: spacing.$spacing-04;
20
- grid-template-columns: 1fr 1fr;
21
- }
22
-
23
- .#{$story-prefix}example-form-group .#{c4p-settings.$carbon-prefix}--label {
24
- margin-bottom: 0;
25
- }
26
-
27
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::before,
28
- .#{$block-class} .#{c4p-settings.$carbon-prefix}--number__control-btn::after {
29
- background-color: $field-02;
30
- }
31
-
32
- @include side-panel-decorator($story-prefix);
@@ -1,56 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
9
- @use '@carbon/styles/scss/type';
10
- @use '@carbon/type/scss/font-family';
11
- @use '@carbon/styles/scss/spacing' as *;
12
-
13
- $preview-block-class: #{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step;
14
-
15
- .#{$preview-block-class}__description {
16
- @include type.type-style('body-compact-01');
17
-
18
- padding-bottom: $spacing-04;
19
- }
20
-
21
- p.#{$preview-block-class}__description:last-of-type {
22
- padding-bottom: $spacing-07;
23
- }
24
-
25
- .#{$preview-block-class}__heading {
26
- @include font-family.font-weight('semibold');
27
- }
28
-
29
- .#{$preview-block-class}
30
- .#{c4p-settings.$pkg-prefix}--tearsheet__content
31
- .#{c4p-settings.$carbon-prefix}--form-item {
32
- margin-bottom: $spacing-05;
33
- }
34
-
35
- .#{c4p-settings.$carbon-prefix}--tile-group div {
36
- display: flex;
37
- flex-wrap: wrap;
38
- }
39
-
40
- .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile {
41
- width: 280px;
42
- height: 240px;
43
- margin-right: $spacing-05;
44
- }
45
-
46
- .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile
47
- .#{c4p-settings.$pkg-prefix}--empty-state__illustration.#{c4p-settings.$pkg-prefix}--empty-state__illustration--lg {
48
- min-width: 120px;
49
- height: 120px;
50
- }
51
-
52
- .#{c4p-settings.$pkg-prefix}--tearsheet-create-multi-step--custom-tile-label {
53
- position: absolute;
54
- bottom: $spacing-05;
55
- left: $spacing-05;
56
- }
@@ -1,27 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2021, 2021
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 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
9
- @use '@carbon/styles/scss/spacing' as *;
10
-
11
- $story-class: #{c4p-settings.$pkg-prefix}--create-tearsheet-narrow--story;
12
-
13
- .#{$story-class}__flex-container {
14
- display: flex;
15
- align-items: baseline;
16
- }
17
-
18
- .#{$story-class}__flex-container .#{c4p-settings.$carbon-prefix}--form-item,
19
- .#{$story-class}__form .#{c4p-settings.$carbon-prefix}--form-item {
20
- margin-bottom: $spacing-05;
21
- }
22
-
23
- .#{$story-class}__flex-container .#{c4p-settings.$carbon-prefix}--form-item,
24
- .#{$story-class}__flex-container
25
- .#{c4p-settings.$carbon-prefix}--dropdown__wrapper.#{c4p-settings.$carbon-prefix}--list-box__wrapper {
26
- width: 50%;
27
- }
@@ -1,17 +0,0 @@
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
- $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 {
15
- overflow: auto;
16
- width: 100%;
17
- }
@@ -1,157 +0,0 @@
1
- //
2
- // Copyright IBM Corp. 2022, 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/theme' as *;
9
- @use '@carbon/styles/scss/type';
10
- @use '@carbon/styles/scss/spacing' as *;
11
- @use '@carbon/styles/scss/components/tooltip';
12
-
13
- @use 'ALIAS_STORY_STYLE_CONFIG' as c4p-settings;
14
-
15
- // TODO: add any additional styles used by Datagrid.stories.js
16
- // helper class for the nested table
17
-
18
- $block-class: #{c4p-settings.$pkg-prefix}--datagrid;
19
-
20
- .sb-show-main.sb-main-centered {
21
- height: 100vh;
22
- }
23
-
24
- .sb-show-main.sb-main-centered #storybook-root {
25
- width: 100%;
26
- height: 100vh;
27
- padding: $spacing-07;
28
- }
29
-
30
- #storybook-root
31
- .#{c4p-settings.$carbon-prefix}--actionable-notification__content {
32
- white-space: pre-wrap;
33
- }
34
-
35
- .carbon-nested-table {
36
- border-bottom: 1px solid $border-subtle-01;
37
-
38
- .#{$block-class}__virtual-scrollbar > div > div:last-child td {
39
- border-bottom: none;
40
- }
41
- }
42
-
43
- .#{$block-class}__panelContent {
44
- display: inline;
45
- }
46
-
47
- /* only for storybook purpose. */
48
- .#{c4p-settings.$pkg-prefix}--side-panel.#{c4p-settings.$pkg-prefix}--side-panel__container {
49
- top: 0;
50
- height: 100%;
51
- }
52
-
53
- .page-content-wrapper.side-panel-open {
54
- .#{$block-class} {
55
- padding-right: $spacing-05;
56
- }
57
- }
58
-
59
- .#{$block-class}__side-panel-sections {
60
- padding-bottom: $spacing-06;
61
- }
62
-
63
- .#{$block-class}__side-panel-link {
64
- padding-top: $spacing-01;
65
- padding-bottom: $spacing-06;
66
- }
67
-
68
- .#{$block-class}__side-panel-section-inner {
69
- display: flex;
70
- padding: $spacing-01 0;
71
- }
72
-
73
- .#{$block-class}__side-panel-label-text {
74
- @include type.type-style('body-compact-01');
75
-
76
- color: $text-secondary;
77
- }
78
-
79
- .#{$block-class}__side-panel-value {
80
- @include type.type-style('body-compact-01');
81
-
82
- padding-left: $spacing-03;
83
- }
84
-
85
- .#{$block-class}__side-panel-section-header {
86
- @include type.type-style('heading-compact-01');
87
-
88
- padding-bottom: $spacing-02;
89
- }
90
-
91
- .#{c4p-settings.$pkg-prefix}--side-panel.#{c4p-settings.$pkg-prefix}--side-panel__container.#{c4p-settings.$pkg-prefix}--side-panel__container-right-placement {
92
- border: 0 none;
93
- box-shadow: none;
94
- }
95
-
96
- .#{c4p-settings.$pkg-prefix}--side-panel__container
97
- .#{c4p-settings.$pkg-prefix}--side-panel__inner-content {
98
- height: 100%;
99
- }
100
-
101
- .#{$block-class}-story__custom-cell-wrapper.#{c4p-settings.$carbon-prefix}--link {
102
- display: block;
103
- overflow: hidden;
104
- text-overflow: ellipsis;
105
- white-space: nowrap;
106
- }
107
-
108
- .#{$block-class}-story__hidden-column-id-snippet {
109
- padding-top: $spacing-07;
110
- }
111
-
112
- .#{$block-class}__mobile-toolbar-modal
113
- .#{c4p-settings.$carbon-prefix}--dropdown__wrapper {
114
- margin-bottom: $spacing-07;
115
- }
116
-
117
- .storybook-#{$block-class}__validation-code-snippet {
118
- @include type.font-family($name: mono);
119
- @include type.type-style('code-01');
120
-
121
- display: inline-block;
122
- padding: 0 $spacing-03;
123
- border: 2px solid transparent;
124
- border-radius: $spacing-02;
125
- margin-right: $spacing-03;
126
- background-color: $field-01;
127
- }
128
-
129
- .#{c4p-settings.$carbon-prefix}--body--with-modal-open {
130
- .#{$block-class}__mobile-toolbar-modal.#{c4p-settings.$carbon-prefix}--modal {
131
- top: -$spacing-07;
132
- left: -$spacing-07;
133
- width: 100vw;
134
- }
135
- }
136
-
137
- $story-anchor: 'Datagrid';
138
- div[data-story-title*='#{$story-anchor}']
139
- .docs-story
140
- > div:first-child
141
- > div:first-child {
142
- overflow: auto;
143
- width: 100%;
144
- }
145
-
146
- .sb--tooltip-trigger {
147
- display: flex;
148
- box-sizing: border-box;
149
- align-items: center;
150
- justify-content: center;
151
- padding: 0;
152
- border: 0;
153
- margin: 0;
154
- background: none;
155
- cursor: pointer;
156
- text-align: start;
157
- }
@@ -1,10 +0,0 @@
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 '../../global/styles/project-settings';
9
-
10
- // TODO: add any additional styles used by EditFullPage.stories.js